@intent-hq/web 2.312.0 → 2.313.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/{B2aHvKzW.js → -URcs0EB.js} +2 -2
- package/web/app/immutable/chunks/{BVEbTxE_.js → 04XFWhBd.js} +1 -1
- package/web/app/immutable/chunks/{C46TnD1H.js → 19F8thw1.js} +1 -1
- package/web/app/immutable/chunks/{bcv2TMVC.js → 28aV1Wzl.js} +1 -1
- package/web/app/immutable/chunks/{C6_fF-vn.js → 2O2vJlPl.js} +1 -1
- package/web/app/immutable/chunks/{lGuvxH0P.js → 2bp47GFs.js} +1 -1
- package/web/app/immutable/chunks/{DiN36N-2.js → 2g3BKwo_.js} +2 -2
- package/web/app/immutable/chunks/2zKcFAvZ.js +1 -0
- package/web/app/immutable/chunks/3V4Tx4nH.js +1 -0
- package/web/app/immutable/chunks/{DMiVWfnj.js → 4CMzT_BI.js} +1 -1
- package/web/app/immutable/chunks/{DFo_icpD.js → 6uLD17LP.js} +1 -1
- package/web/app/immutable/chunks/{onlOqkEU.js → 77JHYRqp.js} +22 -22
- package/web/app/immutable/chunks/{Ddfj4iOJ.js → 7IyNIHph.js} +1 -1
- package/web/app/immutable/chunks/{CiN55CeC.js → 7ZJvg7ev.js} +1 -1
- package/web/app/immutable/chunks/{B63GdhMJ.js → 992RyGqf.js} +1 -1
- package/web/app/immutable/chunks/{ChqSx7V8.js → 9sI_nbHm.js} +1 -1
- package/web/app/immutable/chunks/{BDPd3Gxs.js → AGSVFpXc.js} +1 -1
- package/web/app/immutable/chunks/{B1Yylqx8.js → B-agcRbG.js} +1 -1
- package/web/app/immutable/chunks/{Dwxm4mRs.js → B-rSL5ZP.js} +2 -2
- package/web/app/immutable/chunks/{D25S3m8c.js → B-xGvc_0.js} +1 -1
- package/web/app/immutable/chunks/{DB5R3D7Y.js → B0qtRhuw.js} +1 -1
- package/web/app/immutable/chunks/{BnAX9yTi.js → B1Rrvp0b.js} +1 -1
- package/web/app/immutable/chunks/{LnbsKux_.js → B2RRuLl5.js} +1 -1
- package/web/app/immutable/chunks/{8ZUxx0Co.js → B3nB6DWs.js} +1 -1
- package/web/app/immutable/chunks/{CWKTWYM7.js → B6mHy78M.js} +1 -1
- package/web/app/immutable/chunks/{Yu0gam1U.js → B6oQfzis.js} +1 -1
- package/web/app/immutable/chunks/{CLevwIvK.js → B7-651e2.js} +1 -1
- package/web/app/immutable/chunks/{Co6qQZL7.js → B721JIop.js} +2 -2
- package/web/app/immutable/chunks/{BXmFIcIP.js → B8VhjfbW.js} +1 -1
- package/web/app/immutable/chunks/{Z5fbCd-X.js → B9F8nd-t.js} +4 -4
- package/web/app/immutable/chunks/{CddrLe5o.js → B9pAuhbK.js} +1 -1
- package/web/app/immutable/chunks/{BqddjWz6.js → BAQDI3wv.js} +1 -1
- package/web/app/immutable/chunks/BAqR9jtB.js +1 -0
- package/web/app/immutable/chunks/{ZjB_ER6s.js → BBRz8JFJ.js} +1 -1
- package/web/app/immutable/chunks/{li27w4Od.js → BCDWZbwh.js} +1 -1
- package/web/app/immutable/chunks/{B195Jf7v.js → BCoW5DN6.js} +3 -3
- package/web/app/immutable/chunks/{CVVkCR3K.js → BDGDJyji.js} +1 -1
- package/web/app/immutable/chunks/{C6AEaqMK.js → BDICjj7k.js} +1 -1
- package/web/app/immutable/chunks/{DGjSXQQ8.js → BDXCy3lH.js} +1 -1
- package/web/app/immutable/chunks/{htWd8PdL.js → BE-b7v7R.js} +1 -1
- package/web/app/immutable/chunks/{BlvwJgNV.js → BEVpCf6b.js} +1 -1
- package/web/app/immutable/chunks/{DaUwNiAB.js → BFETMHTz.js} +3 -3
- package/web/app/immutable/chunks/{uxsR8mHg.js → BFpzDysH.js} +1 -1
- package/web/app/immutable/chunks/{-g2yD8nW.js → BGGxKX5q.js} +1 -1
- package/web/app/immutable/chunks/{CcoNUQ4q.js → BGYaMCAp.js} +1 -1
- package/web/app/immutable/chunks/{B1fMeJph.js → BHqHNrOT.js} +1 -1
- package/web/app/immutable/chunks/{CpLMWsmF.js → BKTydVIY.js} +1 -1
- package/web/app/immutable/chunks/{BJ9Pk-Qc.js → BLDT4lze.js} +1 -1
- package/web/app/immutable/chunks/{BlzuC8vd.js → BM7ZHc1t.js} +2 -2
- package/web/app/immutable/chunks/{Cu9hF6Lj.js → BMkc6ng0.js} +1 -1
- package/web/app/immutable/chunks/{66T_vlm_.js → BN6Sv1MY.js} +1 -1
- package/web/app/immutable/chunks/{C8M-Eryf.js → BNHRvqeQ.js} +1 -1
- package/web/app/immutable/chunks/{BY5CEwGM.js → BNasdn-P.js} +1 -1
- package/web/app/immutable/chunks/{DU64vtBR.js → BPk16bSc.js} +1 -1
- package/web/app/immutable/chunks/{Dm_KenRX.js → BQFqw3YD.js} +1 -1
- package/web/app/immutable/chunks/{Bk-q0J3W.js → BR8jrnEs.js} +1 -1
- package/web/app/immutable/chunks/{CcnOA9dj.js → BRNfUSNR.js} +1 -1
- package/web/app/immutable/chunks/{DaA44xVk.js → BSwWMzab.js} +5 -5
- package/web/app/immutable/chunks/{B1LFg8Ni.js → BUjtm23k.js} +1 -1
- package/web/app/immutable/chunks/{K1Aj4aiz.js → BVkJyN1U.js} +2 -2
- package/web/app/immutable/chunks/{DEA2ISnw.js → BXMFG8vW.js} +1 -1
- package/web/app/immutable/chunks/{CmZ4R63v.js → BZ90Gl9e.js} +1 -1
- package/web/app/immutable/chunks/{qCTbBtmS.js → B_CpN824.js} +1 -1
- package/web/app/immutable/chunks/{D6Tu0KcL.js → B_ifqSee.js} +6 -6
- package/web/app/immutable/chunks/{3xBR6H3M.js → BaWcyleE.js} +1 -1
- package/web/app/immutable/chunks/{DNPjjQTW.js → Bc-8qHYh.js} +1 -1
- package/web/app/immutable/chunks/{Bg-wwj8e.js → Bc2zOKbx.js} +1 -1
- package/web/app/immutable/chunks/{wFaVm_je.js → BcVu_y1Z.js} +1 -1
- package/web/app/immutable/chunks/{Db_s6atq.js → BdetxH0g.js} +1 -1
- package/web/app/immutable/chunks/{Bgo6QmNg.js → Bf1tCDQg.js} +1 -1
- package/web/app/immutable/chunks/{Cts5KPIk.js → BfxxnTgV.js} +1 -1
- package/web/app/immutable/chunks/{0BDej8J9.js → BgUzpkp7.js} +1 -1
- package/web/app/immutable/chunks/{D728aNnl.js → BgyuoEGq.js} +1 -1
- package/web/app/immutable/chunks/{BUhKOoKe.js → BiMGZT5w.js} +2 -2
- package/web/app/immutable/chunks/BkKnMUvE.js +1 -0
- package/web/app/immutable/chunks/{Brz_LsyP.js → Bl_iEh1f.js} +1 -1
- package/web/app/immutable/chunks/{CFKI_75v.js → BlfjnWuH.js} +3 -3
- package/web/app/immutable/chunks/{B4eSJ_b5.js → Bops7MsY.js} +29 -29
- package/web/app/immutable/chunks/{RGxIilBQ.js → Bpy6Muvw.js} +4 -4
- package/web/app/immutable/chunks/Br5d6l04.js +1 -0
- package/web/app/immutable/chunks/{DHQetc-m.js → BtAYzBSd.js} +1 -1
- package/web/app/immutable/chunks/{Bj1XwsOw.js → Bvq2wF7r.js} +7 -7
- package/web/app/immutable/chunks/{cLppJexf.js → BwK5Bace.js} +1 -1
- package/web/app/immutable/chunks/{CwAr2bfc.js → BxiJOwnz.js} +1 -1
- package/web/app/immutable/chunks/{Civ86Ers.js → C0VJEx2v.js} +1 -1
- package/web/app/immutable/chunks/{BUJT8nbP.js → C11wqToa.js} +1 -1
- package/web/app/immutable/chunks/{D8Iqos3S.js → C1XicA-w.js} +1 -1
- package/web/app/immutable/chunks/{B95izTqM.js → C2L4VLjE.js} +1 -1
- package/web/app/immutable/chunks/C3X16aYc.js +1 -0
- package/web/app/immutable/chunks/{YdCQJnUj.js → C48G3Oh4.js} +1 -1
- package/web/app/immutable/chunks/{DwCiT34L.js → C4XQStEU.js} +1 -1
- package/web/app/immutable/chunks/{Q3Bjy5v7.js → C58wlt4Q.js} +2 -2
- package/web/app/immutable/chunks/{B6tJ7e7m.js → C5EEwI0-.js} +2 -2
- package/web/app/immutable/chunks/{CKcLU7Ix.js → C5Nz-crT.js} +1 -1
- package/web/app/immutable/chunks/{CHk37LgR.js → C5c-LdLT.js} +1 -1
- package/web/app/immutable/chunks/{C8G4GKsE.js → C6L7wkhi.js} +1 -1
- package/web/app/immutable/chunks/{QiI6ZCof.js → C8_w7W1W.js} +4 -4
- package/web/app/immutable/chunks/{BP22EbgY.js → C8reKsm7.js} +1 -1
- package/web/app/immutable/chunks/{D7b_n5fi.js → C9gP-gRX.js} +3 -3
- package/web/app/immutable/chunks/{DhmDkL56.js → CAK2j9T_.js} +1 -1
- package/web/app/immutable/chunks/{0KiNbR5l.js → CBwn70Pq.js} +1 -1
- package/web/app/immutable/chunks/{5jwgbfJ7.js → CBzaXebB.js} +1 -1
- package/web/app/immutable/chunks/{BIsm3Ahi.js → CCIxcA5l.js} +1 -1
- package/web/app/immutable/chunks/{3U-mPo_x.js → CCxcLQdk.js} +1 -1
- package/web/app/immutable/chunks/{DUIaBcOd.js → CDE88Tgk.js} +2 -2
- package/web/app/immutable/chunks/{GiRbWuMt.js → CEWfqweJ.js} +1 -1
- package/web/app/immutable/chunks/{Bqekhi5h.js → CHtSQ3Rg.js} +1 -1
- package/web/app/immutable/chunks/{BNn2h7IG.js → CJCZCJxO.js} +1 -1
- package/web/app/immutable/chunks/{19JeQ6BX.js → CKJYXvLT.js} +1 -1
- package/web/app/immutable/chunks/{M4M675TN.js → CM7ZaQP_.js} +1 -1
- package/web/app/immutable/chunks/{DsKjRYyi.js → CNMS2KOf.js} +1 -1
- package/web/app/immutable/chunks/CPfTSiRI.js +1 -0
- package/web/app/immutable/chunks/{BG1ODLUu.js → CPzgXxXu.js} +1 -1
- package/web/app/immutable/chunks/{T-DUA-1O.js → CRgLy9Dv.js} +1 -1
- package/web/app/immutable/chunks/{CFyiOaFx.js → CVvtz86e.js} +3 -3
- package/web/app/immutable/chunks/{Bh9tHAiY.js → CYlqp1HL.js} +49 -49
- package/web/app/immutable/chunks/{U838LLRH.js → CYtxGPAf.js} +1 -1
- package/web/app/immutable/chunks/CZI4_vlI.js +1 -0
- package/web/app/immutable/chunks/{CXqStKXr.js → C_73TJPq.js} +1 -1
- package/web/app/immutable/chunks/{D08RO1VG.js → CatH1hIe.js} +1 -1
- package/web/app/immutable/chunks/{BFbKEECb.js → Cb7SCycF.js} +1 -1
- package/web/app/immutable/chunks/{B6RmASgD.js → Ccf4dYFA.js} +1 -1
- package/web/app/immutable/chunks/{CWlg1b-s.js → CeQYwwry.js} +1 -1
- package/web/app/immutable/chunks/CgAzfuNr.js +1 -0
- package/web/app/immutable/chunks/{DPHQ6GUU.js → CnfYogWn.js} +1 -1
- package/web/app/immutable/chunks/{Z7mWElPD.js → Cnihm-Nc.js} +1 -1
- package/web/app/immutable/chunks/{BYLg_iMr.js → CoKEteoj.js} +1 -1
- package/web/app/immutable/chunks/{BsLhCljI.js → Cop9b2dY.js} +1 -1
- package/web/app/immutable/chunks/{OeYTP1p9.js → Cpw4G06I.js} +1 -1
- package/web/app/immutable/chunks/{BNVixDQg.js → Cpwl5RRn.js} +1 -1
- package/web/app/immutable/chunks/{BawsvKy-.js → CqzZhYYx.js} +1 -1
- package/web/app/immutable/chunks/{CPy8SeUf.js → Cw6SlTJ6.js} +2 -2
- package/web/app/immutable/chunks/{CIx9_tZJ.js → CxPdVa60.js} +1 -1
- package/web/app/immutable/chunks/{DRwfCI3n.js → CzRl1R1n.js} +1 -1
- package/web/app/immutable/chunks/{C1SG0POo.js → D-XHjwsv.js} +1 -1
- package/web/app/immutable/chunks/{CwwcEFDp.js → D-rJNj43.js} +1 -1
- package/web/app/immutable/chunks/{CgIYxUJQ.js → D0Dsw2tV.js} +1 -1
- package/web/app/immutable/chunks/{BPvrn9n_.js → D0NG9Gzz.js} +2 -2
- package/web/app/immutable/chunks/{DQpR_z9x.js → D0tEEJ7X.js} +1 -1
- package/web/app/immutable/chunks/{C3ePiQWu.js → D6DsI_Sr.js} +1 -1
- package/web/app/immutable/chunks/{ffaoYO6L.js → D9SqGY86.js} +1 -1
- package/web/app/immutable/chunks/{vOfkzWZD.js → DBfJXlLJ.js} +1 -1
- package/web/app/immutable/chunks/{Ba7aiW_M.js → DCcgbj-g.js} +1 -1
- package/web/app/immutable/chunks/{xXCdIyF3.js → DD-f8Y3V.js} +1 -1
- package/web/app/immutable/chunks/{D4dn9g8x.js → DE32xZOO.js} +1 -1
- package/web/app/immutable/chunks/{BtTToJTU.js → DEfnfMIS.js} +3 -3
- package/web/app/immutable/chunks/{CJ4_4cNv.js → DFq6CFhq.js} +1 -1
- package/web/app/immutable/chunks/{EyZ0nhwB.js → DFzMoFQx.js} +4 -4
- package/web/app/immutable/chunks/{BRYVEoAL.js → DGAww3vc.js} +1 -1
- package/web/app/immutable/chunks/{B_mg6-Vc.js → DH9gMPGd.js} +1 -1
- package/web/app/immutable/chunks/{wV3lKTnH.js → DJCJ21BX.js} +1 -1
- package/web/app/immutable/chunks/{C44r02pn.js → DKPwGUzq.js} +1 -1
- package/web/app/immutable/chunks/{vV7Eo_ua.js → DKXEy5Lq.js} +1 -1
- package/web/app/immutable/chunks/{DlM5T-ri.js → DKhv0I45.js} +1 -1
- package/web/app/immutable/chunks/{Bl-s542_.js → DNo4fphO.js} +1 -1
- package/web/app/immutable/chunks/{BVNJnx5b.js → DO2cS8JO.js} +1 -1
- package/web/app/immutable/chunks/{Bd8zPJ0R.js → DOzphY7c.js} +1 -1
- package/web/app/immutable/chunks/{QfXYPrZH.js → DPcbMgdd.js} +2 -2
- package/web/app/immutable/chunks/{CR_HWuhj.js → DPiGMYKs.js} +1 -1
- package/web/app/immutable/chunks/{rpm2NzpE.js → DQRxUuCh.js} +1 -1
- package/web/app/immutable/chunks/{Pow4u-14.js → DSRwOSd4.js} +1 -1
- package/web/app/immutable/chunks/{CIL9eyec.js → DTMKqgRU.js} +1 -1
- package/web/app/immutable/chunks/{CwBMLcFF.js → DW9ZR5Up.js} +1 -1
- package/web/app/immutable/chunks/{BMoOyvL9.js → DY6JypjK.js} +1 -1
- package/web/app/immutable/chunks/{BlZonKZY.js → DZ64qqlL.js} +1 -1
- package/web/app/immutable/chunks/{BIwSEl2U.js → DZuInc-o.js} +1 -1
- package/web/app/immutable/chunks/{Cee62BOx.js → D_uOXHFE.js} +1 -1
- package/web/app/immutable/chunks/{dzprHFyK.js → DaWdrOD0.js} +1 -1
- package/web/app/immutable/chunks/{CsQu3MKC.js → DcYvv2Iw.js} +1 -1
- package/web/app/immutable/chunks/{ZaVuh6Ie.js → DeBw56y4.js} +1 -1
- package/web/app/immutable/chunks/{BGpTsVFh.js → DfTvRpFp.js} +1 -1
- package/web/app/immutable/chunks/{BBg1ABUj.js → DgJXm20t.js} +1 -1
- package/web/app/immutable/chunks/{xQjZTcxq.js → DhAv1XMF.js} +1 -1
- package/web/app/immutable/chunks/{BPso9ZTU.js → DhXr1ZqD.js} +1 -1
- package/web/app/immutable/chunks/{C9Ba8Wsx.js → DiCMHWTR.js} +1 -1
- package/web/app/immutable/chunks/{tA5hPyrR.js → DiVHUgRZ.js} +2 -2
- package/web/app/immutable/chunks/{CMmlAySy.js → DijSalri.js} +1 -1
- package/web/app/immutable/chunks/{C1-APN-K.js → DkrnUdRW.js} +1 -1
- package/web/app/immutable/chunks/{CHKw7UrD.js → DmsGklpx.js} +1 -1
- package/web/app/immutable/chunks/{DCYjhyno.js → DoCNcHnE.js} +3 -3
- package/web/app/immutable/chunks/{CQolNqfo.js → DqLOhjhM.js} +8 -8
- package/web/app/immutable/chunks/{ZS63KZzT.js → DqTygHNa.js} +4 -4
- package/web/app/immutable/chunks/{X868iZaW.js → DsU6W5Yf.js} +1 -1
- package/web/app/immutable/chunks/{i6q5e9Bi.js → Dt9TrzFG.js} +1 -1
- package/web/app/immutable/chunks/{CMNPJIlE.js → DuRHazc8.js} +1 -1
- package/web/app/immutable/chunks/{CtZpQlR0.js → DuVelotc.js} +2 -2
- package/web/app/immutable/chunks/{sbHX8DXH.js → DvC622kv.js} +1 -1
- package/web/app/immutable/chunks/{aHlukoGt.js → DvExZ34Y.js} +1 -1
- package/web/app/immutable/chunks/{CUhYwYxv.js → DwbQaKgL.js} +1 -1
- package/web/app/immutable/chunks/{Co9bnw2t.js → DwdStl3H.js} +11 -11
- package/web/app/immutable/chunks/{B1XZ9Wy8.js → Dxpr5NqS.js} +1 -1
- package/web/app/immutable/chunks/{BwN9PPwq.js → DzfdD6YD.js} +1 -1
- package/web/app/immutable/chunks/EEJgvLyS.js +1 -0
- package/web/app/immutable/chunks/{BqAelQe2.js → IB-HmS7d.js} +1 -1
- package/web/app/immutable/chunks/{-dq3wJnW.js → Io79CQwx.js} +1 -1
- package/web/app/immutable/chunks/{CjJ2aG8c.js → KFwqetYG.js} +1 -1
- package/web/app/immutable/chunks/{BqK5afB2.js → LoSFphII.js} +1 -1
- package/web/app/immutable/chunks/{CXsLrVJH.js → OS5fDMId.js} +1 -1
- package/web/app/immutable/chunks/{OAsZcRpW.js → P4NanOkc.js} +1 -1
- package/web/app/immutable/chunks/{Frujgmwq.js → PTzYQcOR.js} +1 -1
- package/web/app/immutable/chunks/{DYe4BNIz.js → QCq950da.js} +1 -1
- package/web/app/immutable/chunks/{8rrBGDgQ.js → UuiGcpAE.js} +1 -1
- package/web/app/immutable/chunks/{SU_Zxid7.js → V553m0MO.js} +1 -1
- package/web/app/immutable/chunks/{CWlxHxOH.js → X-W6j8OD.js} +1 -1
- package/web/app/immutable/chunks/{CpbXsTys.js → XzWc0fs1.js} +1 -1
- package/web/app/immutable/chunks/{rWFIPcdV.js → Y6LratEc.js} +1 -1
- package/web/app/immutable/chunks/{DFV_t0gv.js → YH3VI7O_.js} +1 -1
- package/web/app/immutable/chunks/{ICkI56ZY.js → _4p7wl12.js} +1 -1
- package/web/app/immutable/chunks/{CDGEKoBr.js → aegF9YRH.js} +1 -1
- package/web/app/immutable/chunks/{URtDzPe4.js → cUCU_6OD.js} +1 -1
- package/web/app/immutable/chunks/{BDF6V5e0.js → dKjrvSqn.js} +1 -1
- package/web/app/immutable/chunks/{17TgXovQ.js → gqVNwlAV.js} +1 -1
- package/web/app/immutable/chunks/{BEBrFxQu.js → h4HcKsDl.js} +1 -1
- package/web/app/immutable/chunks/{C6JSYFyu.js → hacdNVQl.js} +1 -1
- package/web/app/immutable/chunks/{DjeoEINQ.js → hcpthRFf.js} +1 -1
- package/web/app/immutable/chunks/{SAR1HpYu.js → i92hRJko.js} +3 -3
- package/web/app/immutable/chunks/{DyLPqvAi.js → jvw1Fn3k.js} +1 -1
- package/web/app/immutable/chunks/{BP56q1O2.js → kRmfkT9J.js} +2 -2
- package/web/app/immutable/chunks/{BwRcoxdV.js → ldCNaZ5F.js} +1 -1
- package/web/app/immutable/chunks/{daIBqHmL.js → n2a_8s79.js} +1 -1
- package/web/app/immutable/chunks/{DexjcGy5.js → nt8jKVrH.js} +1 -1
- package/web/app/immutable/chunks/{HHVVLLOo.js → okmbexJZ.js} +1 -1
- package/web/app/immutable/chunks/{DdRYjUTh.js → qHcHiO2c.js} +1 -1
- package/web/app/immutable/chunks/{BioErF0E.js → sLnx1Tu5.js} +1 -1
- package/web/app/immutable/chunks/{I6iBDGZz.js → tuNJ429u.js} +1 -1
- package/web/app/immutable/chunks/{BeJPCJYr.js → um4u3A9l.js} +6 -6
- package/web/app/immutable/chunks/{DPQGeIyJ.js → xlntbOPQ.js} +2 -2
- package/web/app/immutable/chunks/{BjPJabzV.js → yNufUFm8.js} +1 -1
- package/web/app/immutable/entry/{app.zU9yYpXi.js → app.Co8E4L03.js} +3 -3
- package/web/app/immutable/entry/start.CBL0QUZV.js +1 -0
- package/web/app/immutable/nodes/{0.CpVAzuif.js → 0.BucKx3Zo.js} +1 -1
- package/web/app/immutable/nodes/{1.DRuW-6VC.js → 1.-v_Vj9ip.js} +1 -1
- package/web/app/immutable/nodes/{10.DKrkS2Ck.js → 10.BnlxMSMI.js} +4 -4
- package/web/app/immutable/nodes/{11.C3gubzv3.js → 11.BtNxR4dm.js} +1 -1
- package/web/app/immutable/nodes/{12.DwCDRGkT.js → 12.DQmthXqN.js} +1 -1
- package/web/app/immutable/nodes/{13.CUd5S4Yi.js → 13.pfWPVnQT.js} +3 -3
- package/web/app/immutable/nodes/{14.u0qAwLFY.js → 14.Ca9GXwJ0.js} +2 -2
- package/web/app/immutable/nodes/{15.D5mdZsCG.js → 15.CkuJDDnR.js} +1 -1
- package/web/app/immutable/nodes/{16.Di9o_NeI.js → 16.Dk1EKS3B.js} +2 -2
- package/web/app/immutable/nodes/2.Bazc0fR2.js +9 -0
- package/web/app/immutable/nodes/{3.BdPudEJY.js → 3.CCsh91Fv.js} +1 -1
- package/web/app/immutable/nodes/4.C_FHoeDU.js +1 -0
- package/web/app/immutable/nodes/5.DegIKxsI.js +5 -0
- package/web/app/immutable/nodes/{6.TDtUMw8i.js → 6.F6OlLFwi.js} +1 -1
- package/web/app/immutable/nodes/{7.heLExSUY.js → 7.quuP6x8b.js} +1 -1
- package/web/app/immutable/nodes/{8.iXetk1_-.js → 8.xtRgDwRj.js} +4 -4
- package/web/app/immutable/nodes/{9.Bq9HwFsC.js → 9.DFsNNJdd.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/7FhPODJU.js +0 -1
- package/web/app/immutable/chunks/B-EQoMaE.js +0 -1
- package/web/app/immutable/chunks/BV49_RX-.js +0 -1
- package/web/app/immutable/chunks/BzwgImum.js +0 -1
- package/web/app/immutable/chunks/C-BI-o7z.js +0 -1
- package/web/app/immutable/chunks/CGtpSJYQ.js +0 -1
- package/web/app/immutable/chunks/CHmKgzDw.js +0 -1
- package/web/app/immutable/chunks/CfR8DHmm.js +0 -1
- package/web/app/immutable/chunks/CqtVr5NT.js +0 -1
- package/web/app/immutable/chunks/D1jYkFlI.js +0 -1
- package/web/app/immutable/entry/start.DtsLJnWx.js +0 -1
- package/web/app/immutable/nodes/2.CjuG4Yin.js +0 -9
- package/web/app/immutable/nodes/4.DvwRKOcg.js +0 -1
- package/web/app/immutable/nodes/5.gCklR-Wk.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var za=Object.defineProperty;var Ba=(a,t,r)=>t in a?za(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;var lt=(a,t,r)=>Ba(a,typeof t!="symbol"?t+"":t,r);import{bo as A,t as tt,bq as I,a_ as ie,by as at,b as rt,bs as Va,bu as Xt,_ as ka}from"./BV49_RX-.js";import{bs as nt,a5 as N,aD as e,bA as L,b_ as Z,W as H,bn as st,c9 as E,aA as M,aB as z,ca as kt,bk as ya,c6 as Ka,cd as Wt,bV as ne,bS as O,ay as Fe,bl as me,bO as ge,ai as xa,a7 as Ut,c0 as ja,bf as Nt,bH as q,aw as He,aj as Ae,be as Ga,c3 as ut,bb as Mt,aF as Qa,br as Ya,bj as Xa}from"./DYhIMPy1.js";import{d as $a,f as Ja,k as qe,l as Ct,s as $,a as Ze,h as zt,i as Za}from"./DU64vtBR.js";import{aN as er,cU as tr,L as ar,av as rr,di as nr,V as sr,dl as Aa,B as or,$ as ir}from"./BMoOyvL9.js";import{t as Bt}from"./Ddfj4iOJ.js";import{a6 as cr,aj as lr,A as dr,o as ur,a3 as Ia,s as Vt,a2 as Kt,aA as yt,aX as Ma,n as fr,aC as pr,aW as mr}from"./B4eSJ_b5.js";import{l as $t}from"./SAR1HpYu.js";import{bI as gr,bF as vr,bG as Jt,ap as hr}from"./B2aHvKzW.js";import{w as dt,P as br}from"./BVNJnx5b.js";import{f as jt,bc as Ht}from"./D7b_n5fi.js";import{t as Oe,v as wr,H as It,E as Zt,c as ea}from"./Brz_LsyP.js";import{qU as Ca,Hm as ve,lW as _r,fA as kr,mR as yr,tq as xr,a as Ar,v0 as Ir,sa as Mr,qC as Cr,g as Sr,bi as ta,u5 as Rr,r_ as Er,u7 as Pr}from"./DaA44xVk.js";import{c as Tr,l as ht}from"./ChTqQfQN.js";import{o as Fr}from"./CLevwIvK.js";import{aP as Lr,aQ as aa,bz as Wr,aA as Nr,by as Hr,aE as qr,c_ as Or,cO as Dr,F as bt,ax as ra,bH as Ur,bC as zr}from"./vV7Eo_ua.js";import{l as Br}from"./Civ86Ers.js";import{p as Vr,cV as wt,cU as na,an as Kr,cX as Sa,a7 as St,aD as Ra,aU as jr,av as Gr,a6 as sa,r as Qr,aL as Yr,aQ as Xr,F as $r}from"./li27w4Od.js";import{s as qt}from"./C9Ba8Wsx.js";import{b as et}from"./BaIAhI85.js";import{s as Jr}from"./CpbXsTys.js";import{c as Zr,u as en,s as tn,a as an}from"./DfxQWSVU.js";import{N as oa,J as ia}from"./DaUwNiAB.js";import{g as ca}from"./BsLhCljI.js";import{X as la}from"./QiI6ZCof.js";const rn=new Set(["failed","blocked","needs_attention","in_progress"]),nn={failed:{visual:"icon",icon:Dr,className:"text-foreground"},blocked:{visual:"icon",icon:Or,className:"text-danger"},needs_attention:{visual:"icon",icon:qr,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Hr,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:Nr,className:"text-success"},pr_queued:{visual:"icon",icon:Wr,className:"text-info"},pr_ready:{visual:"icon",icon:aa,className:"text-success"},pr_open:{visual:"icon",icon:aa,className:"text-info"},pr_merged:{visual:"icon",icon:Lr,className:"text-purple-500"}};function sn(a){switch(a){case"failed":return A.workspace_statusIcon_failed_label();case"blocked":return A.workspace_statusIcon_blocked_label();case"needs_attention":return A.workspace_statusIcon_needsAttention_label();case"in_progress":return A.workspace_statusIcon_inProgress_label();case"waiting":return A.workspace_taskStatus_waiting_label();case"unread":return A.layout_activeCard_unread_header();case"not_started":return A.workspace_statusIcon_notStarted_label();case"idle":return A.workspace_statusIcon_idle_label();case"complete":return A.workspace_statusIcon_complete_label();case"pr_queued":return A.workspace_statusIcon_prQueued_label();case"pr_ready":return A.workspace_statusIcon_prReady_label();case"pr_open":return A.workspace_statusIcon_prOpen_label();case"pr_merged":return A.workspace_statusIcon_prMerged_label()}}function on(a){const t=Ca(a.displayStatus)?a.displayStatus:"not_started";return rn.has(t)?t:a.attention==="unread"?"unread":a.waiting===!0?"waiting":t}function Ea(a){const t=a==="waiting"||a==="unread"||Ca(a)?a:"not_started",r=sn(t);return{state:t,...nn[t],label:r,tooltip:r,accessibleName:r}}var cn=z('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),ln=z("<span><!></span>");function Pa(a,t){if(new.target)return tt({component:Pa,...a});nt(t,!0);let r=I(t,"status",7),l=I(t,"size",7,14),c=I(t,"decorative",7,!1),u=I(t,"class",7);const s=E(()=>Ea(r()));var o={get status(){return r()},set status(m){r(m),M()},get size(){return l()},set size(m=14){l(m),M()},get decorative(){return c()},set decorative(m=!1){c(m),M()},get class(){return u()},set class(m){u(m),M()},$set:at,$on:(m,k)=>rt(t,m,k)},g=ln(),x=N(g);{var b=m=>{var k=cn();H(m,k)},w=m=>{bt(m,{get icon(){return e(s).icon},class:"size-full!"})};ie(x,m=>{e(s).visual==="dot"?m(b):e(s).icon&&m(w,1)})}return L(g),Z(m=>{qe(g,1,m,"svelte-14zk5l0"),Ct(g,`width: ${l()??""}px; height: ${l()??""}px;`),$(g,"role",c()?void 0:"img"),$(g,"aria-label",c()?void 0:e(s).accessibleName),$(g,"aria-hidden",c()?"true":void 0),$(g,"title",c()?void 0:e(s).tooltip),$(g,"data-workspace-status",e(s).state),$(g,"data-workspace-status-visual",e(s).visual),$(g,"data-workspace-status-icon",e(s).icon?.iconName)},[()=>$a(Ja("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",e(s).className,u()))]),H(a,g),st(o)}const Gt=6e4,Qt=60*Gt,Yt=24*Qt,da=30*Yt;function dn(a,t=new Date){if(a==null)return null;const r=a instanceof Date?a:new Date(a),l=r.getTime(),c=t.getTime();if(!Number.isFinite(l)||!Number.isFinite(c))return null;const u=Math.max(0,c-l);let s;u<Gt?s="<1m":u<Qt?s=`${Oe(Math.floor(u/Gt))}m`:u<Yt?s=`${Oe(Math.floor(u/Qt))}h`:u<da?s=`${Oe(Math.floor(u/Yt))}d`:s=`${Oe(Math.floor(u/da))}mo`;const o=l>c?t:r,g=wr(o,{now:t});return g?{compact:s,accessible:g,dateTime:r.toISOString()}:null}var un=z('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),fn=z('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),pn=z('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),mn=z('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),ua=z('<div role="listitem"><!></div>'),gn=z('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),vn=z('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),hn=z('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),bn=z('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),wn=z('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),_n=z('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),kn=z('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),yn=z('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),xn=z('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function An(a,t){if(new.target)return tt({component:An,...a});nt(t,!0);const r=()=>Xt(T,"$workspaceAgents$",c),l=()=>Xt(i,"$prMonitors$",c),[c,u]=Va(),s=Tr("WorkspaceHoverCard");let o=I(t,"workspace",7),g=I(t,"isLoading",7,!1),x=I(t,"activeAgentIds",23,()=>[]),b=I(t,"loadAgentSessions",7,!0),w=I(t,"onkeydown",7),m=I(t,"staticData",7,!1);const k=Wt("");function U(){return m()?Wt([]):er(k)}function B(){return m()?Wt([]):tr(k)}const T=U(),i=B();kt(()=>k.set(o()?.id??""));let p=ne(0);ya(()=>$t.subscribe(()=>Ka(p)));let _=E(()=>o()?.agentSummary?.agentIds??[]),P=E(()=>(e(p),o()?$t.getStreamingAgentIdsForWorkspace(o().id):[])),D=null,Q=new Set;kt(()=>{if(!o()||!b())return;const d=String(o().id);D!==d&&(D=d,Q=new Set);for(const C of new Set([...e(_).slice(0,6),...x(),...e(P)]))Q.has(C)||(ve.dispatch(_r(d,C)),Q.add(C))});function se(d){return[d.name,d.context,d.questionMeta?.accessible,d.updated.accessible].filter(Boolean).join(". ")}function Ce(d){return d?d.kind==="attention"?d.attention.reason?.trim()||null:"text"in d&&d.text.trim()||null:null}function le(d){return dn(d.lastActivity||d.updatedAt||d.createdAt)??{compact:"—",accessible:A.workspace_hoverCard_noRecentActivity_label()}}function y(d){const C=String(d.status).toLowerCase(),F=yr(d),X=lr(d),be=X==="question"?gr(d):null,pe=Ce(rr.select(ve.state,String(d.id)));let we,Ee,_e,n,f,W,S=!1;if(X==="question"){we="attention",Ee="question",_e=be?.questions[0]?.question.trim()||pe||A.workspace_hoverCard_question_label(),n="question",f=1;const K=be?.questions.length??0;K>1&&(W={compact:`${Oe(1)}/${Oe(K)}`,accessible:A.chat_questionWizard_stepCounter_label({current:1,total:K})})}else if(X==="attention-discussion")we="attention",Ee="discussion",_e=F?.reason?.trim()||A.chat_agentCard_attentionDiscussion_label(),n="attention-discussion",f=1;else if(X==="attention-blocker"||C==="blocked")we="attention",Ee="blocker",_e=F?.reason?.trim()||A.chat_agentCard_attentionBlocker_label(),n="attention-blocker",f=0;else if(d.hasUnread)we="attention",Ee="unread",_e=pe||A.chat_newMessagesDivider_label(),S=!!pe,n="unread",f=2;else if(d.isStreaming||d.isProcessing||x().includes(String(d.id))||e(P).includes(String(d.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(C))we="active",_e=pe||A.workspace_devScripts_running_label(),S=!!pe,n=d.isProcessing?"responding":"running",f=3;else if(["waiting","pending","queued","starting"].includes(C))we="waiting",_e=pe||A.workspace_taskStatus_waiting_label(),S=!!pe,n="waiting",f=4;else return null;const j=d.agentMetadata??d.metadata;return{id:String(d.id),name:d.name?.trim()||A.workspace_fileChanges_agent_label(),group:we,attentionKind:Ee,avatarState:n,specialist:j?.specialist,context:_e,questionMeta:W,contextIsPreview:S,updated:le(d),priority:f}}let Y=E(()=>{const d=o()?.agentSummary,C=new Map;if(Array.isArray(d?.agents))for(const F of d.agents)F&&typeof F=="object"&&typeof F.id=="string"&&C.set(F.id,F.parentAgentId);return r().filter(F=>{const X=C.get(String(F.id));return!(kr(F)!=="topLevel"||typeof X=="string"&&X||F.pendingDeleteAt||F.retiredAt||String(F.status).toLowerCase()==="deleted")})}),oe=E(()=>e(Y).map(y).filter(d=>d!==null).sort((d,C)=>d.priority-C.priority)),Le=E(()=>e(oe).slice(0,6)),Me=E(()=>Math.max(0,e(oe).length-6)),fe=E(()=>o()?.repositoryName?o().repositoryOwner?`${o().repositoryOwner} / ${o().repositoryName}`:o().repositoryName:A.workspace_hoverCard_localRepository_label()),Ve=E(()=>on(o()??{})),ke=E(()=>Ea(e(Ve))),ee=E(()=>o()?.statusMessage?.trim()||"");function Se(d){if(!d)return null;const C=d.activePullRequest??d.pullRequests?.[0]??null;return C||(d.prStatus?{id:`legacy-pr-${d.prNumber??"workspace"}`,number:d.prNumber??0,url:d.prUrl??"",title:A.workspace_hoverCard_pullRequest_label(),status:d.prStatus,createdAt:d.updatedAt,updatedAt:d.updatedAt}:null)}let ft=E(()=>o()?m()?Se(o()):nr.select(ve.state,o().id)??Se(o()):null),Ie=E(()=>{if(!o()||ar(o()))return[];const d=o().repositoryOwner&&o().repositoryName?`${o().repositoryOwner}/${o().repositoryName}`:void 0;return cr({workspacePRs:o().pullRequests,activePR:e(ft),monitors:l(),workspaceRepo:d,buildPrUrl:(C,F)=>Vr(C,o().repositoryOwner,o().repositoryName,F),getDisplayTitle:C=>C.title})}),ot=E(()=>e(Ie).slice(0,3)),De=E(()=>Math.max(0,e(Ie).length-3)),ce=E(()=>e(oe).length>0),Ke=E(()=>e(Ie).length>0),v=E(()=>e(ce)||e(Ke));function h(d){const C=d.resource?.repository.provider==="gitlab"?`${d.repo} !${d.number}`:d.repo?A.workspace_card_prBadge_repoLine_tooltip({repo:d.repo,number:d.number}):A.workspace_card_prBadge_label({number:` #${d.number}`});return[sr(C,d),d.title,d.details].filter(Boolean).join(`
|
|
3
|
-
`)}function ae(d,C){if(d.stopPropagation(),!o()||!b())return;const F=o().id;Br.select(ve.state)!==F&&Fr(F).catch(X=>{s.warn("Failed to switch workspace for hover-card agent",{agentId:C,error:X})}),ve.dispatch(xr(F,{agentId:C}))}function V(d,C){if(d.stopPropagation(),!o()||!C.url)return;const F=o().id;ka(async()=>{const{handleLink:X}=await import("./DaUwNiAB.js").then(be=>be.Q);return{handleLink:X}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]),import.meta.url).then(({handleLink:X})=>X(C.url,{workspaceId:F,event:d}))}var te={get workspace(){return o()},set workspace(d){o(d),M()},get isLoading(){return g()},set isLoading(d=!1){g(d),M()},get activeAgentIds(){return x()},set activeAgentIds(d=[]){x(d),M()},get loadAgentSessions(){return b()},set loadAgentSessions(d=!0){b(d),M()},get onkeydown(){return w()},set onkeydown(d){w(d),M()},get staticData(){return m()},set staticData(d=!1){m(d),M()},$set:at,$on:(d,C)=>rt(t,d,C)},he=xn(),re=N(he);{var Re=d=>{var C=un(),F=N(C),X=N(F),be=N(X);dt(be,{class:"h-7 min-w-0 max-w-64 flex-1"});var pe=O(be,2);dt(pe,{class:"h-5 w-20 shrink-0"}),L(X);var we=O(X,2);dt(we,{class:"h-4 w-40"});var Ee=O(we,2);dt(Ee,{class:"mt-2 h-10 w-full"}),L(F);var _e=O(F,4),n=N(_e),f=N(n);dt(f,{class:"h-10 w-full"}),L(n);var W=O(n,2),S=N(W);dt(S,{class:"h-10 w-full"}),L(W),L(_e),L(C),H(d,C)},Ue=d=>{var C=yn(),F=Fe(C);let X;var be=N(F),pe=N(be),we=N(pe),Ee=me(we,!0),_e=O(we,2),n=N(_e),f=me(n,!0),W=O(n);Pa(W,{get status(){return e(Ve)},size:16,decorative:!0}),L(_e),L(pe);var S=O(pe,2),j=me(S,!0),K=O(S,2);{var J=ue=>{var We=fn(),xt=me(We,!0);Ze(We,(At,Rt)=>Bt?.(At,Rt),()=>e(ee)),Z(()=>ge(xt,e(ee))),H(ue,We)};ie(K,ue=>{e(ee)&&ue(J)})}L(be),L(F);var Pe=O(F,2);{var de=ue=>{var We=kn(),xt=O(Fe(We),2),At=N(xt);{var Rt=Qe=>{var ze=vn(),Ge=N(ze);zt(Ge,21,()=>e(Le),G=>G.id,(G,R)=>{var ye=ua(),Ye=N(ye);{let Xe=E(()=>se(e(R)));jt(Ye,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(Xe)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return e(R).group},get"data-attention-kind"(){return e(R).attentionKind},get onkeydown(){return w()},onclick:Be=>ae(Be,e(R).id),children:(Be,pt)=>{var Te=mn(),xe=Fe(Te),Ne=N(xe);{let Je=E(()=>e(R).specialist??null);dr(Ne,{get agentId(){return e(R).id},variant:"compact",get state(){return e(R).avatarState},get specialist(){return e(Je)}})}L(xe);var it=O(xe),Tt=me(it,!0),$e=O(it),Ft=me($e,!0),mt=O($e,2),gt=N(mt),Lt=me(gt,!0);Ze(gt,(Je,ct)=>Bt?.(Je,ct),()=>e(R).context);var qa=O(gt);{var Oa=Je=>{var ct=pn(),Da=N(ct),Ua=me(Da,!0);L(ct),Z(()=>{$(ct,"aria-label",e(R).questionMeta.accessible),ge(Ua,e(R).questionMeta.compact)}),H(Je,ct)};ie(qa,Je=>{e(R).questionMeta&&Je(Oa)})}L(mt),Z(()=>{ge(Tt,e(R).name),$($e,"datetime",e(R).updated.dateTime),$($e,"aria-label",e(R).updated.accessible),ge(Ft,e(R).updated.compact),$(mt,"data-workspace-hover-card-agent-preview",e(R).contextIsPreview||void 0),ge(Lt,e(R).context)}),H(Be,Te)},$$slots:{default:!0}})}L(ye),H(G,ye)}),L(Ge);var Et=O(Ge,2);{var Pt=G=>{var R=gn(),ye=N(R),Ye=me(ye,!0),Xe=O(ye,2);bt(Xe,{get icon(){return ra},size:10}),L(R),Z(Be=>ge(Ye,Be),[()=>A.workspace_hoverCard_moreAgents_label({count:Oe(e(Me))})]),H(G,R)};ie(Et,G=>{e(Me)&&G(Pt)})}L(ze),Z(G=>$(ze,"aria-label",G),[()=>A.workspace_multiSelectSidebar_agentsTab_label()]),H(Qe,ze)};ie(At,Qe=>{e(ce)&&Qe(Rt)})}var Na=O(At,2);{var Ha=Qe=>{var ze=_n(),Ge=N(ze);zt(Ge,21,()=>e(ot),G=>G.identity,(G,R)=>{var ye=ua();{const pt=Te=>{var xe=hn(),Ne=Fe(xe);bt(Ne,{get icon(){return e(R).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${e(R).foregroundClass??""}`}});var it=O(Ne,2),Tt=me(it,!0),$e=O(it,2),Ft=me($e,!0),mt=O($e,2),gt=me(mt,!0);Z(Lt=>{ge(Tt,Lt),ge(Ft,e(R).accessibleStateLabel),ge(gt,e(R).numberLabel??`#${e(R).number}`)},[()=>e(R).title||(e(R).resource?.repository.provider==="gitlab"?A.workspace_hoverCard_mergeRequest_label():A.workspace_hoverCard_pullRequest_label())]),H(Te,xe)};var Ye=N(ye);{var Xe=Te=>{{let xe=E(()=>h(e(R)));jt(Te,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(xe)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return e(R).identity},get"data-pr-status"(){return e(R).status},get onkeydown(){return w()},onclick:Ne=>V(Ne,e(R)),children:(Ne,it)=>{pt(Ne)},$$slots:{default:!0}})}},Be=Te=>{var xe=bn(),Ne=N(xe);pt(Ne),L(xe),Z(()=>{$(xe,"data-pr-identity",e(R).identity),$(xe,"data-pr-status",e(R).status)}),H(Te,xe)};ie(Ye,Te=>{e(R).url?Te(Xe):Te(Be,-1)})}L(ye)}Z(pt=>$(ye,"aria-label",pt),[()=>e(R).url?void 0:h(e(R))]),H(G,ye)}),L(Ge);var Et=O(Ge,2);{var Pt=G=>{var R=wn(),ye=N(R),Ye=me(ye,!0),Xe=O(ye,2);bt(Xe,{get icon(){return ra},size:10}),L(R),Z(Be=>ge(Ye,Be),[()=>A.workspace_hoverCard_moreItems_label({count:Oe(e(De))})]),H(G,R)};ie(Et,G=>{e(De)&&G(Pt)})}L(ze),Z((G,R)=>{$(ze,"aria-label",G),$(Ge,"aria-label",R)},[()=>e(Ie).every(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_mergeRequests_label():e(Ie).some(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_reviews_label():A.workspace_hoverCard_pullRequests_label(),()=>e(Ie).every(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_mergeRequests_label():e(Ie).some(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_reviews_label():A.workspace_hoverCard_pullRequests_label()]),H(Qe,ze)};ie(Na,Qe=>{e(Ke)&&Qe(Ha)})}L(xt),H(ue,We)};ie(Pe,ue=>{e(v)&&ue(de)})}Z(ue=>{X=qe(F,1,"min-w-0 px-5 pt-4",null,X,{"pb-4":!e(v)}),ge(Ee,ue),ge(f,e(ke).label),ge(j,e(fe))},[()=>o().title||A.workspace_links_untitled_label()]),H(d,C)};ie(re,d=>{g()||!o()?d(Re):d(Ue,-1)})}L(he),H(a,he);var je=st(te);return u(),je}const fa=800,Ss=175,In=300;function Mn(){let a=0,t=null;const r=new Set,l=new Set;function c(){return a>0||t!==null?0:fa}function u(){const o=c();r.forEach(g=>g(o))}function s(){t!==null&&(clearTimeout(t),t=null)}return{get currentOpenDelay(){return c()},subscribe(o){return r.add(o),o(c()),()=>r.delete(o)},notifyOpened(){const o=a===0&&t===null;s(),a+=1,o&&u()},notifyClosed(){a!==0&&(a-=1,!(a>0)&&(s(),t=setTimeout(()=>{t=null,u()},In)))},deferClose(o){return l.add(o),()=>l.delete(o)},settleDeferredCloses(){const o=[...l];l.clear(),o.forEach(g=>g())},reset(){const o=c()!==fa;s(),a=0,l.clear(),o&&u()}}}const Rs=Mn();function Ot(a){const t=Aa.select(ve.state,a);return t!==void 0&&Cr(t)}function Cn(a,t){if(!Ot(a))return[];const r=vr.select(ve.state,a),l=Jt.select(ve.state,a),c=hr.select(ve.state),u=[];for(let s=0;s<Ar;s+=1){const o=c[s],g=o&&o!==a?Aa.select(ve.state,o):void 0;u.push({id:`assign-micro-key-${s+1}`,label:g?A.workspace_card_assignOccupiedMicroKey_label({number:Oe(s+1),title:g.title}):A.workspace_card_assignMicroKeyNumber_label({number:Oe(s+1)}),checked:r===s,closeOnSelect:!0,onClick:()=>{Ot(a)&&ve.dispatch(Ir(s,a)),t()}})}return l!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:A.workspace_card_unassignMicroKey_label(),onClick:()=>{Ot(a)&&Jt.select(ve.state,a)===l&&ve.dispatch(Mr(l)),t()}})),u}function Es(a,{connected:t,onClose:r}){if(!t)return[];const l=Cn(a,r);if(l.length===0)return[];const c=l.filter(s=>"id"in s&&s.id!=="unassign-micro-key"),u=l.find(s=>"id"in s&&s.id==="unassign-micro-key");return[{id:"assign-micro-key",label:A.workspace_card_assignMicroKey_label(),icon:Ur,onClick:()=>{},selection:"single",submenu:c},...u?[u]:[]]}var Sn=z('<div data-static-position="" role="tooltip"><!></div>'),pa=z('<div role="tooltip"><!></div>');function Rn(a,t){if(new.target)return tt({component:Rn,...a});nt(t,!0);let r=I(t,"id",7),l=I(t,"anchor",7),c=I(t,"position",7,"right"),u=I(t,"absolute",7,!1),s=I(t,"anchorElement",7,null),o=I(t,"staticPosition",7,!1),g=I(t,"class",7,""),x=I(t,"children",7),b=I(t,"onmouseenter",7),w=I(t,"onmouseleave",7),m=I(t,"onfocusin",7),k=I(t,"onfocusout",7);const U=Zr(en()+2);tn(U);const B=an(U),T=8,i=4;let p=ne(null),_=ne(""),P=ne(void 0);const D=E(()=>c()==="bottom-right"||c()==="bottom-left"),Q=E(()=>c()==="top"),se=E(()=>o()?"relative":u()?"absolute":"fixed"),Ce=E(()=>c()==="right"?{x:-4,y:0}:c()==="bottom"?{x:4,y:0}:e(Q)?{x:0,y:4}:{x:0,y:-4});function le(v,h,ae){return Math.max(h,Math.min(ae,v))}let y=null,Y=null;function oe(){return!y?.isConnected||Y!==l()?!1:y.style.getPropertyValue("anchor-name").includes(l())||getComputedStyle(y).getPropertyValue("anchor-name").includes(l())}function Le(){return s()?s():(oe()||(y=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(v=>{const h=v.style.getPropertyValue("anchor-name"),ae=getComputedStyle(v).getPropertyValue("anchor-name");return h.includes(l())||ae.includes(l())})??null,Y=y?l():null),y)}function Me(){if(o()||u()||!e(p))return;const v=Le();if(!v)return;const h=v.getBoundingClientRect(),ae=e(p).getBoundingClientRect(),V=window.innerWidth||document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight,he=ae.width||e(p).offsetWidth,re=ae.height||e(p).offsetHeight,Re=Math.max(0,h.top-i-T),Ue=Math.max(0,te-h.bottom-i-T),je=e(Q)?!(Re<re&&Ue>Re):e(D)&&Ue<re&&Re>Ue;let d=h.left,C=h.bottom+i,F=je?Re:Ue;if(c()==="right"){const X=h.left-i-T,be=V-h.right-i-T;d=be>=he||be>=X?h.right+i:h.left-he-i,C=h.top,F=Math.max(0,te-T*2)}else c()==="bottom"?(d=h.left-he-i,C=h.bottom-re):(e(Q)||e(D))&&(c()==="bottom-left"?d=h.right-he:e(Q)&&(d=h.left+h.width/2-he/2),C=je?h.top-Math.min(re,F)-i:h.bottom+i);d=le(d,T,Math.max(T,V-he-T)),C=le(C,T,Math.max(T,te-Math.min(re,F)-T)),q(P,`${F}px`),q(_,`left: ${d}px; top: ${C}px;`)}let fe=!1;async function Ve(){fe||(fe=!0,await ja(),fe=!1,Me())}let ke=null;function ee(){ke||(ke=Jr(()=>{ke=null,Me()}))}function Se(v){const h=s()??(oe()?y:null);h&&v.target instanceof Node&&!v.target.contains(h)||ee()}kt(()=>{const v=e(p),h=s();o()||u()||!v||!h||Ve()}),ya(()=>{if(o())return;let v=null;return Ve().then(()=>{if(!u()&&typeof ResizeObserver<"u"){v=new ResizeObserver(ee),e(p)&&v.observe(e(p));const h=Le();h&&v.observe(h)}}),window.addEventListener("resize",ee),window.addEventListener("scroll",Se,!0),()=>{v?.disconnect(),window.removeEventListener("resize",ee),window.removeEventListener("scroll",Se,!0),ke?.(),ke=null}});var ft={get id(){return r()},set id(v){r(v),M()},get anchor(){return l()},set anchor(v){l(v),M()},get position(){return c()},set position(v="right"){c(v),M()},get absolute(){return u()},set absolute(v=!1){u(v),M()},get anchorElement(){return s()},set anchorElement(v=null){s(v),M()},get staticPosition(){return o()},set staticPosition(v=!1){o(v),M()},get class(){return g()},set class(v=""){g(v),M()},get children(){return x()},set children(v){x(v),M()},get onmouseenter(){return b()},set onmouseenter(v){b(v),M()},get onmouseleave(){return w()},set onmouseleave(v){w(v),M()},get onfocusin(){return m()},set onfocusin(v){m(v),M()},get onfocusout(){return k()},set onfocusout(v){k(v),M()},$set:at,$on:(v,h)=>rt(t,v,h)},Ie=Ut(),ot=Fe(Ie);{var De=v=>{var h=Sn(),ae=N(h);qt(ae,()=>x()??Nt),L(h),et(h,V=>q(p,V),()=>e(p)),Z(()=>{$(h,"id",r()),qe(h,1,e(se)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${B} `+g()),$(h,"data-surface-level",U)}),H(v,h)},ce=v=>{var h=pa();let ae;var V=N(h);qt(V,()=>x()??Nt),L(h),et(h,te=>q(p,te),()=>e(p)),Z(()=>{$(h,"id",r()),qe(h,1,e(se)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${B} `+g()),$(h,"data-surface-level",U),ae=Ct(h,"",ae,{"position-anchor":l(),right:c()==="bottom"?"anchor(left)":void 0,left:c()==="right"?"anchor(right)":e(D)?"anchor(left)":e(Q)?"anchor(center)":void 0,top:c()==="right"?"anchor(top)":e(D)?"anchor(bottom)":void 0,bottom:c()==="bottom"?"anchor(bottom)":e(Q)?"anchor(top)":void 0,"margin-right":c()==="bottom"?"8px":void 0,"margin-left":c()==="right"?"8px":void 0,"margin-top":e(D)?"4px":void 0,"margin-bottom":e(Q)?"4px":void 0,translate:e(Q)?"-50% 0":void 0})}),He("mouseenter",h,function(...te){b()?.apply(this,te)}),He("mouseleave",h,function(...te){w()?.apply(this,te)}),Ae("focusin",h,function(...te){m()?.apply(this,te)}),Ae("focusout",h,function(...te){k()?.apply(this,te)}),It(1,h,()=>Zt,()=>({tier:"fast",...e(Ce),scale:.96})),It(2,h,()=>ea,()=>({tier:"fast"})),H(v,h)},Ke=v=>{br(v,{zIndex:50,children:(h,ae)=>{var V=pa();let te;var he=N(V);qt(he,()=>x()??Nt),L(V),et(V,re=>q(p,re),()=>e(p)),Z(()=>{$(V,"id",r()),qe(V,1,e(se)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${B} `+g()),$(V,"data-surface-level",U),te=Ct(V,e(_),te,{"max-height":e(P)})}),He("mouseenter",V,function(...re){b()?.apply(this,re)}),He("mouseleave",V,function(...re){w()?.apply(this,re)}),Ae("focusin",V,function(...re){m()?.apply(this,re)}),Ae("focusout",V,function(...re){k()?.apply(this,re)}),It(1,V,()=>Zt,()=>({tier:"fast",...e(Ce),scale:.96})),It(2,V,()=>ea,()=>({tier:"fast"})),H(h,V)},$$slots:{default:!0}})};ie(ot,v=>{o()?v(De):u()?v(ce,1):v(Ke,-1)})}return H(a,Ie),st(ft)}xa(["focusin","focusout"]);function _t(a,t){return t||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(a.trim())}function En(a,t){if(t||!a)return a;const r=document.createElement("template");r.innerHTML=a;for(const l of r.content.querySelectorAll("img, video")){const c=l.getAttribute("src")||l.getAttribute("data-media-src")||"",u=[...l.querySelectorAll("source")];if(!_t(c,!1)||u.some(o=>!_t(o.getAttribute("src")||"",!1))){const o=document.createElement("img");o.setAttribute("alt",l.getAttribute("alt")||l.getAttribute("data-name")||""),o.setAttribute("data-media-unavailable","node-owned"),l.replaceWith(o);continue}l.removeAttribute("srcset");const s=l.getAttribute("poster");s&&!_t(s,!1)&&l.removeAttribute("poster")}return r.innerHTML}const Pn=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function Tn(a){return a&&(Pn.some(t=>t.test(a))||or(a,"markdown"))?"static":"simple"}var Fn=z("<!> <!>",1);function Ta(a,t){if(new.target)return tt({component:Ta,...a});nt(t,!0);let r=I(t,"workspaceId",7),l=I(t,"canUseMedia",7),c=ne(null),u=ne(null),s=ne(!1),o=ne(!1);function g(_){q(c,{url:_.getAttribute("src")||"",name:_.getAttribute("alt")||void 0,opener:_},!0),q(s,!0)}function x(_){const P=na(_.getAttribute("href")||"",r());return P&&l()(P)?(q(c,{url:P,name:_.textContent?.trim()||void 0,opener:_,assetLink:!0},!0),q(s,!0),!0):b(_)}function b(_){const P=wt(_.getAttribute("href")||"",r());return!P||!l()(P.url)?!1:(q(u,{url:P.url,mimeType:P.mimeType,name:_.textContent?.trim()||void 0,opener:_},!0),q(o,!0),!0)}kt(()=>{e(u)&&!wt(e(u).url,r())&&(q(o,!1),q(u,null)),e(c)?.assetLink&&!na(e(c).url,r())&&(q(s,!1),q(c,null))});var w={openImage:g,openAsset:x,get workspaceId(){return r()},set workspaceId(_){r(_),M()},get canUseMedia(){return l()},set canUseMedia(_){l(_),M()},$set:at,$on:(_,P)=>rt(t,_,P)},m=Fn(),k=Fe(m);{var U=_=>{ur(_,{get imageUrl(){return e(c).url},get imageName(){return e(c).name},get openerElement(){return e(c).opener},showActionsMenu:!0,get open(){return e(s)},set open(P){q(s,P,!0)}})},B=E(()=>e(c)&&l()(e(c).url));ie(k,_=>{e(B)&&_(U)})}var T=O(k,2);{var i=_=>{Ia(_,{get videoUrl(){return e(u).url},get videoName(){return e(u).name},get mimeType(){return e(u).mimeType},sourceKind:"workspace",get openerElement(){return e(u).opener},get open(){return e(o)},set open(P){q(o,P,!0)}})},p=E(()=>e(u)&&wt(e(u).url,r())&&l()(e(u).url));ie(T,_=>{e(p)&&_(i)})}return H(a,m),st(w)}var Ln=z('<div class="flex items-center gap-2"><!> <!></div>'),Wn=z('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span class="flex size-11 items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]"><svg viewBox="0 0 20 20" class="ml-0.5 size-5" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),Nn=z('<div class="group relative aspect-video w-full max-h-40 max-w-2xl" style="width: min(100%, calc(10rem * 16 / 9));"><!> <!></div>'),Hn=z('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function Fa(a,t){if(new.target)return tt({component:Fa,...a});nt(t,!0);let r=I(t,"source",7),l=I(t,"name",23,()=>A.chat_videoBlock_fromAgent_label()),c=I(t,"poster",7),u=I(t,"allowFileMedia",7,!0),s=I(t,"canOpenFile",7),o=ne(!1),g=ne(!1),x=ne(!1),b=ne(null);const w=E(()=>r().kind==="inline"?`data:${r().mimeType};base64,${r().data}`:r().url);function m(y){return _t(y,u()&&s()?.()!==!1)}const k=E(()=>!m(e(w))),U=E(()=>yt(e(w))),B=E(()=>{if(!(!c()||!m(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const y=new URL(c());return(y.protocol==="https:"||y.protocol==="workspace-file:")&&!y.username&&!y.password?c():void 0}catch{return}}});function T(){q(g,!0),q(x,!1)}var i={get source(){return r()},set source(y){r(y),M()},get name(){return l()},set name(y=A.chat_videoBlock_fromAgent_label()){l(y),M()},get poster(){return c()},set poster(y){c(y),M()},get allowFileMedia(){return u()},set allowFileMedia(y=!0){u(y),M()},get canOpenFile(){return s()},set canOpenFile(y){s(y),M()},$set:at,$on:(y,Y)=>rt(t,y,Y)},p=Hn(),_=Fe(p),P=N(_);{var D=y=>{Vt(y,{get name(){return l()},reason:"load-failed"})},Q=y=>{var Y=Ln(),oe=N(Y);{let Me=E(()=>e(U)?.path),fe=E(()=>e(U)?.workspaceId);Vt(oe,{get name(){return l()},reason:"load-failed",get path(){return e(Me)},get workspaceId(){return e(fe)}})}var Le=O(oe,2);Kt(Le,{get videoUrl(){return e(w)},get videoName(){return l()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType}}),L(Y),H(y,Y)},se=y=>{var Y=Nn(),oe=N(Y);{let Me=E(()=>A.chat_videoBlock_play_ariaLabel({name:l()}));jt(oe,{type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return e(Me)},"data-testid":"chat-video-snapshot",onclick:()=>{m(e(w))&&q(o,!0)},get ref(){return e(b)},set ref(fe){q(b,fe,!0)},children:(fe,Ve)=>{var ke=Wn(),ee=O(Fe(ke),2);ee.muted=!0,Ga(2),Z(()=>{$(ee,"src",e(w)),$(ee,"poster",e(B)),qe(ee,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${e(B)||e(g)&&!e(x)?"opacity-100":"opacity-0"}`)}),He("loadeddata",ee,T),He("error",ee,()=>q(x,!0)),H(fe,ke)},$$slots:{default:!0}})}var Le=O(oe,2);Kt(Le,{get videoUrl(){return e(w)},get videoName(){return l()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"}),L(Y),H(y,Y)};ie(P,y=>{e(k)?y(D):e(x)?y(Q,1):y(se,-1)})}L(_);var Ce=O(_,2);{var le=y=>{Ia(y,{get videoUrl(){return e(w)},get videoName(){return l()},get poster(){return e(B)},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},get openerElement(){return e(b)},get open(){return e(o)},set open(Y){q(o,Y,!0)}})};ie(Ce,y=>{!e(x)&&!e(k)&&y(le)})}return H(a,p),st(i)}const qn=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,On=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ma(a,t){if(typeof a!="string"||!a||a!==a.trim())return null;if(a.startsWith("workspace-asset://"))return wt(a,t);if(a.startsWith("workspace-file://")){const l=yt(a);if(!l||l.workspaceId!==t)return null;const c=Sa(a);return c?la(c,t):null}const r=a.startsWith("intent://")?a:`intent://local/file/${a}`;return la(r,t)}function Dn(a,t){if(a.startsWith("workspace-file://")){const r=yt(a);if(!r||r.workspaceId!==t)return!1;const l=Sa(a);return!!l&&!!St(l,t)}return!!St(a,t,{readOnly:!0})}function Un(a,t){return(t===0||!a[t-1].trim())&&(t===a.length-1||!a[t+1].trim())}function zn(a,t,r){const l=r[0];return a.findIndex((c,u)=>{if(u<=t)return!1;const s=c.trim();return s.length>=r.length&&s.split("").every(o=>o===l)})}function Bn(a,t){const r=a.split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BFETMHTz.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/Cop9b2dY.js","/app/immutable/chunks/Bl_iEh1f.js","/app/immutable/chunks/BPk16bSc.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C9gP-gRX.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B2RRuLl5.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/C11wqToa.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/XzWc0fs1.js","/app/immutable/chunks/BRNfUSNR.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DO2cS8JO.js","/app/immutable/chunks/7IyNIHph.js","/app/immutable/chunks/DKXEy5Lq.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DH9gMPGd.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/-URcs0EB.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/BtAYzBSd.js","/app/immutable/chunks/DY6JypjK.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Ccf4dYFA.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/7ZJvg7ev.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/C5Nz-crT.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BgyuoEGq.js","/app/immutable/chunks/Bc-8qHYh.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BMkc6ng0.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BiMGZT5w.js","/app/immutable/chunks/BHqHNrOT.js","/app/immutable/chunks/CzRl1R1n.js","/app/immutable/chunks/B-rSL5ZP.js","/app/immutable/chunks/C2L4VLjE.js","/app/immutable/chunks/B_ifqSee.js","/app/immutable/chunks/DeBw56y4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B7-651e2.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/Cw6SlTJ6.js","/app/immutable/chunks/Bpy6Muvw.js","/app/immutable/chunks/BCDWZbwh.js","/app/immutable/chunks/C8_w7W1W.js","/app/immutable/chunks/Bops7MsY.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BGGxKX5q.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css","/app/immutable/chunks/BwK5Bace.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var za=Object.defineProperty;var Ba=(a,t,r)=>t in a?za(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;var lt=(a,t,r)=>Ba(a,typeof t!="symbol"?t+"":t,r);import{bo as A,t as tt,bq as I,a_ as ie,by as at,b as rt,bs as Va,bu as Xt,_ as ka}from"./BAqR9jtB.js";import{bs as nt,a5 as N,aD as e,bA as L,b_ as Z,W as H,bn as st,c9 as E,aA as M,aB as z,ca as kt,bk as ya,c6 as Ka,cd as Wt,bV as ne,bS as O,ay as Fe,bl as me,bO as ge,ai as xa,a7 as Ut,c0 as ja,bf as Nt,bH as q,aw as He,aj as Ae,be as Ga,c3 as ut,bb as Mt,aF as Ya,br as Qa,bj as Xa}from"./DYhIMPy1.js";import{d as $a,f as Ja,k as qe,l as Ct,s as $,a as Ze,h as zt,i as Za}from"./BPk16bSc.js";import{aN as er,cU as tr,L as ar,av as rr,di as nr,V as sr,dl as Aa,B as or,$ as ir}from"./DY6JypjK.js";import{t as Bt}from"./7IyNIHph.js";import{a6 as cr,aj as lr,A as dr,o as ur,a3 as Ia,s as Vt,a2 as Kt,aA as yt,aX as Ma,n as fr,aC as pr,aW as mr}from"./Bops7MsY.js";import{l as $t}from"./i92hRJko.js";import{bI as gr,bF as vr,bG as Jt,ap as hr}from"./-URcs0EB.js";import{w as dt,P as br}from"./DO2cS8JO.js";import{f as jt,bc as Ht}from"./C9gP-gRX.js";import{t as Oe,v as wr,H as It,E as Zt,c as ea}from"./Bl_iEh1f.js";import{qW as Ca,Hp as ve,lY as _r,fA as kr,mT as yr,ts as xr,a as Ar,v3 as Ir,sc as Mr,qE as Cr,g as Sr,bi as ta,u8 as Rr,s0 as Er,ua as Pr}from"./BSwWMzab.js";import{c as Tr,l as ht}from"./ChTqQfQN.js";import{o as Fr}from"./B7-651e2.js";import{aP as Lr,aQ as aa,bz as Wr,aA as Nr,by as Hr,aE as qr,c_ as Or,cO as Dr,F as bt,ax as ra,bH as Ur,bC as zr}from"./DKXEy5Lq.js";import{l as Br}from"./C0VJEx2v.js";import{p as Vr,cV as wt,cU as na,an as Kr,cX as Sa,a7 as St,aD as Ra,aU as jr,av as Gr,a6 as sa,r as Yr,aL as Qr,aQ as Xr,F as $r}from"./BCDWZbwh.js";import{s as qt}from"./DiCMHWTR.js";import{b as et}from"./BaIAhI85.js";import{s as Jr}from"./XzWc0fs1.js";import{c as Zr,u as en,s as tn,a as an}from"./DfxQWSVU.js";import{N as oa,J as ia}from"./BFETMHTz.js";import{g as ca}from"./Cop9b2dY.js";import{X as la}from"./C8_w7W1W.js";const rn=new Set(["failed","blocked","needs_attention","in_progress"]),nn={failed:{visual:"icon",icon:Dr,className:"text-foreground"},blocked:{visual:"icon",icon:Or,className:"text-danger"},needs_attention:{visual:"icon",icon:qr,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Hr,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:Nr,className:"text-success"},pr_queued:{visual:"icon",icon:Wr,className:"text-info"},pr_ready:{visual:"icon",icon:aa,className:"text-success"},pr_open:{visual:"icon",icon:aa,className:"text-info"},pr_merged:{visual:"icon",icon:Lr,className:"text-purple-500"}};function sn(a){switch(a){case"failed":return A.workspace_statusIcon_failed_label();case"blocked":return A.workspace_statusIcon_blocked_label();case"needs_attention":return A.workspace_statusIcon_needsAttention_label();case"in_progress":return A.workspace_statusIcon_inProgress_label();case"waiting":return A.workspace_taskStatus_waiting_label();case"unread":return A.layout_activeCard_unread_header();case"not_started":return A.workspace_statusIcon_notStarted_label();case"idle":return A.workspace_statusIcon_idle_label();case"complete":return A.workspace_statusIcon_complete_label();case"pr_queued":return A.workspace_statusIcon_prQueued_label();case"pr_ready":return A.workspace_statusIcon_prReady_label();case"pr_open":return A.workspace_statusIcon_prOpen_label();case"pr_merged":return A.workspace_statusIcon_prMerged_label()}}function on(a){const t=Ca(a.displayStatus)?a.displayStatus:"not_started";return rn.has(t)?t:a.attention==="unread"?"unread":a.waiting===!0?"waiting":t}function Ea(a){const t=a==="waiting"||a==="unread"||Ca(a)?a:"not_started",r=sn(t);return{state:t,...nn[t],label:r,tooltip:r,accessibleName:r}}var cn=z('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),ln=z("<span><!></span>");function Pa(a,t){if(new.target)return tt({component:Pa,...a});nt(t,!0);let r=I(t,"status",7),l=I(t,"size",7,14),c=I(t,"decorative",7,!1),u=I(t,"class",7);const s=E(()=>Ea(r()));var o={get status(){return r()},set status(m){r(m),M()},get size(){return l()},set size(m=14){l(m),M()},get decorative(){return c()},set decorative(m=!1){c(m),M()},get class(){return u()},set class(m){u(m),M()},$set:at,$on:(m,k)=>rt(t,m,k)},g=ln(),x=N(g);{var b=m=>{var k=cn();H(m,k)},w=m=>{bt(m,{get icon(){return e(s).icon},class:"size-full!"})};ie(x,m=>{e(s).visual==="dot"?m(b):e(s).icon&&m(w,1)})}return L(g),Z(m=>{qe(g,1,m,"svelte-14zk5l0"),Ct(g,`width: ${l()??""}px; height: ${l()??""}px;`),$(g,"role",c()?void 0:"img"),$(g,"aria-label",c()?void 0:e(s).accessibleName),$(g,"aria-hidden",c()?"true":void 0),$(g,"title",c()?void 0:e(s).tooltip),$(g,"data-workspace-status",e(s).state),$(g,"data-workspace-status-visual",e(s).visual),$(g,"data-workspace-status-icon",e(s).icon?.iconName)},[()=>$a(Ja("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",e(s).className,u()))]),H(a,g),st(o)}const Gt=6e4,Yt=60*Gt,Qt=24*Yt,da=30*Qt;function dn(a,t=new Date){if(a==null)return null;const r=a instanceof Date?a:new Date(a),l=r.getTime(),c=t.getTime();if(!Number.isFinite(l)||!Number.isFinite(c))return null;const u=Math.max(0,c-l);let s;u<Gt?s="<1m":u<Yt?s=`${Oe(Math.floor(u/Gt))}m`:u<Qt?s=`${Oe(Math.floor(u/Yt))}h`:u<da?s=`${Oe(Math.floor(u/Qt))}d`:s=`${Oe(Math.floor(u/da))}mo`;const o=l>c?t:r,g=wr(o,{now:t});return g?{compact:s,accessible:g,dateTime:r.toISOString()}:null}var un=z('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),fn=z('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),pn=z('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),mn=z('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),ua=z('<div role="listitem"><!></div>'),gn=z('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),vn=z('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),hn=z('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),bn=z('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),wn=z('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),_n=z('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),kn=z('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),yn=z('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),xn=z('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function An(a,t){if(new.target)return tt({component:An,...a});nt(t,!0);const r=()=>Xt(T,"$workspaceAgents$",c),l=()=>Xt(i,"$prMonitors$",c),[c,u]=Va(),s=Tr("WorkspaceHoverCard");let o=I(t,"workspace",7),g=I(t,"isLoading",7,!1),x=I(t,"activeAgentIds",23,()=>[]),b=I(t,"loadAgentSessions",7,!0),w=I(t,"onkeydown",7),m=I(t,"staticData",7,!1);const k=Wt("");function U(){return m()?Wt([]):er(k)}function B(){return m()?Wt([]):tr(k)}const T=U(),i=B();kt(()=>k.set(o()?.id??""));let p=ne(0);ya(()=>$t.subscribe(()=>Ka(p)));let _=E(()=>o()?.agentSummary?.agentIds??[]),P=E(()=>(e(p),o()?$t.getStreamingAgentIdsForWorkspace(o().id):[])),D=null,Y=new Set;kt(()=>{if(!o()||!b())return;const d=String(o().id);D!==d&&(D=d,Y=new Set);for(const C of new Set([...e(_).slice(0,6),...x(),...e(P)]))Y.has(C)||(ve.dispatch(_r(d,C)),Y.add(C))});function se(d){return[d.name,d.context,d.questionMeta?.accessible,d.updated.accessible].filter(Boolean).join(". ")}function Ce(d){return d?d.kind==="attention"?d.attention.reason?.trim()||null:"text"in d&&d.text.trim()||null:null}function le(d){return dn(d.lastActivity||d.updatedAt||d.createdAt)??{compact:"—",accessible:A.workspace_hoverCard_noRecentActivity_label()}}function y(d){const C=String(d.status).toLowerCase(),F=yr(d),X=lr(d),be=X==="question"?gr(d):null,pe=Ce(rr.select(ve.state,String(d.id)));let we,Ee,_e,n,f,W,S=!1;if(X==="question"){we="attention",Ee="question",_e=be?.questions[0]?.question.trim()||pe||A.workspace_hoverCard_question_label(),n="question",f=1;const K=be?.questions.length??0;K>1&&(W={compact:`${Oe(1)}/${Oe(K)}`,accessible:A.chat_questionWizard_stepCounter_label({current:1,total:K})})}else if(X==="attention-discussion")we="attention",Ee="discussion",_e=F?.reason?.trim()||A.chat_agentCard_attentionDiscussion_label(),n="attention-discussion",f=1;else if(X==="attention-blocker"||C==="blocked")we="attention",Ee="blocker",_e=F?.reason?.trim()||A.chat_agentCard_attentionBlocker_label(),n="attention-blocker",f=0;else if(d.hasUnread)we="attention",Ee="unread",_e=pe||A.chat_newMessagesDivider_label(),S=!!pe,n="unread",f=2;else if(d.isStreaming||d.isProcessing||x().includes(String(d.id))||e(P).includes(String(d.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(C))we="active",_e=pe||A.workspace_devScripts_running_label(),S=!!pe,n=d.isProcessing?"responding":"running",f=3;else if(["waiting","pending","queued","starting"].includes(C))we="waiting",_e=pe||A.workspace_taskStatus_waiting_label(),S=!!pe,n="waiting",f=4;else return null;const j=d.agentMetadata??d.metadata;return{id:String(d.id),name:d.name?.trim()||A.workspace_fileChanges_agent_label(),group:we,attentionKind:Ee,avatarState:n,specialist:j?.specialist,context:_e,questionMeta:W,contextIsPreview:S,updated:le(d),priority:f}}let Q=E(()=>{const d=o()?.agentSummary,C=new Map;if(Array.isArray(d?.agents))for(const F of d.agents)F&&typeof F=="object"&&typeof F.id=="string"&&C.set(F.id,F.parentAgentId);return r().filter(F=>{const X=C.get(String(F.id));return!(kr(F)!=="topLevel"||typeof X=="string"&&X||F.pendingDeleteAt||F.retiredAt||String(F.status).toLowerCase()==="deleted")})}),oe=E(()=>e(Q).map(y).filter(d=>d!==null).sort((d,C)=>d.priority-C.priority)),Le=E(()=>e(oe).slice(0,6)),Me=E(()=>Math.max(0,e(oe).length-6)),fe=E(()=>o()?.repositoryName?o().repositoryOwner?`${o().repositoryOwner} / ${o().repositoryName}`:o().repositoryName:A.workspace_hoverCard_localRepository_label()),Ve=E(()=>on(o()??{})),ke=E(()=>Ea(e(Ve))),ee=E(()=>o()?.statusMessage?.trim()||"");function Se(d){if(!d)return null;const C=d.activePullRequest??d.pullRequests?.[0]??null;return C||(d.prStatus?{id:`legacy-pr-${d.prNumber??"workspace"}`,number:d.prNumber??0,url:d.prUrl??"",title:A.workspace_hoverCard_pullRequest_label(),status:d.prStatus,createdAt:d.updatedAt,updatedAt:d.updatedAt}:null)}let ft=E(()=>o()?m()?Se(o()):nr.select(ve.state,o().id)??Se(o()):null),Ie=E(()=>{if(!o()||ar(o()))return[];const d=o().repositoryOwner&&o().repositoryName?`${o().repositoryOwner}/${o().repositoryName}`:void 0;return cr({workspacePRs:o().pullRequests,activePR:e(ft),monitors:l(),workspaceRepo:d,buildPrUrl:(C,F)=>Vr(C,o().repositoryOwner,o().repositoryName,F),getDisplayTitle:C=>C.title})}),ot=E(()=>e(Ie).slice(0,3)),De=E(()=>Math.max(0,e(Ie).length-3)),ce=E(()=>e(oe).length>0),Ke=E(()=>e(Ie).length>0),v=E(()=>e(ce)||e(Ke));function h(d){const C=d.resource?.repository.provider==="gitlab"?`${d.repo} !${d.number}`:d.repo?A.workspace_card_prBadge_repoLine_tooltip({repo:d.repo,number:d.number}):A.workspace_card_prBadge_label({number:` #${d.number}`});return[sr(C,d),d.title,d.details].filter(Boolean).join(`
|
|
3
|
+
`)}function ae(d,C){if(d.stopPropagation(),!o()||!b())return;const F=o().id;Br.select(ve.state)!==F&&Fr(F).catch(X=>{s.warn("Failed to switch workspace for hover-card agent",{agentId:C,error:X})}),ve.dispatch(xr(F,{agentId:C}))}function V(d,C){if(d.stopPropagation(),!o()||!C.url)return;const F=o().id;ka(async()=>{const{handleLink:X}=await import("./BFETMHTz.js").then(be=>be.Q);return{handleLink:X}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]),import.meta.url).then(({handleLink:X})=>X(C.url,{workspaceId:F,event:d}))}var te={get workspace(){return o()},set workspace(d){o(d),M()},get isLoading(){return g()},set isLoading(d=!1){g(d),M()},get activeAgentIds(){return x()},set activeAgentIds(d=[]){x(d),M()},get loadAgentSessions(){return b()},set loadAgentSessions(d=!0){b(d),M()},get onkeydown(){return w()},set onkeydown(d){w(d),M()},get staticData(){return m()},set staticData(d=!1){m(d),M()},$set:at,$on:(d,C)=>rt(t,d,C)},he=xn(),re=N(he);{var Re=d=>{var C=un(),F=N(C),X=N(F),be=N(X);dt(be,{class:"h-7 min-w-0 max-w-64 flex-1"});var pe=O(be,2);dt(pe,{class:"h-5 w-20 shrink-0"}),L(X);var we=O(X,2);dt(we,{class:"h-4 w-40"});var Ee=O(we,2);dt(Ee,{class:"mt-2 h-10 w-full"}),L(F);var _e=O(F,4),n=N(_e),f=N(n);dt(f,{class:"h-10 w-full"}),L(n);var W=O(n,2),S=N(W);dt(S,{class:"h-10 w-full"}),L(W),L(_e),L(C),H(d,C)},Ue=d=>{var C=yn(),F=Fe(C);let X;var be=N(F),pe=N(be),we=N(pe),Ee=me(we,!0),_e=O(we,2),n=N(_e),f=me(n,!0),W=O(n);Pa(W,{get status(){return e(Ve)},size:16,decorative:!0}),L(_e),L(pe);var S=O(pe,2),j=me(S,!0),K=O(S,2);{var J=ue=>{var We=fn(),xt=me(We,!0);Ze(We,(At,Rt)=>Bt?.(At,Rt),()=>e(ee)),Z(()=>ge(xt,e(ee))),H(ue,We)};ie(K,ue=>{e(ee)&&ue(J)})}L(be),L(F);var Pe=O(F,2);{var de=ue=>{var We=kn(),xt=O(Fe(We),2),At=N(xt);{var Rt=Ye=>{var ze=vn(),Ge=N(ze);zt(Ge,21,()=>e(Le),G=>G.id,(G,R)=>{var ye=ua(),Qe=N(ye);{let Xe=E(()=>se(e(R)));jt(Qe,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(Xe)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return e(R).group},get"data-attention-kind"(){return e(R).attentionKind},get onkeydown(){return w()},onclick:Be=>ae(Be,e(R).id),children:(Be,pt)=>{var Te=mn(),xe=Fe(Te),Ne=N(xe);{let Je=E(()=>e(R).specialist??null);dr(Ne,{get agentId(){return e(R).id},variant:"compact",get state(){return e(R).avatarState},get specialist(){return e(Je)}})}L(xe);var it=O(xe),Tt=me(it,!0),$e=O(it),Ft=me($e,!0),mt=O($e,2),gt=N(mt),Lt=me(gt,!0);Ze(gt,(Je,ct)=>Bt?.(Je,ct),()=>e(R).context);var qa=O(gt);{var Oa=Je=>{var ct=pn(),Da=N(ct),Ua=me(Da,!0);L(ct),Z(()=>{$(ct,"aria-label",e(R).questionMeta.accessible),ge(Ua,e(R).questionMeta.compact)}),H(Je,ct)};ie(qa,Je=>{e(R).questionMeta&&Je(Oa)})}L(mt),Z(()=>{ge(Tt,e(R).name),$($e,"datetime",e(R).updated.dateTime),$($e,"aria-label",e(R).updated.accessible),ge(Ft,e(R).updated.compact),$(mt,"data-workspace-hover-card-agent-preview",e(R).contextIsPreview||void 0),ge(Lt,e(R).context)}),H(Be,Te)},$$slots:{default:!0}})}L(ye),H(G,ye)}),L(Ge);var Et=O(Ge,2);{var Pt=G=>{var R=gn(),ye=N(R),Qe=me(ye,!0),Xe=O(ye,2);bt(Xe,{get icon(){return ra},size:10}),L(R),Z(Be=>ge(Qe,Be),[()=>A.workspace_hoverCard_moreAgents_label({count:Oe(e(Me))})]),H(G,R)};ie(Et,G=>{e(Me)&&G(Pt)})}L(ze),Z(G=>$(ze,"aria-label",G),[()=>A.workspace_multiSelectSidebar_agentsTab_label()]),H(Ye,ze)};ie(At,Ye=>{e(ce)&&Ye(Rt)})}var Na=O(At,2);{var Ha=Ye=>{var ze=_n(),Ge=N(ze);zt(Ge,21,()=>e(ot),G=>G.identity,(G,R)=>{var ye=ua();{const pt=Te=>{var xe=hn(),Ne=Fe(xe);bt(Ne,{get icon(){return e(R).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${e(R).foregroundClass??""}`}});var it=O(Ne,2),Tt=me(it,!0),$e=O(it,2),Ft=me($e,!0),mt=O($e,2),gt=me(mt,!0);Z(Lt=>{ge(Tt,Lt),ge(Ft,e(R).accessibleStateLabel),ge(gt,e(R).numberLabel??`#${e(R).number}`)},[()=>e(R).title||(e(R).resource?.repository.provider==="gitlab"?A.workspace_hoverCard_mergeRequest_label():A.workspace_hoverCard_pullRequest_label())]),H(Te,xe)};var Qe=N(ye);{var Xe=Te=>{{let xe=E(()=>h(e(R)));jt(Te,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(xe)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return e(R).identity},get"data-pr-status"(){return e(R).status},get onkeydown(){return w()},onclick:Ne=>V(Ne,e(R)),children:(Ne,it)=>{pt(Ne)},$$slots:{default:!0}})}},Be=Te=>{var xe=bn(),Ne=N(xe);pt(Ne),L(xe),Z(()=>{$(xe,"data-pr-identity",e(R).identity),$(xe,"data-pr-status",e(R).status)}),H(Te,xe)};ie(Qe,Te=>{e(R).url?Te(Xe):Te(Be,-1)})}L(ye)}Z(pt=>$(ye,"aria-label",pt),[()=>e(R).url?void 0:h(e(R))]),H(G,ye)}),L(Ge);var Et=O(Ge,2);{var Pt=G=>{var R=wn(),ye=N(R),Qe=me(ye,!0),Xe=O(ye,2);bt(Xe,{get icon(){return ra},size:10}),L(R),Z(Be=>ge(Qe,Be),[()=>A.workspace_hoverCard_moreItems_label({count:Oe(e(De))})]),H(G,R)};ie(Et,G=>{e(De)&&G(Pt)})}L(ze),Z((G,R)=>{$(ze,"aria-label",G),$(Ge,"aria-label",R)},[()=>e(Ie).every(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_mergeRequests_label():e(Ie).some(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_reviews_label():A.workspace_hoverCard_pullRequests_label(),()=>e(Ie).every(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_mergeRequests_label():e(Ie).some(G=>G.resource?.repository.provider==="gitlab")?A.workspace_hoverCard_reviews_label():A.workspace_hoverCard_pullRequests_label()]),H(Ye,ze)};ie(Na,Ye=>{e(Ke)&&Ye(Ha)})}L(xt),H(ue,We)};ie(Pe,ue=>{e(v)&&ue(de)})}Z(ue=>{X=qe(F,1,"min-w-0 px-5 pt-4",null,X,{"pb-4":!e(v)}),ge(Ee,ue),ge(f,e(ke).label),ge(j,e(fe))},[()=>o().title||A.workspace_links_untitled_label()]),H(d,C)};ie(re,d=>{g()||!o()?d(Re):d(Ue,-1)})}L(he),H(a,he);var je=st(te);return u(),je}const fa=800,Ss=175,In=300;function Mn(){let a=0,t=null;const r=new Set,l=new Set;function c(){return a>0||t!==null?0:fa}function u(){const o=c();r.forEach(g=>g(o))}function s(){t!==null&&(clearTimeout(t),t=null)}return{get currentOpenDelay(){return c()},subscribe(o){return r.add(o),o(c()),()=>r.delete(o)},notifyOpened(){const o=a===0&&t===null;s(),a+=1,o&&u()},notifyClosed(){a!==0&&(a-=1,!(a>0)&&(s(),t=setTimeout(()=>{t=null,u()},In)))},deferClose(o){return l.add(o),()=>l.delete(o)},settleDeferredCloses(){const o=[...l];l.clear(),o.forEach(g=>g())},reset(){const o=c()!==fa;s(),a=0,l.clear(),o&&u()}}}const Rs=Mn();function Ot(a){const t=Aa.select(ve.state,a);return t!==void 0&&Cr(t)}function Cn(a,t){if(!Ot(a))return[];const r=vr.select(ve.state,a),l=Jt.select(ve.state,a),c=hr.select(ve.state),u=[];for(let s=0;s<Ar;s+=1){const o=c[s],g=o&&o!==a?Aa.select(ve.state,o):void 0;u.push({id:`assign-micro-key-${s+1}`,label:g?A.workspace_card_assignOccupiedMicroKey_label({number:Oe(s+1),title:g.title}):A.workspace_card_assignMicroKeyNumber_label({number:Oe(s+1)}),checked:r===s,closeOnSelect:!0,onClick:()=>{Ot(a)&&ve.dispatch(Ir(s,a)),t()}})}return l!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:A.workspace_card_unassignMicroKey_label(),onClick:()=>{Ot(a)&&Jt.select(ve.state,a)===l&&ve.dispatch(Mr(l)),t()}})),u}function Es(a,{connected:t,onClose:r}){if(!t)return[];const l=Cn(a,r);if(l.length===0)return[];const c=l.filter(s=>"id"in s&&s.id!=="unassign-micro-key"),u=l.find(s=>"id"in s&&s.id==="unassign-micro-key");return[{id:"assign-micro-key",label:A.workspace_card_assignMicroKey_label(),icon:Ur,onClick:()=>{},selection:"single",submenu:c},...u?[u]:[]]}var Sn=z('<div data-static-position="" role="tooltip"><!></div>'),pa=z('<div role="tooltip"><!></div>');function Rn(a,t){if(new.target)return tt({component:Rn,...a});nt(t,!0);let r=I(t,"id",7),l=I(t,"anchor",7),c=I(t,"position",7,"right"),u=I(t,"absolute",7,!1),s=I(t,"anchorElement",7,null),o=I(t,"staticPosition",7,!1),g=I(t,"class",7,""),x=I(t,"children",7),b=I(t,"onmouseenter",7),w=I(t,"onmouseleave",7),m=I(t,"onfocusin",7),k=I(t,"onfocusout",7);const U=Zr(en()+2);tn(U);const B=an(U),T=8,i=4;let p=ne(null),_=ne(""),P=ne(void 0);const D=E(()=>c()==="bottom-right"||c()==="bottom-left"),Y=E(()=>c()==="top"),se=E(()=>o()?"relative":u()?"absolute":"fixed"),Ce=E(()=>c()==="right"?{x:-4,y:0}:c()==="bottom"?{x:4,y:0}:e(Y)?{x:0,y:4}:{x:0,y:-4});function le(v,h,ae){return Math.max(h,Math.min(ae,v))}let y=null,Q=null;function oe(){return!y?.isConnected||Q!==l()?!1:y.style.getPropertyValue("anchor-name").includes(l())||getComputedStyle(y).getPropertyValue("anchor-name").includes(l())}function Le(){return s()?s():(oe()||(y=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(v=>{const h=v.style.getPropertyValue("anchor-name"),ae=getComputedStyle(v).getPropertyValue("anchor-name");return h.includes(l())||ae.includes(l())})??null,Q=y?l():null),y)}function Me(){if(o()||u()||!e(p))return;const v=Le();if(!v)return;const h=v.getBoundingClientRect(),ae=e(p).getBoundingClientRect(),V=window.innerWidth||document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight,he=ae.width||e(p).offsetWidth,re=ae.height||e(p).offsetHeight,Re=Math.max(0,h.top-i-T),Ue=Math.max(0,te-h.bottom-i-T),je=e(Y)?!(Re<re&&Ue>Re):e(D)&&Ue<re&&Re>Ue;let d=h.left,C=h.bottom+i,F=je?Re:Ue;if(c()==="right"){const X=h.left-i-T,be=V-h.right-i-T;d=be>=he||be>=X?h.right+i:h.left-he-i,C=h.top,F=Math.max(0,te-T*2)}else c()==="bottom"?(d=h.left-he-i,C=h.bottom-re):(e(Y)||e(D))&&(c()==="bottom-left"?d=h.right-he:e(Y)&&(d=h.left+h.width/2-he/2),C=je?h.top-Math.min(re,F)-i:h.bottom+i);d=le(d,T,Math.max(T,V-he-T)),C=le(C,T,Math.max(T,te-Math.min(re,F)-T)),q(P,`${F}px`),q(_,`left: ${d}px; top: ${C}px;`)}let fe=!1;async function Ve(){fe||(fe=!0,await ja(),fe=!1,Me())}let ke=null;function ee(){ke||(ke=Jr(()=>{ke=null,Me()}))}function Se(v){const h=s()??(oe()?y:null);h&&v.target instanceof Node&&!v.target.contains(h)||ee()}kt(()=>{const v=e(p),h=s();o()||u()||!v||!h||Ve()}),ya(()=>{if(o())return;let v=null;return Ve().then(()=>{if(!u()&&typeof ResizeObserver<"u"){v=new ResizeObserver(ee),e(p)&&v.observe(e(p));const h=Le();h&&v.observe(h)}}),window.addEventListener("resize",ee),window.addEventListener("scroll",Se,!0),()=>{v?.disconnect(),window.removeEventListener("resize",ee),window.removeEventListener("scroll",Se,!0),ke?.(),ke=null}});var ft={get id(){return r()},set id(v){r(v),M()},get anchor(){return l()},set anchor(v){l(v),M()},get position(){return c()},set position(v="right"){c(v),M()},get absolute(){return u()},set absolute(v=!1){u(v),M()},get anchorElement(){return s()},set anchorElement(v=null){s(v),M()},get staticPosition(){return o()},set staticPosition(v=!1){o(v),M()},get class(){return g()},set class(v=""){g(v),M()},get children(){return x()},set children(v){x(v),M()},get onmouseenter(){return b()},set onmouseenter(v){b(v),M()},get onmouseleave(){return w()},set onmouseleave(v){w(v),M()},get onfocusin(){return m()},set onfocusin(v){m(v),M()},get onfocusout(){return k()},set onfocusout(v){k(v),M()},$set:at,$on:(v,h)=>rt(t,v,h)},Ie=Ut(),ot=Fe(Ie);{var De=v=>{var h=Sn(),ae=N(h);qt(ae,()=>x()??Nt),L(h),et(h,V=>q(p,V),()=>e(p)),Z(()=>{$(h,"id",r()),qe(h,1,e(se)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${B} `+g()),$(h,"data-surface-level",U)}),H(v,h)},ce=v=>{var h=pa();let ae;var V=N(h);qt(V,()=>x()??Nt),L(h),et(h,te=>q(p,te),()=>e(p)),Z(()=>{$(h,"id",r()),qe(h,1,e(se)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${B} `+g()),$(h,"data-surface-level",U),ae=Ct(h,"",ae,{"position-anchor":l(),right:c()==="bottom"?"anchor(left)":void 0,left:c()==="right"?"anchor(right)":e(D)?"anchor(left)":e(Y)?"anchor(center)":void 0,top:c()==="right"?"anchor(top)":e(D)?"anchor(bottom)":void 0,bottom:c()==="bottom"?"anchor(bottom)":e(Y)?"anchor(top)":void 0,"margin-right":c()==="bottom"?"8px":void 0,"margin-left":c()==="right"?"8px":void 0,"margin-top":e(D)?"4px":void 0,"margin-bottom":e(Y)?"4px":void 0,translate:e(Y)?"-50% 0":void 0})}),He("mouseenter",h,function(...te){b()?.apply(this,te)}),He("mouseleave",h,function(...te){w()?.apply(this,te)}),Ae("focusin",h,function(...te){m()?.apply(this,te)}),Ae("focusout",h,function(...te){k()?.apply(this,te)}),It(1,h,()=>Zt,()=>({tier:"fast",...e(Ce),scale:.96})),It(2,h,()=>ea,()=>({tier:"fast"})),H(v,h)},Ke=v=>{br(v,{zIndex:50,children:(h,ae)=>{var V=pa();let te;var he=N(V);qt(he,()=>x()??Nt),L(V),et(V,re=>q(p,re),()=>e(p)),Z(()=>{$(V,"id",r()),qe(V,1,e(se)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${B} `+g()),$(V,"data-surface-level",U),te=Ct(V,e(_),te,{"max-height":e(P)})}),He("mouseenter",V,function(...re){b()?.apply(this,re)}),He("mouseleave",V,function(...re){w()?.apply(this,re)}),Ae("focusin",V,function(...re){m()?.apply(this,re)}),Ae("focusout",V,function(...re){k()?.apply(this,re)}),It(1,V,()=>Zt,()=>({tier:"fast",...e(Ce),scale:.96})),It(2,V,()=>ea,()=>({tier:"fast"})),H(h,V)},$$slots:{default:!0}})};ie(ot,v=>{o()?v(De):u()?v(ce,1):v(Ke,-1)})}return H(a,Ie),st(ft)}xa(["focusin","focusout"]);function _t(a,t){return t||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(a.trim())}function En(a,t){if(t||!a)return a;const r=document.createElement("template");r.innerHTML=a;for(const l of r.content.querySelectorAll("img, video")){const c=l.getAttribute("src")||l.getAttribute("data-media-src")||"",u=[...l.querySelectorAll("source")];if(!_t(c,!1)||u.some(o=>!_t(o.getAttribute("src")||"",!1))){const o=document.createElement("img");o.setAttribute("alt",l.getAttribute("alt")||l.getAttribute("data-name")||""),o.setAttribute("data-media-unavailable","node-owned"),l.replaceWith(o);continue}l.removeAttribute("srcset");const s=l.getAttribute("poster");s&&!_t(s,!1)&&l.removeAttribute("poster")}return r.innerHTML}const Pn=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function Tn(a){return a&&(Pn.some(t=>t.test(a))||or(a,"markdown"))?"static":"simple"}var Fn=z("<!> <!>",1);function Ta(a,t){if(new.target)return tt({component:Ta,...a});nt(t,!0);let r=I(t,"workspaceId",7),l=I(t,"canUseMedia",7),c=ne(null),u=ne(null),s=ne(!1),o=ne(!1);function g(_){q(c,{url:_.getAttribute("src")||"",name:_.getAttribute("alt")||void 0,opener:_},!0),q(s,!0)}function x(_){const P=na(_.getAttribute("href")||"",r());return P&&l()(P)?(q(c,{url:P,name:_.textContent?.trim()||void 0,opener:_,assetLink:!0},!0),q(s,!0),!0):b(_)}function b(_){const P=wt(_.getAttribute("href")||"",r());return!P||!l()(P.url)?!1:(q(u,{url:P.url,mimeType:P.mimeType,name:_.textContent?.trim()||void 0,opener:_},!0),q(o,!0),!0)}kt(()=>{e(u)&&!wt(e(u).url,r())&&(q(o,!1),q(u,null)),e(c)?.assetLink&&!na(e(c).url,r())&&(q(s,!1),q(c,null))});var w={openImage:g,openAsset:x,get workspaceId(){return r()},set workspaceId(_){r(_),M()},get canUseMedia(){return l()},set canUseMedia(_){l(_),M()},$set:at,$on:(_,P)=>rt(t,_,P)},m=Fn(),k=Fe(m);{var U=_=>{ur(_,{get imageUrl(){return e(c).url},get imageName(){return e(c).name},get openerElement(){return e(c).opener},showActionsMenu:!0,get open(){return e(s)},set open(P){q(s,P,!0)}})},B=E(()=>e(c)&&l()(e(c).url));ie(k,_=>{e(B)&&_(U)})}var T=O(k,2);{var i=_=>{Ia(_,{get videoUrl(){return e(u).url},get videoName(){return e(u).name},get mimeType(){return e(u).mimeType},sourceKind:"workspace",get openerElement(){return e(u).opener},get open(){return e(o)},set open(P){q(o,P,!0)}})},p=E(()=>e(u)&&wt(e(u).url,r())&&l()(e(u).url));ie(T,_=>{e(p)&&_(i)})}return H(a,m),st(w)}var Ln=z('<div class="flex items-center gap-2"><!> <!></div>'),Wn=z('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span class="flex size-11 items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]"><svg viewBox="0 0 20 20" class="ml-0.5 size-5" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),Nn=z('<div class="group relative aspect-video w-full max-h-40 max-w-2xl" style="width: min(100%, calc(10rem * 16 / 9));"><!> <!></div>'),Hn=z('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function Fa(a,t){if(new.target)return tt({component:Fa,...a});nt(t,!0);let r=I(t,"source",7),l=I(t,"name",23,()=>A.chat_videoBlock_fromAgent_label()),c=I(t,"poster",7),u=I(t,"allowFileMedia",7,!0),s=I(t,"canOpenFile",7),o=ne(!1),g=ne(!1),x=ne(!1),b=ne(null);const w=E(()=>r().kind==="inline"?`data:${r().mimeType};base64,${r().data}`:r().url);function m(y){return _t(y,u()&&s()?.()!==!1)}const k=E(()=>!m(e(w))),U=E(()=>yt(e(w))),B=E(()=>{if(!(!c()||!m(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const y=new URL(c());return(y.protocol==="https:"||y.protocol==="workspace-file:")&&!y.username&&!y.password?c():void 0}catch{return}}});function T(){q(g,!0),q(x,!1)}var i={get source(){return r()},set source(y){r(y),M()},get name(){return l()},set name(y=A.chat_videoBlock_fromAgent_label()){l(y),M()},get poster(){return c()},set poster(y){c(y),M()},get allowFileMedia(){return u()},set allowFileMedia(y=!0){u(y),M()},get canOpenFile(){return s()},set canOpenFile(y){s(y),M()},$set:at,$on:(y,Q)=>rt(t,y,Q)},p=Hn(),_=Fe(p),P=N(_);{var D=y=>{Vt(y,{get name(){return l()},reason:"load-failed"})},Y=y=>{var Q=Ln(),oe=N(Q);{let Me=E(()=>e(U)?.path),fe=E(()=>e(U)?.workspaceId);Vt(oe,{get name(){return l()},reason:"load-failed",get path(){return e(Me)},get workspaceId(){return e(fe)}})}var Le=O(oe,2);Kt(Le,{get videoUrl(){return e(w)},get videoName(){return l()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType}}),L(Q),H(y,Q)},se=y=>{var Q=Nn(),oe=N(Q);{let Me=E(()=>A.chat_videoBlock_play_ariaLabel({name:l()}));jt(oe,{type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return e(Me)},"data-testid":"chat-video-snapshot",onclick:()=>{m(e(w))&&q(o,!0)},get ref(){return e(b)},set ref(fe){q(b,fe,!0)},children:(fe,Ve)=>{var ke=Wn(),ee=O(Fe(ke),2);ee.muted=!0,Ga(2),Z(()=>{$(ee,"src",e(w)),$(ee,"poster",e(B)),qe(ee,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${e(B)||e(g)&&!e(x)?"opacity-100":"opacity-0"}`)}),He("loadeddata",ee,T),He("error",ee,()=>q(x,!0)),H(fe,ke)},$$slots:{default:!0}})}var Le=O(oe,2);Kt(Le,{get videoUrl(){return e(w)},get videoName(){return l()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"}),L(Q),H(y,Q)};ie(P,y=>{e(k)?y(D):e(x)?y(Y,1):y(se,-1)})}L(_);var Ce=O(_,2);{var le=y=>{Ia(y,{get videoUrl(){return e(w)},get videoName(){return l()},get poster(){return e(B)},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},get openerElement(){return e(b)},get open(){return e(o)},set open(Q){q(o,Q,!0)}})};ie(Ce,y=>{!e(x)&&!e(k)&&y(le)})}return H(a,p),st(i)}const qn=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,On=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ma(a,t){if(typeof a!="string"||!a||a!==a.trim())return null;if(a.startsWith("workspace-asset://"))return wt(a,t);if(a.startsWith("workspace-file://")){const l=yt(a);if(!l||l.workspaceId!==t)return null;const c=Sa(a);return c?la(c,t):null}const r=a.startsWith("intent://")?a:`intent://local/file/${a}`;return la(r,t)}function Dn(a,t){if(a.startsWith("workspace-file://")){const r=yt(a);if(!r||r.workspaceId!==t)return!1;const l=Sa(a);return!!l&&!!St(l,t)}return!!St(a,t,{readOnly:!0})}function Un(a,t){return(t===0||!a[t-1].trim())&&(t===a.length-1||!a[t+1].trim())}function zn(a,t,r){const l=r[0];return a.findIndex((c,u)=>{if(u<=t)return!1;const s=c.trim();return s.length>=r.length&&s.split("").every(o=>o===l)})}function Bn(a,t){const r=a.split(`
|
|
4
4
|
`),l=[];let c=[];const u=()=>{const s=c.join(`
|
|
5
5
|
`);s.trim()&&l.push({type:"markdown",content:s}),c=[]};for(let s=0;s<r.length;s+=1){const o=r[s].match(On);if(o){const k=zn(r,s,o[1]);if(k>s){const U=r.slice(s,k+1);if(o[2].trim()==="ws-block:video")try{const B=JSON.parse(r.slice(s+1,k).join(`
|
|
6
|
-
`)),T=ma(B?.path,t);if(T){u(),l.push({type:"video",source:T,name:typeof B.path=="string"?B.path:void 0,poster:typeof B.poster=="string"?B.poster:void 0}),s=k;continue}}catch{}c.push(...U),s=k;continue}c.push(...r.slice(s));break}const x=!/^(?: {4}|\t)/.test(r[s])&&Un(r,s)?r[s].match(qn):null;if(!x){c.push(r[s]);continue}const[,b,w]=x,m=ma(w,t);m?(u(),l.push({type:"video",source:m,name:b||void 0})):w.startsWith("workspace-asset://")&&!Kr(w)||Dn(w,t)?c.push(r[s]):c.push(`[${b}](${w})`)}return u(),l}function vt(a){return Ma(a.getAttribute("src")||"")}function Dt(a){return a instanceof HTMLImageElement?a:a instanceof HTMLAnchorElement?a.querySelector("img"):null}function Vn(a,t){const r=a.getBoundingClientRect(),l=t.getBoundingClientRect();return{top:r.top-l.top+6,right:l.right-r.right+6}}function ga(a,t){const r=document.activeElement;return!!(r&&(r===a||r===a?.closest("a")||t?.contains(r)))}function Kn(a,t){const r=a.getAttribute("src")||"",l=yt(r)?.path??Ra(r,t)?.path;if(l)return l;if(r.startsWith("workspace-asset://")){const c=r.split(/[?#]/)[0].split("/").pop();if(c)return c}if(r&&!/^[a-z][a-z0-9+.-]*:/i.test(r)&&!r.startsWith("//"))try{return decodeURI(r)}catch{return r}return a.getAttribute("alt")||void 0}const La="data-image-sized",va=a=>typeof a=="number"&&Number.isInteger(a)&&a>0;function jn(a){try{return encodeURI(a).replace(/%25/g,"%")}catch{return null}}function Gn(a){return a.startsWith("workspace-file://")?a.split(/[?#]/)[0]:a}function Qn(a,t,r){const l=new Map;for(const[c,u]of Object.entries(a)){if(!u||!va(u.width)||!va(u.height))continue;const s={width:u.width,height:u.height},o=new Set([c]),g=jn(c);g&&o.add(g);for(const x of[...o]){const b=St(x,t);if(b&&o.add(b),r!==void 0){const w=jr(x,r);if(w){const m=St(`intent://local/file/${w.split("/").map(encodeURIComponent).join("/")}`,t);m&&o.add(m)}}}for(const x of o)l.has(x)||l.set(x,s)}return l}function Yn(a,t,r,l){if(!t||!a.includes("<img"))return a;const c=Qn(t,r,l);return c.size===0?a:a.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const o=Gn(s[1].replace(/&/g,"&")),g=c.get(o);return g?u.replace(/\s*\/?>$/,` width="${g.width}" height="${g.height}" ${La}="">`):u})}function ha(a,t){let r=t,l,c=!1,u=!1;const s=new Map;function o(){for(const[b,{component:w,source:m}]of s)ut(w),a.contains(b)&&b.replaceWith(m);s.clear()}function g(){if(!u){for(const[b,{component:w}]of s)a.contains(b)||(ut(w),s.delete(b));if(r.enabled)for(const b of a.querySelectorAll("pre > code")){if(b.closest("[data-markdown-diagram]"))continue;const w=[...b.classList].find(T=>T.startsWith("language-"))?.slice(9);let m;if(w==="mermaid")m="mermaid";else if(w==="diagram"||w==="ws-block:diagram")m="diagram";else if(w==="ws-block")try{if(JSON.parse(b.textContent??"").type!=="diagram")continue;m="diagram"}catch{continue}else continue;const k=b.parentElement;if(!k)continue;if(!l){c||(c=!0,ka(()=>import("./CPy8SeUf.js"),__vite__mapDeps([57,2,1,58,46,59,32,14,7,18,19,20,21,3,12,24,11,6,8,33,9,10,13,15,34,5,47,48,49,50,29,30,31,35,36,37,60,0,4,16,17,22,23,25,26,27,28,38,39,40,41,42,43,44,45,51,52,53,54,55,56,61,62,63,64,65,66,67,68]),import.meta.url).then(T=>{l=T.default,c=!1,g()}).catch(T=>{c=!1,ht.error("Failed to load the Markdown diagram renderer",{error:T})}));return}const U=document.createElement("div");U.dataset.markdownDiagram=m,k.replaceWith(U);const B=Mt(l,{target:U,context:r.context,props:{kind:m,source:b.textContent??"",workspaceId:r.workspaceId}});s.set(U,{component:B,source:k})}}}const x=new MutationObserver(g);return x.observe(a,{childList:!0,subtree:!0}),queueMicrotask(g),{update(b){(r.enabled!==b.enabled||r.workspaceId!==b.workspaceId)&&o(),r=b,g()},destroy(){u=!0,x.disconnect(),o()}}}var Xn=z('<span class="min-w-0 max-w-full truncate"> </span>'),$n=z('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function Wa(a,t){if(new.target)return tt({component:Wa,...a});nt(t,!0);let r=I(t,"name",7);var l={get name(){return r()},set name(m){r(m),M()},$set:at,$on:(m,k)=>rt(t,m,k)},c=$n(),u=N(c),s=N(u);bt(s,{get icon(){return zr},class:"size-3.5"}),L(u);var o=O(u,2),g=N(o),x=me(g,!0),b=O(g,2);{var w=m=>{var k=Xn(),U=me(k,!0);Ze(k,(B,T)=>Bt?.(B,T),r),Z(()=>ge(U,r())),H(m,k)};ie(b,m=>{r()&&m(w)})}return L(o),L(c),Z(m=>ge(x,m),[()=>A.ui_mediaLoadingPlaceholder_title_label()]),H(a,c),st(l)}const ba="markdown-image-frame";function Jn(a,t){const r=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function o(i){let p=l.get(i);return p||(p={source:i.getAttribute("src")||"",workspaceId:t.getWorkspaceId(),retries:0,failureHandled:!1},l.set(i,p)),p}function g(i){const p=o(i);return!s&&a.contains(p.fallbackHost??i)&&p.workspaceId===t.getWorkspaceId()&&t.canUseMedia(p.source)&&!i.hasAttribute("data-media-unavailable")&&!i.hasAttribute("data-media-unsupported")&&sa(p.source)!==null}function x(i,p=!1){if(!g(i))return;const _=o(i),P=sa(_.source);if(!P)return;const D=_.fallbackHost,Q=D?.contains(document.activeElement)??!1;if(_.failureHandled=!1,_.fallbackHost=void 0,p&&(_.retries=0),i.removeAttribute("src"),i.setAttribute("src",P),D){const se=r.get(D);se&&ut(se),r.delete(D),D.replaceWith(i),U(),Q&&a.contains(i)&&i.focus()}}function b(i){const p=o(i);s||!a.contains(i)||p.failureHandled||(p.failureHandled=!0,g(i)&&p.retries<u.length?p.timer=setTimeout(()=>{p.timer=void 0,x(i)},u[p.retries++]):k(i,"load-failed"))}function w(i){const p=i.parentElement;return p?.classList.contains(ba)?p:null}function m(i){const p=Number(i.getAttribute("width")),_=Number(i.getAttribute("height"));if(!(p>0&&_>0))return;const P=document.createElement("span");P.className=ba,P.style.aspectRatio=`${p} / ${_}`,P.style.setProperty("--image-aspect-ratio",`${p} / ${_}`),P.style.width=`min(${p}px, 100%)`,P.dataset.loaded="false",i.replaceWith(P),P.appendChild(i);const D=P.appendChild(document.createElement("span"));D.className="markdown-image-frame-placeholder",r.set(D,Mt(Wa,{target:D,props:{name:Kn(i,t.getWorkspaceId())}}));const Q=()=>{if(c.delete(i),s||!a.contains(P))return;P.dataset.loaded="true";const se=r.get(D);se&&(ut(se),r.delete(D)),D.remove()};i.complete&&i.naturalWidth>0?Q():(c.set(i,Q),i.addEventListener("load",Q,{once:!0}))}function k(i,p){const _=i.getAttribute("src")||i.getAttribute("data-media-src")||"",P=yt(_),D=Ra(_,t.getWorkspaceId()),Q=P?.path??D?.path,se=P?.workspaceId??D?.workspaceId,Ce=i.getAttribute("data-name")||i.getAttribute("alt")||Q?.split("/").pop()||void 0,le=document.createElement(i instanceof HTMLVideoElement?"div":"span");le.className="media-unavailable-host",(w(i)??i).replaceWith(le),t.onMediaRemoved(i);let y;if(i instanceof HTMLImageElement&&p==="load-failed"){const oe=o(i);oe.fallbackHost=le,g(i)&&(y=()=>x(i,!0))}const Y=Mt(Vt,{target:le,props:{name:Ce,reason:p,path:Q,workspaceId:se,onRetry:y}});if(r.set(le,Y),i instanceof HTMLVideoElement){le.classList.add("flex","items-center","gap-2");const oe=le.appendChild(document.createElement("span"));r.set(oe,Mt(Kt,{target:oe,props:{videoUrl:_,videoName:Ce,sourceKind:"workspace",mimeType:wt(_,t.getWorkspaceId())?.mimeType}}))}}function U(){if(!s){for(const i of a.querySelectorAll("img"))vt(i)&&!i.closest("a")&&(i.tabIndex=0,i.setAttribute("role","button")),!(i.hasAttribute("data-media-unsupported")||i.hasAttribute("data-media-unavailable"))&&(o(i),i.hasAttribute(La)&&!w(i)&&m(i),i.getAttribute("src")&&i.complete&&i.naturalWidth===0&&b(i));for(const i of a.querySelectorAll("[data-media-unsupported]"))k(i,"unsupported");for(const i of a.querySelectorAll("[data-media-unavailable]"))k(i,Gr(i));for(const[i,p]of l)a.contains(p.fallbackHost??i)||(p.timer!==void 0&&clearTimeout(p.timer),l.delete(i));for(const[i,p]of c)a.contains(i)||(i.removeEventListener("load",p),c.delete(i));for(const[i,p]of r)a.contains(i)||(ut(p),r.delete(i))}}function B(i){const p=i.target;(p instanceof HTMLImageElement||p instanceof HTMLVideoElement)&&(p instanceof HTMLImageElement?b(p):k(p,"load-failed"))}const T=new MutationObserver(U);return T.observe(a,{childList:!0,subtree:!0}),a.addEventListener("error",B,!0),queueMicrotask(U),{destroy(){s=!0,T.disconnect();for(const i of l.values())i.timer!==void 0&&clearTimeout(i.timer);l.clear();for(const[i,p]of c)i.removeEventListener("load",p);c.clear(),a.removeEventListener("error",B,!0);for(const i of r.values())ut(i);r.clear()}}}var Zn=z('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),es=z("<div></div>"),wa=z('<div role="group"><!> <!></div>'),ts=z('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),as=z("<!> <!>",1);function _a(a,t){if(new.target)return tt({component:_a,...a});nt(t,!0);const r=n=>{var f=Ut(),W=Fe(f);{var S=K=>{var J=Zn(),Pe=N(J);{let de=E(()=>e(ce).getAttribute("src")||""),ue=E(()=>e(ce).getAttribute("alt")||void 0);et(fr(Pe,{get imageUrl(){return e(de)},get imageName(){return e(ue)},get open(){return e(v)},set open(We){q(v,We,!0)}}),We=>q(h,We,!0),()=>e(h))}L(J),et(J,de=>q(ae,de),()=>e(ae)),Z(()=>Ct(J,`top: ${e(Ke).top??""}px; right: ${e(Ke).right??""}px;`)),H(K,J)},j=E(()=>e(ce)&&Y(e(ce).getAttribute("src")||""));ie(W,K=>{e(j)&&K(S)})}H(n,f)};let l=I(t,"content",7),c=I(t,"isStreaming",7,!1),u=I(t,"className",7,""),s=I(t,"workspaceId",23,()=>ca()?.workspaceId??void 0),o=I(t,"relativeMediaBase",7),g=I(t,"onCodeBlockAction",7),x=I(t,"onFileClick",7),b=I(t,"canOpenFile",7),w=I(t,"allowFileMedia",7,!0),m=I(t,"taskBlockRenderMode",7,"placeholder"),k=I(t,"chatImageThumbnails",7,!1),U=I(t,"forceExternalLinks",7,!1),B=I(t,"renderRichFencesAsCode",7,!1),T=I(t,"renderDiagrams",7,!1),i=I(t,"allowSanitizedHtml",7,!1),p=I(t,"media",7);const _=Qr(),P=Qa(),D=E(()=>Bn(l(),s())),Q=E(()=>e(D).some(n=>n.type==="video")),se=E(()=>!e(Q)&&e(D).length===1&&e(D)[0].type==="markdown"?e(D)[0].content:l()),Ce=E(()=>Tn(e(se)));let le=ne(null),y=ne("");function Y(n){return _t(n,w()&&b()?.()!==!1)}const oe=E(()=>En(e(y),w()&&b()?.()!==!1)),Le=E(()=>pr(e(oe),s(),mr)),Me=E(()=>`<div class="markdown-content">${e(Le)}</div>`);let fe=0;const Ve=150;let ke=-1/0,ee=null,Se=null;async function ft(n,f,W,S){try{const j=await Yr(n,{...f,readOnly:!0});if(S!==fe)return;q(y,Yn(j,W,f?.workspaceId,f?.relativeMediaBase),!0)}catch(j){if(S!==fe)return;ht.error("Failed to process markdown:",j);const K=n.replace(/[&<>"']/g,J=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[J]||J);q(y,`<p>${K}</p>`)}}function Ie(){if(!Se)return;const n=Ve-(performance.now()-ke);if(n>0){ee=setTimeout(()=>{ee=null,Ie()},n);return}const f=Se;Se=null,ke=performance.now(),f()}function ot(){ee!==null&&(clearTimeout(ee),ee=null),Se=null,ke=-1/0}kt(()=>{const n=e(se),f={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:m(),workspaceId:s(),relativeMediaBase:o()??(s()&&s()!==Sr?"":void 0),renderRichFencesAsCode:B()||T(),processPrimitives:!T(),allowSanitizedHtml:i(),renderMath:!c(),workspaceFileVersion:_},W=p(),S=++fe,j=()=>void ft(n,f,W,S);c()?(Se=j,ee===null&&Ie()):(ot(),j())});let De=ne(void 0),ce=ne(null),Ke=ne(Ya({top:0,right:0})),v=ne(!1),h=ne(void 0),ae=ne(null);function V(n){if(n.type==="mouseover"&&ga(e(ce),e(ae)))return;const f=n.target,W=Dt(f);if(W&&vt(W)&&Y(W.getAttribute("src")||"")){if(e(ce)===W)return;q(ce,W,!0),q(Ke,Vn(W,n.currentTarget),!0)}else if(e(ce)&&!e(v)){if(f instanceof Node&&e(ae)?.contains(f))return;q(ce,null)}}function te(){!e(v)&&!ga(e(ce),e(ae))&&q(ce,null)}function he(n){const f=Dt(n.target);!f||!vt(f)||!Y(f.getAttribute("src")||"")||(n.preventDefault(),n.stopPropagation(),V(n),q(v,!0))}function re(n){return Jn(n,{getWorkspaceId:()=>s(),canUseMedia:Y,onMediaRemoved:f=>{e(ce)===f&&q(ce,null)}})}function Re(n){const f=n.target,W=f.closest("a");if(!W&&f instanceof HTMLImageElement){const j=f.getAttribute("src")||"";if(Ma(j)&&Y(j)){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(De)?.openImage(f);return}}if(W?.href){if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(De)?.openAsset(W))return;const j=d(n),K=s()?ta(s()):void 0;ia(W.href,{workspaceId:K,canOpenFile:b(),sourcePanelId:j,event:n,rawHref:W.getAttribute("href")??void 0,...U()?{forceExternal:!0}:{}});return}const S=Xr(f.closest("[data-mention]"));if(S){const{type:j,meta:K}=S;if(j==="file"&&S.filePath){if(b()?.()===!1)return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const J=S.filePath;ht.debug("[MarkdownViewer] File mention clicked",{filePath:J,meta:K});const Pe=d(n),de=Ht({event:n});if(x())x()(J,{line:S.line,openInAdjacentPanel:de,sourcePanelId:Pe});else{const ue=s();ue&&ve.dispatch(Rr(ue,J,{line:S.line,openInAdjacentPanel:de,sourcePanelId:Pe}))}}else if(S.folderPath!==void 0){if(b()?.()===!1||!s())return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),ve.dispatch(Er(s(),$r(S.folderPath)))}else if(j==="note"&&S.note){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const J=S.note.id;ht.debug("[MarkdownViewer] Note mention clicked",{noteId:J,meta:K});const Pe=d(n),de=Ht({event:n});if(S.note.workspaceId&&S.note.workspaceId!==s()){ia(ir(J,S.note.workspaceId),{workspaceId:s()?ta(s()):void 0,sourcePanelId:Pe,event:n});return}const ue=s();ue&&ve.dispatch(Pr(ue,J,{openInAdjacentPanel:de,sourcePanelId:Pe}))}}}function Ue(n){if(je(n),!n.defaultPrevented){if(n.target instanceof HTMLImageElement&&vt(n.target)&&(n.key==="Enter"||n.key===" ")){Re(n);return}n.key!=="Enter"||!Ht({event:n})||Re(n)}}function je(n){const f=Dt(n.target);!f||!vt(f)||!Y(f.getAttribute("src")||"")||e(h)?.handleCopy(n,f.getAttribute("src")||"")}function d(n){const f=n.target;if(f instanceof HTMLElement)return f.closest("[data-panel-id]")?.dataset.panelId}Xa(()=>{fe+=1,ot()});var C={get content(){return l()},set content(n){l(n),M()},get isStreaming(){return c()},set isStreaming(n=!1){c(n),M()},get className(){return u()},set className(n=""){u(n),M()},get workspaceId(){return s()},set workspaceId(n=ca()?.workspaceId??void 0){s(n),M()},get relativeMediaBase(){return o()},set relativeMediaBase(n){o(n),M()},get onCodeBlockAction(){return g()},set onCodeBlockAction(n){g(n),M()},get onFileClick(){return x()},set onFileClick(n){x(n),M()},get canOpenFile(){return b()},set canOpenFile(n){b(n),M()},get allowFileMedia(){return w()},set allowFileMedia(n=!0){w(n),M()},get taskBlockRenderMode(){return m()},set taskBlockRenderMode(n="placeholder"){m(n),M()},get chatImageThumbnails(){return k()},set chatImageThumbnails(n=!1){k(n),M()},get forceExternalLinks(){return U()},set forceExternalLinks(n=!1){U(n),M()},get renderRichFencesAsCode(){return B()},set renderRichFencesAsCode(n=!1){B(n),M()},get renderDiagrams(){return T()},set renderDiagrams(n=!1){T(n),M()},get allowSanitizedHtml(){return i()},set allowSanitizedHtml(n=!1){i(n),M()},get media(){return p()},set media(n){p(n),M()},$set:at,$on:(n,f)=>rt(t,n,f)},F=as(),X=Fe(F);{var be=n=>{var f=es();zt(f,21,()=>e(D),Za,(W,S)=>{var j=Ut(),K=Fe(j);{var J=de=>{Fa(de,{get allowFileMedia(){return w()},get canOpenFile(){return b()},get source(){return e(S).source},get name(){return e(S).name},get poster(){return e(S).poster}})},Pe=de=>{_a(de,{get content(){return e(S).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return o()},get onCodeBlockAction(){return g()},get onFileClick(){return x()},get canOpenFile(){return b()},get allowFileMedia(){return w()},get taskBlockRenderMode(){return m()},get chatImageThumbnails(){return k()},get forceExternalLinks(){return U()},get renderRichFencesAsCode(){return B()},get renderDiagrams(){return T()},get allowSanitizedHtml(){return i()},get media(){return p()}})};ie(K,de=>{e(S).type==="video"?de(J):de(Pe,-1)})}H(W,j)}),L(f),Z(()=>qe(f,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),H(n,f)},pe=n=>{var f=wa();let W;var S=N(f);oa(S,()=>e(Me));var j=O(S,2);r(j),L(f),Ze(f,K=>re?.(K)),Ze(f,(K,J)=>ha?.(K,J),()=>({enabled:T(),workspaceId:s(),context:P})),Z(()=>W=qe(f,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",W,{"chat-image-thumbnails":k()})),Ae("click",f,Re),Ae("keydown",f,Ue),He("copy",f,je),Ae("contextmenu",f,he),Ae("mouseover",f,V),Ae("focusin",f,V),He("mouseleave",f,te),H(n,f)},we=n=>{var f=ts(),W=N(f),S=me(W,!0);L(f),Z(()=>{qe(f,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),ge(S,e(se))}),H(n,f)},Ee=n=>{var f=wa();let W;var S=N(f);oa(S,()=>e(Me));var j=O(S,2);r(j),L(f),et(f,K=>q(le,K),()=>e(le)),Ze(f,K=>re?.(K)),Ze(f,(K,J)=>ha?.(K,J),()=>({enabled:T(),workspaceId:s(),context:P})),Z(()=>W=qe(f,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",W,{"chat-image-thumbnails":k()})),Ae("click",f,Re),Ae("keydown",f,Ue),He("copy",f,je),Ae("contextmenu",f,he),Ae("mouseover",f,V),Ae("focusin",f,V),He("mouseleave",f,te),H(n,f)};ie(X,n=>{e(Q)?n(be):c()?n(pe,1):e(Ce)==="simple"&&!i()?n(we,2):n(Ee,-1)})}var _e=O(X,2);return et(Ta(_e,{get workspaceId(){return s()},canUseMedia:Y}),n=>q(De,n,!0),()=>e(De)),H(a,F),st(C)}xa(["click","keydown","contextmenu","mouseover","focusin"]);class Ps{constructor(t){lt(this,"container");lt(this,"previousFocus",null);lt(this,"firstFocusable",null);lt(this,"lastFocusable",null);lt(this,"handleKeyDown");this.container=t,this.handleKeyDown=this.onKeyDown.bind(this)}activate(){this.previousFocus=document.activeElement;const t=this.container.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');t.length>0&&(this.firstFocusable=t[0],this.lastFocusable=t[t.length-1],this.firstFocusable.focus()),document.addEventListener("keydown",this.handleKeyDown)}deactivate(){document.removeEventListener("keydown",this.handleKeyDown),this.previousFocus&&this.previousFocus.focus()}onKeyDown(t){t.key==="Tab"&&(!this.firstFocusable||!this.lastFocusable||(t.shiftKey?document.activeElement===this.firstFocusable&&(t.preventDefault(),this.lastFocusable.focus()):document.activeElement===this.lastFocusable&&(t.preventDefault(),this.firstFocusable.focus())))}}function Ts(a,t){const r=x=>{const b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},l=x=>{const[b,w,m]=[x.r,x.g,x.b].map(k=>(k=k/255,k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4)));return .2126*b+.7152*w+.0722*m},c=r(a),u=r(t);if(!c||!u)return ht.warn("Invalid color values for contrast check",{foreground:a,background:t}),{ratio:0,passes:{aa:!1,aaa:!1}};const s=l(c),o=l(u),g=(Math.max(s,o)+.05)/(Math.min(s,o)+.05);return{ratio:g,passes:{aa:g>=4.5,aaa:g>=7}}}export{Fa as C,Ps as F,Rn as H,_a as M,Ss as W,Wa as a,fa as b,An as c,Pa as d,Ts as e,Cn as f,Es as g,Ea as h,on as r,Bn as s,Rs as w};
|
|
6
|
+
`)),T=ma(B?.path,t);if(T){u(),l.push({type:"video",source:T,name:typeof B.path=="string"?B.path:void 0,poster:typeof B.poster=="string"?B.poster:void 0}),s=k;continue}}catch{}c.push(...U),s=k;continue}c.push(...r.slice(s));break}const x=!/^(?: {4}|\t)/.test(r[s])&&Un(r,s)?r[s].match(qn):null;if(!x){c.push(r[s]);continue}const[,b,w]=x,m=ma(w,t);m?(u(),l.push({type:"video",source:m,name:b||void 0})):w.startsWith("workspace-asset://")&&!Kr(w)||Dn(w,t)?c.push(r[s]):c.push(`[${b}](${w})`)}return u(),l}function vt(a){return Ma(a.getAttribute("src")||"")}function Dt(a){return a instanceof HTMLImageElement?a:a instanceof HTMLAnchorElement?a.querySelector("img"):null}function Vn(a,t){const r=a.getBoundingClientRect(),l=t.getBoundingClientRect();return{top:r.top-l.top+6,right:l.right-r.right+6}}function ga(a,t){const r=document.activeElement;return!!(r&&(r===a||r===a?.closest("a")||t?.contains(r)))}function Kn(a,t){const r=a.getAttribute("src")||"",l=yt(r)?.path??Ra(r,t)?.path;if(l)return l;if(r.startsWith("workspace-asset://")){const c=r.split(/[?#]/)[0].split("/").pop();if(c)return c}if(r&&!/^[a-z][a-z0-9+.-]*:/i.test(r)&&!r.startsWith("//"))try{return decodeURI(r)}catch{return r}return a.getAttribute("alt")||void 0}const La="data-image-sized",va=a=>typeof a=="number"&&Number.isInteger(a)&&a>0;function jn(a){try{return encodeURI(a).replace(/%25/g,"%")}catch{return null}}function Gn(a){return a.startsWith("workspace-file://")?a.split(/[?#]/)[0]:a}function Yn(a,t,r){const l=new Map;for(const[c,u]of Object.entries(a)){if(!u||!va(u.width)||!va(u.height))continue;const s={width:u.width,height:u.height},o=new Set([c]),g=jn(c);g&&o.add(g);for(const x of[...o]){const b=St(x,t);if(b&&o.add(b),r!==void 0){const w=jr(x,r);if(w){const m=St(`intent://local/file/${w.split("/").map(encodeURIComponent).join("/")}`,t);m&&o.add(m)}}}for(const x of o)l.has(x)||l.set(x,s)}return l}function Qn(a,t,r,l){if(!t||!a.includes("<img"))return a;const c=Yn(t,r,l);return c.size===0?a:a.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const o=Gn(s[1].replace(/&/g,"&")),g=c.get(o);return g?u.replace(/\s*\/?>$/,` width="${g.width}" height="${g.height}" ${La}="">`):u})}function ha(a,t){let r=t,l,c=!1,u=!1;const s=new Map;function o(){for(const[b,{component:w,source:m}]of s)ut(w),a.contains(b)&&b.replaceWith(m);s.clear()}function g(){if(!u){for(const[b,{component:w}]of s)a.contains(b)||(ut(w),s.delete(b));if(r.enabled)for(const b of a.querySelectorAll("pre > code")){if(b.closest("[data-markdown-diagram]"))continue;const w=[...b.classList].find(T=>T.startsWith("language-"))?.slice(9);let m;if(w==="mermaid")m="mermaid";else if(w==="diagram"||w==="ws-block:diagram")m="diagram";else if(w==="ws-block")try{if(JSON.parse(b.textContent??"").type!=="diagram")continue;m="diagram"}catch{continue}else continue;const k=b.parentElement;if(!k)continue;if(!l){c||(c=!0,ka(()=>import("./Cw6SlTJ6.js"),__vite__mapDeps([57,2,1,58,46,59,32,14,7,18,19,20,21,3,12,24,11,6,8,33,9,10,13,15,34,5,47,48,49,50,29,30,31,35,36,37,60,0,4,16,17,22,23,25,26,27,28,38,39,40,41,42,43,44,45,51,52,53,54,55,56,61,62,63,64,65,66,67,68]),import.meta.url).then(T=>{l=T.default,c=!1,g()}).catch(T=>{c=!1,ht.error("Failed to load the Markdown diagram renderer",{error:T})}));return}const U=document.createElement("div");U.dataset.markdownDiagram=m,k.replaceWith(U);const B=Mt(l,{target:U,context:r.context,props:{kind:m,source:b.textContent??"",workspaceId:r.workspaceId}});s.set(U,{component:B,source:k})}}}const x=new MutationObserver(g);return x.observe(a,{childList:!0,subtree:!0}),queueMicrotask(g),{update(b){(r.enabled!==b.enabled||r.workspaceId!==b.workspaceId)&&o(),r=b,g()},destroy(){u=!0,x.disconnect(),o()}}}var Xn=z('<span class="min-w-0 max-w-full truncate"> </span>'),$n=z('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function Wa(a,t){if(new.target)return tt({component:Wa,...a});nt(t,!0);let r=I(t,"name",7);var l={get name(){return r()},set name(m){r(m),M()},$set:at,$on:(m,k)=>rt(t,m,k)},c=$n(),u=N(c),s=N(u);bt(s,{get icon(){return zr},class:"size-3.5"}),L(u);var o=O(u,2),g=N(o),x=me(g,!0),b=O(g,2);{var w=m=>{var k=Xn(),U=me(k,!0);Ze(k,(B,T)=>Bt?.(B,T),r),Z(()=>ge(U,r())),H(m,k)};ie(b,m=>{r()&&m(w)})}return L(o),L(c),Z(m=>ge(x,m),[()=>A.ui_mediaLoadingPlaceholder_title_label()]),H(a,c),st(l)}const ba="markdown-image-frame";function Jn(a,t){const r=new Map,l=new Map,c=new Map,u=[300,1e3];let s=!1;function o(i){let p=l.get(i);return p||(p={source:i.getAttribute("src")||"",workspaceId:t.getWorkspaceId(),retries:0,failureHandled:!1},l.set(i,p)),p}function g(i){const p=o(i);return!s&&a.contains(p.fallbackHost??i)&&p.workspaceId===t.getWorkspaceId()&&t.canUseMedia(p.source)&&!i.hasAttribute("data-media-unavailable")&&!i.hasAttribute("data-media-unsupported")&&sa(p.source)!==null}function x(i,p=!1){if(!g(i))return;const _=o(i),P=sa(_.source);if(!P)return;const D=_.fallbackHost,Y=D?.contains(document.activeElement)??!1;if(_.failureHandled=!1,_.fallbackHost=void 0,p&&(_.retries=0),i.removeAttribute("src"),i.setAttribute("src",P),D){const se=r.get(D);se&&ut(se),r.delete(D),D.replaceWith(i),U(),Y&&a.contains(i)&&i.focus()}}function b(i){const p=o(i);s||!a.contains(i)||p.failureHandled||(p.failureHandled=!0,g(i)&&p.retries<u.length?p.timer=setTimeout(()=>{p.timer=void 0,x(i)},u[p.retries++]):k(i,"load-failed"))}function w(i){const p=i.parentElement;return p?.classList.contains(ba)?p:null}function m(i){const p=Number(i.getAttribute("width")),_=Number(i.getAttribute("height"));if(!(p>0&&_>0))return;const P=document.createElement("span");P.className=ba,P.style.aspectRatio=`${p} / ${_}`,P.style.setProperty("--image-aspect-ratio",`${p} / ${_}`),P.style.width=`min(${p}px, 100%)`,P.dataset.loaded="false",i.replaceWith(P),P.appendChild(i);const D=P.appendChild(document.createElement("span"));D.className="markdown-image-frame-placeholder",r.set(D,Mt(Wa,{target:D,props:{name:Kn(i,t.getWorkspaceId())}}));const Y=()=>{if(c.delete(i),s||!a.contains(P))return;P.dataset.loaded="true";const se=r.get(D);se&&(ut(se),r.delete(D)),D.remove()};i.complete&&i.naturalWidth>0?Y():(c.set(i,Y),i.addEventListener("load",Y,{once:!0}))}function k(i,p){const _=i.getAttribute("src")||i.getAttribute("data-media-src")||"",P=yt(_),D=Ra(_,t.getWorkspaceId()),Y=P?.path??D?.path,se=P?.workspaceId??D?.workspaceId,Ce=i.getAttribute("data-name")||i.getAttribute("alt")||Y?.split("/").pop()||void 0,le=document.createElement(i instanceof HTMLVideoElement?"div":"span");le.className="media-unavailable-host",(w(i)??i).replaceWith(le),t.onMediaRemoved(i);let y;if(i instanceof HTMLImageElement&&p==="load-failed"){const oe=o(i);oe.fallbackHost=le,g(i)&&(y=()=>x(i,!0))}const Q=Mt(Vt,{target:le,props:{name:Ce,reason:p,path:Y,workspaceId:se,onRetry:y}});if(r.set(le,Q),i instanceof HTMLVideoElement){le.classList.add("flex","items-center","gap-2");const oe=le.appendChild(document.createElement("span"));r.set(oe,Mt(Kt,{target:oe,props:{videoUrl:_,videoName:Ce,sourceKind:"workspace",mimeType:wt(_,t.getWorkspaceId())?.mimeType}}))}}function U(){if(!s){for(const i of a.querySelectorAll("img"))vt(i)&&!i.closest("a")&&(i.tabIndex=0,i.setAttribute("role","button")),!(i.hasAttribute("data-media-unsupported")||i.hasAttribute("data-media-unavailable"))&&(o(i),i.hasAttribute(La)&&!w(i)&&m(i),i.getAttribute("src")&&i.complete&&i.naturalWidth===0&&b(i));for(const i of a.querySelectorAll("[data-media-unsupported]"))k(i,"unsupported");for(const i of a.querySelectorAll("[data-media-unavailable]"))k(i,Gr(i));for(const[i,p]of l)a.contains(p.fallbackHost??i)||(p.timer!==void 0&&clearTimeout(p.timer),l.delete(i));for(const[i,p]of c)a.contains(i)||(i.removeEventListener("load",p),c.delete(i));for(const[i,p]of r)a.contains(i)||(ut(p),r.delete(i))}}function B(i){const p=i.target;(p instanceof HTMLImageElement||p instanceof HTMLVideoElement)&&(p instanceof HTMLImageElement?b(p):k(p,"load-failed"))}const T=new MutationObserver(U);return T.observe(a,{childList:!0,subtree:!0}),a.addEventListener("error",B,!0),queueMicrotask(U),{destroy(){s=!0,T.disconnect();for(const i of l.values())i.timer!==void 0&&clearTimeout(i.timer);l.clear();for(const[i,p]of c)i.removeEventListener("load",p);c.clear(),a.removeEventListener("error",B,!0);for(const i of r.values())ut(i);r.clear()}}}var Zn=z('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),es=z("<div></div>"),wa=z('<div role="group"><!> <!></div>'),ts=z('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),as=z("<!> <!>",1);function _a(a,t){if(new.target)return tt({component:_a,...a});nt(t,!0);const r=n=>{var f=Ut(),W=Fe(f);{var S=K=>{var J=Zn(),Pe=N(J);{let de=E(()=>e(ce).getAttribute("src")||""),ue=E(()=>e(ce).getAttribute("alt")||void 0);et(fr(Pe,{get imageUrl(){return e(de)},get imageName(){return e(ue)},get open(){return e(v)},set open(We){q(v,We,!0)}}),We=>q(h,We,!0),()=>e(h))}L(J),et(J,de=>q(ae,de),()=>e(ae)),Z(()=>Ct(J,`top: ${e(Ke).top??""}px; right: ${e(Ke).right??""}px;`)),H(K,J)},j=E(()=>e(ce)&&Q(e(ce).getAttribute("src")||""));ie(W,K=>{e(j)&&K(S)})}H(n,f)};let l=I(t,"content",7),c=I(t,"isStreaming",7,!1),u=I(t,"className",7,""),s=I(t,"workspaceId",23,()=>ca()?.workspaceId??void 0),o=I(t,"relativeMediaBase",7),g=I(t,"onCodeBlockAction",7),x=I(t,"onFileClick",7),b=I(t,"canOpenFile",7),w=I(t,"allowFileMedia",7,!0),m=I(t,"taskBlockRenderMode",7,"placeholder"),k=I(t,"chatImageThumbnails",7,!1),U=I(t,"forceExternalLinks",7,!1),B=I(t,"renderRichFencesAsCode",7,!1),T=I(t,"renderDiagrams",7,!1),i=I(t,"allowSanitizedHtml",7,!1),p=I(t,"media",7);const _=Yr(),P=Ya(),D=E(()=>Bn(l(),s())),Y=E(()=>e(D).some(n=>n.type==="video")),se=E(()=>!e(Y)&&e(D).length===1&&e(D)[0].type==="markdown"?e(D)[0].content:l()),Ce=E(()=>Tn(e(se)));let le=ne(null),y=ne("");function Q(n){return _t(n,w()&&b()?.()!==!1)}const oe=E(()=>En(e(y),w()&&b()?.()!==!1)),Le=E(()=>pr(e(oe),s(),mr)),Me=E(()=>`<div class="markdown-content">${e(Le)}</div>`);let fe=0;const Ve=150;let ke=-1/0,ee=null,Se=null;async function ft(n,f,W,S){try{const j=await Qr(n,{...f,readOnly:!0});if(S!==fe)return;q(y,Qn(j,W,f?.workspaceId,f?.relativeMediaBase),!0)}catch(j){if(S!==fe)return;ht.error("Failed to process markdown:",j);const K=n.replace(/[&<>"']/g,J=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[J]||J);q(y,`<p>${K}</p>`)}}function Ie(){if(!Se)return;const n=Ve-(performance.now()-ke);if(n>0){ee=setTimeout(()=>{ee=null,Ie()},n);return}const f=Se;Se=null,ke=performance.now(),f()}function ot(){ee!==null&&(clearTimeout(ee),ee=null),Se=null,ke=-1/0}kt(()=>{const n=e(se),f={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:m(),workspaceId:s(),relativeMediaBase:o()??(s()&&s()!==Sr?"":void 0),renderRichFencesAsCode:B()||T(),processPrimitives:!T(),allowSanitizedHtml:i(),renderMath:!c(),workspaceFileVersion:_},W=p(),S=++fe,j=()=>void ft(n,f,W,S);c()?(Se=j,ee===null&&Ie()):(ot(),j())});let De=ne(void 0),ce=ne(null),Ke=ne(Qa({top:0,right:0})),v=ne(!1),h=ne(void 0),ae=ne(null);function V(n){if(n.type==="mouseover"&&ga(e(ce),e(ae)))return;const f=n.target,W=Dt(f);if(W&&vt(W)&&Q(W.getAttribute("src")||"")){if(e(ce)===W)return;q(ce,W,!0),q(Ke,Vn(W,n.currentTarget),!0)}else if(e(ce)&&!e(v)){if(f instanceof Node&&e(ae)?.contains(f))return;q(ce,null)}}function te(){!e(v)&&!ga(e(ce),e(ae))&&q(ce,null)}function he(n){const f=Dt(n.target);!f||!vt(f)||!Q(f.getAttribute("src")||"")||(n.preventDefault(),n.stopPropagation(),V(n),q(v,!0))}function re(n){return Jn(n,{getWorkspaceId:()=>s(),canUseMedia:Q,onMediaRemoved:f=>{e(ce)===f&&q(ce,null)}})}function Re(n){const f=n.target,W=f.closest("a");if(!W&&f instanceof HTMLImageElement){const j=f.getAttribute("src")||"";if(Ma(j)&&Q(j)){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(De)?.openImage(f);return}}if(W?.href){if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(De)?.openAsset(W))return;const j=d(n),K=s()?ta(s()):void 0;ia(W.href,{workspaceId:K,canOpenFile:b(),sourcePanelId:j,event:n,rawHref:W.getAttribute("href")??void 0,...U()?{forceExternal:!0}:{}});return}const S=Xr(f.closest("[data-mention]"));if(S){const{type:j,meta:K}=S;if(j==="file"&&S.filePath){if(b()?.()===!1)return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const J=S.filePath;ht.debug("[MarkdownViewer] File mention clicked",{filePath:J,meta:K});const Pe=d(n),de=Ht({event:n});if(x())x()(J,{line:S.line,openInAdjacentPanel:de,sourcePanelId:Pe});else{const ue=s();ue&&ve.dispatch(Rr(ue,J,{line:S.line,openInAdjacentPanel:de,sourcePanelId:Pe}))}}else if(S.folderPath!==void 0){if(b()?.()===!1||!s())return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),ve.dispatch(Er(s(),$r(S.folderPath)))}else if(j==="note"&&S.note){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const J=S.note.id;ht.debug("[MarkdownViewer] Note mention clicked",{noteId:J,meta:K});const Pe=d(n),de=Ht({event:n});if(S.note.workspaceId&&S.note.workspaceId!==s()){ia(ir(J,S.note.workspaceId),{workspaceId:s()?ta(s()):void 0,sourcePanelId:Pe,event:n});return}const ue=s();ue&&ve.dispatch(Pr(ue,J,{openInAdjacentPanel:de,sourcePanelId:Pe}))}}}function Ue(n){if(je(n),!n.defaultPrevented){if(n.target instanceof HTMLImageElement&&vt(n.target)&&(n.key==="Enter"||n.key===" ")){Re(n);return}n.key!=="Enter"||!Ht({event:n})||Re(n)}}function je(n){const f=Dt(n.target);!f||!vt(f)||!Q(f.getAttribute("src")||"")||e(h)?.handleCopy(n,f.getAttribute("src")||"")}function d(n){const f=n.target;if(f instanceof HTMLElement)return f.closest("[data-panel-id]")?.dataset.panelId}Xa(()=>{fe+=1,ot()});var C={get content(){return l()},set content(n){l(n),M()},get isStreaming(){return c()},set isStreaming(n=!1){c(n),M()},get className(){return u()},set className(n=""){u(n),M()},get workspaceId(){return s()},set workspaceId(n=ca()?.workspaceId??void 0){s(n),M()},get relativeMediaBase(){return o()},set relativeMediaBase(n){o(n),M()},get onCodeBlockAction(){return g()},set onCodeBlockAction(n){g(n),M()},get onFileClick(){return x()},set onFileClick(n){x(n),M()},get canOpenFile(){return b()},set canOpenFile(n){b(n),M()},get allowFileMedia(){return w()},set allowFileMedia(n=!0){w(n),M()},get taskBlockRenderMode(){return m()},set taskBlockRenderMode(n="placeholder"){m(n),M()},get chatImageThumbnails(){return k()},set chatImageThumbnails(n=!1){k(n),M()},get forceExternalLinks(){return U()},set forceExternalLinks(n=!1){U(n),M()},get renderRichFencesAsCode(){return B()},set renderRichFencesAsCode(n=!1){B(n),M()},get renderDiagrams(){return T()},set renderDiagrams(n=!1){T(n),M()},get allowSanitizedHtml(){return i()},set allowSanitizedHtml(n=!1){i(n),M()},get media(){return p()},set media(n){p(n),M()},$set:at,$on:(n,f)=>rt(t,n,f)},F=as(),X=Fe(F);{var be=n=>{var f=es();zt(f,21,()=>e(D),Za,(W,S)=>{var j=Ut(),K=Fe(j);{var J=de=>{Fa(de,{get allowFileMedia(){return w()},get canOpenFile(){return b()},get source(){return e(S).source},get name(){return e(S).name},get poster(){return e(S).poster}})},Pe=de=>{_a(de,{get content(){return e(S).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return o()},get onCodeBlockAction(){return g()},get onFileClick(){return x()},get canOpenFile(){return b()},get allowFileMedia(){return w()},get taskBlockRenderMode(){return m()},get chatImageThumbnails(){return k()},get forceExternalLinks(){return U()},get renderRichFencesAsCode(){return B()},get renderDiagrams(){return T()},get allowSanitizedHtml(){return i()},get media(){return p()}})};ie(K,de=>{e(S).type==="video"?de(J):de(Pe,-1)})}H(W,j)}),L(f),Z(()=>qe(f,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),H(n,f)},pe=n=>{var f=wa();let W;var S=N(f);oa(S,()=>e(Me));var j=O(S,2);r(j),L(f),Ze(f,K=>re?.(K)),Ze(f,(K,J)=>ha?.(K,J),()=>({enabled:T(),workspaceId:s(),context:P})),Z(()=>W=qe(f,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",W,{"chat-image-thumbnails":k()})),Ae("click",f,Re),Ae("keydown",f,Ue),He("copy",f,je),Ae("contextmenu",f,he),Ae("mouseover",f,V),Ae("focusin",f,V),He("mouseleave",f,te),H(n,f)},we=n=>{var f=ts(),W=N(f),S=me(W,!0);L(f),Z(()=>{qe(f,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),ge(S,e(se))}),H(n,f)},Ee=n=>{var f=wa();let W;var S=N(f);oa(S,()=>e(Me));var j=O(S,2);r(j),L(f),et(f,K=>q(le,K),()=>e(le)),Ze(f,K=>re?.(K)),Ze(f,(K,J)=>ha?.(K,J),()=>({enabled:T(),workspaceId:s(),context:P})),Z(()=>W=qe(f,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",W,{"chat-image-thumbnails":k()})),Ae("click",f,Re),Ae("keydown",f,Ue),He("copy",f,je),Ae("contextmenu",f,he),Ae("mouseover",f,V),Ae("focusin",f,V),He("mouseleave",f,te),H(n,f)};ie(X,n=>{e(Y)?n(be):c()?n(pe,1):e(Ce)==="simple"&&!i()?n(we,2):n(Ee,-1)})}var _e=O(X,2);return et(Ta(_e,{get workspaceId(){return s()},canUseMedia:Q}),n=>q(De,n,!0),()=>e(De)),H(a,F),st(C)}xa(["click","keydown","contextmenu","mouseover","focusin"]);class Ps{constructor(t){lt(this,"container");lt(this,"previousFocus",null);lt(this,"firstFocusable",null);lt(this,"lastFocusable",null);lt(this,"handleKeyDown");this.container=t,this.handleKeyDown=this.onKeyDown.bind(this)}activate(){this.previousFocus=document.activeElement;const t=this.container.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');t.length>0&&(this.firstFocusable=t[0],this.lastFocusable=t[t.length-1],this.firstFocusable.focus()),document.addEventListener("keydown",this.handleKeyDown)}deactivate(){document.removeEventListener("keydown",this.handleKeyDown),this.previousFocus&&this.previousFocus.focus()}onKeyDown(t){t.key==="Tab"&&(!this.firstFocusable||!this.lastFocusable||(t.shiftKey?document.activeElement===this.firstFocusable&&(t.preventDefault(),this.lastFocusable.focus()):document.activeElement===this.lastFocusable&&(t.preventDefault(),this.firstFocusable.focus())))}}function Ts(a,t){const r=x=>{const b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},l=x=>{const[b,w,m]=[x.r,x.g,x.b].map(k=>(k=k/255,k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4)));return .2126*b+.7152*w+.0722*m},c=r(a),u=r(t);if(!c||!u)return ht.warn("Invalid color values for contrast check",{foreground:a,background:t}),{ratio:0,passes:{aa:!1,aaa:!1}};const s=l(c),o=l(u),g=(Math.max(s,o)+.05)/(Math.min(s,o)+.05);return{ratio:g,passes:{aa:g>=4.5,aaa:g>=7}}}export{Fa as C,Ps as F,Rn as H,_a as M,Ss as W,Wa as a,fa as b,An as c,Pa as d,Ts as e,Cn as f,Es as g,Ea as h,on as r,Bn as s,Rs as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./
|
|
1
|
+
import{g as r}from"./BCoW5DN6.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./RGxIilBQ.js";import{g as It}from"./BJzHxIyr.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./BioErF0E.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
1
|
+
import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./Bpy6Muvw.js";import{g as It}from"./BJzHxIyr.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./sLnx1Tu5.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./BAqR9jtB.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./BPk16bSc.js";import{b as Ro}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a4 as Ze,a3 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,ah as zo,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Uo,d as _o,aa as mr,b as gn,u as mn,aI as Oo,ap as ct,ac as Bo,K as Le,M as Ut,L as Vo,a0 as Dt,E as Wo,al as vr,a6 as Go,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as $o,aH as bn}from"./i92hRJko.js";import{F as vi,c5 as jo,bg as qo,aw as Ko,av as Xo}from"./DKXEy5Lq.js";import{f as Di}from"./C9gP-gRX.js";import{g as Yo}from"./Ccf4dYFA.js";import{d as Qo}from"./7ZJvg7ev.js";import{P as Jo}from"./Bops7MsY.js";import{t as Sn}from"./Bl_iEh1f.js";class Zo extends Ao{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as Z}from"./BV49_RX-.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./RGxIilBQ.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./CR_HWuhj.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DPiGMYKs.js","/app/immutable/chunks/Bpy6Muvw.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BCDWZbwh.js","/app/immutable/chunks/DY6JypjK.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/DKXEy5Lq.js","/app/immutable/chunks/B2RRuLl5.js","/app/immutable/chunks/BPk16bSc.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C9gP-gRX.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/C11wqToa.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Ccf4dYFA.js","/app/immutable/chunks/Bl_iEh1f.js","/app/immutable/chunks/BiMGZT5w.js","/app/immutable/chunks/BHqHNrOT.js","/app/immutable/chunks/CzRl1R1n.js","/app/immutable/chunks/B-rSL5ZP.js","/app/immutable/chunks/-URcs0EB.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/BtAYzBSd.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/7ZJvg7ev.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/C8_w7W1W.js","/app/immutable/chunks/BFETMHTz.js","/app/immutable/chunks/Cop9b2dY.js","/app/immutable/chunks/XzWc0fs1.js","/app/immutable/chunks/BRNfUSNR.js","/app/immutable/chunks/DO2cS8JO.js","/app/immutable/chunks/7IyNIHph.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DH9gMPGd.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/C5Nz-crT.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BgyuoEGq.js","/app/immutable/chunks/Bc-8qHYh.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BMkc6ng0.js","/app/immutable/chunks/C2L4VLjE.js","/app/immutable/chunks/B_ifqSee.js","/app/immutable/chunks/DeBw56y4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B7-651e2.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/Bops7MsY.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BGGxKX5q.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DqTygHNa.js","/app/immutable/chunks/i92hRJko.js","/app/immutable/chunks/DfTvRpFp.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Z}from"./BAqR9jtB.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./Bpy6Muvw.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./DPiGMYKs.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as L,j as R}from"./
|
|
1
|
+
import{s as L,j as R}from"./XzWc0fs1.js";const O=(e,l={})=>{let d=l?.fadeSize??24,r=l?.axis??"y",a=l?.enabled??!0,u=!1,n,c,o=!1,f,i,v;function z(){const s=r==="y"?e.scrollTop:e.scrollLeft,y=r==="y"?e.clientHeight:e.clientWidth,S=r==="y"?e.scrollHeight:e.scrollWidth,k=s>2,x=s+y<S-2,h=k?d:0,g=x?d:0,p=h===0&&g===0?"":`linear-gradient(${r==="y"?"to bottom":"to right"}, transparent, black ${h}px, black calc(100% - ${g}px), transparent)`;p!==v&&(v=p,i?.(),i=R(()=>{i=void 0,e.style.maskImage=p}))}function t(){o||(o=!0,f=L(()=>{o=!1,a&&z()}))}function b(){u&&e.removeEventListener("scroll",t),u=!1,n?.disconnect(),n=void 0,c?.disconnect(),c=void 0,f?.(),f=void 0,i?.(),i=void 0,o=!1,v=void 0,e.style.maskImage=""}function m(){b(),a&&(t(),e.addEventListener("scroll",t,{passive:!0}),u=!0,n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(t),n?.observe(e),c=new MutationObserver(t),c.observe(e,{childList:!0,subtree:!0}))}return m(),{update(s){const y=a;d=s?.fadeSize??24,r=s?.axis??"y",a=s?.enabled??!0,a?y?t():m():b()},destroy:b}};export{O as s};
|