@intent-hq/web 2.348.0 → 2.349.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{D9ypzy3_.js → -1WDZF8N.js} +2 -2
- package/web/app/immutable/chunks/{0Vx84DUP.js → -QpofkRx.js} +25 -25
- package/web/app/immutable/chunks/{BcqStwzo.js → 0GoAT2dR.js} +1 -1
- package/web/app/immutable/chunks/{Cn_Rbwyb.js → 0Ys9jF9i.js} +1 -1
- package/web/app/immutable/chunks/{hW3N4eWd.js → 5SqYTp29.js} +1 -1
- package/web/app/immutable/chunks/{gd66hMGv.js → 5eZIrph_.js} +1 -1
- package/web/app/immutable/chunks/{BILCfAeY.js → 5oAr1srr.js} +1 -1
- package/web/app/immutable/chunks/{BnbzkcOJ.js → 63MZi8_J.js} +1 -1
- package/web/app/immutable/chunks/{B0wbZnxi.js → 6px6q2WX.js} +1 -1
- package/web/app/immutable/chunks/{De4CKtf6.js → 6uyelIKx.js} +1 -1
- package/web/app/immutable/chunks/{Tx7lrkZd.js → 749Ye7vh.js} +1 -1
- package/web/app/immutable/chunks/{BgQrVLPV.js → 8XTh8Ptp.js} +4 -4
- package/web/app/immutable/chunks/{MSmU5tc0.js → 8j0kVkRN.js} +4 -4
- package/web/app/immutable/chunks/{3Y6lb7OZ.js → 9JxbPwvl.js} +1 -1
- package/web/app/immutable/chunks/{CIvmWNlW.js → 9YwuUfsE.js} +1 -1
- package/web/app/immutable/chunks/{DNhivPW8.js → B0E92Ur8.js} +1 -1
- package/web/app/immutable/chunks/{Bqhh4FH7.js → B1Q0_YBy.js} +1 -1
- package/web/app/immutable/chunks/{mSFHDc3j.js → B28teA2c.js} +1 -1
- package/web/app/immutable/chunks/{CBiHrObN.js → B3RsHzWp.js} +1 -1
- package/web/app/immutable/chunks/{Cy-Gmjfw.js → B3SGnWra.js} +1 -1
- package/web/app/immutable/chunks/{Bbk1k0zD.js → B5G4SPkG.js} +1 -1
- package/web/app/immutable/chunks/{D10dSkvY.js → B5H_NPK0.js} +1 -1
- package/web/app/immutable/chunks/{KmtLXugw.js → B7MNPtN6.js} +1 -1
- package/web/app/immutable/chunks/{BkbXY6dY.js → B7l4atYS.js} +1 -1
- package/web/app/immutable/chunks/{COcWmgqo.js → B7lF313M.js} +1 -1
- package/web/app/immutable/chunks/B8EGWXN0.js +2 -0
- package/web/app/immutable/chunks/{DZjCsshe.js → B8O1d-ta.js} +1 -1
- package/web/app/immutable/chunks/{DIaPAOHO.js → B9CbdVRS.js} +1 -1
- package/web/app/immutable/chunks/{Fz0URFlj.js → B9O5QYHa.js} +1 -1
- package/web/app/immutable/chunks/{DDR5ATRf.js → B9hnPU_k.js} +1 -1
- package/web/app/immutable/chunks/{B69VjfVW.js → BFU2DTxE.js} +1 -1
- package/web/app/immutable/chunks/{CGw07Xyz.js → BFllbeCZ.js} +1 -1
- package/web/app/immutable/chunks/{BMZTgpKM.js → BGAqL5Hu.js} +4 -4
- package/web/app/immutable/chunks/{CMgf2JhK.js → BHqqRyT8.js} +1 -1
- package/web/app/immutable/chunks/{BzW_8cyh.js → BHu-B5kJ.js} +1 -1
- package/web/app/immutable/chunks/{CoHCPcUH.js → BJHGBcTU.js} +1 -1
- package/web/app/immutable/chunks/{BB2E6zUl.js → BJlw6wnz.js} +1 -1
- package/web/app/immutable/chunks/{CMlQo89-.js → BKZq4PO0.js} +1 -1
- package/web/app/immutable/chunks/BKdLSL00.js +1 -0
- package/web/app/immutable/chunks/{Cw6V9axU.js → BM4kpWSY.js} +1 -1
- package/web/app/immutable/chunks/{COEzShcb.js → BMQAui7e.js} +2 -2
- package/web/app/immutable/chunks/{BRxcN_af.js → BMbB6G4j.js} +1 -1
- package/web/app/immutable/chunks/{CjlaSeGJ.js → BNGt0CxC.js} +1 -1
- package/web/app/immutable/chunks/{wm0Oy5pp.js → BNodOXul.js} +1 -1
- package/web/app/immutable/chunks/{DbqjhTxc.js → BPY5RY-8.js} +1 -1
- package/web/app/immutable/chunks/{BW9zIwc0.js → BRrfv23s.js} +2 -2
- package/web/app/immutable/chunks/{DsM8cZvP.js → BTHEWI_S.js} +1 -1
- package/web/app/immutable/chunks/{C-gBprWE.js → BTUvce_V.js} +3 -3
- package/web/app/immutable/chunks/{C4rFO2Hf.js → BaJNSnZt.js} +1 -1
- package/web/app/immutable/chunks/{CEw_Ojs2.js → BaV_HcgG.js} +1 -1
- package/web/app/immutable/chunks/{DlZTlvi9.js → BbjKLyar.js} +1 -1
- package/web/app/immutable/chunks/{0KTgJhJS.js → Bc-78-e9.js} +2 -2
- package/web/app/immutable/chunks/{-dJluFvm.js → BcDnMnye.js} +1 -1
- package/web/app/immutable/chunks/{CDPO_wX9.js → Bcs0F47q.js} +1 -1
- package/web/app/immutable/chunks/{7Kg0aRC7.js → BdArbG4I.js} +1 -1
- package/web/app/immutable/chunks/{Bi9J7ZWc.js → BdRSK1yL.js} +1 -1
- package/web/app/immutable/chunks/{DDLB_hVd.js → BdyAQuf8.js} +1 -1
- package/web/app/immutable/chunks/{CWKqJsJy.js → BgUSjvxc.js} +1 -1
- package/web/app/immutable/chunks/{D8a7_5Ny.js → BhFOH57c.js} +1 -1
- package/web/app/immutable/chunks/{8-qXyFVf.js → BhIO_xHl.js} +1 -1
- package/web/app/immutable/chunks/{B_82dd46.js → Bhi7nqvj.js} +1 -1
- package/web/app/immutable/chunks/{BWBs_VhF.js → BiNDusYZ.js} +1 -1
- package/web/app/immutable/chunks/{Be5MJLTH.js → BigHY9es.js} +1 -1
- package/web/app/immutable/chunks/{CsKSizCz.js → BjFyT_W2.js} +1 -1
- package/web/app/immutable/chunks/{4juZDnmT.js → Bkf7F_Qx.js} +1 -1
- package/web/app/immutable/chunks/{Bo8Vb7mw.js → BmagX6n5.js} +1 -1
- package/web/app/immutable/chunks/BnJDHHUb.js +1 -0
- package/web/app/immutable/chunks/{C8aWNHHq.js → BnrJBpBN.js} +2 -2
- package/web/app/immutable/chunks/{BcAaHHj_.js → BnwhVBNM.js} +1 -1
- package/web/app/immutable/chunks/{DPiwgBxV.js → BpDC3EqX.js} +1 -1
- package/web/app/immutable/chunks/{CY_11EtD.js → BpftDedA.js} +1 -1
- package/web/app/immutable/chunks/{DMhC9LKs.js → BqgkenX2.js} +1 -1
- package/web/app/immutable/chunks/{DR_T7fiX.js → Bre3E0ap.js} +1 -1
- package/web/app/immutable/chunks/{BgfkhG1x.js → Bs3EnmGR.js} +1 -1
- package/web/app/immutable/chunks/{IYJiuR5Y.js → Bu9v967D.js} +1 -1
- package/web/app/immutable/chunks/{CZuVFY9F.js → BvoDzKGD.js} +1 -1
- package/web/app/immutable/chunks/{CcJbyRBU.js → Bw5h0b4B.js} +1 -1
- package/web/app/immutable/chunks/{CHK9comt.js → BwYW1dkK.js} +1 -1
- package/web/app/immutable/chunks/{ADSB-roI.js → By_us5QF.js} +1 -1
- package/web/app/immutable/chunks/{CXAeontZ.js → BzJ6PuN9.js} +1 -1
- package/web/app/immutable/chunks/{Djp1SSHW.js → BzWpnIKh.js} +3 -3
- package/web/app/immutable/chunks/{BZMcByQ2.js → C-enyvpk.js} +1 -1
- package/web/app/immutable/chunks/{CIjm5Ho8.js → C0u2gry7.js} +1 -1
- package/web/app/immutable/chunks/{Cy8AeYBK.js → C17Klvq4.js} +1 -1
- package/web/app/immutable/chunks/{DHO9Wxu6.js → C20jcbNk.js} +1 -1
- package/web/app/immutable/chunks/{DhiahJsn.js → C3n2Uabc.js} +1 -1
- package/web/app/immutable/chunks/{BJx6o7Ck.js → C4SwxIDn.js} +1 -1
- package/web/app/immutable/chunks/{hwOnI0Qg.js → C7Wb4_Fy.js} +1 -1
- package/web/app/immutable/chunks/{B5o_1DGD.js → C9qO9uPq.js} +1 -1
- package/web/app/immutable/chunks/{CpXOs3du.js → CA0nf0gO.js} +1 -1
- package/web/app/immutable/chunks/{BfuGl5Yh.js → CAKCzVLn.js} +1 -1
- package/web/app/immutable/chunks/{Dl2IplSW.js → CCoYF4yh.js} +1 -1
- package/web/app/immutable/chunks/{CojufscG.js → CDRTbTrl.js} +1 -1
- package/web/app/immutable/chunks/{CxHceMFQ.js → CEvdwZkh.js} +1 -1
- package/web/app/immutable/chunks/{Btz71F4v.js → CFAFichO.js} +1 -1
- package/web/app/immutable/chunks/{fZqCaChB.js → CHJZj-fd.js} +1 -1
- package/web/app/immutable/chunks/{T5gyQ5hy.js → CHdwonoT.js} +1 -1
- package/web/app/immutable/chunks/{C8vhldb0.js → CI2ZJeGm.js} +1 -1
- package/web/app/immutable/chunks/{DGD-U5Bo.js → CJyP11U5.js} +1 -1
- package/web/app/immutable/chunks/{kVzVNgmU.js → CLd6HNgr.js} +2 -2
- package/web/app/immutable/chunks/{DTMC7Bz7.js → CM7GBUHK.js} +1 -1
- package/web/app/immutable/chunks/{CDkIMW0_.js → CMEHU8hk.js} +1 -1
- package/web/app/immutable/chunks/CMd41Hnh.js +408 -0
- package/web/app/immutable/chunks/{DEfRWwmu.js → CN_zBCnB.js} +4 -4
- package/web/app/immutable/chunks/{Bi4olNhp.js → CO9-9ia5.js} +1 -1
- package/web/app/immutable/chunks/{ClNwh2X4.js → CQnuk5Vr.js} +1 -1
- package/web/app/immutable/chunks/{BfyBZYmK.js → CRNEQjon.js} +1 -1
- package/web/app/immutable/chunks/{CMXGjuKe.js → CSHUdNXY.js} +1 -1
- package/web/app/immutable/chunks/CT36W95j.js +1 -0
- package/web/app/immutable/chunks/{D6_UiQP2.js → CTBZsDJn.js} +1 -1
- package/web/app/immutable/chunks/CTY09YkT.js +1 -0
- package/web/app/immutable/chunks/{DEit52eN.js → CUyvQglq.js} +1 -1
- package/web/app/immutable/chunks/{CDbqbXk4.js → CVXiMOvb.js} +1 -1
- package/web/app/immutable/chunks/{hSO5HDzm.js → CVc3afbh.js} +3 -3
- package/web/app/immutable/chunks/{JyTruf69.js → CX0FMql8.js} +1 -1
- package/web/app/immutable/chunks/{tbq-oxb3.js → CZ2C0Bw1.js} +1 -1
- package/web/app/immutable/chunks/{DWZFevW5.js → C_p41hnk.js} +1 -1
- package/web/app/immutable/chunks/{CP9eXkGz.js → CaQqYus5.js} +1 -1
- package/web/app/immutable/chunks/{CS9rwHkY.js → Cayy-ftZ.js} +1 -1
- package/web/app/immutable/chunks/{E3Zijj0F.js → CcBfSx3w.js} +1 -1
- package/web/app/immutable/chunks/{4pmevG3-.js → CcWSFJ-V.js} +1 -1
- package/web/app/immutable/chunks/{BzfZfCQf.js → Ce3Ams7F.js} +1 -1
- package/web/app/immutable/chunks/{BB12pUFu.js → CgDK6J9C.js} +1 -1
- package/web/app/immutable/chunks/{RFiIZzYq.js → CgQUkF-P.js} +1 -1
- package/web/app/immutable/chunks/{DbaWuKaJ.js → CiLRDPyT.js} +1 -1
- package/web/app/immutable/chunks/{AsDAWvyv.js → ClLRB7WU.js} +1 -1
- package/web/app/immutable/chunks/{DJq2OFOa.js → ClQp3PSY.js} +2 -2
- package/web/app/immutable/chunks/{lqRrFWoK.js → CmG1GbmA.js} +1 -1
- package/web/app/immutable/chunks/{CWmwYDNG.js → Cn5kmzaj.js} +1 -1
- package/web/app/immutable/chunks/{CWFSIfn9.js → Cnd7G5VB.js} +1 -1
- package/web/app/immutable/chunks/{CipMzp9h.js → Cq0e_D5i.js} +1 -1
- package/web/app/immutable/chunks/{CB8I0xcf.js → CrMBXfo1.js} +1 -1
- package/web/app/immutable/chunks/{CZ56Xi_v.js → CtiseZKO.js} +1 -1
- package/web/app/immutable/chunks/{5zeKz6ol.js → Ctp2YBhQ.js} +1 -1
- package/web/app/immutable/chunks/{C2RkweJs.js → CuK2Zw46.js} +1 -1
- package/web/app/immutable/chunks/{3eJAoKag.js → Cuu_7zcj.js} +2 -2
- package/web/app/immutable/chunks/{BeIO7jOE.js → Cvk4vC60.js} +1 -1
- package/web/app/immutable/chunks/{Qz-8JMY9.js → Cvl8hYkG.js} +1 -1
- package/web/app/immutable/chunks/{G_T2qAAV.js → Cw3xVp_u.js} +1 -1
- package/web/app/immutable/chunks/{CT1z3096.js → CyZzaZYX.js} +1 -1
- package/web/app/immutable/chunks/{U7noOj6Q.js → CyhLcHZ_.js} +1 -1
- package/web/app/immutable/chunks/{Zbow58Yt.js → D-IkFfCX.js} +1 -1
- package/web/app/immutable/chunks/{DRBNGj_-.js → D0yYfpFT.js} +1 -1
- package/web/app/immutable/chunks/{C111lYGO.js → D3F3BWsi.js} +1 -1
- package/web/app/immutable/chunks/{BNYHFEBz.js → D49N714C.js} +1 -1
- package/web/app/immutable/chunks/{BrhnR-ID.js → D4LrTene.js} +1 -1
- package/web/app/immutable/chunks/{XnpstU-2.js → D4bOZmAv.js} +1 -1
- package/web/app/immutable/chunks/{B12HSa3p.js → D4r0rKFl.js} +1 -1
- package/web/app/immutable/chunks/{lfjw8hnT.js → D7TRU2iP.js} +1 -1
- package/web/app/immutable/chunks/{Co17KOMP.js → D9BiEPlJ.js} +1 -1
- package/web/app/immutable/chunks/{CYYhQFAn.js → D9tXiVtR.js} +1 -1
- package/web/app/immutable/chunks/{DH8xXeC1.js → D9xzAHI_.js} +1 -1
- package/web/app/immutable/chunks/{BWVi-EJ0.js → DAPuPOz3.js} +1 -1
- package/web/app/immutable/chunks/{CFnuU2Q9.js → DBHc62lF.js} +1 -1
- package/web/app/immutable/chunks/{BLWZRT3p.js → DBigkuTi.js} +1 -1
- package/web/app/immutable/chunks/{Hp_5KBak.js → DEGO3t-C.js} +1 -1
- package/web/app/immutable/chunks/{B5varbso.js → DEsZrW9M.js} +1 -1
- package/web/app/immutable/chunks/{CFtvHvEH.js → DFXV1wIW.js} +3 -3
- package/web/app/immutable/chunks/{ButPbiBY.js → DFl_UPDl.js} +1 -1
- package/web/app/immutable/chunks/{e8UxY0el.js → DGRH7rrK.js} +1 -1
- package/web/app/immutable/chunks/{1EEYpvtO.js → DHClt9az.js} +1 -1
- package/web/app/immutable/chunks/{G3wMjZ9O.js → DJiBCJAD.js} +1 -1
- package/web/app/immutable/chunks/{BTR3RbCu.js → DJkyIBda.js} +1 -1
- package/web/app/immutable/chunks/{DauNXbYG.js → DMDmyjl-.js} +1 -1
- package/web/app/immutable/chunks/{CizJ7rQ5.js → DMJ_kXWl.js} +1 -1
- package/web/app/immutable/chunks/{DsQW_Oo3.js → DMhUzoUF.js} +1 -1
- package/web/app/immutable/chunks/{t1ZXWA1s.js → DNy6UqlX.js} +1 -1
- package/web/app/immutable/chunks/{BLXS06dm.js → DR-BIfRu.js} +1 -1
- package/web/app/immutable/chunks/{C0OVkc7f.js → DRXhVu5w.js} +1 -1
- package/web/app/immutable/chunks/{Bt4kKs00.js → DSWBNeO8.js} +1 -1
- package/web/app/immutable/chunks/{Cmt1ga7s.js → DSWXlbxm.js} +1 -1
- package/web/app/immutable/chunks/{SK6qKYG6.js → DT_ABoQZ.js} +1 -1
- package/web/app/immutable/chunks/{DVeWWknf.js → DUoxftgs.js} +1 -1
- package/web/app/immutable/chunks/{C9sB2HsS.js → DXeTlQw4.js} +1 -1
- package/web/app/immutable/chunks/{fsqlfl9k.js → DY7nIM_G.js} +1 -1
- package/web/app/immutable/chunks/{2F-Ze5uG.js → DZNKweTG.js} +1 -1
- package/web/app/immutable/chunks/{CUFDAb6B.js → D_idmae7.js} +1 -1
- package/web/app/immutable/chunks/{CvWGOqV6.js → D_rHnmLE.js} +1 -1
- package/web/app/immutable/chunks/{CbsveYrS.js → DanhIRZQ.js} +1 -1
- package/web/app/immutable/chunks/{C8y1Abl_.js → Dgv1nn7D.js} +1 -1
- package/web/app/immutable/chunks/{DAXBrrD-.js → DhNomEqt.js} +1 -1
- package/web/app/immutable/chunks/{n7G96yg-.js → DitwnI8q.js} +2 -2
- package/web/app/immutable/chunks/{nXbhxidw.js → DkJKEJ06.js} +1 -1
- package/web/app/immutable/chunks/{DTG9_7_9.js → Dn-5sae7.js} +1 -1
- package/web/app/immutable/chunks/{DPuyFsTN.js → DpNO08YA.js} +1 -1
- package/web/app/immutable/chunks/{Cr-VSi-M.js → Drfn5RRL.js} +1 -1
- package/web/app/immutable/chunks/{DaYj80Qs.js → Dsa4n88U.js} +1 -1
- package/web/app/immutable/chunks/{BFmjOdeB.js → Du0V4O1Q.js} +1 -1
- package/web/app/immutable/chunks/{CrmW6ekG.js → DvvIOlOp.js} +1 -1
- package/web/app/immutable/chunks/{BFnV2iJZ.js → DvwGTmJ3.js} +1 -1
- package/web/app/immutable/chunks/{DqZi8n0P.js → DwvH6ihg.js} +1 -1
- package/web/app/immutable/chunks/{F8LkPv3G.js → EMb2ha4n.js} +1 -1
- package/web/app/immutable/chunks/{2Lw-DzvO.js → EuCKSXHB.js} +1 -1
- package/web/app/immutable/chunks/{oG2g18ab.js → Gz_dGLcm.js} +1 -1
- package/web/app/immutable/chunks/{BT5gFy0f.js → H0FtMLfI.js} +1 -1
- package/web/app/immutable/chunks/{BXPefMgB.js → JF_LDwpb.js} +1 -1
- package/web/app/immutable/chunks/{BCiuPd8v.js → JzdAu8wb.js} +1 -1
- package/web/app/immutable/chunks/{BriVbLDU.js → K6Z_l6pq.js} +1 -1
- package/web/app/immutable/chunks/{DG0FHH4R.js → KTJ-30_b.js} +1 -1
- package/web/app/immutable/chunks/{C59xgYPp.js → MXYIc7_A.js} +1 -1
- package/web/app/immutable/chunks/{oNe1xT1B.js → MpnM4XaB.js} +1 -1
- package/web/app/immutable/chunks/{BHS_T8V0.js → NSQu1UJa.js} +1 -1
- package/web/app/immutable/chunks/{CdfwUBxI.js → NSYi6AlX.js} +1 -1
- package/web/app/immutable/chunks/{DP4AQNt-.js → PMKD3h28.js} +3 -3
- package/web/app/immutable/chunks/{BgBv_oVS.js → QHBZjsP5.js} +1 -1
- package/web/app/immutable/chunks/{D6EREClH.js → QQQ2Maz-.js} +1 -1
- package/web/app/immutable/chunks/{Bg8aMuhb.js → Q_fdFY85.js} +1 -1
- package/web/app/immutable/chunks/{Bj1VmHmJ.js → QiHSe7pE.js} +1 -1
- package/web/app/immutable/chunks/{CwxaNadx.js → TRV263rQ.js} +1 -1
- package/web/app/immutable/chunks/{ShK1ywMo.js → UG14BPPT.js} +2 -2
- package/web/app/immutable/chunks/{DuncjXt7.js → UJ1EpVxt.js} +1 -1
- package/web/app/immutable/chunks/{0aynuPUC.js → VZSwqvuN.js} +1 -1
- package/web/app/immutable/chunks/{CDGcnZR5.js → VlylMxmA.js} +1 -1
- package/web/app/immutable/chunks/{DR7XO1uo.js → WvnHVkBo.js} +1 -1
- package/web/app/immutable/chunks/{CIUOjVit.js → _639dNbm.js} +1 -1
- package/web/app/immutable/chunks/{DNIjwT-T.js → aMVpjO1H.js} +1 -1
- package/web/app/immutable/chunks/{bp1OJROF.js → aQ1wweeY.js} +1 -1
- package/web/app/immutable/chunks/{COokUMpm.js → jeQJPkPX.js} +1 -1
- package/web/app/immutable/chunks/{CZL7jnx7.js → lFSDumAY.js} +1 -1
- package/web/app/immutable/chunks/{wEDjfGMo.js → lbBEThX6.js} +1 -1
- package/web/app/immutable/chunks/{DmpGcxj7.js → nBuK6q0d.js} +1 -1
- package/web/app/immutable/chunks/{D-uVnCxU.js → onT82iSe.js} +1 -1
- package/web/app/immutable/chunks/{VlCONpJu.js → qHfU8eWI.js} +3 -3
- package/web/app/immutable/chunks/{aBVNuo2p.js → ra3YYtwY.js} +1 -1
- package/web/app/immutable/chunks/{DTYxFA3y.js → snmn_u5-.js} +5 -5
- package/web/app/immutable/chunks/{C8eS8Wxk.js → up0Zt_r2.js} +3 -3
- package/web/app/immutable/chunks/{axg0Ndkk.js → utDAmz_H.js} +1 -1
- package/web/app/immutable/chunks/{CV2DFyPr.js → vw8GizVl.js} +1 -1
- package/web/app/immutable/chunks/{CUH-D27g.js → vxHAGoo-.js} +1 -1
- package/web/app/immutable/chunks/{Cwf8tFwL.js → wrzNedDP.js} +1 -1
- package/web/app/immutable/chunks/{B30jTa2N.js → xKssrPyL.js} +1 -1
- package/web/app/immutable/chunks/{gTulAhJn.js → xmUlEbpq.js} +1 -1
- package/web/app/immutable/chunks/{DvfHX1n9.js → yIt8dECo.js} +1 -1
- package/web/app/immutable/chunks/{CEixATbX.js → yNVrzlY4.js} +1 -1
- package/web/app/immutable/chunks/{Bfg47dIU.js → ycNH2fN8.js} +1 -1
- package/web/app/immutable/entry/{app.Dm8wR6Rj.js → app.DTfx5CuV.js} +3 -3
- package/web/app/immutable/entry/start.DueW1FW9.js +1 -0
- package/web/app/immutable/nodes/{0.CwEG7GgD.js → 0.3GL3qSES.js} +1 -1
- package/web/app/immutable/nodes/{1.DqpCQ0oj.js → 1.ez5gI658.js} +1 -1
- package/web/app/immutable/nodes/{10.cnSuSi5Z.js → 10.DIxSk9q8.js} +1 -1
- package/web/app/immutable/nodes/{11.CC3qLADs.js → 11.D_8o4hy2.js} +1 -1
- package/web/app/immutable/nodes/{12.DSb5Am3H.js → 12.CZZ5SuMc.js} +1 -1
- package/web/app/immutable/nodes/{13.CCDV1skO.js → 13.BCLve-7_.js} +3 -3
- package/web/app/immutable/nodes/{14.DeCwT4BN.js → 14.MpS-kf0C.js} +1 -1
- package/web/app/immutable/nodes/{15.k51Sg7jX.js → 15.ClAlFdyg.js} +1 -1
- package/web/app/immutable/nodes/{16.DpXdz_jE.js → 16.CuGK30BG.js} +1 -1
- package/web/app/immutable/nodes/{17.D8r3aG2k.js → 17.D7rHJr6p.js} +1 -1
- package/web/app/immutable/nodes/{18.BqQgYdRA.js → 18.DW5qKw-K.js} +2 -2
- package/web/app/immutable/nodes/{2.B6rlXtKu.js → 2.CLq8rIVr.js} +4 -4
- package/web/app/immutable/nodes/{3.C3QOw0-1.js → 3.BSdLkeLH.js} +1 -1
- package/web/app/immutable/nodes/{4.w6LAxxf2.js → 4.DQIk0T0w.js} +1 -1
- package/web/app/immutable/nodes/{5.iL_EURMh.js → 5.DITRknqM.js} +1 -1
- package/web/app/immutable/nodes/{6.ycdot7zh.js → 6.3WKk43x0.js} +1 -1
- package/web/app/immutable/nodes/{7.HdIw4pKx.js → 7.BJ0R8KFY.js} +1 -1
- package/web/app/immutable/nodes/8.DPgSAVJ2.js +14 -0
- package/web/app/immutable/nodes/{9.gXjT92Zl.js → 9.zTjz59Kl.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +45 -45
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BQy38IRs.js +0 -1
- package/web/app/immutable/chunks/BvIap_Mf.js +0 -408
- package/web/app/immutable/chunks/CD8un3Yt.js +0 -1
- package/web/app/immutable/chunks/CiyfjWlF.js +0 -1
- package/web/app/immutable/chunks/DUCyNlB1.js +0 -1
- package/web/app/immutable/chunks/_EdWPAoo.js +0 -2
- package/web/app/immutable/entry/start.D6r48319.js +0 -1
- package/web/app/immutable/nodes/8.B8D0hgU8.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var a1=Object.defineProperty;var i1=(t,e,r)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>i1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as s1,ds as _l,_ as R0,Y as ya,Z as o1,X as l1,a1 as c1,ab as u1,U as d1,dT as h1,M as p1,ba as Ll,cG as Lr,dr as Pl,aT as m1,aX as f1,co as g1,cE as v1,c9 as b1,dl as Ka,dN as y1,dG as w1,ay as Fn,al as k1,at as Ti,dq as Ol,dD as x1,dX as $l,dW as S1}from"./DPuyFsTN.js";import{D as Ls,by as A1,bQ as T1,a$ as E1}from"./CXAeontZ.js";import{L as M1,F as i0}from"./ggQuSgBM.js";import{yD as gn,Iv as E,ny as ge,nx as Se,aO as C1,i as Bl,E as Re,bf as c0,jT as Ei,lS as vn,al as jt,lR as Ps,l$ as Os,lY as $s,jq as ql,gk as Xa,GT as I1,t3 as z1,z_ as R1,oB as D1,mE as bn,By as N1,iw as _1,m9 as L1,lM as P1}from"./Bo8Vb7mw.js";import{bo as ne}from"./BQy38IRs.js";import{t as rt}from"./Zbow58Yt.js";import{k as O1,d as xr}from"./hSO5HDzm.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Ke,l as h0,g as $1,n as Le,c as or,b as Ue,u as B1,d as q1}from"./CIyUrgF0.js";import{j as Fl}from"./uXuxG9cN.js";import{v as F1}from"./CGw07Xyz.js";import{b as H1}from"./DHO9Wxu6.js";import{i as He}from"./DJ8_lZZl.js";import{l as wa,c as Hl}from"./ChTqQfQN.js";import{h as Mi,M as Ul,O as Wl,s as U1,K as Gl,z as W1,D as G1}from"./lqRrFWoK.js";import{e as j1,h as Sr}from"./BDDVFcm3.js";import{h as p0}from"./DJq2OFOa.js";import{i as Bs}from"./D_Kq1QRo.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function V1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const Y1=new Uint8Array(16);function K1(){return crypto.getRandomValues(Y1)}function Ci(t,e,r){return crypto.randomUUID?crypto.randomUUID():X1(t)}function X1(t,e,r){t=t||{};const n=t.random??t.rng?.()??K1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,V1(n)}function Ii(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ii({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?M1(r.replace(/\.git\/?$/,""),e):null}function w5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ii(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function k5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function x5(t){return t.type==="local"&&t.path?t.path:void 0}const Z1=["/.clones/","/.repo-cache/"];function S5(t){const e=t.replaceAll("\\","/");return Z1.some(r=>e.includes(r))}function A5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Q1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function T5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Q1(r)}}function E5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const J1="known-repos",ed=6e4;function td({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function M5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function C5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<ed?"skip":"load"}function I5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ii(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function rd({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const z5=E.createSelector(t=>t.workspaceInitializer.hydrated),R5=E.createSelector(t=>t.workspaceInitializer.compactFormState),D5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),N5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),L5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),P5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),$5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),B5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),q5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),F5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),H5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),U5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),W5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),G5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),j5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),V5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),Y5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),K5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),X5=E.createSelector(t=>rd({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:T1.select(t),orchestratorId:A1.select(t)?.id??null})),nd=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&s1.select(t)?JSON.stringify([r,e]):null}),Z5=E.createSelector(t=>{const e=nd.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),ad=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,J1),r=ur.select(t);return td({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Q5=E.createSelector(t=>_l.select(t)?ad.select(t):[]),J5=E.createSelector(t=>E1.select(t)||void 0),qs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class id{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(qs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(qs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new id;function e3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function sd(t){return t.charAt(0).toUpperCase()+t.slice(1)}function t3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function r3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function n3(t,e){return`${e}:${t.agentId??"manual"}`}function od(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ld(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function cd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function a3(t,e,r,n){const a=od(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function i3(t,e,r){const n=ld(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function s3(t,e){const r=cd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function o3(t,e){return e===0&&t.length>0}function l3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function c3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function u3(t,e,r){return r?.path===t&&r?.staged===e}function d3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ud(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function p3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ud(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?zi(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??C1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function dd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${o1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:dd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:zi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function zi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function f3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const K=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:K,htmlUrl:K,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:zi(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Fs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function g3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Fs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[l1(t)??e],n=Fs(t)?O1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(sd(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var a1=Object.defineProperty;var i1=(t,e,r)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>i1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as s1,ds as _l,_ as R0,Y as ya,Z as o1,X as l1,a1 as c1,ab as u1,U as d1,dT as h1,M as p1,ba as Ll,cG as Lr,dr as Pl,aT as m1,aX as f1,co as g1,cE as v1,c9 as b1,dl as Ka,dN as y1,dG as w1,ay as Fn,al as k1,at as Ti,dq as Ol,dD as x1,dX as $l,dW as S1}from"./DpNO08YA.js";import{D as Ls,by as A1,bQ as T1,a$ as E1}from"./BzJ6PuN9.js";import{L as M1,F as i0}from"./ggQuSgBM.js";import{yD as gn,Iv as E,ny as ge,nx as Se,aO as C1,i as Bl,E as Re,bf as c0,jT as Ei,lS as vn,al as jt,lR as Ps,l$ as Os,lY as $s,jq as ql,gk as Xa,GT as I1,t3 as z1,z_ as R1,oB as D1,mE as bn,By as N1,iw as _1,m9 as L1,lM as P1}from"./BmagX6n5.js";import{bo as ne}from"./CT36W95j.js";import{t as rt}from"./D-IkFfCX.js";import{k as O1,d as xr}from"./CVc3afbh.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Ke,l as h0,g as $1,n as Le,c as or,b as Ue,u as B1,d as q1}from"./CIyUrgF0.js";import{j as Fl}from"./uXuxG9cN.js";import{v as F1}from"./BFllbeCZ.js";import{b as H1}from"./C20jcbNk.js";import{i as He}from"./DJ8_lZZl.js";import{l as wa,c as Hl}from"./ChTqQfQN.js";import{h as Mi,M as Ul,O as Wl,s as U1,K as Gl,z as W1,D as G1}from"./CmG1GbmA.js";import{e as j1,h as Sr}from"./BDDVFcm3.js";import{h as p0}from"./ClQp3PSY.js";import{i as Bs}from"./D_Kq1QRo.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function V1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const Y1=new Uint8Array(16);function K1(){return crypto.getRandomValues(Y1)}function Ci(t,e,r){return crypto.randomUUID?crypto.randomUUID():X1(t)}function X1(t,e,r){t=t||{};const n=t.random??t.rng?.()??K1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,V1(n)}function Ii(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ii({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?M1(r.replace(/\.git\/?$/,""),e):null}function w5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ii(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function k5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function x5(t){return t.type==="local"&&t.path?t.path:void 0}const Z1=["/.clones/","/.repo-cache/"];function S5(t){const e=t.replaceAll("\\","/");return Z1.some(r=>e.includes(r))}function A5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Q1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function T5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Q1(r)}}function E5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const J1="known-repos",ed=6e4;function td({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function M5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function C5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<ed?"skip":"load"}function I5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ii(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function rd({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const z5=E.createSelector(t=>t.workspaceInitializer.hydrated),R5=E.createSelector(t=>t.workspaceInitializer.compactFormState),D5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),N5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),L5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),P5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),$5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),B5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),q5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),F5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),H5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),U5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),W5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),G5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),j5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),V5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),Y5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),K5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),X5=E.createSelector(t=>rd({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:T1.select(t),orchestratorId:A1.select(t)?.id??null})),nd=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&s1.select(t)?JSON.stringify([r,e]):null}),Z5=E.createSelector(t=>{const e=nd.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),ad=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,J1),r=ur.select(t);return td({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Q5=E.createSelector(t=>_l.select(t)?ad.select(t):[]),J5=E.createSelector(t=>E1.select(t)||void 0),qs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class id{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(qs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(qs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new id;function e3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function sd(t){return t.charAt(0).toUpperCase()+t.slice(1)}function t3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function r3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function n3(t,e){return`${e}:${t.agentId??"manual"}`}function od(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ld(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function cd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function a3(t,e,r,n){const a=od(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function i3(t,e,r){const n=ld(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function s3(t,e){const r=cd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function o3(t,e){return e===0&&t.length>0}function l3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function c3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function u3(t,e,r){return r?.path===t&&r?.staged===e}function d3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ud(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function p3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ud(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?zi(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??C1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function dd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${o1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:dd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:zi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function zi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function f3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const K=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:K,htmlUrl:K,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:zi(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Fs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function g3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Fs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[l1(t)??e],n=Fs(t)?O1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(sd(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function v3(t,e){return e.has(t??"manual")}function b3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Vl=500;function y3(t,e=Vl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function w3(t,e,r=Vl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function k3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function hd(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function pd(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?c1(s).path:void 0}function md(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function fd(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=hd(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=pd(i,n,r,t.textContent||"");c&&(s.filePath=c);const d=md(i);d!==void 0&&(s.line=d)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,d=c?Qa(String(c)).replace(/\/+$/,""):"";d&&(s.folderPath=d)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function x3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ri(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pr=Ri();function Yl(t){Pr=t}var Ir={exec:()=>null};function Kr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ye.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var gd=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ye={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Kr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}>`))},vd=/^(?:[ \t]*(?:\n|$))+/,bd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Di=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Kl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xl=ce(Kl).replace(/bull/g,Di).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kd=ce(Kl).replace(/bull/g,Di).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ni=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,xd=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Sd=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ad=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Di).getRegex(),Hn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Td=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Li).replace("tag",Hn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zl=t=>ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Ed=Zl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Md=Zl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Cd=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Md).getRegex(),Pi={blockquote:Cd,code:bd,def:Sd,fences:yd,heading:wd,hr:W0,html:Td,lheading:Xl,list:Ad,newline:vd,paragraph:Ed,table:Ir,text:xd},Hs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Id={...Pi,lheading:kd,table:Hs,paragraph:ce(Ni).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex()},zd={...Pi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Li).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Ni).replace("hr",W0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Xl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Rd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ql=/^( {2,}|\\)\n(?!\s*$)/,Nd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,G0=/[^\s\p{P}\p{S}]/u,_d=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ld=/[\p{Pi}\p{Ps}"']/u,Jl=/(?!~)[\p{P}\p{S}]/u,Pd=/(?!~)[\s\p{P}\p{S}]/u,Od=/(?:[^\s\p{P}\p{S}]|~)/u,$d=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",gd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ec=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bd=ce(ec,"u").replace(/punct/g,Vt).getRegex(),qd=ce(ec,"u").replace(/punct/g,Jl).getRegex(),Fd=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Hd=ce(Fd,"u").replace(/openQuote/g,Ld).replace(/punct/g,Vt).getRegex(),tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ud=ce(tc,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Wd=ce(tc,"gu").replace(/notPunctSpace/g,Od).replace(/punctSpace/g,Pd).replace(/punct/g,Jl).getRegex(),Gd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",jd=ce(Gd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Vd=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Yd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Kd=ce(Yd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Xd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),Zd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qd=ce(Zd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Jd=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),eh=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),th=ce(Li).replace("(?:-->|$)","-->").getRegex(),rh=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",th).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ln=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ln).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Ln).replace("ref",_i).getRegex(),nc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),ah=ce("reflink|nolink(?!\\()","g").replace("reflink",rc).replace("nolink",nc).getRegex(),Us=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Oi={_backpedal:Ir,anyPunctuation:Jd,autolink:eh,blockSkip:$d,br:Ql,code:Dd,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Bd,emStrongRDelimAst:Ud,emStrongRDelimUnd:Vd,escape:Rd,link:nh,nolink:nc,punctuation:_d,reflink:rc,reflinkSearch:ah,tag:rh,text:Nd,url:Ir},ih={...Oi,emStrongLDelim:Hd,emStrongRDelimAst:jd,emStrongRDelimUnd:Kd,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Ln).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ln).getRegex()},Ja={...Oi,emStrongRDelimAst:Wd,emStrongLDelim:qd,delLDelim:Xd,delRDelim:Qd,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Us).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Us).getRegex()},sh={...Ja,br:ce(Ql).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wn={normal:Pi,gfm:Id,pedantic:zd},S0={normal:Oi,gfm:Ja,breaks:sh,pedantic:ih},oh={"&":"&","<":"<",">":">",'"':""","'":"'"},Ws=t=>oh[t];function Dt(t,e){if(e){if(Ye.escapeTest.test(t))return t.replace(Ye.escapeReplace,Ws)}else if(Ye.escapeTestNoEncode.test(t))return t.replace(Ye.escapeReplaceNoEncode,Ws);return t}function Gs(t){try{t=encodeURI(t).replace(Ye.percentDecode,"%")}catch{return null}return t}function js(t,e){let r=t.replace(Ye.findPipe,(i,s,o)=>{let c=!1,d=s;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ye.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ye.slashPipe,"|");return n}function tr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Vs(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ye.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./
|
|
1
|
+
import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./CT36W95j.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as q,b_ as k,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as w,be as ae,b$ as re}from"./DYhIMPy1.js";import{i as S}from"./Cn5kmzaj.js";import{s as se}from"./TRV263rQ.js";import{F as ne}from"./D_rHnmLE.js";import{i as ie}from"./Du0V4O1Q.js";import{aa as de}from"./D9xzAHI_.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const D=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const I=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),O=V(t,oe);const C=`${D}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?I:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>O,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),R=F(n,!0);k(()=>{se(n,"id",C),w(R,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}q(W);var K=j(W,2);{var L=s=>{var n=ce(),R=A(n);de(R,{children:(N,me)=>{ae();var P=re();k(()=>w(P,c())),l(N,P)},$$slots:{default:!0}}),q(n),l(s,n)};S(K,s=>{c()&&s(L)})}k(()=>w(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./onT82iSe.js";import{s as Ci}from"./749Ye7vh.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./CN_zBCnB.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -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"./BQy38IRs.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"./DEfRWwmu.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("./BRxcN_af.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,79,80,81,82,83,84]),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/BMbB6G4j.js","/app/immutable/chunks/CN_zBCnB.js","/app/immutable/chunks/CT36W95j.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BaJNSnZt.js","/app/immutable/chunks/DpNO08YA.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BmagX6n5.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BgUSjvxc.js","/app/immutable/chunks/DHClt9az.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/D_rHnmLE.js","/app/immutable/chunks/CgQUkF-P.js","/app/immutable/chunks/Cn5kmzaj.js","/app/immutable/chunks/TRV263rQ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bw5h0b4B.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/ClQp3PSY.js","/app/immutable/chunks/DMJ_kXWl.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BFllbeCZ.js","/app/immutable/chunks/D-IkFfCX.js","/app/immutable/chunks/BzJ6PuN9.js","/app/immutable/chunks/B7lF313M.js","/app/immutable/chunks/D9xzAHI_.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/xKssrPyL.js","/app/immutable/chunks/CJyP11U5.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DJ8_lZZl.js","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/CmG1GbmA.js","/app/immutable/chunks/C20jcbNk.js","/app/immutable/chunks/D4bOZmAv.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CLd6HNgr.js","/app/immutable/chunks/CVc3afbh.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/UG14BPPT.js","/app/immutable/chunks/MpnM4XaB.js","/app/immutable/chunks/BdyAQuf8.js","/app/immutable/chunks/D9BiEPlJ.js","/app/immutable/chunks/Du0V4O1Q.js","/app/immutable/chunks/C_p41hnk.js","/app/immutable/chunks/BwYW1dkK.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DBigkuTi.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/B5G4SPkG.js","/app/immutable/chunks/DJkyIBda.js","/app/immutable/chunks/_639dNbm.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/CUyvQglq.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/DR-BIfRu.js","/app/immutable/chunks/CHJZj-fd.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BhIO_xHl.js","/app/immutable/chunks/snmn_u5-.js","/app/immutable/chunks/D3F3BWsi.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/EuCKSXHB.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/8j0kVkRN.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/lbBEThX6.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BGAqL5Hu.js","/app/immutable/chunks/BTUvce_V.js","/app/immutable/chunks/vw8GizVl.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Z}from"./CT36W95j.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"./CN_zBCnB.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("./BMbB6G4j.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,79,80,81,82,83,84]),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{t as Ze,bq as p,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./BQy38IRs.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as fe,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{i as ge}from"./CWmwYDNG.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./DqZi8n0P.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./BT5gFy0f.js";import{c as Et}from"./ChTqQfQN.js";import{g as Ae,f as Ft}from"./CwxaNadx.js";import{Iv as ot}from"./Bo8Vb7mw.js";import{f as qe}from"./DH8xXeC1.js";import"./DJq2OFOa.js";import{F as He,b9 as It,bk as Pt}from"./CvWGOqV6.js";import{i as Ue}from"./DJ8_lZZl.js";import{dr as zt,cn as Nt}from"./DPuyFsTN.js";import{g as At}from"./CGw07Xyz.js";import{c as Vt}from"./DGD-U5Bo.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./oNe1xT1B.js";import{g as B,R as Ge,U as Je}from"./CFtvHvEH.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),fe(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};ge(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function bn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);fe(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);fe(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};ge(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),fe((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};ge(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),fe(()=>oe(X,c())),D(r,h)};ge(y,r=>{c()&&!g()&&r(_)})}D(e,n)};ge(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,bn as p};
|
|
1
|
+
import{t as Ze,bq as p,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./CT36W95j.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as fe,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{i as ge}from"./Cn5kmzaj.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./DwvH6ihg.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./H0FtMLfI.js";import{c as Et}from"./ChTqQfQN.js";import{g as Ae,f as Ft}from"./TRV263rQ.js";import{Iv as ot}from"./BmagX6n5.js";import{f as qe}from"./D9xzAHI_.js";import"./ClQp3PSY.js";import{F as He,b9 as It,bk as Pt}from"./D_rHnmLE.js";import{i as Ue}from"./DJ8_lZZl.js";import{dr as zt,cn as Nt}from"./DpNO08YA.js";import{g as At}from"./BFllbeCZ.js";import{c as Vt}from"./CJyP11U5.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./MpnM4XaB.js";import{g as B,R as Ge,U as Je}from"./DFXV1wIW.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),fe(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};ge(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function bn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);fe(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);fe(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};ge(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),fe((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};ge(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),fe(()=>oe(X,c())),D(r,h)};ge(y,r=>{c()&&!g()&&r(_)})}D(e,n)};ge(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,bn as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e,ay as s,aX as o,B as i}from"./
|
|
1
|
+
import{b as e,ay as s,aX as o,B as i}from"./CN_zBCnB.js";import{p as g}from"./Dgv1nn7D.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},b={parser:p,db:m,renderer:f};export{b as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as C}from"./
|
|
1
|
+
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as C}from"./CVc3afbh.js";import{Iv as o,Dq as E,CU as _,i as A,uK as O,uk as D,fX as H,Ca as L,Cs as P,Eq as R,Ce as q}from"./BmagX6n5.js";import{aZ as p}from"./DpNO08YA.js";import{d as x}from"./B0Z-1lwJ.js";import{n as B}from"./CLd6HNgr.js";import{o as F,e as W}from"./EuCKSXHB.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],K=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Y(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Y(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function U(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await C.agents.getConversation(e,K,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(q(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(E(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await B(d):await F(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(D(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await U(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||x("chat:open-message",b)},w)}export{ee as openMessage,U as seekConversationToMessage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as xt}from"./
|
|
1
|
+
import{p as xt}from"./yIt8dECo.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./CN_zBCnB.js";import{p as Bt}from"./Dgv1nn7D.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,aR as re,by as ne,ao as j,_ as q,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bq as m,by as de,br as ce,b as ue}from"./BQy38IRs.js";import{i as H}from"./CWmwYDNG.js";import{b as W,e as R}from"./CwxaNadx.js";import{b as U}from"./BaIAhI85.js";import{s as Be}from"./1EEYpvtO.js";import{I as G,F as We,c as De}from"./Zbow58Yt.js";import"./Co17KOMP.js";import{a_ as Me}from"./DH8xXeC1.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&q();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&q();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var qe=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),He=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,qe);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=He();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",Ue="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",Ue,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),J(h,f),N(r,h)};H(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};H(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,Ue as o,vt as p,Je as q,ct as s,Ge as t};
|
|
1
|
+
import{b8 as te,aR as re,by as ne,ao as j,_ as q,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bq as m,by as de,br as ce,b as ue}from"./CT36W95j.js";import{i as H}from"./Cn5kmzaj.js";import{b as W,e as R}from"./TRV263rQ.js";import{b as U}from"./BaIAhI85.js";import{s as Be}from"./DHClt9az.js";import{I as G,F as We,c as De}from"./D-IkFfCX.js";import"./D9BiEPlJ.js";import{a_ as Me}from"./D9xzAHI_.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&q();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&q();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var qe=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),He=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,qe);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=He();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",Ue="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",Ue,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),J(h,f),N(r,h)};H(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};H(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,Ue as o,vt as p,Je as q,ct as s,Ge as t};
|