@intent-hq/web 2.286.6 → 2.286.7
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/{D9cnJrSW.js → -Dy1J8Uz.js} +1 -1
- package/web/app/immutable/chunks/{CDIF0OfQ.js → -k9dBFge.js} +1 -1
- package/web/app/immutable/chunks/{9ClBlTfm.js → 02c-_h5D.js} +1 -1
- package/web/app/immutable/chunks/{BkAXSVKy.js → 0B3uVNNW.js} +3 -3
- package/web/app/immutable/chunks/{B0Gt7kIL.js → 12tzu5qf.js} +1 -1
- package/web/app/immutable/chunks/{BqyVFgAs.js → 2g-z97cY.js} +2 -2
- package/web/app/immutable/chunks/{BOWg7-2e.js → 2p9neXSj.js} +1 -1
- package/web/app/immutable/chunks/{0r1nZ0pd.js → 3iHuHMbX.js} +1 -1
- package/web/app/immutable/chunks/{Bf_wzw9l.js → 5OGBf-lA.js} +1 -1
- package/web/app/immutable/chunks/{BgEmsjjm.js → 5qlCbG7W.js} +1 -1
- package/web/app/immutable/chunks/5vqEW8Xk.js +1 -0
- package/web/app/immutable/chunks/{DhS9D4LQ.js → AEZrGthR.js} +1 -1
- package/web/app/immutable/chunks/{C-ssPvFA.js → B-u7UaKm.js} +1 -1
- package/web/app/immutable/chunks/{iatFKKcG.js → B1HqsJ1G.js} +1 -1
- package/web/app/immutable/chunks/{CQORNg-m.js → B3n8DMr5.js} +1 -1
- package/web/app/immutable/chunks/{B63QHGwa.js → B4mFVrsF.js} +1 -1
- package/web/app/immutable/chunks/{BDBiopCg.js → B56I2ZJ_.js} +1 -1
- package/web/app/immutable/chunks/{fNyUCzvZ.js → B643fTLK.js} +1 -1
- package/web/app/immutable/chunks/{Cx2xiRhw.js → B70r_bD0.js} +1 -1
- package/web/app/immutable/chunks/{ToNKgdbF.js → B9ynThFz.js} +1 -1
- package/web/app/immutable/chunks/{Djp3xwow.js → BFe-YAfF.js} +1 -1
- package/web/app/immutable/chunks/{BDWsa0R1.js → BGcT2nxg.js} +1 -1
- package/web/app/immutable/chunks/{CNcEmlm6.js → BIG6Pj6U.js} +1 -1
- package/web/app/immutable/chunks/{O8tyTzO7.js → BK4Akfwd.js} +1 -1
- package/web/app/immutable/chunks/{-RQcYil7.js → BKHxP3dh.js} +1 -1
- package/web/app/immutable/chunks/{B_QXRwJt.js → BMAsOD7J.js} +1 -1
- package/web/app/immutable/chunks/{CK9zkrOb.js → BN2G03FP.js} +1 -1
- package/web/app/immutable/chunks/{nSL7q58f.js → BNboIXBF.js} +1 -1
- package/web/app/immutable/chunks/{Ma3kLBUv.js → BQoQ6YRb.js} +1 -1
- package/web/app/immutable/chunks/{Cen83yhL.js → BRyc8ruL.js} +1 -1
- package/web/app/immutable/chunks/{BD0qm6Jz.js → BSjUANzw.js} +1 -1
- package/web/app/immutable/chunks/{zbG5hgeS.js → BULsKVcN.js} +1 -1
- package/web/app/immutable/chunks/{CMwUdxOS.js → BVCutUbP.js} +1 -1
- package/web/app/immutable/chunks/{CJKvnCar.js → BYBYRLX4.js} +1 -1
- package/web/app/immutable/chunks/{Hj5cJ9Kq.js → BYSoxiJG.js} +1 -1
- package/web/app/immutable/chunks/{BU-Qzzbf.js → BZA0d6L5.js} +7 -7
- package/web/app/immutable/chunks/{D4K4NRzX.js → BZO6xoHZ.js} +1 -1
- package/web/app/immutable/chunks/{Bt6n6cEl.js → Ba8xdboa.js} +2 -2
- package/web/app/immutable/chunks/{DLF1u3VG.js → BaJAb_aS.js} +1 -1
- package/web/app/immutable/chunks/{BQNvd14e.js → Banmthwv.js} +1 -1
- package/web/app/immutable/chunks/{CbcwGUfi.js → BdyPjVZK.js} +1 -1
- package/web/app/immutable/chunks/{CBW2aSyU.js → BeDkb_vZ.js} +1 -1
- package/web/app/immutable/chunks/{BcwQng3i.js → BeQnGCk4.js} +1 -1
- package/web/app/immutable/chunks/{c6-JywCq.js → BfSS1MK5.js} +1 -1
- package/web/app/immutable/chunks/{DFxtmloM.js → BgCl1ZYD.js} +1 -1
- package/web/app/immutable/chunks/{BozSuCN-.js → Bh9DwXQ5.js} +1 -1
- package/web/app/immutable/chunks/{BRJm-WBN.js → Bi78eYSt.js} +1 -1
- package/web/app/immutable/chunks/{DuNULkx8.js → BiXOLZjm.js} +1 -1
- package/web/app/immutable/chunks/{DJsNWuz1.js → Bk33Ri54.js} +1 -1
- package/web/app/immutable/chunks/{DCuTumtg.js → Boxg4-Ef.js} +1 -1
- package/web/app/immutable/chunks/{nFRRHcr0.js → BqDXJV4b.js} +3 -3
- package/web/app/immutable/chunks/{BdQglECS.js → Bwr2Pz45.js} +5 -5
- package/web/app/immutable/chunks/{BqOdnG_o.js → Bx2W_o-K.js} +1 -1
- package/web/app/immutable/chunks/{BmUO-ZCq.js → ByuNUKg7.js} +1 -1
- package/web/app/immutable/chunks/{DNfhZLeN.js → BzKpdh0S.js} +1 -1
- package/web/app/immutable/chunks/{BHj4gB0Y.js → C0Ic7MWu.js} +1 -1
- package/web/app/immutable/chunks/{CWlglyI_.js → C1III1VB.js} +1 -1
- package/web/app/immutable/chunks/{DSeXOn44.js → C2fCoIum.js} +3 -3
- package/web/app/immutable/chunks/{DeoBRQb4.js → C4obf3FV.js} +1 -1
- package/web/app/immutable/chunks/{DT7mlQbt.js → C6TLZd79.js} +1 -1
- package/web/app/immutable/chunks/{DyMSTER3.js → C78xsmeY.js} +1 -1
- package/web/app/immutable/chunks/{DUlDadB7.js → C9W_2OCR.js} +1 -1
- package/web/app/immutable/chunks/{Cwf2cl-G.js → CCUNfXiW.js} +1 -1
- package/web/app/immutable/chunks/{BHfO1DIu.js → CDNrBqJE.js} +1 -1
- package/web/app/immutable/chunks/{DsHgoHUF.js → CEKKTkcw.js} +1 -1
- package/web/app/immutable/chunks/{CpoXGd1l.js → CFWaKBsU.js} +1 -1
- package/web/app/immutable/chunks/{nvxwf4ON.js → CH9FyXIs.js} +1 -1
- package/web/app/immutable/chunks/{A4XkqMhx.js → CKKymoqy.js} +2 -2
- package/web/app/immutable/chunks/{D4mPaBv_.js → CNZrw80e.js} +1 -1
- package/web/app/immutable/chunks/{CI2vptqu.js → CNe7_Zim.js} +1 -1
- package/web/app/immutable/chunks/{UeBI2etB.js → CNrfoUaS.js} +1 -1
- package/web/app/immutable/chunks/{BQtqWlTh.js → CO44rX6y.js} +1 -1
- package/web/app/immutable/chunks/{vEO0YrEb.js → CPlNvpU2.js} +1 -1
- package/web/app/immutable/chunks/{D4bEOXCz.js → CQ2o3hEg.js} +1 -1
- package/web/app/immutable/chunks/{CKt2_xHZ.js → CRR1-abH.js} +1 -1
- package/web/app/immutable/chunks/{BILkcOal.js → CRpqpU9i.js} +1 -1
- package/web/app/immutable/chunks/{CRcvhCKH.js → CThN_Nux.js} +1 -1
- package/web/app/immutable/chunks/{JQvt9PlE.js → CUZik8MY.js} +1 -1
- package/web/app/immutable/chunks/{BDoT1t-p.js → CUvkIDMd.js} +1 -1
- package/web/app/immutable/chunks/{BIbYnTWt.js → CV4TfELY.js} +1 -1
- package/web/app/immutable/chunks/{DVo_qBAn.js → CVbWY19o.js} +1 -1
- package/web/app/immutable/chunks/{DqBMLWU7.js → CVsyQSuR.js} +1 -1
- package/web/app/immutable/chunks/{Dx178k_p.js → CZFEnK7L.js} +1 -1
- package/web/app/immutable/chunks/{CVoU6PUX.js → CaXb-0G5.js} +1 -1
- package/web/app/immutable/chunks/{UEagjF1v.js → Cbq2nPyy.js} +1 -1
- package/web/app/immutable/chunks/{DfV-BwK_.js → Cdh5YKSf.js} +1 -1
- package/web/app/immutable/chunks/{DT0VuQYh.js → Cdro-GoI.js} +1 -1
- package/web/app/immutable/chunks/{CK0ufYxF.js → CfKkOn3Z.js} +1 -1
- package/web/app/immutable/chunks/{0f-s2juB.js → ChPWwTDQ.js} +1 -1
- package/web/app/immutable/chunks/{TYA52UmK.js → ChY430zO.js} +1 -1
- package/web/app/immutable/chunks/{7HlTiSuy.js → CkH1GUS-.js} +1 -1
- package/web/app/immutable/chunks/{Dk8G7cWG.js → Ck_IcW3b.js} +1 -1
- package/web/app/immutable/chunks/{BBh1sUFa.js → Cm0fpyvx.js} +1 -1
- package/web/app/immutable/chunks/{1NwaCzDM.js → CmoN_TBo.js} +1 -1
- package/web/app/immutable/chunks/{BfznpdOe.js → CqAhHv8R.js} +1 -1
- package/web/app/immutable/chunks/{Daox7oGL.js → Crqv6_Qw.js} +1 -1
- package/web/app/immutable/chunks/{BhDscTzk.js → CsDWwr46.js} +1 -1
- package/web/app/immutable/chunks/{CZjKZKfa.js → Csf9C1Gi.js} +1 -1
- package/web/app/immutable/chunks/{D0PA_nH7.js → CtUWJPuQ.js} +1 -1
- package/web/app/immutable/chunks/{eo951CKY.js → CtVWxtuL.js} +1 -1
- package/web/app/immutable/chunks/{DP3PzV04.js → CuS63k_X.js} +1 -1
- package/web/app/immutable/chunks/{Bct-Hddg.js → Cw7D1o52.js} +1 -1
- package/web/app/immutable/chunks/{D4eQ7sOE.js → CwnQ-Cai.js} +1 -1
- package/web/app/immutable/chunks/{EsMfrwLq.js → Cydmwi9G.js} +2 -2
- package/web/app/immutable/chunks/{BdI6Ug1p.js → D1G_x58n.js} +1 -1
- package/web/app/immutable/chunks/{BFSad-yQ.js → D1nqIQGn.js} +1 -1
- package/web/app/immutable/chunks/{BH2o-WfJ.js → DCj4RtfU.js} +1 -1
- package/web/app/immutable/chunks/{CWwUPJCZ.js → DDfuADvu.js} +1 -1
- package/web/app/immutable/chunks/{Stf6v5E4.js → DEWWczTo.js} +1 -1
- package/web/app/immutable/chunks/{CAhEBid_.js → DF1PAOvq.js} +1 -1
- package/web/app/immutable/chunks/{BVXSC6-x.js → DFLHL1-R.js} +1 -1
- package/web/app/immutable/chunks/{_9I4ps54.js → DFSszeZt.js} +1 -1
- package/web/app/immutable/chunks/{DW0ajEwO.js → DG2lnbYM.js} +1 -1
- package/web/app/immutable/chunks/{Bhjdd-i5.js → DGdd6uAe.js} +1 -1
- package/web/app/immutable/chunks/{D5XOfqg3.js → DHnu3R8W.js} +1 -1
- package/web/app/immutable/chunks/{OmIIAf5Z.js → DHxfVjMA.js} +1 -1
- package/web/app/immutable/chunks/{BLfu6vv0.js → DIpVdU4q.js} +1 -1
- package/web/app/immutable/chunks/{Blfa2zB3.js → DIx1ja7a.js} +1 -1
- package/web/app/immutable/chunks/{DsLNpgNd.js → DMYii2XW.js} +1 -1
- package/web/app/immutable/chunks/{DjgUwB1-.js → DQcBws1v.js} +1 -1
- package/web/app/immutable/chunks/{BarmoK9n.js → DR5N6gxc.js} +1 -1
- package/web/app/immutable/chunks/{B3l27U-X.js → DTb6DltY.js} +1 -1
- package/web/app/immutable/chunks/{PoQyYVPo.js → DWeK6bEj.js} +1 -1
- package/web/app/immutable/chunks/{Dtc6gYfR.js → DZOobfUN.js} +4 -4
- package/web/app/immutable/chunks/{DzcYojla.js → D_q___oT.js} +1 -1
- package/web/app/immutable/chunks/{B7VDtTYH.js → D_r-L7lJ.js} +1 -1
- package/web/app/immutable/chunks/{CwVfhwcK.js → Db4RIna0.js} +1 -1
- package/web/app/immutable/chunks/{bLmMh6bM.js → DbmW02Ql.js} +1 -1
- package/web/app/immutable/chunks/{BqYhHrt6.js → DeS52M4Z.js} +1 -1
- package/web/app/immutable/chunks/{_xXc1YI4.js → DfZPm6Cc.js} +1 -1
- package/web/app/immutable/chunks/{Lr-JMIRR.js → Dk4lt7dn.js} +1 -1
- package/web/app/immutable/chunks/{dfYnXgxY.js → DkjTJRm4.js} +1 -1
- package/web/app/immutable/chunks/{Eecaa39u.js → Dnvm7hnM.js} +1 -1
- package/web/app/immutable/chunks/{BJl8RzPn.js → DoSHDPDx.js} +1 -1
- package/web/app/immutable/chunks/{B2YBz8zb.js → DpWsILta.js} +1 -1
- package/web/app/immutable/chunks/{BPC4OG-3.js → DtGFNbs1.js} +1 -1
- package/web/app/immutable/chunks/{BzEWj2WD.js → DxLAMi4N.js} +1 -1
- package/web/app/immutable/chunks/{y0vuEHBW.js → DxSLZdpF.js} +1 -1
- package/web/app/immutable/chunks/{CZRzMSeY.js → DxYCvGDj.js} +1 -1
- package/web/app/immutable/chunks/{Ja3bldkE.js → Dy9lh-cY.js} +1 -1
- package/web/app/immutable/chunks/{CDo7dFSH.js → EDmIYO6S.js} +1 -1
- package/web/app/immutable/chunks/{BFiZAKJn.js → FSSmi15Q.js} +1 -1
- package/web/app/immutable/chunks/{By1eSTdA.js → G8TJ9MOE.js} +1 -1
- package/web/app/immutable/chunks/{SqQyW4o7.js → H09Jvm6V.js} +1 -1
- package/web/app/immutable/chunks/{C7jGB600.js → JIx3RnHA.js} +1 -1
- package/web/app/immutable/chunks/{Blk7tjn1.js → Jhq7UOc5.js} +1 -1
- package/web/app/immutable/chunks/{QxpEtr-0.js → LJC2uYsC.js} +1 -1
- package/web/app/immutable/chunks/{CdPAl73_.js → MO7fSgv5.js} +2 -2
- package/web/app/immutable/chunks/{gIpDBOS9.js → OYOqRbsv.js} +1 -1
- package/web/app/immutable/chunks/{LZgSqmId.js → PoUwsq35.js} +1 -1
- package/web/app/immutable/chunks/{f5JdW6NK.js → R2--7i5r.js} +1 -1
- package/web/app/immutable/chunks/{DZLBni6e.js → TTIE1D5C.js} +2 -2
- package/web/app/immutable/chunks/{DWNVbS3a.js → ThJR_x1o.js} +1 -1
- package/web/app/immutable/chunks/{CyFUY7ZG.js → W0ohOtfo.js} +6 -6
- package/web/app/immutable/chunks/{DqYjhr_m.js → Xi73byIt.js} +1 -1
- package/web/app/immutable/chunks/{CAXCWldY.js → XlZsLmeM.js} +1 -1
- package/web/app/immutable/chunks/{B-wj3-Mz.js → Y-eFgNqI.js} +1 -1
- package/web/app/immutable/chunks/{C47vcpT8.js → Y01ro7ES.js} +1 -1
- package/web/app/immutable/chunks/{CnD0melM.js → Y1jmSFSg.js} +1 -1
- package/web/app/immutable/chunks/{DWoDOofe.js → ZPXpXn_b.js} +1 -1
- package/web/app/immutable/chunks/{BhZTnaMG.js → _NsXb4lS.js} +1 -1
- package/web/app/immutable/chunks/{0PTcTNoV.js → _hl98vj7.js} +4 -4
- package/web/app/immutable/chunks/{wuvUPZj1.js → _lJQyckC.js} +1 -1
- package/web/app/immutable/chunks/{BZdmxgfA.js → _vHEK4pi.js} +1 -1
- package/web/app/immutable/chunks/{JQsOAZ2D.js → bCZfKo5Z.js} +1 -1
- package/web/app/immutable/chunks/{EN56DypO.js → blrmT9qk.js} +1 -1
- package/web/app/immutable/chunks/{CHzxYGKx.js → cKydO3Qt.js} +1 -1
- package/web/app/immutable/chunks/{DetRbVYW.js → f5CcdTME.js} +1 -1
- package/web/app/immutable/chunks/{Dsrqhllc.js → g5u8EvTY.js} +1 -1
- package/web/app/immutable/chunks/{CAoF09oh.js → gguJR3ZT.js} +1 -1
- package/web/app/immutable/chunks/{BTPnfq6G.js → gkKZi5M2.js} +4 -4
- package/web/app/immutable/chunks/{qZ45weJD.js → kPHoAXfY.js} +1 -1
- package/web/app/immutable/chunks/{D7UZpnOG.js → lPZVVuHr.js} +2 -2
- package/web/app/immutable/chunks/{BlT5sNXk.js → nP3fRh39.js} +1 -1
- package/web/app/immutable/chunks/{84RVXrc3.js → oXZkHUcr.js} +1 -1
- package/web/app/immutable/chunks/{DQDUYfZ6.js → oXwqURr6.js} +1 -1
- package/web/app/immutable/chunks/{Cc8kWaj8.js → pxqNib4M.js} +1 -1
- package/web/app/immutable/chunks/{D1JUN6U7.js → sd3yFV0R.js} +1 -1
- package/web/app/immutable/chunks/{C5SmzBE8.js → tMLeM1p2.js} +1 -1
- package/web/app/immutable/chunks/{BQmNzaH0.js → vtfPHlCB.js} +6 -6
- package/web/app/immutable/chunks/{CGF8Eu2l.js → x7O2J7jj.js} +1 -1
- package/web/app/immutable/chunks/{cXLTBTLb.js → xTHNWGAw.js} +1 -1
- package/web/app/immutable/entry/{app.BCJgs5XI.js → app.DaY9zxK3.js} +2 -2
- package/web/app/immutable/entry/start.CWppNCPI.js +1 -0
- package/web/app/immutable/nodes/{0.a1vA_dPS.js → 0.C8YnQkTZ.js} +1 -1
- package/web/app/immutable/nodes/{1.BCIzPBLS.js → 1.sAE7iwU1.js} +1 -1
- package/web/app/immutable/nodes/{10.CitPgiJ3.js → 10.DNzXLFkx.js} +1 -1
- package/web/app/immutable/nodes/{14.CdTQyTvv.js → 14.YTlK2SeN.js} +1 -1
- package/web/app/immutable/nodes/{16.AZfVvgqP.js → 16.C62UErj3.js} +2 -2
- package/web/app/immutable/nodes/{2.Dhrl5ptg.js → 2.BIYjc8j-.js} +3 -3
- package/web/app/immutable/nodes/{3.CsMeo6Xv.js → 3.C0pjKeNY.js} +1 -1
- package/web/app/immutable/nodes/{4.CQ8xrx-T.js → 4._EbXXqeH.js} +1 -1
- package/web/app/immutable/nodes/{5.BfoV9rHK.js → 5.qY7J8QM6.js} +1 -1
- package/web/app/immutable/nodes/{6.Df7ucNiy.js → 6.yeh_1zWo.js} +1 -1
- package/web/app/immutable/nodes/{7.DONDdlQd.js → 7.Dmqj3KiQ.js} +1 -1
- package/web/app/immutable/nodes/{8.CgHGNiu0.js → 8.h0hqyIXC.js} +2 -2
- package/web/app/immutable/nodes/{9.DZvK1vth.js → 9.BBHFrPvY.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/w47UAFdd.js +0 -1
- package/web/app/immutable/entry/start.D2p6xEVd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,bq as d,by as P,b as V,a_ as B,bo as L}from"./CiieX7lJ.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as F,ay as I,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./B8o4lNgr.js";import{s as ne,k as ie,d as oe}from"./cHkD9nAc.js";import{B as ae}from"./BkR4V1cF.js";import{I as se}from"./DxuhGP23.js";import"./B7tGjRid.js";import{L as le}from"./CP_wqUC5.js";import"./BA63tGX8.js";import{D as ue,k as W}from"./
|
|
1
|
+
import{t as O,bq as d,by as P,b as V,a_ as B,bo as L}from"./CiieX7lJ.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as F,ay as I,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./B8o4lNgr.js";import{s as ne,k as ie,d as oe}from"./cHkD9nAc.js";import{B as ae}from"./BkR4V1cF.js";import{I as se}from"./DxuhGP23.js";import"./B7tGjRid.js";import{L as le}from"./CP_wqUC5.js";import"./BA63tGX8.js";import{D as ue,k as W}from"./lPZVVuHr.js";import{G as ce,F as y}from"./8TCgRigb.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return O({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:P,$on:(s,m)=>V(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return O({component:E,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:P,$on:(t,g)=>V(o,t,g)},h=F(),i=I(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),G=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};B(G,C=>{e().options.field.label&&C(K)})}var Q=X(G,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};B(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return O({component:pe,...f});H(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:P,$on:(i,u)=>V(o,i,u)},v=F(),A=I(v);{var h=i=>{var u=F(),q=I(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};B(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./CiieX7lJ.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./DFiy7ajR.js";import{c as L,f as w}from"./cHkD9nAc.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./CP_wqUC5.js";import{G2 as ne,qY as oe,bb as ie}from"./DScTb8GR.js";import{aU as de}from"./
|
|
1
|
+
import{t as I,bq as s,a_ as O,by as z,br as P,b as N,bu as M,bs as Q}from"./CiieX7lJ.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as B,bA as W,W as S,bn as E,c9 as H,aA as n,aB as G,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./DFiy7ajR.js";import{c as L,f as w}from"./cHkD9nAc.js";import{b as U}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./CP_wqUC5.js";import{G2 as ne,qY as oe,bb as ie}from"./DScTb8GR.js";import{aU as de}from"./DZOobfUN.js";import{m as ce}from"./DY0zw3Os.js";import{bs as le}from"./BA63tGX8.js";import{M as ue}from"./Bn-T0dS6.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=G('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=G("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=P(e,me);const m=ve(),k=H(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var Y={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var K=R(h);{var j=t=>{var _=be(),J=R(_);q(J,b),W(_),S(t,_)};O(K,t=>{b()&&t(j)})}var F=X(K,2);return q(F,()=>r()??B),W(h),U(h,t=>i(t),()=>i()),S(o,h),E(Y)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=G("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=P(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>w("type-body min-w-0",a()?"p-0":w(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??B),W(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ge(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=H(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return I({component:we,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=Q();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};O(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Ge as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./CiieX7lJ.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./cHkD9nAc.js";import{s as ke}from"./DFiy7ajR.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./D9pZvnq5.js";import{A as xe}from"./
|
|
1
|
+
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./CiieX7lJ.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./cHkD9nAc.js";import{s as ke}from"./DFiy7ajR.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./D9pZvnq5.js";import{A as xe}from"./DZOobfUN.js";import{y as ye}from"./lPZVVuHr.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./
|
|
1
|
+
import{I as X}from"./CZFEnK7L.js";import{p as z}from"./DDfuADvu.js";import{p as G}from"./CV4TfELY.js";import{aI as F,aG as Y,aF as P,O as q,K as Z,L as j,a as g,j as M,ad as S,aE as U,r as K,M as R,k as Q,aD as J,Q as ee,y as te,aw as ne}from"./BZA0d6L5.js";import{g as v}from"./W0ohOtfo.js";var H=/[─━│┃└┗├┣]/,W=/[└┗├┣]/,re=/[─━]/,A=/^[\s│┃]+$/,D=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,L=/^\s*%%/,ie=" ";function N(n){return n.some(t=>H.test(t))}v(N,"isBoxDrawingFormat");g(N,"isBoxDrawingFormat");function T(n){for(const t of n){const e=W.exec(t);if(e?.index&&e.index>0)return e.index}return 4}v(T,"inferSegmentWidth");g(T,"inferSegmentWidth");function V(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}v(V,"remapErrorLines");g(V,"remapErrorLines");function $(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||L.test(c)||D.test(c)||A.test(c)||s.push(c.replace(/\t/g," "))}if(!N(s))return{text:n,lineMap:e};const i=T(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(L.test(c)){o.push(c),a++,e.set(a,h);continue}if(D.test(c)){o.push(c),a++,e.set(a,h);continue}if(A.test(c))continue;const l=c.replace(/\t/g," "),m=W.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const b=l.slice(u).trimEnd();if(!b)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=ie.repeat(w);o.push(O+b),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(H.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}v($,"preprocessBoxDrawing");g($,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=g(()=>{x.reset(),Q()},"clear"),se=g(()=>x.records.stack[0],"getRoot"),ae=g(()=>x.records.cnt,"getCount"),ce=te.treeView,le=g(()=>M(ce,R().treeView),"getConfig"),de=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:j,getAccDescription:Z,getDiagramTitle:q,setAccDescription:P,setAccTitle:Y,setDiagramTitle:F},B=he,pe=g(n=>{z(n,B);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,R()):void 0;B.addNode(e,r,i,o,p,d)}},"populate"),ge={parse:g(async n=>{const{text:t,lineMap:e}=$(n);try{const r=await G("treeView",t);S.debug(r),pe(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=V(r.message,e)),r}},"parse")},I={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function E(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}v(E,"detectIcon");g(E,"detectIcon");function C(n,t){return n.includes(":")?n:n in I.icons||!t?`${I.prefix}:${n}`:`${t}:${n}`}v(C,"qualifyIcon");g(C,"qualifyIcon");function y(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=E(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${I.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}v(y,"getNodeIcon");g(y,"getNodeIcon");ne([{name:I.prefix,icons:I}]);var k=14,fe=4,ue=16,me=g(async(n,t)=>{const e=[],r=g(i=>{const o=y(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await ee(i,{height:k,width:k})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=k+fe,c=y(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=n+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,b=m+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:b,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),_=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),xe=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=we(f,s,h,d,l,r);o.push(w);const{height:u,width:b}=h.BBox;_(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+b),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;_(n,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+ue;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),ve=g(async(n,t,e,r)=>{S.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=U(t),p=a.append("g");p.attr("class","tree-view");const c=await me(i,o),{totalHeight:d,totalWidth:h}=xe(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),K(a,d,h,o.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=M(Ce,n);return`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ze}from"./DCuTumtg.js";import{s as Xe}from"./BqOdnG_o.js";import{f as m,aN as Be,c7 as Je,aL as Ze,c6 as et,aK as tt,c9 as st,aP as it,aO as Ne,bC as qe,a0 as rt,e as nt,aS as at,bZ as lt,cx as ct}from"./CyFUY7ZG.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(i,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(Ge,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((b===null||typeof b>"u")&&(b=Ue()),N=de[z]&&de[z][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
1
|
+
import{g as ze}from"./Boxg4-Ef.js";import{s as Xe}from"./Bx2W_o-K.js";import{f as m,aN as Be,c7 as Je,aL as Ze,c6 as et,aK as tt,c9 as st,aP as it,aO as Ne,bC as qe,a0 as rt,e as nt,aS as at,bZ as lt,cx as ct}from"./W0ohOtfo.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(i,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(Ge,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((b===null||typeof b>"u")&&(b=Ue()),N=de[z]&&de[z][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(b==Pe?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+b);switch(N[0]){case 1:o.push(b),d.push(_.yytext),t.push(_.yylloc),o.push(N[1]),b=null,$e=_.yyleng,l=_.yytext,ge=_.yylineno,Ie=_.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=d[d.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],d,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),d=d.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),d.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},"parseError"),setInput:m(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var a=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as Na,s as ia}from"./
|
|
1
|
+
import{k as Na,s as ia}from"./Bi78eYSt.js";import{j as la,h as an,s as G,k as de,l as rn,I as Da,c as Ma,a as On}from"./cHkD9nAc.js";import{Z as za,cz as Fa,z as Ha,aR as bn,bH as ja,u as Ba}from"./PoUwsq35.js";import{G2 as M,l8 as Ua,c6 as Dn,c4 as da,c7 as hn,pB as qa,AP as Wa,fr as ca,AT as Ka,bn as Ga,xd as Qa,lp as Yn,s3 as Ya,ca as Va,sA as Vn,mh as Xa,AA as Za,AS as Ja,bU as er}from"./DScTb8GR.js";import{bo as d,t as xt,bq as v,by as At,b as $t,bs as zn,a_ as E,bu as pe,bt as tr}from"./CiieX7lJ.js";import{bs as St,a5 as D,bl as be,bS as T,aD as e,W as p,bA as O,b_ as S,bO as U,be as Mt,b$ as wt,bn as It,c9 as i,aA as h,aB as b,ca as Ce,cd as kt,a7 as He,ay as K,bV as V,br as ua,bH as f,bo as nr,c5 as ar,bi as Ln,bj as rr,bf as mn,am as Xn,ax as Zn,ai as sr,aj as or,c0 as ir}from"./B8o4lNgr.js";import{s as pa}from"./DFiy7ajR.js";import{f as lr}from"./4VHPpt5i.js";import{a as dr,H as ga,t as Gt}from"./D9pZvnq5.js";import{r as cr,o as ur,A as Jn,L as pr}from"./MO7fSgv5.js";import{S as vn,t as En}from"./CBlUgvul.js";import{R as ea}from"./Bn-T0dS6.js";import{I as fa}from"./DxuhGP23.js";import"./B7tGjRid.js";import{aA as _n,cv as gr,ak as fr,ay as mr,cp as vr,cq as hr,ag as _r,ai as br,ap as wr,au as kr,k as yr,F as xr,dK as Ar,L as $r,cg as Sr,bP as Ir}from"./D8P_sRVN.js";import{z as Cr,A as Pr,ak as Tr,af as Rr,L as Or}from"./DZOobfUN.js";import{k as Lr}from"./BHchBH91.js";import{f as ta}from"./DHxfVjMA.js";import{h as Er,g as Nr}from"./R48o2LFj.js";import"./BA63tGX8.js";import{ap as Dr,f as Nn,a5 as Mr,bb as na}from"./MvsKYcnI.js";import"./BsIC5g2I.js";import{c as zr,r as Fr,q as Hr,p as jr,E as Br}from"./CP_wqUC5.js";import{n as Ur,D as qr,k as Wr,c as Kr,d as Gr,b as Qr,A as Yr,p as Vr,P as Xr}from"./lPZVVuHr.js";import{F as Zr,e as Jr,b8 as es,d as ts,bk as ns}from"./BFe-YAfF.js";import{c as ze}from"./BYsuIPWO.js";import{T as as}from"./Dg1S3nIy.js";import{cc as ma,cD as rs,cC as ss,bK as os,x as is,F as wn,b0 as ls,ar as ds,aG as cs,aC as us,cH as ps,b9 as gs,ax as fs,X as ms,aY as vs,ae as aa,a6 as hs,bZ as _s,ad as bs,cu as ws,ak as ks,cG as ys,aA as xs}from"./Cu4EVTck.js";import{b as As}from"./D2g8BuR1.js";import"./CVNyJD46.js";import{f as $s}from"./wjPovFUP.js";const Ss=80,Is=10,Cs=new za(Fa,{renderer:{html({text:a}){return Ha(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Fn(a){const n=document.createElement("template");n.innerHTML=Cs.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function yt(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Mn(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function kn(a,n){return!n||n.length>Ss||n.split(/\s+/).length>Is||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function ci(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const l=yt(o[1]);return kn(o[0],l)?l:null}function Hn(a,n=!1,o=!0){const l=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",s=a.slice(l.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!s)return null;if(n){const w=s[1],y=w.match(/\\+$/)?.[0].length??0;if(w!==w.trim()||w.includes("**")||w.startsWith("*")||w.endsWith("*")||y%2!==0)return null}const u=yt(s[1]);return kn(s[0],u)?{title:n&&o?Fn(s[1]):u,body:Mn(a,l.length+s[0].length)}:null}function ra(a){const n=[];let o=a;for(;o.trim();){const l=jn(o,!0),c=l.heading?{body:l.body}:Hn(o,!0,!1);if(!c)return null;n.push(o.slice(0,o.length-c.body.length)),o=c.body}return n.length?n:null}function ui(a){const n=[];let o=a;for(;o.trim();){const l=jn(o,!0,Fn),c=l.heading?{title:l.heading,body:l.body}:Hn(o,!0);if(!c)return null;n.push(c.title),o=c.body}return n.length?n:null}function pi(a){const n=Ts(a),o=[];let l=a;for(n.heading&&(o.push({title:n.heading,body:""}),l=n.body);l;){const c=Hn(l);if(!c||c.body.length>=l.length)break;o.push({title:c.title,body:""}),l=c.body}if(o.length===0){const c=a.trim(),s=yt(c);return!c.includes(`
|
|
2
2
|
`)&&kn(c,s)?[{title:s,body:""}]:c?[{title:null,body:c}]:[]}return o[o.length-1].body=l.trim(),o}function Ps(a){const n=a.replace(/^ {0,3}/,"");return!/^(?:\s|>|`{3}|~{3}|(?:[-+*]|\d+[.)])(?:[ \t]|$)|#{1,6}(?:[ \t]|$)|<|\[[^\]]*\]:)/.test(n)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(n)}function jn(a,n=!1,o=yt){const l=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",c=a.slice(l.length);if(n&&/^(?: {4}| {0,3}\t)/.test(c))return{heading:null,body:a};const s=c.match(/^[ \t]{0,3}#{1,6}[ \t]+([^\r\n]*?)(?:[ \t]+#+)?[ \t]*(?:\r\n|\n|\r|$)/);if(s&&yt(s[1]))return{heading:o(s[1]),body:Mn(a,l.length+s[0].length)};const u=c.match(/^([^\r\n]+)(?:\r\n|\n|\r)([ \t]{0,3})(?:=+|-+)[ \t]*(?:\r\n|\n|\r|$)/);return u&&(!n||Ps(u[1])&&!u[2].includes(" "))&&yt(u[1])?{heading:o(u[1]),body:Mn(a,l.length+u[0].length)}:{heading:null,body:a}}function Ts(a,{preserveInlineText:n=!1}={}){const o=n?Fn:yt,l=jn(a,!1,o);if(l.heading)return l;const c=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",u=a.slice(c.length).match(/^([^\r\n]+)(?:\r\n|\n|\r)(?:[ \t]*(?:\r\n|\n|\r))+/);if(u){const w=yt(u[1]),y=a.slice(c.length+u[0].length);if(y.trim()&&kn(u[1],w))return{heading:o(u[1]),body:y}}return{heading:null,body:a}}const zt="[--operational-row-inline-padding:var(--chat-operational-row-inline-padding,0.5rem)] [--operational-leading-slot-size:1.25rem] [--operational-leading-half-slot-size:0.625rem] [--operational-leading-gap:var(--chat-operational-leading-gap,0.5rem)]",gi="type-body font-family-child font-normal text-muted-foreground",fi=`${zt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,mi=`${zt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1.5`,vi=`${zt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1`,hi=`${zt} relative min-w-0 max-w-full`,_i=`${zt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,bi=`${zt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,wi="pt-6",ki="text-muted-foreground",yi="text-muted-foreground",va="font-normal text-muted-foreground",xi="tool-call-container group relative block w-full min-w-0 max-w-full overflow-hidden type-body font-family-child font-normal text-muted-foreground",Ai="h-[16px]! w-[16px]! shrink-0",$i=`${zt} relative grid h-7 w-full min-w-0 max-w-full grid-cols-[var(--operational-leading-slot-size)_minmax(0,1fr)_auto] items-center gap-[var(--operational-leading-gap)] overflow-hidden rounded-md px-[var(--operational-row-inline-padding)] type-body transition-colors duration-[var(--motion-fast)] motion-reduce:transition-none`,Si=`a11y-ignore pointer-events-none flex size-[var(--operational-leading-slot-size)] min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center [&_svg]:size-[16px]! ${va}`,Ii=`type-body block min-w-0 max-w-full truncate overflow-hidden text-ellipsis whitespace-nowrap border-0 bg-transparent p-0 text-left ${va}`,Ci="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",Pi="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function Ti(a){return Na(a,{axis:"y",duration:la()?0:150})}function sn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function Ri(a){const n=a?.[0];return!n||sn(n)?"":"pt-4"}function Oi(a,n,o=()=>!0){const l=a[n];if(!l||!o(l)||!sn(l))return!1;let c=n-1;for(;c>=0&&!o(a[c]);)c-=1;return c>=0&&sn(a[c])}function Li(a,n,o=()=>!0,l=!1){const c=a[n];if(!c||!o(c))return"";let s=n-1;for(;s>=0&&!o(a[s]);)s-=1;if(s<0)return"";const u=a[s];if(u.type==="thinking"&&c.type==="thinking")return l||ra(u.text??u.content??"")!==null&&ra(c.text??c.content??"")!==null?"":"pt-14";const w=sn(u),y=sn(c);return w&&y?"":u.type==="thinking"&&!y?"pt-6":w||y?"pt-4":"pt-1"}const Ei="shrink-0 whitespace-nowrap text-ui text-subtle focus-visible:outline-none focus-visible:text-foreground",Bn=M.createSelector((a,n)=>a.skills.byWorkspaceId[n]??Ua),Ni=M.createSelector((a,n)=>Bn.select(a,n).skills),Di=M.createSelector((a,n)=>Bn.select(a,n).loading),Mi=M.createSelector((a,n)=>Bn.select(a,n).error);function Rs(a){if(a?.status==="halted")return d.agent_node_halted_label();if(a?.status==="resuming")return d.agent_node_resuming_label();if(a?.placement?.target==="remote"){if(a.placementError)return d.remoteAgent_status_failed();if(a.effectiveIsolation==="pending")return a.setup?.state==="pending"?d.remoteAgent_status_preparingCheckout():a.setup?.state==="running"?d.remoteAgent_status_runningSetup():d.remoteAgent_status_starting()}if(a?.placement&&a.effectiveIsolation==="pending")return d.agent_node_provisioning_label()}const sa=Zr.map(a=>({key:a.path.replace(/^agentFeatures\./,""),label:a.label,description:a.description}));function Os(a){const n=a.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase().trim();return n.charAt(0).toUpperCase()+n.slice(1)}function Ls(a){const n=a??{},o=sa.map(s=>({key:s.key,label:s.label(),description:s.description(),enabled:n[s.key]===!0,known:!0})),l=new Set(sa.map(s=>s.key)),c=[];for(const[s,u]of Object.entries(n))l.has(s)||c.push({key:s,label:Os(s),description:null,enabled:u===!0,known:!1});return c.sort((s,u)=>s.label.localeCompare(u.label)),o.concat(c)}var Es=b('<div role="listitem" class="text-xs text-subtle" aria-hidden="true">—</div>'),Ns=b('<section class="min-w-0"><h3 class="text-sm font-medium mb-3"> </h3> <div role="list" class="space-y-4"></div></section>'),Ds=b('<div class="@container"><div class="grid grid-cols-1 gap-6 @min-[28rem]:grid-cols-2" data-testid="harness-features-list"></div></div>');function ha(a,n){if(new.target)return xt({component:ha,...a});St(n,!0);let o=v(n,"open",15,!1),l=v(n,"static",7,!1),c=v(n,"version",7),s=v(n,"features",7,null);const u=i(()=>Ls(s())),w=i(()=>[{enabled:!0,label:d.chat_shared_valueOn_label(),rows:e(u).filter(x=>x.enabled)},{enabled:!1,label:d.chat_shared_valueOff_label(),rows:e(u).filter(x=>!x.enabled)}]);var y={get open(){return o()},set open(x=!1){o(x),h()},get static(){return l()},set static(x=!1){l(x),h()},get version(){return c()},set version(x){c(x),h()},get features(){return s()},set features(x=null){s(x),h()},$set:At,$on:(x,A)=>$t(n,x,A)};{let x=i(()=>d.chat_harnessFeaturesModal_title({version:c()})),A=i(()=>d.chat_harnessFeaturesModal_description());zr(a,{get static(){return l()},get title(){return e(x)},get description(){return e(A)},size:"wide",get open(){return o()},set open(m){o(m)},children:(m,j)=>{var I=Ds(),ge=D(I);an(ge,21,()=>e(w),Pe=>Pe.enabled,(Pe,L)=>{var Q=Ns(),g=D(Q),Te=be(g,!0),te=T(g,2);an(te,21,()=>e(L).rows,$=>$.key,($,Z)=>{Ur($,{role:"listitem",class:"min-h-0 px-0 py-0 [&_.truncate]:whitespace-normal","data-testid":"harness-feature-state",get"data-feature"(){return e(Z).key},get"data-enabled"(){return e(Z).enabled},title:ve=>{Mt();var ae=wt();S(()=>U(ae,e(Z).label)),p(ve,ae)},description:ve=>{Mt();var ae=wt();S(()=>U(ae,e(Z).description)),p(ve,ae)},$$slots:{title:!0,description:!0}})},$=>{var Z=Es();p($,Z)}),O(te),O(Q),S(()=>{G(Q,"aria-label",e(L).label),U(Te,e(L).label)}),p(Pe,Q)}),O(ge),O(I),p(m,I)},$$slots:{default:!0}})}return It(y)}var Ms=b('<p role="alert" class="type-body text-danger"> </p>');function _a(a,n){if(new.target)return xt({component:_a,...a});St(n,!0);const o=()=>pe(m,"$outcome$",l),[l,c]=zn();let s=v(n,"open",15,!1),u=v(n,"agentName",7),w=v(n,"workspaceId",7),y=v(n,"agentId",7);const x=crypto.randomUUID(),A=kt(""),m=bn(A,x),j=i(()=>o()?.workspaceId===w()&&o().agentId===y()?o():void 0),I=i(()=>e(j)?.status==="pending"),ge=i(()=>e(j)?.status==="failed"?e(j).error:"");Ce(()=>{const g=w();return y(),A.set(g),()=>M.dispatch(Dn(g,x))}),Ce(()=>{e(j)?.status==="succeeded"&&(s(!1),M.dispatch(da(w(),x,e(j).requestId)))});function Pe(){const g=bn.select(M.state,w(),x);g?.agentId===y()&&g.status==="pending"||M.dispatch(hn(w(),x,crypto.randomUUID(),y(),{kind:"retire"}))}var L={get open(){return s()},set open(g=!1){s(g),h()},get agentName(){return u()},set agentName(g){u(g),h()},get workspaceId(){return w()},set workspaceId(g){w(g),h()},get agentId(){return y()},set agentId(g){y(g),h()},$set:At,$on:(g,Te)=>$t(n,g,Te)};{const g=ne=>{var we=He(),ve=K(we);{var ae=ke=>{var qe=Ms(),We=be(qe,!0);S(()=>U(We,e(ge))),p(ke,qe)};E(ve,ke=>{e(ge)&&ke(ae)})}p(ne,we)};let Te=i(()=>d.modals_retireAgent_title()),te=i(()=>d.modals_retireAgent_description({name:u()})),$=i(()=>d.modals_retireAgent_confirm_label()),Z=i(()=>d.modals_bulkActionConfirm_cancel_label());qr(a,{get title(){return e(Te)},get description(){return e(te)},get confirmLabel(){return e($)},get cancelLabel(){return e(Z)},focusSubmit:!1,focusCancel:!0,get busy(){return e(I)},onConfirm:Pe,get open(){return s()},set open(ne){s(ne)},details:g,$$slots:{details:!0}})}var Q=It(L);return c(),Q}function zs({agentName:a,specialist:n}){const o=n?`{ topLevel: true, specialist: ${JSON.stringify(n)} }`:"{ topLevel: true }",l=n?`and keep the same specialist (${JSON.stringify(n)})`:"and, if you were created with a specialist, pass that exact same `specialist` value in the options";return`Please replace yourself with a fresh top-level agent and run a gradual, coordinated hand-off:
|
|
3
3
|
|
|
4
4
|
1. Create your replacement now: call \`ws.agent.create(${JSON.stringify(a)}, kickoffMessage, ${o})\`. The first argument must be your EXACT current name (${JSON.stringify(a)}) ${l}. Write the kickoff message as a thorough context hand-off: the overall goal, the current state of the work, key notes and files, decisions already made, and open threads.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as ue,t as ne,bq as v,a_ as M,by as re,b as se,bo as k}from"./CiieX7lJ.js";import{G2 as pe}from"./DScTb8GR.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as L,aA as h,a5 as G,bA as U,b_ as T,aB as P,bl as q,bO as j,bS as S,ca as fe,bH as _e,bV as ge,aC as z}from"./B8o4lNgr.js";import{d as me,f as ve,k as te,a as he,l as ce,s as A}from"./cHkD9nAc.js";import{u as Ce,H as O,e as $,A as J}from"./D9pZvnq5.js";import{t as we}from"./CBlUgvul.js";import{F as ke}from"./Cu4EVTck.js";import{M as be}from"./iatFKKcG.js";import{c as xe}from"./D8P_sRVN.js";import{aF as Te}from"./LZgSqmId.js";import{f as Se}from"./MvsKYcnI.js";function ct(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./EsMfrwLq.js");return{showAssistantContent:o}},__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]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ut(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function pt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Ae=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Me=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Le=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),g=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=L(()=>i()||c()>0||e()>0||u()),R=L(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(n){return Ce(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return g()},set inline(n=!0){g(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),D=X(C);{var p=n=>{var w=Pe(),K=G(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(H=>j(N,H),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var H=s=>{var l=Ae(),b=S(G(l),2),I=q(b,!0);U(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};M(N,s=>{(c()>0||i())&&s(H)})}var Z=S(N,2);{var W=s=>{var l=Me(),b=S(G(l),2),I=q(b,!0);U(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};M(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Le(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};M(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};M(K,_=>{u()?_(E):_(V,-1)})}U(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};M(D,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const De=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),He=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Oe=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function ze(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of ze(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||He.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=De.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const g of t.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Oe.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function Be(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function Fe(t){const a=await Be(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function qe(t,a){if(new.target)return ne({component:qe,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),g=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=L(()=>xe(e().name,e().input||{})),y=L(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=ge("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||_e(R,w,!0)}),()=>{n=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var D=p=>{var n=Ze(),w=G(n);{var K=_=>{var m=Ve(),N=G(m);{var H=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=L(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};M(N,x=>{r(Z)?x(H):x(W,-1)})}U(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};M(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),U(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};M(C,p=>{r(d).hidden||p(D)})}return f(t,F),oe(B)}var Ge=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ue=z('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=z('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=z('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=z('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=z('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=z('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=L(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=L(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=L(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,D)=>se(a,C,D)};{let C=L(()=>k.tiptap_taskStatus_status_tooltip({status:r(B)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(D,p)=>{var n=Je(),w=G(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ge();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},H=s=>{var l=Ue();O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>A(l,"stroke",r(y).stroke)),O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();O(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);O(3,b,()=>$,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);O(3,b,()=>J,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};M(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(H,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}U(n),T(()=>{A(n,"width",i()),A(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),A(K,"id",`half-clip-${g??""}`),A(E,"r",`${r(y).innerCircleRPercentage*.5}%`),A(E,"fill",r(y).fill),A(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${g})`:"none"),A(V,"stroke",r(y).stroke)}),f(D,n)},$$slots:{default:!0}})}return oe(F)}export{qe as A,Re as L,Qe as T,Ee as a,Be as b,pt as g,ct as o,Fe as r,ut as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Cydmwi9G.js","/app/immutable/chunks/CiieX7lJ.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DScTb8GR.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/DFiy7ajR.js","/app/immutable/chunks/BkR4V1cF.js","/app/immutable/chunks/BhlL7bo3.js","/app/immutable/chunks/CR2KEzOv.js","/app/immutable/chunks/MvsKYcnI.js","/app/immutable/chunks/cHkD9nAc.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/BYsuIPWO.js","/app/immutable/chunks/0AZcgmOx.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/ccAoC28z.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/TTIE1D5C.js","/app/immutable/chunks/Bn-T0dS6.js","/app/immutable/chunks/D9pZvnq5.js","/app/immutable/chunks/Ck1S-wvb.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Cu4EVTck.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/D8P_sRVN.js","/app/immutable/chunks/Wwci9Xqf.js","/app/immutable/chunks/CSwi3ilf.js","/app/immutable/chunks/Cb4F1a51.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as ue,t as ne,bq as v,a_ as M,by as re,b as se,bo as k}from"./CiieX7lJ.js";import{G2 as pe}from"./DScTb8GR.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as L,aA as h,a5 as G,bA as U,b_ as T,aB as P,bl as q,bO as j,bS as S,ca as fe,bH as _e,bV as ge,aC as z}from"./B8o4lNgr.js";import{d as me,f as ve,k as te,a as he,l as ce,s as A}from"./cHkD9nAc.js";import{u as Ce,H as O,e as $,A as J}from"./D9pZvnq5.js";import{t as we}from"./CBlUgvul.js";import{F as ke}from"./Cu4EVTck.js";import{M as be}from"./B1HqsJ1G.js";import{c as xe}from"./D8P_sRVN.js";import{aF as Te}from"./PoUwsq35.js";import{f as Se}from"./MvsKYcnI.js";function ct(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./Cydmwi9G.js");return{showAssistantContent:o}},__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]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ut(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function pt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Ae=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Me=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Le=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),g=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=L(()=>i()||c()>0||e()>0||u()),R=L(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(n){return Ce(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return g()},set inline(n=!0){g(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),D=X(C);{var p=n=>{var w=Pe(),K=G(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(H=>j(N,H),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var H=s=>{var l=Ae(),b=S(G(l),2),I=q(b,!0);U(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};M(N,s=>{(c()>0||i())&&s(H)})}var Z=S(N,2);{var W=s=>{var l=Me(),b=S(G(l),2),I=q(b,!0);U(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};M(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Le(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};M(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};M(K,_=>{u()?_(E):_(V,-1)})}U(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};M(D,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const De=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),He=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Oe=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function ze(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of ze(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||He.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=De.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const g of t.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Oe.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function Be(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function Fe(t){const a=await Be(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function qe(t,a){if(new.target)return ne({component:qe,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),g=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=L(()=>xe(e().name,e().input||{})),y=L(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=ge("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||_e(R,w,!0)}),()=>{n=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var D=p=>{var n=Ze(),w=G(n);{var K=_=>{var m=Ve(),N=G(m);{var H=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=L(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};M(N,x=>{r(Z)?x(H):x(W,-1)})}U(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};M(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),U(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};M(C,p=>{r(d).hidden||p(D)})}return f(t,F),oe(B)}var Ge=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ue=z('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=z('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=z('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=z('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=z('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=z('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=L(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=L(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=L(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,D)=>se(a,C,D)};{let C=L(()=>k.tiptap_taskStatus_status_tooltip({status:r(B)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(D,p)=>{var n=Je(),w=G(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ge();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},H=s=>{var l=Ue();O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>A(l,"stroke",r(y).stroke)),O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();O(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);O(3,b,()=>$,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);O(3,b,()=>J,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};M(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(H,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}U(n),T(()=>{A(n,"width",i()),A(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),A(K,"id",`half-clip-${g??""}`),A(E,"r",`${r(y).innerCircleRPercentage*.5}%`),A(E,"fill",r(y).fill),A(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${g})`:"none"),A(V,"stroke",r(y).stroke)}),f(D,n)},$$slots:{default:!0}})}return oe(F)}export{qe as A,Re as L,Qe as T,Ee as a,Be as b,pt as g,ct as o,Fe as r,ut as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as e,bC as s,c4 as o,a6 as i}from"./
|
|
1
|
+
import{f as e,bC as s,c4 as o,a6 as i}from"./W0ohOtfo.js";import{p as g}from"./DfJZNmF8.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.17.2"},d=e(()=>v.version,"getVersion"),c={getVersion:d},m=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:m},b={parser:p,db:c,renderer:f};export{b as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./DScTb8GR.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./D8P_sRVN.js";import{bo as re}from"./CiieX7lJ.js";import{t as Je}from"./D9pZvnq5.js";import{M as t1,v as yr,w as wr}from"./BhlL7bo3.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./BkR4V1cF.js";import{D as bs,b6 as i1,bm as s1}from"./Djp3xwow.js";import{p as o1}from"./Wwci9Xqf.js";import{b as l1}from"./CSwi3ilf.js";import{i as Ge}from"./CnfhTYg8.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./MvsKYcnI.js";import{i as ys}from"./ccAoC28z.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BA63tGX8.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();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,m1(n)}const ws="workspace-debug-flags",dn={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 v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.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={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.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 oa=new v1;function _2(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 b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(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 w1(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 k1(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 F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(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 Y2(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 x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(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=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(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=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(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(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./DScTb8GR.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./D8P_sRVN.js";import{bo as re}from"./CiieX7lJ.js";import{t as Je}from"./D9pZvnq5.js";import{M as t1,v as yr,w as wr}from"./BhlL7bo3.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./BkR4V1cF.js";import{D as bs,b6 as i1,bm as s1}from"./BFe-YAfF.js";import{p as o1}from"./Wwci9Xqf.js";import{b as l1}from"./CSwi3ilf.js";import{i as Ge}from"./CnfhTYg8.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./MvsKYcnI.js";import{i as ys}from"./ccAoC28z.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BA63tGX8.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();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,m1(n)}const ws="workspace-debug-flags",dn={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 v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.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={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.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 oa=new v1;function _2(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 b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(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 w1(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 k1(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 F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(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 Y2(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 x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(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=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(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=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(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(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function e5(t,e){return e.has(t??"manual")}function t5(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 xl=500;function r5(t,e=xl){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 n5(t,e,r=xl){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 a5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function A1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function T1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?Bu(s).path:void 0}function E1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function M1(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=A1(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=T1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=E1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}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 i5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=mi();function Sl(t){Dr=t}var Er={exec:()=>null};function Ur(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 le(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(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var C1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={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:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},z1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Al=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tl=le(Al).replace(/bull/g,pi).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(),N1=le(Al).replace(/bull/g,pi).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(),fi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,L1=/^[^\n]+/,gi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pi).getRegex(),Ln="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",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_1=le("^ {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",vi).replace("tag",Ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),El=t=>le(fi).replace("hr",$0).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",Ln).getRegex(),$1=El(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),B1=El(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),q1=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B1).getRegex(),bi={blockquote:q1,code:I1,def:O1,fences:R1,heading:D1,hr:$0,html:_1,lheading:Tl,list:P1,newline:z1,paragraph:$1,table:Er,text:L1},xs=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).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",Ln).getRegex(),F1={...bi,lheading:N1,table:xs,paragraph:le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).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",Ln).getRegex()},H1={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).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:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(fi).replace("hr",$0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Tl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ml=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,s0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,j1=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,s0).getRegex(),V1=/[\p{Pi}\p{Ps}"']/u,Cl=/(?!~)[\p{P}\p{S}]/u,X1=/(?!~)[\s\p{P}\p{S}]/u,Y1=/(?:[^\s\p{P}\p{S}]|~)/u,K1=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",C1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z1=le(zl,"u").replace(/punct/g,Ut).getRegex(),Q1=le(zl,"u").replace(/punct/g,Cl).getRegex(),J1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,eh=le(J1,"u").replace(/openQuote/g,V1).replace(/punct/g,Ut).getRegex(),Il="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",th=le(Il,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),rh=le(Il,"gu").replace(/notPunctSpace/g,Y1).replace(/punctSpace/g,X1).replace(/punct/g,Cl).getRegex(),nh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ah=le(nh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),ih=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),sh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",oh=le(sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),lh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),ch="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uh=le(ch,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),hh=le(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),dh=le(/^<(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(),mh=le(vi).replace("(?:-->|$)","-->").getRegex(),ph=le("^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",mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fh=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Mn).replace("ref",gi).getRegex(),Dl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),gh=le("reflink|nolink(?!\\()","g").replace("reflink",Rl).replace("nolink",Dl).getRegex(),Ss=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yi={_backpedal:Er,anyPunctuation:hh,autolink:dh,blockSkip:K1,br:Ml,code:W1,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:Z1,emStrongRDelimAst:th,emStrongRDelimUnd:ih,escape:U1,link:fh,nolink:Dl,punctuation:j1,reflink:Rl,reflinkSearch:gh,tag:ph,text:G1,url:Er},vh={...yi,emStrongLDelim:eh,emStrongRDelimAst:ah,emStrongRDelimUnd:oh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Mn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mn).getRegex()},Pa={...yi,emStrongRDelimAst:rh,emStrongLDelim:Q1,delLDelim:lh,delRDelim:uh,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ss).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:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ss).getRegex()},bh={...Pa,br:le(Ml).replace("{2,}","*").getRegex(),text:le(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:bi,gfm:F1,pedantic:H1},g0={normal:yi,gfm:Pa,breaks:bh,pedantic:vh},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},As=t=>yh[t];function zt(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,As)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,As);return t}function Ts(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Es(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.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(Ve.slashPipe,"|");return n}function Qt(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 Ms(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as i}from"./
|
|
1
|
+
import{f as i}from"./W0ohOtfo.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as c,_ as p}from"./CiieX7lJ.js";import{n as w}from"./Bn-T0dS6.js";import"./B8o4lNgr.js";import"./cHkD9nAc.js";import"./DFiy7ajR.js";import{bw as A}from"./MvsKYcnI.js";import"./ChTqQfQN.js";import"./Ck1S-wvb.js";import{g as L,G2 as d,tf as g,th as y}from"./DScTb8GR.js";import{$ as R}from"./D8P_sRVN.js";import{l as v}from"./CSwi3ilf.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,I;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),I=m.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...I!==void 0?{line:I}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return w.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Cbq2nPyy.js","/app/immutable/chunks/CR2KEzOv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DScTb8GR.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/DFiy7ajR.js","/app/immutable/chunks/CiieX7lJ.js","/app/immutable/chunks/BkR4V1cF.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BhlL7bo3.js","/app/immutable/chunks/MvsKYcnI.js","/app/immutable/chunks/cHkD9nAc.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/BYsuIPWO.js","/app/immutable/chunks/0AZcgmOx.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/ccAoC28z.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D8P_sRVN.js","/app/immutable/chunks/Cu4EVTck.js","/app/immutable/chunks/Wwci9Xqf.js","/app/immutable/chunks/D9pZvnq5.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CKKymoqy.js","/app/immutable/chunks/BYBYRLX4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as c,_ as p}from"./CiieX7lJ.js";import{n as w}from"./Bn-T0dS6.js";import"./B8o4lNgr.js";import"./cHkD9nAc.js";import"./DFiy7ajR.js";import{bw as A}from"./MvsKYcnI.js";import"./ChTqQfQN.js";import"./Ck1S-wvb.js";import{g as L,G2 as d,tf as g,th as y}from"./DScTb8GR.js";import{$ as R}from"./D8P_sRVN.js";import{l as v}from"./CSwi3ilf.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,I;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),I=m.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...I!==void 0?{line:I}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return w.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./Cbq2nPyy.js");return{openMessage:a}},__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]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:w.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?w.error(c.ui_linkHandler_notFound_title(),{description:n.message}):w.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Z(e,r){return R(e,r)}function B(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./BhlL7bo3.js").then(o=>o.X);return{appClient:a}},__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,12,21,22]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./BYBYRLX4.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([29,2,3,4,5,6,7,8,9,10,11,28]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await P(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./BYBYRLX4.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([29,2,3,4,5,6,7,8,9,10,11,28]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(y(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await P(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(y(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./BYBYRLX4.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([29,2,3,4,5,6,7,8,9,10,11,28]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function P(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./MvsKYcnI.js").then(s=>s.az);return{backendRequest:o}},__vite__mapDeps([14,10,3,9,15,8,16,17,18,11,19,7,20]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,B as createIntentLinkClickHandler,Z as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
|