@intent-hq/web 2.384.2 → 2.385.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CBvkahdk.js → -9EwpXCb.js} +1 -1
- package/web/app/immutable/chunks/{D5u143LD.js → 0Ipp5cFr.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{CbDsELcV.js → 3xVgojWv.js} +3 -3
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
- package/web/app/immutable/chunks/{CNzCvSR9.js → 44rP4fzJ.js} +1 -1
- package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
- package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
- package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
- package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
- package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
- package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
- package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
- package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
- package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
- package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{MsC14vMO.js → B3SHGkI_.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
- package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
- package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
- package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
- package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
- package/web/app/immutable/chunks/{Ipu7_2rx.js → B72XM8Fm.js} +1 -1
- package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
- package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
- package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
- package/web/app/immutable/chunks/{qLxI2L63.js → BGReMCaT.js} +1 -1
- package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
- package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
- package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
- package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
- package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
- package/web/app/immutable/chunks/{BcffwE-d.js → BNV0s95-.js} +1 -1
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{CgJXgMzB.js → BQ53265L.js} +1 -1
- package/web/app/immutable/chunks/{DN-MAVuE.js → BQvwLP7I.js} +1 -1
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
- package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
- package/web/app/immutable/chunks/{NZ_vlsKe.js → BTEoQf52.js} +1 -1
- package/web/app/immutable/chunks/{jiLgt56M.js → BTLG1BY-.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{_0LhNaan.js → BV4VuEnO.js} +1 -1
- package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
- package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
- package/web/app/immutable/chunks/{Bw8_vMki.js → BVqF0sgN.js} +1 -1
- package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
- package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
- package/web/app/immutable/chunks/{DZnKNdAN.js → BWzMAxc1.js} +1 -1
- package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{CbucW-av.js → BYl8t9od.js} +1 -1
- package/web/app/immutable/chunks/{D4ZMSrvm.js → BZVhwNIm.js} +3 -3
- package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
- package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
- package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
- package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
- package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
- package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
- package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
- package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{Ciei8d6b.js → Bs7M8kXA.js} +3 -3
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
- package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{DkET5D1Z.js → BvgjsneA.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{B4l71ix-.js → By4iSN8L.js} +1 -1
- package/web/app/immutable/chunks/{CU_25eHm.js → BzSCTZkL.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- package/web/app/immutable/chunks/{DpeQIGDn.js → C-L0-C2F.js} +2 -2
- package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
- package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
- package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
- package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
- package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
- package/web/app/immutable/chunks/{Bm6FDHvN.js → C2WwQCOk.js} +1 -1
- package/web/app/immutable/chunks/{YTt0B0lA.js → C37ZqG4e.js} +1 -1
- package/web/app/immutable/chunks/{D0sQr-H_.js → C429ZMSU.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{4oPBEC4-.js → C5b7nimj.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{Za_i3D8P.js → C6TTEdST.js} +4 -4
- package/web/app/immutable/chunks/{Bap7o4n5.js → C78AfvXn.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
- package/web/app/immutable/chunks/C8qAflad.js +2 -0
- package/web/app/immutable/chunks/{B7h1ZmQS.js → C8zl7aIj.js} +1 -1
- package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
- package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/{CBZTF7Qa.js → CC-IHSah.js} +4 -4
- package/web/app/immutable/chunks/CCIZBeez.js +1 -0
- package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
- package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
- package/web/app/immutable/chunks/{Dfh8DRT0.js → CE70-gZI.js} +3 -3
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{BYU-C1jV.js → CGPajdHq.js} +2 -2
- package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
- package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
- package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
- package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
- package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
- package/web/app/immutable/chunks/{DJM7b4MF.js → CN-EAu8o.js} +1 -1
- package/web/app/immutable/chunks/{CYQKXGJn.js → CNE5cVvC.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/CNWb-jYE.js +1 -0
- package/web/app/immutable/chunks/{BEiVNbJd.js → CNnF3Cms.js} +1 -1
- package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
- package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
- package/web/app/immutable/chunks/{McOgUz0K.js → CPO5_F83.js} +1 -1
- package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
- package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
- package/web/app/immutable/chunks/{CP9jggxp.js → CRSY1kuo.js} +1 -1
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{Cx6Utm5I.js → CUsqN2sK.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{CJHIllR1.js → CX4-Z2NI.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
- package/web/app/immutable/chunks/{BJZU-qAV.js → CXpEvkVR.js} +1 -1
- package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
- package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
- package/web/app/immutable/chunks/{Ct8L3-dh.js → CdSTecgc.js} +1 -1
- package/web/app/immutable/chunks/{D3qs3VJZ.js → CfYZevDu.js} +1 -1
- package/web/app/immutable/chunks/{BEjISjEF.js → Che-KvdU.js} +1 -1
- package/web/app/immutable/chunks/{CUWtSiZ5.js → Cj1KG0_l.js} +1 -1
- package/web/app/immutable/chunks/{BBV_EtXR.js → Cl_O0hHI.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{BCx-pM-8.js → CmyBYYR3.js} +1 -1
- package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
- package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
- package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
- package/web/app/immutable/chunks/{C4IVoYqo.js → CpFDUMBH.js} +1 -1
- package/web/app/immutable/chunks/{BK6CZrM5.js → CqUPwDgo.js} +1 -1
- package/web/app/immutable/chunks/{DKrlwauu.js → CqVGtsXz.js} +1 -1
- package/web/app/immutable/chunks/{4QXQvR4H.js → Cq_jjcoF.js} +1 -1
- package/web/app/immutable/chunks/{DnozpXMO.js → CrbAS4DB.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{DV6uX7ff.js → CrvVM5aL.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{D6Hf6lXy.js → CuWLpCl5.js} +1 -1
- package/web/app/immutable/chunks/{BGaOyp5o.js → CuljOS_X.js} +1 -1
- package/web/app/immutable/chunks/{BhpCwvYl.js → Cv0wEzuo.js} +1 -1
- package/web/app/immutable/chunks/Cw-qJqDx.js +2 -0
- package/web/app/immutable/chunks/{oTjaecL9.js → Cx0QXTIW.js} +1 -1
- package/web/app/immutable/chunks/{WWSsQ21S.js → CxndkliV.js} +1 -1
- package/web/app/immutable/chunks/{2bsrY56g.js → Cy3lhXYa.js} +6 -6
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{BHKaBN6i.js → CzDPvHAo.js} +1 -1
- package/web/app/immutable/chunks/{Df-2xtN9.js → D-KE4WZ3.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{Dk0Z1pVU.js → D1zX4MuR.js} +1 -1
- package/web/app/immutable/chunks/{Dm9EHXJZ.js → D2hNxvgD.js} +4 -4
- package/web/app/immutable/chunks/{BGN0Ete3.js → D2kwjrZB.js} +1 -1
- package/web/app/immutable/chunks/{oki3b9jv.js → D5Pfy-wQ.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{CCAcpS1o.js → D7xjMCds.js} +2 -2
- package/web/app/immutable/chunks/{CdMAY9xp.js → DBH_GMOZ.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DoStKyYK.js → DFGMgfIk.js} +2 -2
- package/web/app/immutable/chunks/{CceLSCZq.js → DG0pBglL.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
- package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
- package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
- package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
- package/web/app/immutable/chunks/{jmJoSjVa.js → DMe_MB5T.js} +1 -1
- package/web/app/immutable/chunks/{ZNhLMxqQ.js → DN-DN78v.js} +2 -2
- package/web/app/immutable/chunks/{CI-VmE1m.js → DNDlsdj4.js} +1 -1
- package/web/app/immutable/chunks/{wZz1J3UE.js → DOkArUrJ.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{BNFLngEB.js → DRqy_Wmb.js} +1 -1
- package/web/app/immutable/chunks/{BPZBxYco.js → DRsDUO-4.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{BzllE3aT.js → DT5eV1e8.js} +2 -2
- package/web/app/immutable/chunks/{RzextV4B.js → DTMxJ5IC.js} +2 -2
- package/web/app/immutable/chunks/{DKLk3Wx8.js → DTwG0V2f.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
- package/web/app/immutable/chunks/{Chx7ONT3.js → DVUFgbJK.js} +1 -1
- package/web/app/immutable/chunks/{ez7LBTR9.js → DVwMeV9X.js} +1 -1
- package/web/app/immutable/chunks/{CSIAWhhl.js → DW25Ls6A.js} +1 -1
- package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
- package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
- package/web/app/immutable/chunks/{DCGl0RXW.js → DXRkYB1Y.js} +47 -47
- package/web/app/immutable/chunks/{DAzQ7i2U.js → DYEwyuIx.js} +1 -1
- package/web/app/immutable/chunks/{BaodMpKG.js → DZmGZ5am.js} +1 -1
- package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
- package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
- package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
- package/web/app/immutable/chunks/{QFC15GkG.js → De0kCZ4v.js} +2 -2
- package/web/app/immutable/chunks/{CK2Cr1RP.js → Dg0Tdf_A.js} +1 -1
- package/web/app/immutable/chunks/{Cb0AGw5F.js → DgKpR9KC.js} +1 -1
- package/web/app/immutable/chunks/{D2LsUZli.js → DhXcDqZX.js} +1 -1
- package/web/app/immutable/chunks/{DGZLYT-c.js → DiMo2JnB.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
- package/web/app/immutable/chunks/{gkPeOUJv.js → DjIQY_o5.js} +1 -1
- package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
- package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
- package/web/app/immutable/chunks/{BRsOtr8M.js → Dm-WfTCg.js} +1 -1
- package/web/app/immutable/chunks/{Dl9we4aZ.js → DmCKwthV.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{BEpYOO0x.js → Dqd75Edx.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{Cw2ZnpX7.js → DtFzaymP.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
- package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
- package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
- package/web/app/immutable/chunks/Dws-34a7.js +1 -0
- package/web/app/immutable/chunks/{DaZ7K0cS.js → DxAjMnFs.js} +3 -3
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{B8nUpMEz.js → DxRojUvw.js} +1 -1
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{BAAb6Ol7.js → DyXAZ9tr.js} +1 -1
- package/web/app/immutable/chunks/{BqU6TsU1.js → DzG7lmwB.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{D4g4334W.js → GP4LXuR4.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{Dg5FvxXA.js → KzySRhDw.js} +3 -3
- package/web/app/immutable/chunks/{CJ72QIuX.js → L-Sh3Ble.js} +3 -3
- package/web/app/immutable/chunks/{DOU-V4Cg.js → LI9J8Eor.js} +2 -2
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{DB0jxR-D.js → L_sfch_N.js} +1 -1
- package/web/app/immutable/chunks/{rYnu2FeJ.js → LgyvMkc8.js} +1 -1
- package/web/app/immutable/chunks/{CayjT2l8.js → M1XBe23f.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
- package/web/app/immutable/chunks/{ChdMCKvy.js → Q2C1NT93.js} +1 -1
- package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
- package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
- package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
- package/web/app/immutable/chunks/{DltbAw1B.js → THqyVjkf.js} +1 -1
- package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{H9nIRlnK.js → V6efYFFY.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/{DHbqsCcC.js → VvLcPf2a.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{hcDGwCEP.js → XEsFBJqZ.js} +1 -1
- package/web/app/immutable/chunks/{BziYv9ZW.js → ZR3wQ419.js} +2 -2
- package/web/app/immutable/chunks/{B7RoQL2j.js → _i0M7_-r.js} +2 -2
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
- package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
- package/web/app/immutable/chunks/{DZjKvOyB.js → e2ymG0j7.js} +1 -1
- package/web/app/immutable/chunks/{DLKd3Oyl.js → e3_wv2e_.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CnHcPhIW.js → fVXs4sxg.js} +4 -4
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{BFc0Rlfo.js → gZJn6Sk0.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{h3LTJhAu.js → iPHmrqbo.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{DVL_BM5a.js → jH2J-9un.js} +1 -1
- package/web/app/immutable/chunks/{tF7VK2wM.js → l1lBFBJz.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DcACHBPs.js → n5-dpvss.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
- package/web/app/immutable/chunks/{CjyJQV6j.js → pHBnQb5R.js} +1 -1
- package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
- package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
- package/web/app/immutable/chunks/{mLzVJBUx.js → qO0mYaJv.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/rcXEnwTB.js +158 -0
- package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
- package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
- package/web/app/immutable/chunks/{B7o2QL9R.js → waHi6l7h.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
- package/web/app/immutable/chunks/{D8s3q34H.js → xGzY0FqC.js} +1 -1
- package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
- package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
- package/web/app/immutable/entry/{app.CHgb5yMQ.js → app.BXfGjD4L.js} +3 -3
- package/web/app/immutable/entry/start.DRVSg-kr.js +1 -0
- package/web/app/immutable/nodes/{0.DECevrtM.js → 0.CoxSTVXk.js} +1 -1
- package/web/app/immutable/nodes/{1.LZZdSQoJ.js → 1.BbjU9IH_.js} +1 -1
- package/web/app/immutable/nodes/10.D6wyP02T.js +39 -0
- package/web/app/immutable/nodes/{11.D5CTYtT6.js → 11.ukc3KQLY.js} +1 -1
- package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
- package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
- package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
- package/web/app/immutable/nodes/{15.5st_fzCN.js → 15.CUWA_Nvq.js} +1 -1
- package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
- package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
- package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
- package/web/app/immutable/nodes/{19.wB7XsK3B.js → 19.D9cBSCEY.js} +2 -2
- package/web/app/immutable/nodes/{2.C7whbYui.js → 2.pGtn3nxM.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.KbBbpAm6.js → 3.Bm-Ewkeu.js} +1 -1
- package/web/app/immutable/nodes/{4.C1b_QyI0.js → 4.bypHtb3m.js} +1 -1
- package/web/app/immutable/nodes/{5.CG-B5vOM.js → 5.YWphdJEW.js} +1 -1
- package/web/app/immutable/nodes/{6.v-GnNHdu.js → 6.DQRfO1Qb.js} +1 -1
- package/web/app/immutable/nodes/{7.D9LU-AZb.js → 7.b1goQuXf.js} +1 -1
- package/web/app/immutable/nodes/{8.BJP_1POW.js → 8.BBgV9gU6.js} +1 -1
- package/web/app/immutable/nodes/{9.f8mHa7_b.js → 9.BJdtENce.js} +4 -4
- 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/B8evz7o6.js +0 -2
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/D8elUKsb.js +0 -158
- package/web/app/immutable/chunks/DY52XPja.js +0 -2
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/akx8_VtJ.js +0 -1
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.CINDVXKj.js +0 -1
- package/web/app/immutable/nodes/10.KUh1filM.js +0 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,bo as s,bw as S,b as V}from"./
|
|
1
|
+
import{t as O,bo as s,bw as S,b as V}from"./Dws-34a7.js";import{bs as W,cb as q,bH as x,a7 as E,ay as F,aD as l,W as h,bn as G,bV as J,c9 as y,aA as i,b_ as z,aw as K,bz as L,bl as M,bO as Q,aB as T}from"./3SdAC2_C.js";import{i as X}from"./DLCFUd4s.js";import{c as U,e as k,s as m,f as C,g as N}from"./BD9db4FR.js";import{n as A}from"./B8HnjSSF.js";var Y=T('<img alt="" aria-hidden="true" loading="lazy"/>'),Z=T('<span aria-hidden="true"> </span>');function $(r,a){if(new.target)return O({component:$,...r});W(a,!0);let n=s(a,"avatarUrl",7,null),v=s(a,"label",7),g=s(a,"size",7,24),u=s(a,"class",7,""),p=s(a,"referrerpolicy",7),o=s(a,"testid",7),f=s(a,"fill",7,!1),b=J(!1);const B=y(()=>!!n()&&!l(b)),D=y(()=>v().trim().slice(0,1).toUpperCase()||"?"),d=y(()=>f()?void 0:`${g()}px`);q(()=>{n(),x(b,!1)});var P={get avatarUrl(){return n()},set avatarUrl(e=null){n(e),i()},get label(){return v()},set label(e){v(e),i()},get size(){return g()},set size(e=24){g(e),i()},get class(){return u()},set class(e=""){u(e),i()},get referrerpolicy(){return p()},set referrerpolicy(e){p(e),i()},get testid(){return o()},set testid(e){o(e),i()},get fill(){return f()},set fill(e=!1){f(e),i()},$set:S,$on:(e,t)=>V(a,e,t)},w=E(),R=F(w);{var j=e=>{var t=Y();let c;z(_=>{m(t,"src",n()),C(t,1,_),m(t,"referrerpolicy",p()),m(t,"data-testid",o()),c=N(t,"",c,{width:l(d),height:l(d)})},[()=>U(k(f()?"h-full w-full object-cover":"shrink-0 rounded-full",u()))]),K("error",t,()=>{x(b,!0)}),L(t),h(e,t)},H=e=>{var t=Z();let c;var _=M(t,!0);z(I=>{C(t,1,I),m(t,"data-testid",o()===void 0?void 0:`${o()}-fallback`),c=N(t,"",c,{width:l(d),height:l(d)}),Q(_,l(D))},[()=>U(k(f()?"grid h-full w-full place-items-center":"grid shrink-0 place-items-center rounded-full bg-muted type-caption text-foreground",u()))]),h(e,t)};X(R,e=>{l(B)?e(j):e(H,-1)})}return h(r,w),G(P)}function le(r){return A(r)}function ie(r){return r?A(r,{style:"narrow"}):"Never"}export{$ as P,ie as a,le as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as t,dT as d,dS as i}from"./
|
|
1
|
+
import{Jx as t,dT as d,dS as i}from"./4g_iHoQm.js";function c(u,s){const e=crypto.randomUUID();let r;function o(n){n!==r&&(r&&t.dispatch(d(r,e)),r=n,r&&t.dispatch(i(r,e)))}return o(s),{update:o,destroy:()=>o(void 0)}}export{c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as d}from"./
|
|
1
|
+
import{h as d}from"./B8HnjSSF.js";import{bm as t}from"./Dws-34a7.js";import{Jx as n,nY as m,pe as _}from"./4g_iHoQm.js";import{c5 as h,a_ as g}from"./SbTG0nwQ.js";import{R as H}from"./9GO97JAL.js";import{w as f,m as w,e as b}from"./DxC0zTSc.js";function u(e){return e.lastBackupAt?d(e.lastBackupAt):""}function k(e){if(e.starting)return t.workspaceHome_starting_label();if(e.state==="moving")return t.workspaceHome_banner_moving();if(e.unknownState)return t.workspaceHome_banner_detachedNoBackup({name:e.name});const o=u(e);return o?t.workspaceHome_banner_detached({name:e.name,time:o}):t.workspaceHome_banner_detachedNoBackup({name:e.name})}function A(e){return e?.unavailable?k(e):null}function y(e){if(e.banner==="detached"||e.banner==="moving")return k(e);if(e.banner!=="backupWarning")return"";const o=u(e);return o?t.workspaceHome_banner_backupWarning({name:e.name,time:o}):t.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function R(e){switch(e.setup?.phase){case"preparing":case"runningSetup":return t.workspaceHome_opening_title({name:e.name});case"openFailed":return t.workspaceHome_openFailed_title({name:e.name});case"setupFailed":return t.remoteAgent_notice_setupFailed_title({machine:e.name});default:return""}}function N(e){const o=e.setup;switch(o?.phase){case"preparing":return t.remoteAgent_status_preparingCheckout();case"runningSetup":return t.remoteAgent_status_runningSetup();case"openFailed":return t.workspaceHome_openFailed_hint({name:e.name});case"setupFailed":return o.exitCode!==null?t.workspaceHome_setupFailed_exitCode({code:String(o.exitCode)}):o.timedOut?t.workspaceHome_setupFailed_timeout():t.workspaceHome_setupFailed_generic();default:return null}}function D(e){const o=e.setup,r=o?.phase==="openFailed"||o?.phase==="setupFailed"?o.error:null;return r&&r.replace(/^[a-z][a-z0-9-]*:\s*/,"").trim()||null}function E(e){return e==="detached"?t.workspaceHome_marker_detached():t.workspaceHome_marker_moving()}function C(e){const o=u(e);return o?t.workspaceHome_header_lastBackup({time:o}):null}function V(e){if(!e.moveWarning)return null;const o=u(e);return o?t.workspaceHome_moveDialog_warning({name:e.name,time:o}):t.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function q(e){switch(e.code){case"forbidden":return t.workspaceHome_moveError_forbidden();case"homes-unsupported":return t.workspaceHome_moveError_homesUnsupported();case"home-moving":return t.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return t.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return t.workspaceHome_moveError_updateRequired();default:return t.workspaceHome_moveError_failed({message:e.message})}}const i=new WeakMap,S=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o),a=r?.home;if(!a)return null;const s=i.get(a);if(s)return s;const c=f(r);return c&&i.set(a,c),c}),L=n.createSelector((e,o)=>w(m(e.workspace.workspaces,o),!h.select(e,o))),F=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o)?.home;return r?.setup?.state==="failed"?_(r.homeId,r.setup.finishedAt):""}),U=n.createSelector((e,o)=>{const r=S.select(e,o);if(r?.banner!=="setupFailed")return r;const a=F.select(e,o);if(!a||!e.workspaceHome.dismissedSetupFailures[a])return r;const s=p.get(r);if(s)return s;const c={...r,banner:null};return p.set(r,c),c}),p=new WeakMap,z=n.createSelector((e,o)=>{const r=e.workspaceHome.setupOutputs[o],a=m(e.workspace.workspaces,o)?.home?.homeId;return r&&r.homeId===a?r:null}),I=n.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),J=n.createSelector(e=>e.workspaceHome.dialogWorkspaceId),K=n.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),j=n.createSelector(e=>e.workspaceHome.moveFailure),W=[],l=new Map,P=n.createSelector((e,o)=>{if(!o)return W;const r=b({agents:g.select(e,o),machineRows:H.select(e)}),a=JSON.stringify(r),s=l.get(o);return s?.key===a?s.options:(l.set(o,{key:a,options:r}),r)}),Y=n.createSelector((e,o)=>m(e.workspace.workspaces,o)!==void 0);export{C as a,E as b,V as c,D as d,A as e,N as f,R as g,y as h,k as i,F as j,z as k,I as l,q as m,J as n,j as o,P as p,K as q,U as r,L as s,S as t,Y as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as st}from"./DN-MAVuE.js";import{g as it}from"./jiLgt56M.js";import{s as at}from"./BGaOyp5o.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./CBZTF7Qa.js";import{c as kt}from"./BGN0Ete3.js";import{aR as Et}from"./Cw2ZnpX7.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as st}from"./BQvwLP7I.js";import{g as it}from"./BTLG1BY-.js";import{s as at}from"./CuljOS_X.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./CC-IHSah.js";import{c as kt}from"./D2kwjrZB.js";import{aR as Et}from"./DtFzaymP.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.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),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[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:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h8 as O,gQ as H,JL as P,Kz as K,Dw as U,u5 as j,v2 as q,A$ as z,B0 as N,JJ as Q,JK as V,B1 as X}from"./
|
|
1
|
+
import{h8 as O,gQ as H,JL as P,Kz as K,Dw as U,u5 as j,v2 as q,A$ as z,B0 as N,JJ as Q,JK as V,B1 as X}from"./4g_iHoQm.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./DtqPBHQj.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./B6eTPmJH.js";import{g as ne}from"./CrbAS4DB.js";import{bm as l}from"./Dws-34a7.js";import{z as oe,S as y}from"./BPuz5cN_.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./D7xjMCds.js";import{g as se}from"./dmZv6JOg.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(j(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?Q():V());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(H(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(z(c)),"column"):(e.dispatch(N(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function we(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=q(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),J=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(K())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>we(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:J(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(U(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bm as y,t as wt,bo as K,bw as xt,bq as Tt,b as kt,bs as D}from"./
|
|
1
|
+
import{bm as y,t as wt,bo as K,bw as xt,bq as Tt,b as kt,bs as D}from"./Dws-34a7.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as N,c9 as f,aA as M,aB as T,a5 as I,bA as A,bl as P,b_ as F,bO as S}from"./3SdAC2_C.js";import{i as B}from"./DLCFUd4s.js";import{k as St}from"./5-0LQoqd.js";import{c as Wt}from"./B5tvpTFB.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./CSiaiLHL.js";import"./CPO5_F83.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import{bg as Dt}from"./CGYPBD6G.js";import"./BPuz5cN_.js";/* empty css */import{Jx as E,K5 as Nt,Kk as Ft,Ka as Bt,vx as Et}from"./4g_iHoQm.js";import{T as Lt}from"./DOkArUrJ.js";import{g as Ut}from"./DWGXN6Nr.js";import{dH as Ot}from"./SbTG0nwQ.js";import{bT as jt,bN as Ht,b8 as Kt}from"./DtFzaymP.js";import"./DWa-2rkZ.js";import{M as Mt}from"./Bv_xG3nA.js";import{V as Vt}from"./BSgFpkqa.js";import{O as qt}from"./GP4LXuR4.js";import{c as Rt}from"./ChTqQfQN.js";import{i as Gt}from"./H2jLkRRS.js";const x=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Jt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||y.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||y.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Jt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;x.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return x.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(x.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(x.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(x.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return x.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Xt=T("<!> <!>",1),Yt=T('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=T('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=T('<p class="text-xs opacity-70"> </p>'),ne=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>D(lt,"$workspace",v),c=()=>D(st,"$foldUnchanged",v),d=()=>D(rt,"$lineWrapping",v),s=()=>D(ot,"$diffSideBySide",v),[v,nt]=Tt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Xt(),g=X(i);{let m=f(()=>y.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=N(g,2);{var b=m=>{qt(m,{get filePath(){return t(G)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};B(C,m=>{t(G)&&m(b)})}w(a,i)},rt=jt(),st=Ht(),ot=Kt(),dt=Rt("ActivityChangesTabType");let L=K(n,"tab",7),_=K(n,"workspaceId",7),U=K(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),G=f(()=>t(p)&&t(O)?Gt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),J=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(J)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Qt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}Q(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),Q(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(J)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:xt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=X(z);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),H=P($,!0);A(h),F(_t=>S(H,_t),[()=>y.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};B(g,l=>{t(pt)&&l(C)})}var b=N(g,2),m=I(b);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(b),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),b=N(g,2),m=P(b,!0);A(i),F((l,h)=>{S(C,l),S(m,h)},[()=>y.layout_activityChanges_noDiffStored_label(),()=>y.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},bt=a=>{var i=ne(),g=I(i),C=P(g,!0),b=N(g,2);{var m=l=>{var h=ee(),$=P(h,!0);F(H=>S($,H),[()=>y.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};B(b,l=>{t(o)&&l(m)})}A(i),F(l=>S(C,l),[()=>y.layout_activityChanges_noChanges_label()]),w(a,i)};B(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(bt,-1)})}w(e,z);var yt=Pt(ht);return nt(),yt}export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as gt}from"./C9aF-Sor.js";import{nY as pt,br as vt}from"./DXdFemRu.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./hY0rMePc.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as O,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./BWmYJDmC.js";import{k as wt}from"./CXul4WJt.js";import{s as Le,e as et,f as tt,g as yt}from"./leDczq9h.js";import{b as Ke}from"./Dn334wJv.js";import{c as me}from"./BNN0vAFF.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./CbaFGz2w.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./x_GKKTQV.js";import{f as Ee}from"./CIU_APaR.js";import"./rNjiZ_3W.js";import{l as Be,f as lt,m as kt,a as Ct}from"./B7JHU89G.js";import"./ChTqQfQN.js";import"./BXT21uPn.js";import"./BEvFtidS.js";import{bK as He}from"./ZNhLMxqQ.js";import{t as De}from"./CjZEyjv4.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./DETS1-K4.js";import{S as Tt}from"./1MN-thc1.js";import{n as Ut,g as Rt}from"./72S4_8Fo.js";import{e as We}from"./D400ElMz.js";import{i as St,f as Nt}from"./CmbheRhJ.js";import{P as Kt}from"./DxDZbRkP.js";import{h as Ot}from"./DOU-V4Cg.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Oe=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Oe?.source===D&&(Oe=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Oe={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Oe;V=r!==null&&r.source!==D,V&&r&&(Oe=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Kt(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=O(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=O(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=O(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Ke(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=O(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(K,ae)},$$slots:{default:!0}})});var G=O($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(K,ae)},$$slots:{default:!0}})});var j=O(G,2);{var de=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=O(j,2);{var Pe=H=>{var ee=qt(),K=oe(ee);me(K,()=>ot,(c,T)=>{T(c,{})});var Z=O(K,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=O(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Ke(de,t=>k(V,t),()=>e(V));var fe=O(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=O(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var K=O(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(K,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=O(K,2),ae=Ce(Z,!0),ce=O(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Ke(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Ke(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Ke(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Ke(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=O(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=O(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=O(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(K,Z)=>{Z(K,{})});var de=O(j,2);{var _e=K=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(K,Z)};te(de,K=>{e(y)!==null&&K(_e)})}var fe=O(de,2);{var Pe=K=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(K,Z)};te(fe,K=>{e(f)&&K(Pe)})}var H=O(fe,2);{var ee=K=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(K,Z)};te(H,K=>{e(A)!==null&&K(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=O(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Ot(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=O(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=O(N,2),Y=Ce(B,!0);he(V),he(A);var q=O(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=O(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=O(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=O(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
1
|
+
import{$ as gt}from"./SbTG0nwQ.js";import{nY as pt,br as vt}from"./4g_iHoQm.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./Dws-34a7.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as O,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./DLCFUd4s.js";import{k as wt}from"./5-0LQoqd.js";import{s as Le,e as et,f as tt,g as yt}from"./BD9db4FR.js";import{b as Ke}from"./Dn334wJv.js";import{c as me}from"./B5tvpTFB.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./jBG7W4tL.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./rXKOJqUt.js";import{f as Ee}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{l as Be,f as lt,m as kt,a as Ct}from"./B8HnjSSF.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";import"./DWa-2rkZ.js";import{bK as He}from"./DN-DN78v.js";import{t as De}from"./D-rRuAXZ.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./CGYPBD6G.js";import{S as Tt}from"./Do2KlQU0.js";import{n as Ut,g as Rt}from"./Bc1vJq_Z.js";import{e as We}from"./C-zB-6G6.js";import{i as St,f as Nt}from"./C63WwVct.js";import{P as Kt}from"./BLKFshyr.js";import{h as Ot}from"./LI9J8Eor.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Oe=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Oe?.source===D&&(Oe=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Oe={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Oe;V=r!==null&&r.source!==D,V&&r&&(Oe=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Kt(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=O(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=O(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=O(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Ke(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=O(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(K,ae)},$$slots:{default:!0}})});var G=O($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(K,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(K,ae)},$$slots:{default:!0}})});var j=O(G,2);{var de=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),K=oe(ee);me(K,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=O(j,2);{var Pe=H=>{var ee=qt(),K=oe(ee);me(K,()=>ot,(c,T)=>{T(c,{})});var Z=O(K,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=O(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Ke(de,t=>k(V,t),()=>e(V));var fe=O(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=O(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var K=O(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(K,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=O(K,2),ae=Ce(Z,!0),ce=O(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Ke(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Ke(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Ke(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Ke(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=O(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=O(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=O(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(K,Z)=>{Z(K,{})});var de=O(j,2);{var _e=K=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(K,Z)};te(de,K=>{e(y)!==null&&K(_e)})}var fe=O(de,2);{var Pe=K=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(K,Z)};te(fe,K=>{e(f)&&K(Pe)})}var H=O(fe,2);{var ee=K=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(K,Z)};te(H,K=>{e(A)!==null&&K(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=O(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Ot(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=O(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=O(N,2),Y=Ce(B,!0);he(V),he(A);var q=O(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=O(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=O(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=O(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./Cy3lhXYa.js";import{p as g}from"./DG0pBglL.js";import{d as I}from"./B0Z-1lwJ.js";import{dS as f}from"./SbTG0nwQ.js";import{Cq as u,m as y,Jx as o,h7 as A,vI as m,vJ as N,vL as b}from"./4g_iHoQm.js";import{g as W,n as h}from"./tLFaYuVN.js";import{S as D,a as R,n as E}from"./De0kCZ4v.js";import{n as O,o as v}from"./Dg0Tdf_A.js";const k="intent:onboarding-skip:v1";function P(e){return u.getItem(h(k,e))==="1"}function re(e){P(e)||u.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function J(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Y(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Y,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:J,navigateToNote:p,navigateToSettings:H,navigateToSpec:M,navigateToTask:G,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,J as b,p as c,H as d,G as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./hY0rMePc.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./3SdAC2_C.js";import{i as j}from"./BWmYJDmC.js";import{t as ie}from"./CjZEyjv4.js";import{c as q}from"./BNN0vAFF.js";import{n as ye,l as ze,c as $e}from"./72S4_8Fo.js";import{b as Ae,e as ue,f as rt}from"./leDczq9h.js";import{i as at,h as ot,a as st}from"./CmbheRhJ.js";import{a_ as nt,a1 as lt,f as Ne}from"./CIU_APaR.js";import"./rNjiZ_3W.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./DB4f78Ip.js";import{c as mt,u as _t,s as pt,a as bt}from"./D9tVylVS.js";import{p as ht}from"./BEvFtidS.js";import"./CbqBbwIN.js";import{b as qe}from"./Dn334wJv.js";import"./COB2k0Aa.js";import{F as xt,a0 as wt}from"./DETS1-K4.js";import"./uAXEbxa8.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
|
|
1
|
+
import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./Dws-34a7.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./3SdAC2_C.js";import{i as j}from"./DLCFUd4s.js";import{t as ie}from"./D-rRuAXZ.js";import{c as q}from"./B5tvpTFB.js";import{n as ye,l as ze,c as $e}from"./Bc1vJq_Z.js";import{b as Ae,e as ue,f as rt}from"./BD9db4FR.js";import{i as at,h as ot,a as st}from"./C63WwVct.js";import{a_ as nt,a1 as lt,f as Ne}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./D_VvdZe2.js";import{c as mt,u as _t,s as pt,a as bt}from"./D9tVylVS.js";import{p as ht}from"./DWa-2rkZ.js";import"./gU2qspu9.js";import{b as qe}from"./Dn334wJv.js";import"./C2F2Vd1P.js";import{F as xt,a0 as wt}from"./CGYPBD6G.js";import"./BW1iql_y.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as T,bo as r,bw as W,bq as x,b as $,bs as B}from"./
|
|
1
|
+
import{t as T,bo as r,bw as W,bq as x,b as $,bs as B}from"./Dws-34a7.js";import{bs as C,cd as H,ca as S,a7 as u,ay as f,W as k,bn as q,aA as o}from"./3SdAC2_C.js";import{i as D}from"./DLCFUd4s.js";import{k as J}from"./5-0LQoqd.js";import{a as L}from"./Cj1KG0_l.js";import{dH as j}from"./SbTG0nwQ.js";import{Jx as z,h0 as E}from"./4g_iHoQm.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(v,"$workspace$",b),[b,w]=x();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=H(a());S(()=>m.set(a()));const v=j(m);var _={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>$(t,e,s)},l=u(),g=f(l);{var y=e=>{var s=u(),h=f(s);J(h,a,A=>{L(A,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(g,e=>{p()&&d()&&e(y)})}k(i,l);var I=q(_);return w(),I}export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{Jx as h,t2 as K,bt as x}from"./
|
|
1
|
+
import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{Jx as h,t2 as K,bt as x}from"./4g_iHoQm.js";import{t as C,bo as u,bw as M,bs as f,bq as A,b as D}from"./Dws-34a7.js";import{i as E}from"./DLCFUd4s.js";import{t as J}from"./C-BsEdGZ.js";import{m as O}from"./A0p6PvBn.js";import{aK as j}from"./B_4WsP9b.js";import{c as B}from"./rXKOJqUt.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===x.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function F(t,s){if(new.target)return C({component:F,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(_,"$slot$",o),[o,k]=A();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=O(),_=j(J(()=>c()));var b={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>D(s,e,y)},d=R(),g=q(d);{var v=e=>{B(e,{get slot(){return a()},get size(){return n()}})};E(g,e=>{r()&&a()!==null&&e(v)})}z(t,d);var w=I(b);return k(),w}export{F as W,V as r};
|