@intent-hq/web 2.384.1 → 2.385.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BiM95_Ol.js → 0RCk28l5.js} +1 -1
- package/web/app/immutable/chunks/{DQdjZnba.js → 0oyPeRI9.js} +1 -1
- package/web/app/immutable/chunks/{Tk34IzPH.js → 2zSj5_GV.js} +1 -1
- package/web/app/immutable/chunks/{gZ0nGq7V.js → 3VhO4Wn2.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{D59epBkG.js → 40W1U6K5.js} +1 -1
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.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/{B7eTEd5f.js → 4poQ2xKW.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/{wsPxCWV4.js → B-E_4dSm.js} +2 -2
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{BFBQinse.js → B22zVGFP.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{CQ9fljqW.js → B2XeuV1l.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{BJ1Bk8co.js → B5pL-E-o.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/{CdhlQsS3.js → B6QnBRPC.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/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{eZPmVSmq.js → B9ka1bX8.js} +2 -2
- package/web/app/immutable/chunks/{CDVdEpeY.js → BBYtaKSX.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{BMPSP6zy.js → BCLFORRd.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/{HP51nVq8.js → BGspyNwk.js} +1 -1
- package/web/app/immutable/chunks/{Cr6ukNck.js → BHEogMS0.js} +2 -2
- 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/{XzLIP4y8.js → BNX4ri6c.js} +3 -3
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{C1GvdDuD.js → BO4b6Ny-.js} +2 -2
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{DUhda8VE.js → BORk03Sd.js} +1 -1
- package/web/app/immutable/chunks/{B4T9RExk.js → BP1fPIN6.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{CQhRmQZt.js → BSWVBeG0.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/{4Pag07jF.js → BT8hDSo1.js} +1 -1
- package/web/app/immutable/chunks/{BX_Jr21Z.js → BU1Gcrkq.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{DA6dl8M4.js → BV47Ledo.js} +1 -1
- package/web/app/immutable/chunks/{CGmFuvv3.js → BVctKbNy.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/{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/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{C41iTvQS.js → BYLCAn5f.js} +1 -1
- 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/{KmGBeLVg.js → BcEkxi5l.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{DTdAlnvg.js → Bd1Doib5.js} +5 -5
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{MEhQGTPs.js → BeJRU38G.js} +3 -3
- package/web/app/immutable/chunks/{ClyQ7g2p.js → BeU-lAdJ.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/{CfE9G-Vk.js → BhD_8q1J.js} +1 -1
- package/web/app/immutable/chunks/{Cm60YBNN.js → Bhb3isek.js} +4 -4
- package/web/app/immutable/chunks/{CjsT6P1W.js → Bi-y50ry.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/{BxiKdHSR.js → BlDwsvYd.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{BbV6R15i.js → BmF8Qq3w.js} +1 -1
- package/web/app/immutable/chunks/{Bmn4uqsd.js → BoIbJp9v.js} +1 -1
- package/web/app/immutable/chunks/{D5reO2Y0.js → BpYEdDT4.js} +1 -1
- package/web/app/immutable/chunks/BsdyWfPQ.js +2 -0
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{CZDat5YW.js → Bt_vaAcw.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/{DSTc-o8X.js → BuPmvT2w.js} +1 -1
- package/web/app/immutable/chunks/{-31r5MID.js → BupDQr_B.js} +2 -2
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{eTRx_lEs.js → BvbZcfOT.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{JD0Hsmjx.js → BvzO6hxM.js} +1 -1
- package/web/app/immutable/chunks/{BACpI8G6.js → BwC--T1G.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{BMW8QkkW.js → Bwx5QwNp.js} +1 -1
- package/web/app/immutable/chunks/{B1DQbauY.js → BxU4EAMe.js} +1 -1
- package/web/app/immutable/chunks/{E92QiCEr.js → ByZMA8RF.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- 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/{Rz920YbF.js → C2Hs8n0u.js} +1 -1
- package/web/app/immutable/chunks/{Dkgk_rvZ.js → C3-81PRC.js} +4 -4
- package/web/app/immutable/chunks/{8eQog6L5.js → C3gIkQxX.js} +1 -1
- package/web/app/immutable/chunks/{BltFs6ST.js → C412Y6ti.js} +2 -2
- package/web/app/immutable/chunks/{BgPJ_lbZ.js → C4Py2-C-.js} +1 -1
- package/web/app/immutable/chunks/{CCej7AMq.js → C4UnZ5aI.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.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/{3BCyU2N-.js → CA8JHp72.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/CAtVH-rJ.js +158 -0
- 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/{DJEkkAqR.js → CDBHtmaA.js} +1 -1
- package/web/app/immutable/chunks/{CzG_0Mji.js → CE9_m5Rd.js} +1 -1
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{DvjmmZhh.js → CEfkJpk7.js} +1 -1
- 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/{DnQOpOtg.js → CIWky03S.js} +3 -3
- 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/{DtO9zNSi.js → CJNNcGWg.js} +1 -1
- package/web/app/immutable/chunks/{rjhGooNa.js → CLlFdy2p.js} +1 -1
- package/web/app/immutable/chunks/{BWM_jjc6.js → CLo9TzNK.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/{BvGyYsBI.js → COflq_3N.js} +3 -3
- 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/{BswbJQ0U.js → CPaH4fRt.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/CT9qg5pc.js +1 -0
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{CFjwzuFW.js → CVU_1O7c.js} +1 -1
- package/web/app/immutable/chunks/{C2jf24pz.js → CVs9CHtI.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{Di0D97hw.js → CWTUGfLW.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.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/{d7CFoqrB.js → Cbb4o3qj.js} +1 -1
- package/web/app/immutable/chunks/{esAd2hCU.js → CbxBZqC_.js} +1 -1
- package/web/app/immutable/chunks/{C-srtNB0.js → CdbRvoG6.js} +1 -1
- package/web/app/immutable/chunks/{BGN2EuCq.js → ClNMpui4.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{CcNZQwT1.js → Clez3uTU.js} +3 -3
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{B57eLsJv.js → Cnl_O3ZO.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/{C7OV0KqB.js → CqrCSb8W.js} +1 -1
- package/web/app/immutable/chunks/{DRg21hWl.js → Cr2Op5yp.js} +2 -2
- package/web/app/immutable/chunks/{DvdS-8it.js → Cr5QjekU.js} +1 -1
- package/web/app/immutable/chunks/{lDDdxVqt.js → CrEMns9K.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{BYIgLpGQ.js → Csh6XB2J.js} +1 -1
- package/web/app/immutable/chunks/{ZAUoxjxb.js → CsyhqW-P.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{D5i4Tktw.js → D0R3sca1.js} +1 -1
- package/web/app/immutable/chunks/{Dc7e-OgI.js → D20kqX2U.js} +2 -2
- package/web/app/immutable/chunks/{CKc3ivIh.js → D2mnZ9kC.js} +2 -2
- package/web/app/immutable/chunks/{DAUcVagO.js → D5Tu5Sg8.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{C8veqOP9.js → D8XzixBC.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DUkL2vjQ.js → DDrpCbke.js} +1 -1
- package/web/app/immutable/chunks/{BQXu3XXC.js → DEDo4DeD.js} +4 -4
- package/web/app/immutable/chunks/{CEaHYCM5.js → DErxk4N4.js} +1 -1
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{5ibcqblv.js → DGVdJiQ7.js} +1 -1
- package/web/app/immutable/chunks/{CTKlTmjI.js → DHf7N1bI.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/{Dh_uOrf0.js → DMeCi1eF.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{ClNWpSoj.js → DPY-p9P3.js} +2 -2
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{CMn1nNPl.js → DR6M_MBd.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{B80lqB7E.js → DTDtxEAk.js} +1 -1
- package/web/app/immutable/chunks/{CvCS8OAf.js → DUAtqTLU.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.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/{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/{8uGKFevW.js → DgJnzjEh.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.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/{DneGzq7o.js → DlWS0XX3.js} +1 -1
- package/web/app/immutable/chunks/{CRGZeiHP.js → DmhHa5tp.js} +1 -1
- package/web/app/immutable/chunks/{CeOHBQlu.js → Dmn1abz2.js} +1 -1
- package/web/app/immutable/chunks/{BXClhyCJ.js → DnLmeVJZ.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/DoOue2dc.js +2 -0
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{CrjK8LH9.js → DqAYkzSz.js} +1 -1
- package/web/app/immutable/chunks/{D2rdAIDv.js → DrTTxENT.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{jzrltQdi.js → DtyEiVnc.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/{qAXb8ucI.js → Dx3P5K2z.js} +1 -1
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{Cxz7a3ln.js → DxPvfI2H.js} +4 -4
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{Cj5p8V3Z.js → DyZa5hX5.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{0_OkSok2.js → GIVowYni.js} +1 -1
- package/web/app/immutable/chunks/{DM_kAcca.js → Gt7Fxn5w.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{zJz5NUAZ.js → IIW6JGdD.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{lma_Aa_Q.js → K8u-JjT9.js} +1 -1
- package/web/app/immutable/chunks/{D8mJ0i4V.js → L7Esr5Id.js} +1 -1
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{DnkGrT83.js → OrN9D77d.js} +3 -3
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.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/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{P9PnSQNh.js → Z9NyJp9w.js} +3 -3
- package/web/app/immutable/chunks/{D_DdTIu0.js → ZRNKCUqe.js} +47 -47
- package/web/app/immutable/chunks/{IjcPbG76.js → _2VCBG9z.js} +1 -1
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BtBv0U_D.js → d8NijX_Z.js} +2 -2
- 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/{ByNdLM3c.js → e9nNeD_8.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{Bk1CZ_aH.js → hNQ1u1TD.js} +1 -1
- package/web/app/immutable/chunks/{BegKMnH4.js → hYcAQyax.js} +1 -1
- package/web/app/immutable/chunks/{gIt--5se.js → i0UHQwRY.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.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/{evy8DaDH.js → rEslErv9.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/{Ue4xifLs.js → sOF-qTei.js} +1 -1
- 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/{BkUPUOzV.js → tuKjkgzS.js} +1 -1
- package/web/app/immutable/chunks/{CZ56JG-R.js → v3_7O0A0.js} +1 -1
- package/web/app/immutable/chunks/{DVuQpyKc.js → vdylZNCS.js} +1 -1
- package/web/app/immutable/chunks/{BHXs-6um.js → vyUklWDK.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.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.BN9LppoE.js → app.DEnhhDc1.js} +3 -3
- package/web/app/immutable/entry/start.Cmawmwgw.js +1 -0
- package/web/app/immutable/nodes/{0.DuuUT7lf.js → 0.DLkagS9u.js} +1 -1
- package/web/app/immutable/nodes/{1.CuKU_s85.js → 1.ChB9puqR.js} +1 -1
- package/web/app/immutable/nodes/10.B3YEuSxS.js +39 -0
- package/web/app/immutable/nodes/{11.DswJjpxi.js → 11.rgOqEz2U.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.CDuV6cP7.js → 15.CgSxPoXZ.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.DvjAcoWG.js → 19.DS0Anfm0.js} +2 -2
- package/web/app/immutable/nodes/{2.r_yCTdWa.js → 2.BB55cMHs.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.BzmP3XDj.js → 3.B1suR6zI.js} +1 -1
- package/web/app/immutable/nodes/{4.BPX7a1xw.js → 4.BdkLcCps.js} +1 -1
- package/web/app/immutable/nodes/{5.CbH1sau-.js → 5.DlFTrLdG.js} +1 -1
- package/web/app/immutable/nodes/{6.DXN3u4yU.js → 6.EdJoOCRv.js} +1 -1
- package/web/app/immutable/nodes/{7.BAFpN-hf.js → 7.iPBOmxFo.js} +1 -1
- package/web/app/immutable/nodes/{8.COZNLTaW.js → 8.BRpg5Nn-.js} +1 -1
- package/web/app/immutable/nodes/9.CeyWcdBf.js +14 -0
- 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/0vzGySSF.js +0 -1
- package/web/app/immutable/chunks/4rRlR2tp.js +0 -2
- package/web/app/immutable/chunks/BV8D9pH6.js +0 -158
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/XS67_4Nj.js +0 -2
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.Dyk9KswN.js +0 -1
- package/web/app/immutable/nodes/10.DkGJji_v.js +0 -39
- package/web/app/immutable/nodes/9.VZM4RxD5.js +0 -14
|
@@ -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"./-31r5MID.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"./CKc3ivIh.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"./BupDQr_B.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"./D2mnZ9kC.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{l as t}from"./
|
|
1
|
+
import{l as t}from"./7y3Z0Q49.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./3SdAC2_C.js";import{B as R}from"./
|
|
1
|
+
import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./3SdAC2_C.js";import{B as R}from"./Dws-34a7.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as o,bc as d}from"./
|
|
1
|
+
import{Jx as o,bc as d}from"./4g_iHoQm.js";const f=o.createSelector((t,r)=>t.uiHighlight.activeById[r.trim()]??0),m=o.createSelector((t,r)=>t.uiHighlight.durationMsById[r.trim()]),n="ui-highlight-pulse-ring";function u(t){return(t??"").trim()}function T(t,r={}){let s=u(r.id??t.dataset.highlightId),a=0,l;function c(){t.classList.remove(n)}function g(e){t.classList.remove(n),t.offsetWidth,t.classList.add(n),l&&clearTimeout(l),l=setTimeout(c,e??d)}function h(){if(!s)return;let e;try{e=o.state}catch{return}const i=f.select(e,s);i>0&&i!==a&&(a=i,g(m.select(e,s)))}const I=setInterval(h,100);return h(),{update(e={}){const i=u(e.id??t.dataset.highlightId);i!==s&&(s=i,a=0,c(),h())},destroy(){clearInterval(I),l&&clearTimeout(l),c()}}}export{T as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./i0UHQwRY.js";import{s as ce}from"./CqrCSb8W.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./DxPvfI2H.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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),o.length-1&&(this.yylineno-=o.length-1);var f=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./
|
|
1
|
+
import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./Dws-34a7.js";import{bs as xe,aD as a,a5 as H,bA as N,b_ as M,W as w,bn as Be,c9 as z,bH as m,aA as s,aB as ke,bV as A,bf as Oe,bS as ge,be as ye,b$ as ve,bO as _e,ca as Ze,a7 as V,ay as T}from"./3SdAC2_C.js";import{i as he}from"./DLCFUd4s.js";import{t as R}from"./D-rRuAXZ.js";import{c as Ae}from"./B5tvpTFB.js";import{a_ as $e,aa as et,f as De}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{O as tt}from"./D_VvdZe2.js";import{a as rt,D as st}from"./CrsbEWnE.js";import{b as nt,e as Ke,s as Pe,c as at,f as ot}from"./BD9db4FR.js";import"./gU2qspu9.js";import{e as it}from"./DWa-2rkZ.js";import{b as ut}from"./Dn334wJv.js";import{i as lt}from"./CC7to1B5.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";var ct=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),ft=ke('<form><fieldset class="contents"><!></fieldset></form>');function ze(K,t){if(new.target)return Ce({component:ze,...K});xe(t,!0);let l=r(t,"children",7),d=r(t,"onSubmit",7),b=r(t,"busy",7,!1),f=r(t,"enterKey",7,"submit"),g=r(t,"modEnter",7,"submit"),h=r(t,"class",7),L=Ye(t,ct),i,y=A(!1);const v=z(()=>b()||a(y));async function E(n){if(n.preventDefault(),!a(v)){m(y,!0);try{await d()(n)}finally{m(y,!1)}}}function S(n){if(n.key!=="Enter"||n.isComposing||n.defaultPrevented||a(v))return;const _=n.target,x=lt(_),D=_.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(D&&i.contains(D)||_ instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(_.type))return;const k=n.metaKey||n.ctrlKey;(k?g()==="submit":!x&&f()==="submit")?(n.preventDefault(),i.requestSubmit()):(!x||k)&&n.preventDefault()}var p={get children(){return l()},set children(n){l(n),s()},get onSubmit(){return d()},set onSubmit(n){d(n),s()},get busy(){return b()},set busy(n=!1){b(n),s()},get enterKey(){return f()},set enterKey(n="submit"){f(n),s()},get modEnter(){return g()},set modEnter(n="submit"){g(n),s()},get class(){return h()},set class(n){h(n),s()},$set:we,$on:(n,_)=>Se(t,n,_)},u=ft();nt(u,n=>({"data-slot":"form","aria-busy":a(v)||void 0,class:n,onsubmit:E,onkeydown:S,...L}),[()=>Ke("grid gap-4",h())]);var C=H(u),o=H(C);return R(o,l),N(C),N(u),ut(u,n=>i=n,()=>i),M(()=>{C.disabled=a(v),Pe(C,"aria-busy",a(v)||void 0)}),w(K,u),Be(p)}var mt=ke('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Ve(K,t){if(new.target)return Ce({component:Ve,...K});xe(t,!0);let l=r(t,"destructive",7),d=r(t,"secondary",7),b=r(t,"primary",7),f=r(t,"hint",7),g=r(t,"class",7);const h=$e();var L={get destructive(){return l()},set destructive(o){l(o),s()},get secondary(){return d()},set secondary(o){d(o),s()},get primary(){return b()},set primary(o){b(o),s()},get hint(){return f()},set hint(o){f(o),s()},get class(){return g()},set class(o){g(o),s()},$set:we,$on:(o,n)=>Se(t,o,n)},i=mt(),y=H(i),v=H(y);R(v,()=>l()??Oe),N(y);var E=ge(y,2),S=H(E);{var p=o=>{et(o,{children:(n,_)=>{ye();var x=ve();M(()=>_e(x,f())),w(n,x)},$$slots:{default:!0}})};he(S,o=>{f()&&o(p)})}var u=ge(S,2);R(u,()=>d()??Oe);var C=ge(u,2);return R(C,b),N(E),N(i),M(o=>{Pe(i,"data-size",h),ot(i,1,o)},[()=>at(Ke("flex items-center justify-between",h==="compact"?"gap-2":"gap-3",g()))]),w(K,i),Be(L)}function dt(K,t){if(new.target)return Ce({component:dt,...K});xe(t,!0);let l=r(t,"open",15,!1),d=r(t,"static",7,!1),b=r(t,"title",7),f=r(t,"description",7),g=r(t,"titleId",7),h=r(t,"descriptionId",7),L=r(t,"children",7),i=r(t,"footer",7),y=r(t,"submitLabel",23,()=>O.modals_bulkActionConfirm_confirm_label()),v=r(t,"cancelLabel",23,()=>O.modals_bulkActionConfirm_cancel_label()),E=r(t,"submitVariant",7,"primary"),S=r(t,"canSubmit",7,!0),p=r(t,"busy",7,!1),u=r(t,"submitBusy",7,!1),C=r(t,"role",7,"dialog"),o=r(t,"dismissOnInteractOutside",7,!0),n=r(t,"showCancel",7,!0),_=r(t,"showCloseButton",7,!0),x=r(t,"closeLabel",23,()=>O.ui_dialog_close_ariaLabel()),D=r(t,"class",7),k=r(t,"size",7,"default"),j=r(t,"initialFocus",7),X=r(t,"focusContent",7,!1),q=r(t,"focusSubmit",7,!1),Y=r(t,"focusCancel",7,!1),W=r(t,"escapeKeydownBehavior",7,"close"),Z=r(t,"enterKey",7,"submit"),$=r(t,"modEnter",7,"submit"),ee=r(t,"onfocusin",7),te=r(t,"onCloseAutoFocus",7),re=r(t,"onSubmit",7),se=r(t,"onCancel",7),ne=A(!1),G=A(""),ae=A(!1),J=A(null),oe=A(null),ie=A(null);const B=z(()=>p()||a(ne));Ze(()=>{l()&&(m(ae,!1),m(G,""))});function ue(){a(B)||a(ae)||(m(ae,!0),l(!1),se()?.())}async function Te(){if(!(a(B)||u()||!S())){m(ne,!0),m(G,"");try{await re()()}catch{m(G,O.ui_dialog_submitFailed_error(),!0)}finally{m(ne,!1)}}}function He(e){const F=j()??(Y()?a(oe):q()?a(ie):X()?a(J):null);F&&(F.focus(),F.ownerDocument.activeElement===F&&e.preventDefault())}var Ne={get open(){return l()},set open(e=!1){l(e),s()},get static(){return d()},set static(e=!1){d(e),s()},get title(){return b()},set title(e){b(e),s()},get description(){return f()},set description(e){f(e),s()},get titleId(){return g()},set titleId(e){g(e),s()},get descriptionId(){return h()},set descriptionId(e){h(e),s()},get children(){return L()},set children(e){L(e),s()},get footer(){return i()},set footer(e){i(e),s()},get submitLabel(){return y()},set submitLabel(e=O.modals_bulkActionConfirm_confirm_label()){y(e),s()},get cancelLabel(){return v()},set cancelLabel(e=O.modals_bulkActionConfirm_cancel_label()){v(e),s()},get submitVariant(){return E()},set submitVariant(e="primary"){E(e),s()},get canSubmit(){return S()},set canSubmit(e=!0){S(e),s()},get busy(){return p()},set busy(e=!1){p(e),s()},get submitBusy(){return u()},set submitBusy(e=!1){u(e),s()},get role(){return C()},set role(e="dialog"){C(e),s()},get dismissOnInteractOutside(){return o()},set dismissOnInteractOutside(e=!0){o(e),s()},get showCancel(){return n()},set showCancel(e=!0){n(e),s()},get showCloseButton(){return _()},set showCloseButton(e=!0){_(e),s()},get closeLabel(){return x()},set closeLabel(e=O.ui_dialog_close_ariaLabel()){x(e),s()},get class(){return D()},set class(e){D(e),s()},get size(){return k()},set size(e="default"){k(e),s()},get initialFocus(){return j()},set initialFocus(e){j(e),s()},get focusContent(){return X()},set focusContent(e=!1){X(e),s()},get focusSubmit(){return q()},set focusSubmit(e=!1){q(e),s()},get focusCancel(){return Y()},set focusCancel(e=!1){Y(e),s()},get escapeKeydownBehavior(){return W()},set escapeKeydownBehavior(e="close"){W(e),s()},get enterKey(){return Z()},set enterKey(e="submit"){Z(e),s()},get modEnter(){return $()},set modEnter(e="submit"){$(e),s()},get onfocusin(){return ee()},set onfocusin(e){ee(e),s()},get onCloseAutoFocus(){return te()},set onCloseAutoFocus(e){te(e),s()},get onSubmit(){return re()},set onSubmit(e){re(e),s()},get onCancel(){return se()},set onCancel(e){se(e),s()},$set:we,$on:(e,F)=>Se(t,e,F)},Ee=V(),Re=T(Ee);return Ae(Re,()=>tt,(e,F)=>{F(e,{get open(){return l()},get staticPosition(){return d()},onOpenChange:le=>!le&&ue(),children:(le,bt)=>{var Fe=V(),Me=T(Fe);{let je=z(()=>Ke("flex min-h-0 flex-col overflow-hidden p-0",D()));Ae(Me,()=>rt,(qe,We)=>{We(qe,{get role(){return C()},get size(){return k()},get class(){return a(je)},get closeDisabled(){return a(B)},get showCloseButton(){return _()},get closeLabel(){return x()},get escapeKeydownBehavior(){return W()},onOpenAutoFocus:He,get onCloseAutoFocus(){return te()},get onfocusin(){return ee()},onkeydown:c=>{c.key==="Escape"&&it(a(J),c)||c.key==="Escape"&&W()==="close"&&(c.preventDefault(),c.stopPropagation(),ue())},onInteractOutside:c=>(a(B)||!o())&&c.preventDefault(),onEscapeKeydown:c=>a(B)&&c.preventDefault(),get ref(){return a(J)},set ref(c){m(J,c,!0)},children:(c,gt)=>{ze(c,{onSubmit:Te,get busy(){return a(B)},get enterKey(){return Z()},get modEnter(){return $()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Ge,yt)=>{st(Ge,{get title(){return b()},get description(){return f()},get titleId(){return g()},get descriptionId(){return h()},get children(){return L()},get error(){return a(G)},footer:Je=>{var Le=V(),Qe=T(Le);{var Ue=P=>{var ce=V(),pe=T(ce);R(pe,i),w(P,ce)},Xe=P=>{Ve(P,{secondary:fe=>{var Q=V(),me=T(Q);{var de=I=>{De(I,{variant:"ghost-light",get disabled(){return a(B)},onclick:ue,get ref(){return a(oe)},set ref(U){m(oe,U,!0)},children:(U,be)=>{ye();var Ie=ve();M(()=>_e(Ie,v())),w(U,Ie)},$$slots:{default:!0}})};he(me,I=>{n()&&I(de)})}w(fe,Q)},primary:fe=>{{let Q=z(()=>q()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),me=z(()=>a(B)||u()),de=z(()=>!S()||a(B)||u());De(fe,{type:"submit",get variant(){return E()},get class(){return a(Q)},get loading(){return a(me)},get disabled(){return a(de)},get ref(){return a(ie)},set ref(I){m(ie,I,!0)},children:(I,U)=>{ye();var be=ve();M(()=>_e(be,y())),w(I,be)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};he(Qe,P=>{i()?P(Ue):P(Xe,-1)})}w(Je,Le)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}w(le,Fe)},$$slots:{default:!0}})}),w(K,Ee),Be(Ne)}export{ze as F,Ve as a,dt as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Jx as n,mA as o,nZ as u,ia as W,nV as k,nO as P,o5 as b,ih as S,s2 as h,vX as y}from"./
|
|
1
|
+
import{Jx as n,mA as o,nZ as u,ia as W,nV as k,nO as P,o5 as b,ih as S,s2 as h,vX as y}from"./4g_iHoQm.js";function L(e,t){return t?JSON.stringify(["git-root",t,e]):e}const p=[];function v(e){return!!e&&e!=="new"&&!e.startsWith("optimistic-")&&e!=="undefined"}const j=n.createSelector((e,t)=>e.panelLayout.byWorkspaceId[t]??o),A=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).pendingPanelReveal??null),f={count:0,isOpen:!1,isActive:!1,isOpenElsewhere:!1};function R(e,t,a,s){if(s.workspaceId&&s.workspaceId!==a)return f;const c=s,r=e.filter(l=>(!l.workspaceId||l.workspaceId===a)&&y(l,c));if(r.length===0)return f;const d=!!t&&(!t.workspaceId||t.workspaceId===a)&&y(t,c);return{count:r.length,isOpen:!0,isActive:d,isOpenElsewhere:!d}}const E=n.createSelector(e=>e.panelLayout.byWorkspaceId),F=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).root),x=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).expandedPanelId),H=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).panels),M=n.createSelector((e,t,a)=>(e.panelLayout.byWorkspaceId[t]??o).panels[a]),q=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).focusedPanelId),$=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return a.focusedPanelId?a.panels[a.focusedPanelId]:void 0});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=a.focusedPanelId,c=s?a.panels[s]:void 0;return[t,{panelId:c?s:null,activeTabId:c?.activeTabId??null}]})));const B=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).restoreStatus),z=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;if(!a.focusedPanelId)return;const s=a.panels[a.focusedPanelId];if(!(!s||!s.activeTabId))return s.tabs.find(c=>c.id===s.activeTabId)}),D=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;for(let s=a.focusHistory.length-1;s>=0;s-=1){const c=a.focusHistory[s],r=a.panels[c.panelId]?.tabs.find(d=>d.id===c.tabId);if(r?.type==="agent")return r}}),V=n.createSelector((e,t,a)=>{const c=(e.panelLayout.byWorkspaceId[t]??o).panels[a];if(!(!c||!c.activeTabId))return c.tabs.find(r=>r.id===c.activeTabId)}),J=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return Object.values(a.panels).flatMap(s=>s.tabs)}),N=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.hiddenTabs??o.hiddenTabs)});function m(e){const t=[];for(const a of Object.values(e.panels))for(const s of a.tabs)s.type==="browser"&&t.push({tab:s,visibility:"visible",displayed:a.activeTabId===s.id});for(const a of u(e.hiddenTabs??o.hiddenTabs))a.type==="browser"&&t.push({tab:a,visibility:"hidden",displayed:!1});return t}const C=n.createSelector((e,t)=>{const a=e?.panelLayout?.byWorkspaceId[t]??o;return m(a).length>0}),K=n.createSelector(e=>Object.keys(e.panelLayout.byWorkspaceId).filter(t=>C.select(e,t)));n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=Object.values(a.panels).some(c=>c.tabs.length>0);return[t,s?W(a.root):0]})));const X=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return k(a.root,a.panels)});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.canvasWidth??P(a.root,a.panels,"content")])));const Z=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidth),G=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidthSource),Q=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).columnCount);n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.restoreStatus])));const U=n.createSelector((e,t,a=!1)=>{if(!v(t))return p;const s=e.panelLayout.byWorkspaceId[t],c=e.files.byWorkspaceId[t];if(!c)return p;if(!s)return a?[...c.files.ids].sort((l,i)=>l.localeCompare(i)):p;const r=new Set;for(const l of Object.values(s.panels))for(const i of l.tabs)i.type==="file"&&typeof i.filePath=="string"&&i.filePath.length>0&&r.add(L(i.filePath,typeof i.data?.gitRootId=="string"?i.data.gitRootId:void 0));const d=[];for(const l of c.files.ids)r.has(l)||d.push(l);return d.length===0?p:(d.sort((l,i)=>l.localeCompare(i)),d)}),Y=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.root)});function I(e){return b(e.root).flatMap(t=>{const a=e.panels[t];return a?[{panelId:t,panes:a.tabs,activePaneId:a.activeTabId,attentionPaneIds:a.attentionTabIds??[]}]:[]})}const _=n.createSelector((e,t)=>I(e.panelLayout.byWorkspaceId[t]??o));n.createSelector((e,t,a)=>I(e.panelLayout.byWorkspaceId[t]??o).find(s=>s.panelId===a));function T(e){return b(e.root).flatMap(t=>{const a=e.panels[t];if(!a)return[];const c=a.tabs.find(r=>r.id===a.activeTabId)??a.tabs[0];return[{id:t,title:c?.title??"",type:c?.type}]})}n.createSelector((e,t)=>T(e.panelLayout.byWorkspaceId[t]??o));const w=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).recentlyClosed),g=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.recentlyClosedColumns??S("historyId")).find(s=>h(a,s))??null}),ee=n.createSelector((e,t)=>{const a=w.select(e,t)[0]??null,s=g.select(e,t);return s&&(!a||s.closedAt>=a.closedAt)?{kind:"column",closedAt:s.closedAt}:a?{kind:"tab",closedAt:a.closedAt}:null}),te=n.createSelector(e=>Object.entries(e.panelLayout.byWorkspaceId).flatMap(([t,a])=>a.tabWindowFocusRequest?[`${t}\0${a.tabWindowFocusRequest.seq}\0${a.tabWindowFocusRequest.tabWindowId}`]:[]).join(`
|
|
2
2
|
`)),ae=n.createSelector(e=>Object.entries(e.panelLayout.byWorkspaceId).flatMap(([t,a])=>a.restoreStatus==="restored"?u(a.hiddenTabs??o.hiddenTabs).filter(s=>s.tabWindowId).map(s=>`${t}\0${s.id}`):[]).join(`
|
|
3
3
|
`));export{w as A,B,ae as C,te as D,C as E,V as a,J as b,m as c,K as d,x as e,L as f,R as g,U as h,$ as i,q as j,N as k,ee as l,D as m,M as n,Z as o,G as p,Q as q,X as r,z as s,_ as t,Y as u,F as v,j as w,E as x,H as y,A as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as a,k as t}from"./
|
|
1
|
+
import{f as a,k as t}from"./D-rRuAXZ.js";const{formatNumber:o,formatInteger:e,formatCompactNumber:m,formatCurrency:s,formatBytesBinary:f,formatRelativeTime:i,formatCompactRelativeTime:c,formatCompactDuration:n,formatSalientDuration:D,formatTime:l,formatDate:p,formatShortDate:u,formatDateTime:T,formatFullDateTime:y,formatDaySeparator:C,formatDistanceToNow:b,formatDatePattern:g}=a(t);export{n as a,m as b,c,s as d,p as e,f,g,T as h,C as i,b as j,y as k,e as l,o as m,i as n,D as o,u as p,l as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jx as o,mi as C,nY as E,nB as L,JC as W}from"./
|
|
1
|
+
import{Jx as o,mi as C,nY as E,nB as L,JC as W}from"./4g_iHoQm.js";import{w as z}from"./Dms_DO28.js";import{dH as H,dL as f}from"./SbTG0nwQ.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),G=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),J=o.createSelector((t,e)=>a.select(t,e).nodes.map),M=o.createSelector((t,e)=>a.select(t,e).isLoading),R=o.createSelector((t,e)=>a.select(t,e).isInitialized),q=o.createSelector((t,e)=>a.select(t,e).error),K=o.createSelector((t,e)=>a.select(t,e).fileCount),O=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),V=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const Y=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),A=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:x}=s,S=new Set;for(const r of Object.keys(x)){const i=r.split("/");for(let l=1;l<i.length;l++)S.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?x[i]:void 0,h=!l&&S.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{q as a,K as b,O as c,V as d,R as e,M as f,J as g,G as h,D as i,a as j,U as k,Q as l,Y as m,A as n,T as o,g as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as Z}from"./hY0rMePc.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./Cxz7a3ln.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./esAd2hCU.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CbxBZqC_.js","/app/immutable/chunks/DxPvfI2H.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CA8JHp72.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/BupDQr_B.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/B-E_4dSm.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/B5pL-E-o.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/jBG7W4tL.js","/app/immutable/chunks/D_VvdZe2.js","/app/immutable/chunks/C63WwVct.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/C2F2Vd1P.js","/app/immutable/chunks/CrsbEWnE.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DWa-2rkZ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/gU2qspu9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BW1iql_y.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DSiGyv9Y.js","/app/immutable/chunks/C_SKcJv7.js","/app/immutable/chunks/BNa9zzEx.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/Do2KlQU0.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BLKFshyr.js","/app/immutable/chunks/D2mnZ9kC.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/h8JtxU_T.js","/app/immutable/chunks/B_75gRww.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Z}from"./Dws-34a7.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./DxPvfI2H.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./CbxBZqC_.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./BeU-lAdJ.js";import{p as f}from"./CPaH4fRt.js";import{b as a,ay as o}from"./DxPvfI2H.js";import{M as c,c as d}from"./BgDnzAo4.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
|