@intent-hq/web 2.303.1 → 2.303.2
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/{BeoKf2Nm.js → 00uxEElC.js} +1 -1
- package/web/app/immutable/chunks/{Brbvu9Bf.js → 0_F49j-u.js} +1 -1
- package/web/app/immutable/chunks/{CgoYLyrh.js → 16TQPnhH.js} +1 -1
- package/web/app/immutable/chunks/{CqIXbU6G.js → 1PMPyNG_.js} +1 -1
- package/web/app/immutable/chunks/{K-3wWXoG.js → 1mYCesh4.js} +1 -1
- package/web/app/immutable/chunks/{jfXvxS2S.js → 27ieI8Q7.js} +1 -1
- package/web/app/immutable/chunks/{8L6UQh4N.js → 4NAJ4wU0.js} +1 -1
- package/web/app/immutable/chunks/{EY1yX4lQ.js → 4SHq9vZB.js} +1 -1
- package/web/app/immutable/chunks/{DyzwKjcO.js → 80lJL4Bn.js} +1 -1
- package/web/app/immutable/chunks/{DDXSm5kb.js → 8SGgBOu4.js} +1 -1
- package/web/app/immutable/chunks/{BZlF9cZE.js → Af4e_CfR.js} +1 -1
- package/web/app/immutable/chunks/{Br_vwCYL.js → B0Ix4oHU.js} +3 -3
- package/web/app/immutable/chunks/{LYkiL1Z7.js → B0yoZLtl.js} +1 -1
- package/web/app/immutable/chunks/{YaNhYlLh.js → B43OyUe0.js} +1 -1
- package/web/app/immutable/chunks/{n309YBvY.js → B4W6-XXO.js} +1 -1
- package/web/app/immutable/chunks/{DXwWG0kg.js → B59NonPS.js} +1 -1
- package/web/app/immutable/chunks/{Dz0HBLX5.js → B8eTvp12.js} +1 -1
- package/web/app/immutable/chunks/{DE-ZJyo7.js → B8vlcOwv.js} +1 -1
- package/web/app/immutable/chunks/{DsuTjoON.js → BAY-mFnP.js} +1 -1
- package/web/app/immutable/chunks/{bFa0TDbD.js → BC_OV_w3.js} +6 -6
- package/web/app/immutable/chunks/{C6q6LFl7.js → BD0xH6ju.js} +6 -6
- package/web/app/immutable/chunks/{MPaSCQWF.js → BGn-A48v.js} +2 -2
- package/web/app/immutable/chunks/{Bp0o4QK_.js → BIGW16GS.js} +1 -1
- package/web/app/immutable/chunks/{DIPmbnAQ.js → BJuRmCrE.js} +1 -1
- package/web/app/immutable/chunks/{BOUU5n11.js → BKmyS2KM.js} +1 -1
- package/web/app/immutable/chunks/{Da8-5i7r.js → BNJMdNln.js} +1 -1
- package/web/app/immutable/chunks/{D1wQuS9X.js → BNf1F4jC.js} +1 -1
- package/web/app/immutable/chunks/{B5OCTRwy.js → BNqPvIBf.js} +1 -1
- package/web/app/immutable/chunks/{B6AD3L6o.js → BOYIvbV1.js} +1 -1
- package/web/app/immutable/chunks/{C2zQhN_1.js → BQV3Ny-c.js} +1 -1
- package/web/app/immutable/chunks/{B__rt0-I.js → BR34HSgY.js} +4 -4
- package/web/app/immutable/chunks/{CQp6uUPO.js → BTYvk2mh.js} +1 -1
- package/web/app/immutable/chunks/{CDjySRKh.js → BYUq5x3t.js} +1 -1
- package/web/app/immutable/chunks/{8ouV2ksN.js → BZltciVZ.js} +1 -1
- package/web/app/immutable/chunks/B_2S_hHs.js +1 -0
- package/web/app/immutable/chunks/{CCkicAWR.js → Bb19RpMB.js} +1 -1
- package/web/app/immutable/chunks/{PM-2gCwH.js → BdDWti3j.js} +2 -2
- package/web/app/immutable/chunks/{Bfve9onU.js → BdMGXlaL.js} +1 -1
- package/web/app/immutable/chunks/{D4uurSjm.js → BeH4qLDH.js} +2 -2
- package/web/app/immutable/chunks/{DLg1LKff.js → BehTaWRy.js} +1 -1
- package/web/app/immutable/chunks/{CbgVFYxx.js → Bf2SLLHW.js} +1 -1
- package/web/app/immutable/chunks/{BnaVNQ5C.js → BgAd01eY.js} +1 -1
- package/web/app/immutable/chunks/{C0AUyzcq.js → BjZIrkYy.js} +1 -1
- package/web/app/immutable/chunks/{DiIl-PCx.js → Bm6CXfx7.js} +1 -1
- package/web/app/immutable/chunks/{DYrmWLZS.js → BmQTD8A8.js} +1 -1
- package/web/app/immutable/chunks/{CyrC60Vp.js → BnwJCd5q.js} +1 -1
- package/web/app/immutable/chunks/{uaFePogj.js → Bny3Va3q.js} +1 -1
- package/web/app/immutable/chunks/{BFf5Uhiw.js → BpPaCMNY.js} +2 -2
- package/web/app/immutable/chunks/{CuxOQF3U.js → BpznL-Sx.js} +1 -1
- package/web/app/immutable/chunks/{YgJaoLfT.js → Bq0ctQK9.js} +1 -1
- package/web/app/immutable/chunks/{DDXJdNWs.js → BqNKVfCm.js} +1 -1
- package/web/app/immutable/chunks/{BIZa5Cf_.js → BqfQpM-F.js} +1 -1
- package/web/app/immutable/chunks/{CDIkpSZv.js → BrRwX7DO.js} +1 -1
- package/web/app/immutable/chunks/{D4t7Z7vv.js → BsYKjXz_.js} +1 -1
- package/web/app/immutable/chunks/{CflfeJIa.js → Bt6eGVSt.js} +1 -1
- package/web/app/immutable/chunks/{Bj8NtCfK.js → Bt9uePlA.js} +1 -1
- package/web/app/immutable/chunks/{DdAufyF9.js → Bu9lZqPK.js} +2 -2
- package/web/app/immutable/chunks/{CMdvdycX.js → BuvWIiNr.js} +1 -1
- package/web/app/immutable/chunks/{BEpG-KhT.js → Bv033Zz3.js} +1 -1
- package/web/app/immutable/chunks/{Bc8F17WQ.js → Bv7kzLZM.js} +1 -1
- package/web/app/immutable/chunks/{Dam5_Z8s.js → Bx6JcGvf.js} +3 -3
- package/web/app/immutable/chunks/{Mfxk6hrK.js → By4T0eds.js} +1 -1
- package/web/app/immutable/chunks/{CDHK1MhW.js → ByA1TTJR.js} +1 -1
- package/web/app/immutable/chunks/{VNIUMXZ1.js → BzpcSTCe.js} +1 -1
- package/web/app/immutable/chunks/{Ddsqeq3q.js → C-EKIkEj.js} +1 -1
- package/web/app/immutable/chunks/{D-M2DNIU.js → C0PJP29a.js} +1 -1
- package/web/app/immutable/chunks/{C5b0K3dK.js → C3cCqJG4.js} +1 -1
- package/web/app/immutable/chunks/{BvuwU8jV.js → C5VEh5uc.js} +7 -7
- package/web/app/immutable/chunks/{CMmFp0Pt.js → C8Y8MofM.js} +1 -1
- package/web/app/immutable/chunks/{CGTwtuZB.js → CB9_hf7T.js} +1 -1
- package/web/app/immutable/chunks/{DHaw_3Nr.js → CBdGUJdw.js} +1 -1
- package/web/app/immutable/chunks/{BE5Fv7qN.js → CBeI_yeK.js} +1 -1
- package/web/app/immutable/chunks/{BbwEzwME.js → CFXCYKJP.js} +1 -1
- package/web/app/immutable/chunks/{DTonRSsv.js → CHRWNuEU.js} +1 -1
- package/web/app/immutable/chunks/{Dm6zmEG5.js → CJ6fKCMV.js} +1 -1
- package/web/app/immutable/chunks/{CjPzTuqd.js → CMrQ4XgK.js} +1 -1
- package/web/app/immutable/chunks/{D8GJ611X.js → CN2zlwHC.js} +1 -1
- package/web/app/immutable/chunks/{JxxJ9mXU.js → CPCUj0SC.js} +1 -1
- package/web/app/immutable/chunks/{BK4u9wtb.js → CPo0z1NF.js} +1 -1
- package/web/app/immutable/chunks/{C6BkQqQb.js → CQAi9FSX.js} +1 -1
- package/web/app/immutable/chunks/{CcWcrRx2.js → CQmHuNgQ.js} +1 -1
- package/web/app/immutable/chunks/{Bosjw8O3.js → CQw7GTs6.js} +1 -1
- package/web/app/immutable/chunks/{i6zTaEpb.js → CWEt6bXk.js} +1 -1
- package/web/app/immutable/chunks/{BVN4ilux.js → CWFKACW0.js} +1 -1
- package/web/app/immutable/chunks/{CTFAhMsj.js → CXDa1oob.js} +1 -1
- package/web/app/immutable/chunks/{BJZA2e1k.js → C_8qE1Ea.js} +1 -1
- package/web/app/immutable/chunks/{DAL0Y3FS.js → C_PzkP6E.js} +1 -1
- package/web/app/immutable/chunks/{BhPgWKZZ.js → C_c9fmWH.js} +1 -1
- package/web/app/immutable/chunks/{DTbuwXvH.js → CaZjPP9e.js} +1 -1
- package/web/app/immutable/chunks/{B_RQpkN5.js → CbVMangE.js} +1 -1
- package/web/app/immutable/chunks/{DJGQatsU.js → ChsApY2J.js} +1 -1
- package/web/app/immutable/chunks/{DIKzzQEG.js → CjD72_YJ.js} +1 -1
- package/web/app/immutable/chunks/{aPknFgnB.js → CjyLrIKT.js} +1 -1
- package/web/app/immutable/chunks/{BRWGra38.js → Ckh5WWeA.js} +1 -1
- package/web/app/immutable/chunks/{Cbo9e-lk.js → CrPX2-Do.js} +1 -1
- package/web/app/immutable/chunks/{8wsU44-j.js → CsPa9HxL.js} +1 -1
- package/web/app/immutable/chunks/{DZVScUjw.js → CtJ4QAPx.js} +1 -1
- package/web/app/immutable/chunks/{Di_N5xxx.js → CtMKqOD8.js} +1 -1
- package/web/app/immutable/chunks/{A4Dmh4Er.js → CtR_aYLO.js} +1 -1
- package/web/app/immutable/chunks/{CpO5voiW.js → CtnKv097.js} +1 -1
- package/web/app/immutable/chunks/{C5PE5dRA.js → CwGSuPgH.js} +1 -1
- package/web/app/immutable/chunks/{IS2i-qON.js → Cx0BWf2W.js} +2 -2
- package/web/app/immutable/chunks/{CnXUfSkf.js → D-P-dlJm.js} +1 -1
- package/web/app/immutable/chunks/{CE9oTb_7.js → D0P3i4zR.js} +1 -1
- package/web/app/immutable/chunks/{BA0tWkIy.js → D1LK1GGR.js} +1 -1
- package/web/app/immutable/chunks/{CRf1KTYE.js → D2uYpDGE.js} +1 -1
- package/web/app/immutable/chunks/{D-D5GX62.js → D3_DSRwK.js} +1 -1
- package/web/app/immutable/chunks/{Du_FFECf.js → D4z6L4My.js} +4 -4
- package/web/app/immutable/chunks/{TO63wgKH.js → D6gIQvhr.js} +1 -1
- package/web/app/immutable/chunks/{CXYSZJwQ.js → D9WcidNh.js} +1 -1
- package/web/app/immutable/chunks/{DW0i1p3h.js → D9xXuqJT.js} +3 -3
- package/web/app/immutable/chunks/{DKXptzLp.js → DBy0KL7v.js} +1 -1
- package/web/app/immutable/chunks/{NBksFwgt.js → DBzoyXfv.js} +1 -1
- package/web/app/immutable/chunks/{DyUJKXsD.js → DGC8CG3j.js} +1 -1
- package/web/app/immutable/chunks/{DnZciTxO.js → DHHxqqbm.js} +1 -1
- package/web/app/immutable/chunks/{Bg-9J17z.js → DHpbS8ZT.js} +1 -1
- package/web/app/immutable/chunks/{6HM0WwrI.js → DIRIzGp9.js} +1 -1
- package/web/app/immutable/chunks/{CrHeSy6g.js → DJPjZO1e.js} +1 -1
- package/web/app/immutable/chunks/{Dcd7scoM.js → DKYgLLV7.js} +4 -4
- package/web/app/immutable/chunks/{hV-a3cEo.js → DLAMU8JP.js} +1 -1
- package/web/app/immutable/chunks/{CbfNaFu6.js → DMjEYXkO.js} +1 -1
- package/web/app/immutable/chunks/{CyntsY8m.js → DP49kiGN.js} +1 -1
- package/web/app/immutable/chunks/{zZLFVw4s.js → DQe9PqN1.js} +1 -1
- package/web/app/immutable/chunks/{CcwPQ9O4.js → DSXZRa59.js} +1 -1
- package/web/app/immutable/chunks/{CJ9pemY5.js → DUPA9j6z.js} +1 -1
- package/web/app/immutable/chunks/{BXoIE56p.js → DVElz61c.js} +1 -1
- package/web/app/immutable/chunks/{Bu7emN7b.js → DW7zmdfj.js} +1 -1
- package/web/app/immutable/chunks/{Ba6ldMEi.js → DXlS97NX.js} +1 -1
- package/web/app/immutable/chunks/{BD6dhUAy.js → DY2NSWQA.js} +1 -1
- package/web/app/immutable/chunks/{BP5uTKE_.js → DYUcU12p.js} +1 -1
- package/web/app/immutable/chunks/{D5ffGNx9.js → Dc-LMfqP.js} +1 -1
- package/web/app/immutable/chunks/{w3jeSEdx.js → Dcl9PBqG.js} +1 -1
- package/web/app/immutable/chunks/{Mw-Gpasz.js → Dh58itL6.js} +1 -1
- package/web/app/immutable/chunks/{B_USDn20.js → DjLmwxj2.js} +1 -1
- package/web/app/immutable/chunks/{DCtWL3QH.js → DkCy9df6.js} +1 -1
- package/web/app/immutable/chunks/{DHzasNfT.js → DksBb8YR.js} +1 -1
- package/web/app/immutable/chunks/{BVvgEXvX.js → Dm-ly3pD.js} +1 -1
- package/web/app/immutable/chunks/{CQ3a1EyG.js → Dnce1kL4.js} +1 -1
- package/web/app/immutable/chunks/{pbklRmq5.js → Doj9MsHo.js} +1 -1
- package/web/app/immutable/chunks/{8CC8TVgI.js → Dq9THA-s.js} +1 -1
- package/web/app/immutable/chunks/{bzm-2n30.js → Dss2LRs8.js} +1 -1
- package/web/app/immutable/chunks/{DjDCBOVS.js → Dt12oijM.js} +1 -1
- package/web/app/immutable/chunks/{C1SVvLkf.js → Dt_YHb8y.js} +1 -1
- package/web/app/immutable/chunks/{A5biXxJf.js → DvXLHS0T.js} +1 -1
- package/web/app/immutable/chunks/{CKMwvgmW.js → Dw0cAOdh.js} +1 -1
- package/web/app/immutable/chunks/{BKb1USDa.js → DzCBift4.js} +1 -1
- package/web/app/immutable/chunks/{CrqpGEjY.js → DzyWp8BX.js} +1 -1
- package/web/app/immutable/chunks/{CjHpP5RK.js → FVjdVgy8.js} +1 -1
- package/web/app/immutable/chunks/{qVeyMZUH.js → Ga0tOshJ.js} +1 -1
- package/web/app/immutable/chunks/{D6_E0s-v.js → GmnYJDe5.js} +1 -1
- package/web/app/immutable/chunks/{BFAvFQtn.js → HJsrETfU.js} +1 -1
- package/web/app/immutable/chunks/{CxXNCTXN.js → I2TUHdNR.js} +1 -1
- package/web/app/immutable/chunks/{DeIkS6Ir.js → IJrjG441.js} +1 -1
- package/web/app/immutable/chunks/{CSxiQIqf.js → J4NypHg6.js} +1 -1
- package/web/app/immutable/chunks/{3C0u635Z.js → JkPZevtU.js} +1 -1
- package/web/app/immutable/chunks/{os23peQy.js → KOu-Cq5S.js} +1 -1
- package/web/app/immutable/chunks/{BDnl1KXt.js → KgMNo-wX.js} +1 -1
- package/web/app/immutable/chunks/{DtVW9_m7.js → N40ygtio.js} +1 -1
- package/web/app/immutable/chunks/{DqZfiNRX.js → NcsNOGAa.js} +1 -1
- package/web/app/immutable/chunks/{Cqpkx5D-.js → PNb0FkcG.js} +1 -1
- package/web/app/immutable/chunks/{d5YX3jLF.js → Q3WVX75B.js} +1 -1
- package/web/app/immutable/chunks/{2nZ4DEDk.js → QpyyH1fV.js} +1 -1
- package/web/app/immutable/chunks/{bU-QghYU.js → RTUC_gqV.js} +1 -1
- package/web/app/immutable/chunks/{UNcL8nMD.js → RYOcIy3J.js} +1 -1
- package/web/app/immutable/chunks/{BbfCrwpS.js → SQR2mS9I.js} +1 -1
- package/web/app/immutable/chunks/{C_lHU_9L.js → T3bfkv-Z.js} +2 -2
- package/web/app/immutable/chunks/{CRASodpm.js → _bcJX7ZM.js} +1 -1
- package/web/app/immutable/chunks/{sPXVt7LC.js → ahHOUTHC.js} +1 -1
- package/web/app/immutable/chunks/{BEOehA7p.js → c7MI1Uwa.js} +1 -1
- package/web/app/immutable/chunks/{DtPH5jDv.js → cwEGs1kY.js} +1 -1
- package/web/app/immutable/chunks/{lM8ThUgn.js → gKuhYg6Y.js} +1 -1
- package/web/app/immutable/chunks/{k-g3rTlx.js → h37S7kk-.js} +1 -1
- package/web/app/immutable/chunks/{B7kIvU97.js → hRfGY9BA.js} +1 -1
- package/web/app/immutable/chunks/{kGwqxarX.js → i9Hk2neJ.js} +1 -1
- package/web/app/immutable/chunks/{CQchJimX.js → jkdGOTth.js} +1 -1
- package/web/app/immutable/chunks/{CPUt5W4G.js → n7x1c6w9.js} +1 -1
- package/web/app/immutable/chunks/{D0ftNzpH.js → rtWGCI8s.js} +1 -1
- package/web/app/immutable/chunks/{x7K3UR1M.js → sLctU0Rs.js} +1 -1
- package/web/app/immutable/chunks/{CU742qVA.js → xCF3kBw_.js} +1 -1
- package/web/app/immutable/chunks/{CluMc6c4.js → xZ9BClBk.js} +5 -5
- package/web/app/immutable/chunks/{DDevx-cQ.js → yQjZw-Rk.js} +1 -1
- package/web/app/immutable/chunks/{tjLyHM1H.js → zbpnNt59.js} +1 -1
- package/web/app/immutable/entry/{app.DE4M1e5K.js → app.DYPZuUAX.js} +2 -2
- package/web/app/immutable/entry/start.CkreMjRr.js +1 -0
- package/web/app/immutable/nodes/{0.DzKcGMpw.js → 0.DNhWEYGp.js} +1 -1
- package/web/app/immutable/nodes/{1.BRKnSVrJ.js → 1.C9L1F6aA.js} +1 -1
- package/web/app/immutable/nodes/{10.Dq2vvlba.js → 10.B8AiTDsb.js} +1 -1
- package/web/app/immutable/nodes/{14.vi5_3ajt.js → 14.BKuNc4_Z.js} +1 -1
- package/web/app/immutable/nodes/{16.B4hQ-11c.js → 16.CtflurYW.js} +2 -2
- package/web/app/immutable/nodes/{2.CIWkcax4.js → 2.B4ArXfgw.js} +3 -3
- package/web/app/immutable/nodes/{3.nHUMIbz4.js → 3.FN9eOco4.js} +1 -1
- package/web/app/immutable/nodes/{4.CuGifUZf.js → 4.ChyHBjf2.js} +1 -1
- package/web/app/immutable/nodes/{5.B28pUbsn.js → 5.mYT25e0t.js} +1 -1
- package/web/app/immutable/nodes/{6.D04srF9Y.js → 6.BDco5Lux.js} +1 -1
- package/web/app/immutable/nodes/{7.U-29Oxv0.js → 7.CMc5WExh.js} +1 -1
- package/web/app/immutable/nodes/{8.Bw_t7MQd.js → 8.DZjomBnv.js} +2 -2
- package/web/app/immutable/nodes/{9.Dr8DgxLF.js → 9.TMF_rwOS.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/Ds156ydk.js +0 -1
- package/web/app/immutable/entry/start.Cx6ojV1T.js +0 -1
|
@@ -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 L,by as re,b as se,bo as k}from"./rfbsWJY8.js";import{Hi as pe}from"./CM_x_DK5.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 M,aA as h,a5 as U,bA as G,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"./Z4aRP2F9.js";import{u as Ce,H as O,e as $,A as J}from"./DVqY3xlL.js";import{t as we}from"./D1yEb1Sd.js";import{F as ke}from"./DPDCKuA3.js";import{M as be}from"./CDjySRKh.js";import{c as xe}from"./BtwWpYbv.js";import{aL as Te}from"./jfXvxS2S.js";import{f as Se}from"./_hjrl4Qq.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("./PM-2gCwH.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>'),Le=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Me=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=M(()=>i()||c()>0||e()>0||u()),R=M(()=>{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(),H=X(C);{var p=n=>{var w=Pe(),K=U(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(D=>j(N,D),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var D=s=>{var l=Ae(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(D)})}var Z=S(N,2);{var W=s=>{var l=Le(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Me(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(K,_=>{u()?_(E):_(V,-1)})}G(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};L(H,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const He=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),De=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)||De.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=He.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=M(()=>xe(e().name,e().input||{})),y=M(()=>[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 H=p=>{var n=Ze(),w=U(n);{var K=_=>{var m=Ve(),N=U(m);{var D=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=M(()=>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]"})};L(N,x=>{r(Z)?x(D):x(W,-1)})}G(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)};L(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),G(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)};L(C,p=>{r(d).hidden||p(H)})}return f(t,F),oe(B)}var Ue=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=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=M(()=>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=M(()=>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=M(()=>(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,H)=>se(a,C,H)};{let C=M(()=>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:(H,p)=>{var n=Je(),w=U(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ue();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},D=s=>{var l=Ge();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)};L(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(D,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)})}G(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(H,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/BdDWti3j.js","/app/immutable/chunks/rfbsWJY8.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/CM_x_DK5.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/DYvAONpX.js","/app/immutable/chunks/D5WwA0O_.js","/app/immutable/chunks/L8URHs0O.js","/app/immutable/chunks/CXgisfCc.js","/app/immutable/chunks/_hjrl4Qq.js","/app/immutable/chunks/Z4aRP2F9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DcUVqsa0.js","/app/immutable/chunks/_X_zaIBj.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/CkCUFgWs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BpPaCMNY.js","/app/immutable/chunks/C95Ch7tj.js","/app/immutable/chunks/DVqY3xlL.js","/app/immutable/chunks/DtY788JX.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/DPDCKuA3.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BtwWpYbv.js","/app/immutable/chunks/Bb8-l2NT.js","/app/immutable/chunks/DjMZotf0.js","/app/immutable/chunks/QsqAizRM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as ue,t as ne,bq as v,a_ as L,by as re,b as se,bo as k}from"./rfbsWJY8.js";import{Hi as pe}from"./CM_x_DK5.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 M,aA as h,a5 as U,bA as G,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"./Z4aRP2F9.js";import{u as Ce,H as O,e as $,A as J}from"./DVqY3xlL.js";import{t as we}from"./D1yEb1Sd.js";import{F as ke}from"./DPDCKuA3.js";import{M as be}from"./BYUq5x3t.js";import{c as xe}from"./BtwWpYbv.js";import{aL as Te}from"./27ieI8Q7.js";import{f as Se}from"./_hjrl4Qq.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("./BdDWti3j.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>'),Le=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Me=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=M(()=>i()||c()>0||e()>0||u()),R=M(()=>{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(),H=X(C);{var p=n=>{var w=Pe(),K=U(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(D=>j(N,D),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var D=s=>{var l=Ae(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(D)})}var Z=S(N,2);{var W=s=>{var l=Le(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Me(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(K,_=>{u()?_(E):_(V,-1)})}G(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};L(H,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const He=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),De=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)||De.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=He.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=M(()=>xe(e().name,e().input||{})),y=M(()=>[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 H=p=>{var n=Ze(),w=U(n);{var K=_=>{var m=Ve(),N=U(m);{var D=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=M(()=>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]"})};L(N,x=>{r(Z)?x(D):x(W,-1)})}G(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)};L(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),G(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)};L(C,p=>{r(d).hidden||p(H)})}return f(t,F),oe(B)}var Ue=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=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=M(()=>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=M(()=>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=M(()=>(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,H)=>se(a,C,H)};{let C=M(()=>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:(H,p)=>{var n=Je(),w=U(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ue();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},D=s=>{var l=Ge();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)};L(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(D,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)})}G(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(H,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 +1 @@
|
|
|
1
|
-
import{i as r}from"./VdNAjP0_.js";import{v as a,I as e}from"./D5WwA0O_.js";import{Hi as s}from"./CM_x_DK5.js";import{c as t}from"./
|
|
1
|
+
import{i as r}from"./VdNAjP0_.js";import{v as a,I as e}from"./D5WwA0O_.js";import{Hi as s}from"./CM_x_DK5.js";import{c as t}from"./B8vlcOwv.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./
|
|
1
|
+
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./C5VEh5uc.js";import{g as k,c3 as Z}from"./BC_OV_w3.js";import{d as ct}from"./DBzoyXfv.js";var nt=(function(){var e=c(function(v,s,d,l){for(d=d||{},l=v.length;l--;d[v[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],o=[1,16],a=[1,19],f=[1,20],g={trace:c(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:c(k(function(s,d,l,p,x,u,E){var _=u.length-1;switch(x){case 1:return u[_-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[_-1].push(u[_]),this.$=u[_-1];break;case 7:case 8:this.$=u[_];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[_].substr(6)),this.$=u[_].substr(6);break;case 12:this.$=u[_].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[_].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[_].substr(8)),this.$=u[_].substr(8);break;case 18:p.addTask(u[_],0,""),this.$=u[_];break;case 19:p.addEvent(u[_].substr(2)),this.$=u[_];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:c(k(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),"parseError"),parse:c(k(function(s){var d=this,l=[0],p=[],x=[null],u=[],E=this.table,_="",H=0,C=0,P=2,G=1,M=u.slice.call(arguments,1),S=Object.create(this.lexer),L={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(L.yy[F]=this.yy[F]);S.setInput(s,L.yy),L.yy.lexer=S,L.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var z=S.yylloc;u.push(z);var X=S.options&&S.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(R){l.length=l.length-2*R,x.length=x.length-R,u.length=u.length-R}k(N,"popStack"),c(N,"popStack");function b(){var R;return R=p.pop()||S.lex()||G,typeof R!="number"&&(R instanceof Array&&(p=R,R=p.pop()),R=d.symbols_[R]||R),R}k(b,"lex"),c(b,"lex");for(var w,I,$,B,W={},D,V,j,q;;){if(I=l[l.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=b()),$=E[I]&&E[I][w]),typeof $>"u"||!$.length||!$[0]){var et="";q=[];for(D in E[I])this.terminals_[D]&&D>P&&q.push("'"+this.terminals_[D]+"'");S.showPosition?et="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(H+1)+": Unexpected "+(w==G?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:z,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch($[0]){case 1:l.push(w),x.push(S.yytext),u.push(S.yylloc),l.push($[1]),w=null,C=S.yyleng,_=S.yytext,H=S.yylineno,z=S.yylloc;break;case 2:if(V=this.productions_[$[1]][1],W.$=x[x.length-V],W._$={first_line:u[u.length-(V||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(V||1)].first_column,last_column:u[u.length-1].last_column},X&&(W._$.range=[u[u.length-(V||1)].range[0],u[u.length-1].range[1]]),B=this.performAction.apply(W,[_,C,H,L.yy,$[1],x,u].concat(M)),typeof B<"u")return B;V&&(l=l.slice(0,-1*V*2),x=x.slice(0,-1*V),u=u.slice(0,-1*V)),l.push(this.productions_[$[1]][0]),x.push(W.$),u.push(W._$),j=E[l[l.length-2]][l[l.length-1]],l.push(j);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var v={EOF:1,parseError:c(k(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),"parseError"),setInput:c(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as T,bs as U}from"./rfbsWJY8.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as I,bS as Y,bf as P,bA as R,W as S,bn as E,c9 as j,aA as n,aB as K,ca as D,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as W}from"./DYvAONpX.js";import{c as B,f as w}from"./Z4aRP2F9.js";import{b as L}from"./D2g8BuR1.js";import{u as ee,c as G,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./D0KbJAaw.js";import{Hi as ne,rI as oe,bj as ie}from"./CM_x_DK5.js";import{aV as de}from"./
|
|
1
|
+
import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as T,bs as U}from"./rfbsWJY8.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as I,bS as Y,bf as P,bA as R,W as S,bn as E,c9 as j,aA as n,aB as K,ca as D,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as W}from"./DYvAONpX.js";import{c as B,f as w}from"./Z4aRP2F9.js";import{b as L}from"./D2g8BuR1.js";import{u as ee,c as G,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./D0KbJAaw.js";import{Hi as ne,rI as oe,bj as ie}from"./CM_x_DK5.js";import{aV as de}from"./DKYgLLV7.js";import{m as ce}from"./DY0zw3Os.js";import{bt as le}from"./hnekB-ms.js";import{M as ue}from"./C95Ch7tj.js";const fe=Symbol("card-group"),ve=()=>X(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=K('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=K("<div><!> <!></div>");function he(o,e){if(new.target)return q({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=O(e,me);const m=ve(),k=j(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=G(p(()=>v()??y+1));te(d);const C=G(d+1);var V={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();B(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 M=I(h);{var F=t=>{var _=be(),Q=I(_);W(Q,b),R(_),S(t,_)};H(M,t=>{b()&&t(F)})}var J=Y(M,2);return W(J,()=>r()??P),R(h),L(h,t=>i(t),()=>i()),S(o,h),E(V)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=K("<div><!></div>");function Se(o,e){if(new.target)return q({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=O(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();B(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=I(l);return W(b,()=>u()??P),R(l),L(l,r=>i(r),()=>i()),S(o,l),E(f)}function Ke(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));D(()=>{o.key?.(),o.active()&&p(e)});const i=j(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));D(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function we(o,e){if(new.target)return q({component:we,...o});A(e,!0);const i=()=>T(l,"$connected$",a),c=()=>T(b,"$slot$",a),[a,u]=U();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()}})};H(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,Ke as r};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/e3l8byhA.js","/app/immutable/chunks/C95Ch7tj.js","/app/immutable/chunks/rfbsWJY8.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Z4aRP2F9.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/_hjrl4Qq.js","/app/immutable/chunks/DYvAONpX.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DcUVqsa0.js","/app/immutable/chunks/D5WwA0O_.js","/app/immutable/chunks/_X_zaIBj.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DVqY3xlL.js","/app/immutable/chunks/DtY788JX.js","/app/immutable/chunks/CM_x_DK5.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/DPDCKuA3.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Se=Object.defineProperty;var _e=(e,t,r)=>t in e?Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>_e(e,typeof t!="symbol"?t+"":t,r);import{Hi as n,s_ as ye,n5 as S,n4 as m,lz as we,xd as A,xe as L,xb as ke,xc as Ee,qK as H,w_ as J,D as Ce,uk as Y,c as Ae,H4 as Re,a8 as Me,b_ as Pe,bZ as Te,cc as Ie,cb as De,n7 as k}from"./CM_x_DK5.js";import{cD as Oe,cs as xe,bt as Fe,c5 as Le,ck as Ue,c7 as Ne,cH as Ve,cL as He,cB as X,aw as We,bP as qe,cI as Be}from"./BtwWpYbv.js";import{a as Ge,i as je}from"./VdNAjP0_.js";import{c as W}from"./ChTqQfQN.js";import{i as D}from"./CkCUFgWs.js";import{bo as a,_ as ze}from"./rfbsWJY8.js";import{n as Ke}from"./
|
|
2
|
+
var Se=Object.defineProperty;var _e=(e,t,r)=>t in e?Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>_e(e,typeof t!="symbol"?t+"":t,r);import{Hi as n,s_ as ye,n5 as S,n4 as m,lz as we,xd as A,xe as L,xb as ke,xc as Ee,qK as H,w_ as J,D as Ce,uk as Y,c as Ae,H4 as Re,a8 as Me,b_ as Pe,bZ as Te,cc as Ie,cb as De,n7 as k}from"./CM_x_DK5.js";import{cD as Oe,cs as xe,bt as Fe,c5 as Le,ck as Ue,c7 as Ne,cH as Ve,cL as He,cB as X,aw as We,bP as qe,cI as Be}from"./BtwWpYbv.js";import{a as Ge,i as je}from"./VdNAjP0_.js";import{c as W}from"./ChTqQfQN.js";import{i as D}from"./CkCUFgWs.js";import{bo as a,_ as ze}from"./rfbsWJY8.js";import{n as Ke}from"./T3bfkv-Z.js";import{al as Ye,F as ee,j as $e,G as Qe,bw as Ze,c as Je,am as Xe,bh as q,$ as et,aC as tt,q as te,K as rt,ah as st,bm as it,J as nt,H as at,I as ot,bk as ct}from"./hnekB-ms.js";import{q as lt,u as re}from"./Bb8-l2NT.js";const $r=n.createSelector(e=>Oe.select(e)?.capabilities.gitlabCheckout===!0),Qr=n.createSelector(e=>e.gitlabAuth.host),Zr=n.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),Jr=n.createSelector(e=>ye(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),Xr=n.createSelector(e=>e.gitlabAuth.isCancelling),es=n.createSelector(e=>e.gitlabAuth.cancelOutcome),ts=n.createSelector(e=>e.gitlabAuth.isConfigured),rs=n.createSelector(e=>e.gitlabAuth.isAuthenticating),ss=n.createSelector(e=>e.gitlabAuth.deviceFlow),is=n.createSelector(e=>e.gitlabAuth.deviceGrantSupported),ns=n.createSelector(e=>e.gitlabAuth.user),as=n.createSelector(e=>e.gitlabAuth.error);n.createSelector(e=>e.gitlabAuth.method);const os=n.createSelector(e=>e.gitlabAuth.statusReady===!0),v=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
|
|
3
3
|
You are a PR review specialist conducting a code review for a pull request.
|
|
4
4
|
|
|
5
5
|
# Objectives
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ie}from"./DDXJdNWs.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./BvuwU8jV.js";import{g as N,c3 as te}from"./bFa0TDbD.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{e as Ie}from"./BqNKVfCm.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./C5VEh5uc.js";import{g as N,c3 as te}from"./BC_OV_w3.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+L.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error on line "+(vt+1)+": Unexpected "+(B==ue?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError($t,{text:L.match,token:this.terminals_[B]||B,line:L.yylineno,loc:Gt,expected:Yt})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+B);switch(F[0]){case 1:E.push(B),D.push(L.yytext),o.push(L.yylloc),E.push(F[1]),B=null,ce=L.yyleng,p=L.yytext,vt=L.yylineno,Gt=L.yylloc;break;case 2:if(z=this.productions_[F[1]][1],wt.$=D[D.length-z],wt._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Le&&(wt._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Zt=this.performAction.apply(wt,[p,ce,vt,Et.yy,F[1],D,o].concat(Ae)),typeof Zt<"u")return Zt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[F[1]][0]),D.push(wt.$),o.push(wt._$),de=Nt[E[E.length-2]][E[E.length-1]],E.push(de);break;case 3:return!0}}return!0},"parse"),"parse")},De=(function(){var bt={EOF:1,parseError:d(N(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,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:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),E.length-1&&(this.yylineno-=E.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:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./BvuwU8jV.js";import{c3 as Q,g as a}from"./bFa0TDbD.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
|
|
1
|
+
import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./C5VEh5uc.js";import{c3 as Q,g as a}from"./BC_OV_w3.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+L.showPosition()+`
|
|
3
3
|
Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":S="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(S,{text:L.match,token:this.terminals_[w]||w,line:L.yylineno,loc:$,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:f.push(w),b.push(L.yytext),p.push(L.yylloc),f.push(T[1]),w=null,M=L.yyleng,N=L.yytext,A=L.yylineno,$=L.yylloc;break;case 2:if(e=this.productions_[T[1]][1],y.$=b[b.length-e],y._$={first_line:p[p.length-(e||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(e||1)].first_column,last_column:p[p.length-1].last_column},F&&(y._$.range=[p[p.length-(e||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(y,[N,M,A,P.yy,T[1],b,p].concat(D)),typeof n<"u")return n;e&&(f=f.slice(0,-1*e*2),b=b.slice(0,-1*e),p=p.slice(0,-1*e)),f.push(this.productions_[T[1]][0]),b.push(y.$),p.push(y._$),r=_[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse"),"parse")},v=(function(){var m={EOF:1,parseError:g(a(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:g(function(o,l){return this.yy=l||this.yy||{},this._input=o,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:g(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:g(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=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),f.length-1&&(this.yylineno-=f.length-1);var b=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:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./
|
|
1
|
+
import{I as X}from"./i9Hk2neJ.js";import{p as z}from"./IJrjG441.js";import{p as G}from"./CtnKv097.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"./C5VEh5uc.js";import{g as v}from"./BC_OV_w3.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`
|