@intent-hq/web 2.300.0 → 2.300.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Ba3Gl_Rx.js → -j8RilKC.js} +2 -2
- package/web/app/immutable/chunks/{B-g-NIPK.js → 0-b4ZvTK.js} +1 -1
- package/web/app/immutable/chunks/{D2MsQ7CI.js → 1-VabEZ0.js} +1 -1
- package/web/app/immutable/chunks/{BcK8h34a.js → 2DcZXs_F.js} +1 -1
- package/web/app/immutable/chunks/{DBntrybU.js → 2N3bEpgZ.js} +1 -1
- package/web/app/immutable/chunks/{CnpqP3W5.js → 2ZXwYJuA.js} +1 -1
- package/web/app/immutable/chunks/{DzZaDWGS.js → 3pZ2C7Oz.js} +1 -1
- package/web/app/immutable/chunks/{CDcsX4P8.js → 3sRD2IoY.js} +1 -1
- package/web/app/immutable/chunks/{C5BrZ9Uc.js → 4MuDb8sG.js} +1 -1
- package/web/app/immutable/chunks/{eUunsB8W.js → 5D7P8R1M.js} +1 -1
- package/web/app/immutable/chunks/{CEniOKQx.js → 5GrgBznS.js} +1 -1
- package/web/app/immutable/chunks/{Bhrt6-Mt.js → 5sBQ6rKD.js} +1 -1
- package/web/app/immutable/chunks/{BkjJpsAb.js → 6bctAAQ4.js} +2 -2
- package/web/app/immutable/chunks/{BLML8tyL.js → 7lKdD900.js} +1 -1
- package/web/app/immutable/chunks/{BxSRgl_K.js → 9A9__2dZ.js} +1 -1
- package/web/app/immutable/chunks/{CWh86ZYE.js → B00a-E5y.js} +1 -1
- package/web/app/immutable/chunks/{D8sxBEHk.js → B08ZRfRe.js} +1 -1
- package/web/app/immutable/chunks/{EOrMcKth.js → B1BoYgO3.js} +1 -1
- package/web/app/immutable/chunks/{CfXQV99h.js → B23FAgl4.js} +1 -1
- package/web/app/immutable/chunks/{BxepIPme.js → B2YeO1vq.js} +1 -1
- package/web/app/immutable/chunks/{C9oKpMS_.js → B5FD8FRF.js} +1 -1
- package/web/app/immutable/chunks/{CaAuKVV3.js → B648LYGe.js} +1 -1
- package/web/app/immutable/chunks/{B87LX9tB.js → B6GFXjaE.js} +4 -4
- package/web/app/immutable/chunks/{CsBt-DEV.js → B9UG1fIf.js} +1 -1
- package/web/app/immutable/chunks/{Jwfh1VUw.js → BBKgmsAl.js} +1 -1
- package/web/app/immutable/chunks/{BMvMJI9S.js → BBi8ZQ4f.js} +1 -1
- package/web/app/immutable/chunks/{DBdZimKy.js → BFq_nebX.js} +1 -1
- package/web/app/immutable/chunks/{DuBklFcM.js → BKBZBubB.js} +1 -1
- package/web/app/immutable/chunks/{C0fkUg5D.js → BKb2X4nY.js} +1 -1
- package/web/app/immutable/chunks/{ZfjlDNse.js → BKoNmPdl.js} +1 -1
- package/web/app/immutable/chunks/{D3C_wxG-.js → BL66wtH1.js} +1 -1
- package/web/app/immutable/chunks/{BaasjTfD.js → BPhCmCpT.js} +1 -1
- package/web/app/immutable/chunks/{C_DS9aXk.js → BQ3lIAxU.js} +1 -1
- package/web/app/immutable/chunks/{BN1F2G9L.js → BRFS4VDU.js} +1 -1
- package/web/app/immutable/chunks/{CQzSGmOk.js → BRX8YzX5.js} +1 -1
- package/web/app/immutable/chunks/{CfjGsJrO.js → BS-h7rm3.js} +1 -1
- package/web/app/immutable/chunks/{V4P2F4m3.js → BTiFAxnk.js} +1 -1
- package/web/app/immutable/chunks/{DNzn6PzZ.js → BVLclYIV.js} +1 -1
- package/web/app/immutable/chunks/{DdWrNe4g.js → BVR4ypbe.js} +1 -1
- package/web/app/immutable/chunks/{BJTOTozZ.js → BVT8FnwX.js} +1 -1
- package/web/app/immutable/chunks/{CdqaycPl.js → BVnCu4HK.js} +1 -1
- package/web/app/immutable/chunks/{BF2JOf_h.js → BWAM175S.js} +1 -1
- package/web/app/immutable/chunks/{DFcDTHE7.js → BWaQmmKL.js} +1 -1
- package/web/app/immutable/chunks/{GIJe6jEe.js → BXDqRhfc.js} +1 -1
- package/web/app/immutable/chunks/{Bu2F6uGB.js → BcN0a7iZ.js} +1 -1
- package/web/app/immutable/chunks/{DMlNL7XW.js → BeXyu8S7.js} +6 -6
- package/web/app/immutable/chunks/{C6wHGKVx.js → BggFqLcQ.js} +1 -1
- package/web/app/immutable/chunks/{DNu-EOlZ.js → BiyBBgWJ.js} +1 -1
- package/web/app/immutable/chunks/{Bkg2jzs8.js → Bkny4U08.js} +1 -1
- package/web/app/immutable/chunks/{DJrVxxbZ.js → BnoYK4Cg.js} +1 -1
- package/web/app/immutable/chunks/{DfRs59bc.js → BoVqnGlE.js} +1 -1
- package/web/app/immutable/chunks/{8tKgHmPk.js → BpS2Zkky.js} +1 -1
- package/web/app/immutable/chunks/{CJj6zr8B.js → BqQtQly_.js} +1 -1
- package/web/app/immutable/chunks/{DEqIZOTX.js → BsU6XLOF.js} +1 -1
- package/web/app/immutable/chunks/{BJbo_kKO.js → ByOlSVuA.js} +1 -1
- package/web/app/immutable/chunks/{ByZjDy8O.js → BzvRDF8m.js} +1 -1
- package/web/app/immutable/chunks/{Cxw8qNpn.js → C0sDoyzY.js} +1 -1
- package/web/app/immutable/chunks/{B9P5rUiO.js → C0yADNxK.js} +1 -1
- package/web/app/immutable/chunks/{Dp45taKt.js → C2RKkR8r.js} +1 -1
- package/web/app/immutable/chunks/{JMt_KPti.js → C6MidKO1.js} +1 -1
- package/web/app/immutable/chunks/{BhglH0qV.js → C7NJtCoD.js} +2 -2
- package/web/app/immutable/chunks/{CdlxRh10.js → C7jsu14h.js} +1 -1
- package/web/app/immutable/chunks/{pViJ0C09.js → C9KORVFh.js} +1 -1
- package/web/app/immutable/chunks/{1jD1K4t9.js → CAdJgRT-.js} +1 -1
- package/web/app/immutable/chunks/{kbiSNU8S.js → CCOyeB8l.js} +1 -1
- package/web/app/immutable/chunks/{qpzd1Snw.js → CGXAF4r8.js} +1 -1
- package/web/app/immutable/chunks/{E8EFUfsc.js → CHHzckiT.js} +1 -1
- package/web/app/immutable/chunks/{DpwvNWlF.js → CI_dqO7A.js} +1 -1
- package/web/app/immutable/chunks/{B4cRl4XZ.js → CIhr4uzF.js} +1 -1
- package/web/app/immutable/chunks/{Dw3FugoV.js → CJB0AMOQ.js} +2 -2
- package/web/app/immutable/chunks/{Irb_xhXc.js → CKXP5Dfl.js} +1 -1
- package/web/app/immutable/chunks/{D7rRJFzn.js → CLt_MpVR.js} +1 -1
- package/web/app/immutable/chunks/{g4ZkGYVX.js → CLwukbv5.js} +1 -1
- package/web/app/immutable/chunks/{58UGOK_x.js → CMT8W8d8.js} +1 -1
- package/web/app/immutable/chunks/{Bcwj2Z7c.js → CMxICaSn.js} +1 -1
- package/web/app/immutable/chunks/{CCZ7kcPP.js → CNcMC2eS.js} +1 -1
- package/web/app/immutable/chunks/{fBLUmxyl.js → CTb5E7ts.js} +1 -1
- package/web/app/immutable/chunks/{L35vxo_x.js → CUPUpXuX.js} +1 -1
- package/web/app/immutable/chunks/{CVj7bpe9.js → CURgPz9A.js} +1 -1
- package/web/app/immutable/chunks/{DGnZRFrD.js → CViglT06.js} +1 -1
- package/web/app/immutable/chunks/{DW-SCc7t.js → CYIyfTfT.js} +1 -1
- package/web/app/immutable/chunks/{DRPtDW2A.js → CZ0U9o7-.js} +1 -1
- package/web/app/immutable/chunks/{neAtdZ03.js → CZL3_4T_.js} +1 -1
- package/web/app/immutable/chunks/{BIXM_U1Z.js → Ca7foKhO.js} +1 -1
- package/web/app/immutable/chunks/{CZugVkfN.js → CbB5VTQO.js} +1 -1
- package/web/app/immutable/chunks/{DkpprR-E.js → CbSjEe9c.js} +1 -1
- package/web/app/immutable/chunks/{CSSOAZoU.js → Cc7p6my_.js} +6 -6
- package/web/app/immutable/chunks/{N6q6QTTx.js → CcJbNmRb.js} +1 -1
- package/web/app/immutable/chunks/{B6R8-b5U.js → CcRQKkS2.js} +1 -1
- package/web/app/immutable/chunks/{CVbstW5g.js → CeO1YObE.js} +1 -1
- package/web/app/immutable/chunks/{KVl6LsXf.js → CjJmucSj.js} +1 -1
- package/web/app/immutable/chunks/{QaGc_6xV.js → CkiTXhNV.js} +1 -1
- package/web/app/immutable/chunks/{DqZp-_1t.js → Cl4oF0_T.js} +1 -1
- package/web/app/immutable/chunks/{CiJPyUxP.js → CojjevwO.js} +3 -3
- package/web/app/immutable/chunks/{DwO2fxa6.js → ConaHaDS.js} +1 -1
- package/web/app/immutable/chunks/{DfYbWhJy.js → CqShCtgy.js} +1 -1
- package/web/app/immutable/chunks/{B8b1g0xo.js → Cs8-gQAN.js} +1 -1
- package/web/app/immutable/chunks/{BCKk6VLR.js → CtPUg4ad.js} +1 -1
- package/web/app/immutable/chunks/{ejHd6Wjx.js → CwSA3Dwr.js} +1 -1
- package/web/app/immutable/chunks/{3MzspyfQ.js → Cz3L4t3K.js} +1 -1
- package/web/app/immutable/chunks/{pb4lGxfr.js → D1YVXYbM.js} +7 -7
- package/web/app/immutable/chunks/{bzpGnhNm.js → D1mml-OO.js} +1 -1
- package/web/app/immutable/chunks/{Cv92lPPx.js → D31GMMqw.js} +1 -1
- package/web/app/immutable/chunks/{BCAXQH9B.js → D4Mfx79s.js} +1 -1
- package/web/app/immutable/chunks/{BM96cMym.js → D6tg0AFH.js} +1 -1
- package/web/app/immutable/chunks/{BNkOj7Iq.js → D7tJZDri.js} +1 -1
- package/web/app/immutable/chunks/{Cfeu2Jlr.js → D8RydOZp.js} +1 -1
- package/web/app/immutable/chunks/{BM44mGhh.js → DB9IAENr.js} +1 -1
- package/web/app/immutable/chunks/{Posh1PTV.js → DBYwZc8q.js} +1 -1
- package/web/app/immutable/chunks/{Cz9zjNu0.js → DD1B8iWW.js} +1 -1
- package/web/app/immutable/chunks/{CBlh2RgL.js → DDDplTKI.js} +1 -1
- package/web/app/immutable/chunks/{BsbUKqyQ.js → DD_wk1WS.js} +2 -2
- package/web/app/immutable/chunks/{C4GUFULr.js → DDs4Vg0U.js} +1 -1
- package/web/app/immutable/chunks/{DEKRv2SA.js → DEMyUrKD.js} +1 -1
- package/web/app/immutable/chunks/DGR4UUG4.js +1 -0
- package/web/app/immutable/chunks/{CebKpXnw.js → DHUOIULZ.js} +1 -1
- package/web/app/immutable/chunks/{QXxjhZE8.js → DJPQ2gWl.js} +1 -1
- package/web/app/immutable/chunks/{Cyt32IzK.js → DOP6s1nq.js} +4 -4
- package/web/app/immutable/chunks/{CIQ2KSkd.js → DOb83nqS.js} +1 -1
- package/web/app/immutable/chunks/{BHOlTerP.js → DOlRZEzP.js} +1 -1
- package/web/app/immutable/chunks/{EaXPzvmD.js → DOpzySCS.js} +1 -1
- package/web/app/immutable/chunks/{BPYkHxEz.js → DPODhnzy.js} +2 -2
- package/web/app/immutable/chunks/{ZJF5u8sT.js → DPaNvpDi.js} +1 -1
- package/web/app/immutable/chunks/{B5hMYT01.js → DR4IMcDF.js} +1 -1
- package/web/app/immutable/chunks/{CcjAwET4.js → DSoSzq2S.js} +1 -1
- package/web/app/immutable/chunks/{CUFD0_NB.js → DUb-Rw9h.js} +1 -1
- package/web/app/immutable/chunks/{C3u5H0Sx.js → DW3NYbCg.js} +1 -1
- package/web/app/immutable/chunks/{Ba2NpplL.js → D_HBTAOp.js} +2 -2
- package/web/app/immutable/chunks/{ChhEI5-A.js → D_fVcaam.js} +1 -1
- package/web/app/immutable/chunks/{zZaNF0gw.js → DayXN3MG.js} +1 -1
- package/web/app/immutable/chunks/{CQeSP20x.js → DczZ5XlV.js} +3 -3
- package/web/app/immutable/chunks/{DBQ6-GLb.js → DfARSELN.js} +1 -1
- package/web/app/immutable/chunks/{BW4Lb1gb.js → DfZpv0e6.js} +1 -1
- package/web/app/immutable/chunks/{hjPR6Rnc.js → Dj9vAmvP.js} +1 -1
- package/web/app/immutable/chunks/{B2Q9zOdQ.js → DjJQPfKI.js} +1 -1
- package/web/app/immutable/chunks/{DLk_QjTP.js → Djo4Utna.js} +1 -1
- package/web/app/immutable/chunks/{CIWCsQ8M.js → DnSvdDJQ.js} +1 -1
- package/web/app/immutable/chunks/{BbB0oN_T.js → Dp-w6U2a.js} +1 -1
- package/web/app/immutable/chunks/{D5eSz8Yy.js → Dpront9T.js} +1 -1
- package/web/app/immutable/chunks/{GLxqtUdl.js → DsUUGZq_.js} +1 -1
- package/web/app/immutable/chunks/{DJKO9mMv.js → DvuFiJGX.js} +1 -1
- package/web/app/immutable/chunks/{BwlSugdR.js → DxZVPzM-.js} +1 -1
- package/web/app/immutable/chunks/{Bb1UDU6X.js → Dy75eCEg.js} +1 -1
- package/web/app/immutable/chunks/{Dps6NMO7.js → EZewBOPv.js} +1 -1
- package/web/app/immutable/chunks/{BCyYdDY9.js → GgqVQsTS.js} +1 -1
- package/web/app/immutable/chunks/{Dh3Ryezx.js → IFT0w_rv.js} +1 -1
- package/web/app/immutable/chunks/{BpOsjl4B.js → J1JvTxzS.js} +1 -1
- package/web/app/immutable/chunks/{BEp708sp.js → KoGdyFdq.js} +1 -1
- package/web/app/immutable/chunks/{CWRCHISo.js → MSSSP_6i.js} +1 -1
- package/web/app/immutable/chunks/{Cqdkb92f.js → MkI4_nBU.js} +1 -1
- package/web/app/immutable/chunks/{BghIZW1D.js → Ozne-tFy.js} +6 -6
- package/web/app/immutable/chunks/{CahmCdEz.js → Q0MFbJMW.js} +1 -1
- package/web/app/immutable/chunks/{gybWrTHf.js → QvMOlSpE.js} +1 -1
- package/web/app/immutable/chunks/{DZtggwE6.js → TKDyISXm.js} +3 -3
- package/web/app/immutable/chunks/{DlgeVS0W.js → UiwXoSAw.js} +1 -1
- package/web/app/immutable/chunks/{BYPBR4fh.js → VIc8fDOK.js} +1 -1
- package/web/app/immutable/chunks/{8M4qD2wt.js → WAk1in99.js} +1 -1
- package/web/app/immutable/chunks/{DgdBkeOv.js → WC951FwE.js} +1 -1
- package/web/app/immutable/chunks/{DLf4jaE4.js → WhG7Bgtb.js} +1 -1
- package/web/app/immutable/chunks/{CNvdiqGE.js → XRDpypMz.js} +1 -1
- package/web/app/immutable/chunks/{DBavb7qJ.js → YJmoM74E.js} +1 -1
- package/web/app/immutable/chunks/{CXuptX8T.js → cF3AJqS4.js} +1 -1
- package/web/app/immutable/chunks/{Bmtrue3d.js → dJdm8RiY.js} +1 -1
- package/web/app/immutable/chunks/{VBUrUMy_.js → f3mINTV_.js} +1 -1
- package/web/app/immutable/chunks/{DDXtES5I.js → g8wzFaTr.js} +1 -1
- package/web/app/immutable/chunks/{lgAZgfoh.js → h-HGzFkJ.js} +4 -4
- package/web/app/immutable/chunks/{fzsNMINk.js → iYBu_bIg.js} +1 -1
- package/web/app/immutable/chunks/{BhVtbuhY.js → igt8MaJ4.js} +1 -1
- package/web/app/immutable/chunks/{BNg9ANty.js → l4QAkguk.js} +1 -1
- package/web/app/immutable/chunks/{DVpL0nyD.js → lfN_4jdk.js} +1 -1
- package/web/app/immutable/chunks/{BlvFC0m2.js → nn-FB5iu.js} +1 -1
- package/web/app/immutable/chunks/{CKQ8NUgf.js → qVOvfVaw.js} +1 -1
- package/web/app/immutable/chunks/{s81wpUv4.js → qoEkEEyr.js} +1 -1
- package/web/app/immutable/chunks/{VSh28uJa.js → seZ3kiWB.js} +1 -1
- package/web/app/immutable/chunks/{uV-IGUNy.js → txAxF1ra.js} +1 -1
- package/web/app/immutable/chunks/{B4bjCAKW.js → vTk7TgiT.js} +1 -1
- package/web/app/immutable/chunks/{DMNf8Xuf.js → waEdGUDl.js} +1 -1
- package/web/app/immutable/chunks/{efd11D73.js → x9rbYKj9.js} +1 -1
- package/web/app/immutable/chunks/{Bxl01mZe.js → xn0HgFL2.js} +1 -1
- package/web/app/immutable/chunks/{BLBkfdhM.js → xnqT8zWA.js} +1 -1
- package/web/app/immutable/chunks/{k1UqmefG.js → yr_icLi6.js} +1 -1
- package/web/app/immutable/chunks/{BGarQU0H.js → zFZ2p9zT.js} +1 -1
- package/web/app/immutable/entry/{app.Chckz9N7.js → app.MRheiWYu.js} +2 -2
- package/web/app/immutable/entry/start.CSXPreJt.js +1 -0
- package/web/app/immutable/nodes/{0.DV4OxTlt.js → 0.CtDeqO-b.js} +1 -1
- package/web/app/immutable/nodes/{1.Ck6qIYNd.js → 1.DkbI4cS2.js} +1 -1
- package/web/app/immutable/nodes/{10.BJGM7dzF.js → 10.m8CCWmGC.js} +1 -1
- package/web/app/immutable/nodes/{14.vxfsp_3g.js → 14.ByaMuLhR.js} +1 -1
- package/web/app/immutable/nodes/{16.CrYjJL43.js → 16.BmFYAQ9C.js} +2 -2
- package/web/app/immutable/nodes/{2.F1jEoAFf.js → 2.B4Inck9s.js} +3 -3
- package/web/app/immutable/nodes/{3.CTi33PwH.js → 3.C3UUZ7iK.js} +1 -1
- package/web/app/immutable/nodes/{4.CEVSI3tX.js → 4.CtX4qgJE.js} +1 -1
- package/web/app/immutable/nodes/{5.Cwr-dRRa.js → 5.yLkRrv3R.js} +1 -1
- package/web/app/immutable/nodes/{6.CirgPdsp.js → 6.CjUsIDeG.js} +1 -1
- package/web/app/immutable/nodes/{7.BTCmHFrX.js → 7.DCFEio1e.js} +1 -1
- package/web/app/immutable/nodes/{8.Ccr1GUq8.js → 8.CGM4vick.js} +2 -2
- package/web/app/immutable/nodes/{9.DtRI4gIT.js → 9.V5qvVUf3.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/CE7Mossj.js +0 -1
- package/web/app/immutable/entry/start.BEWBWLRT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as Kt,c6 as Wt,aK as Ht,aP as Yt,c9 as Xt,aL as Zt,c7 as Jt,f as w,aN as wt,c4 as Qt,c3 as ot,v as $t,bk as te,by as ee,as as ne,a6 as se,a0 as ie,$ as oe,ax as re}from"./CSSOAZoU.js";const It=(t,n)=>Kt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)J(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);J(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Ot(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(I=>{I.size==0&&I.sets.length==1&&C.add(I.sets[0])}),d=d.filter(I=>!I.sets.some(F=>C.has(F)));let k={},D={};if(d.length>0){let I=m(d,{lossFunction:v,distinct:b});l&&(I=Dt(I,r,h)),k=Nt(I,s,e,i,f),D=Lt(k,d,M)}const U={};d.forEach(I=>{I.label&&(U[I.sets]=I.label)});function V(I){if(I.sets in U)return U[I.sets];if(I.sets.length==1)return""+I.sets[0]}x.selectAll("svg").data([k]).enter().append("svg");const O=x.select("svg");n?O.attr("viewBox",`0 0 ${s} ${e}`):O.attr("width",s).attr("height",e);const R={};let T=!1;O.selectAll(".venn-area path").each(function(I){const F=this.getAttribute("d");I.sets.length==1&&F&&!b&&(T=!0,R[I.sets[0]]=Me(F))});function A(I){return F=>{const H=I.sets.map(et=>{let Y=R[et],Z=k[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return St(H,p)}}const G=O.selectAll(".venn-area").data(d,I=>I.sets),P=G.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),B=P.append("path"),L=P.append("text").attr("class","label").text(I=>V(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),L.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function W(I){return typeof I.transition=="function"?I.transition("venn").duration(o):I}let z=x;T&&typeof z.transition=="function"?(z=W(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",I=>St(I.sets.map(F=>k[F])),p);const N=z.selectAll("text").filter(I=>I.sets in D).text(I=>V(I)).attr("x",I=>Math.floor(D[I.sets].x)).attr("y",I=>Math.floor(D[I.sets].y));u&&(T?"on"in N?N.on("end",rt(k,V)):N.each("end",rt(k,V)):N.each(rt(k,V)));const j=W(G.exit()).remove();typeof G.transition=="function"&&j.selectAll("path").attrTween("d",A);const X=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(L.style("font-size","0px"),N.style("font-size",y),X.style("font-size","0px")),{circles:k,textCentres:D,nodes:G,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function ke(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=ke(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function Ie(t,n,s){const e=[];return e.push(`
|
|
1
|
+
import{k as Kt,c6 as Wt,aK as Ht,aP as Yt,c9 as Xt,aL as Zt,c7 as Jt,f as w,aN as wt,c4 as Qt,c3 as ot,v as $t,bk as te,by as ee,as as ne,a6 as se,a0 as ie,$ as oe,ax as re}from"./Cc7p6my_.js";const It=(t,n)=>Kt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)J(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);J(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Ot(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(I=>{I.size==0&&I.sets.length==1&&C.add(I.sets[0])}),d=d.filter(I=>!I.sets.some(F=>C.has(F)));let k={},D={};if(d.length>0){let I=m(d,{lossFunction:v,distinct:b});l&&(I=Dt(I,r,h)),k=Nt(I,s,e,i,f),D=Lt(k,d,M)}const U={};d.forEach(I=>{I.label&&(U[I.sets]=I.label)});function V(I){if(I.sets in U)return U[I.sets];if(I.sets.length==1)return""+I.sets[0]}x.selectAll("svg").data([k]).enter().append("svg");const O=x.select("svg");n?O.attr("viewBox",`0 0 ${s} ${e}`):O.attr("width",s).attr("height",e);const R={};let T=!1;O.selectAll(".venn-area path").each(function(I){const F=this.getAttribute("d");I.sets.length==1&&F&&!b&&(T=!0,R[I.sets[0]]=Me(F))});function A(I){return F=>{const H=I.sets.map(et=>{let Y=R[et],Z=k[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return St(H,p)}}const G=O.selectAll(".venn-area").data(d,I=>I.sets),P=G.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),B=P.append("path"),L=P.append("text").attr("class","label").text(I=>V(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),L.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function W(I){return typeof I.transition=="function"?I.transition("venn").duration(o):I}let z=x;T&&typeof z.transition=="function"?(z=W(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",I=>St(I.sets.map(F=>k[F])),p);const N=z.selectAll("text").filter(I=>I.sets in D).text(I=>V(I)).attr("x",I=>Math.floor(D[I.sets].x)).attr("y",I=>Math.floor(D[I.sets].y));u&&(T?"on"in N?N.on("end",rt(k,V)):N.each("end",rt(k,V)):N.each(rt(k,V)));const j=W(G.exit()).remove();typeof G.transition=="function"&&j.selectAll("path").attrTween("d",A);const X=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(L.style("font-size","0px"),N.style("font-size",y),X.style("font-size","0px")),{circles:k,textCentres:D,nodes:G,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function ke(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=ke(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function Ie(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as i}from"./yZ5s7S5S.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DD_wk1WS.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/WOicJa2k.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/Cb1eroFO.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/DYFbONVh.js","/app/immutable/chunks/Ck8ZjaJh.js","/app/immutable/chunks/CyAayV8v.js","/app/immutable/chunks/D46WSk8U.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CVjN4vxe.js","/app/immutable/chunks/DQT9c-_R.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DvUv7DbT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DPODhnzy.js","/app/immutable/chunks/3cdteGtc.js","/app/immutable/chunks/Dfbagr79.js","/app/immutable/chunks/BIqUw3gi.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ah7LAYm4.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/D24Lh2xV.js","/app/immutable/chunks/C3YfsJGu.js","/app/immutable/chunks/CWKAugar.js","/app/immutable/chunks/BOBlxuhv.js","/app/immutable/chunks/Chp5dHOk.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BQtZVUi4.js","/app/immutable/chunks/BeXyu8S7.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as i}from"./yZ5s7S5S.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./DD_wk1WS.js");return{showAssistantContent:e}},__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);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./WOicJa2k.js").then(s=>s.GU);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./Chp5dHOk.js");return{store:o}},__vite__mapDeps([35,3,4,2,5,6,7,8,9,1,10,36,37]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./BeXyu8S7.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([38,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./BeXyu8S7.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([38,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Ze,bq as h,a_ as D,by as Qe,b as Ye,bs as ot,bo as k,bu as ze}from"./yZ5s7S5S.js";import{bo as nt,bs as $e,a7 as V,ay as y,aD as e,bS as X,W as c,a5 as Ie,bA as Pe,bH as j,bl as _e,b_ as oe,bO as de,bn as et,bf as je,bV as Me,aA as v,c9 as w,aB as H,be as st,b$ as it,bj as lt,cd as dt,ca as Le,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./Da6QaYq0.js";import{Hb as Ue,mm as ut,ty as pt}from"./WOicJa2k.js";import{aZ as ft}from"./DBQ6-GLb.js";import{ck as ht}from"./D24Lh2xV.js";import{c as vt}from"./ChTqQfQN.js";import{i as Ve,t as Xe}from"./H2jLkRRS.js";import{v as gt}from"./G0_EiVNo.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cL as He,aU as Je,bb as kt,al as wt,ak as yt,cI as qe}from"./ah7LAYm4.js";import{n as K,w as At}from"./3cdteGtc.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./D46WSk8U.js";import{s as xt}from"./Cb1eroFO.js";import{f as Ct,ai as It,aX as Pt}from"./CyAayV8v.js";import"./BIqUw3gi.js";import{c as Z}from"./CVjN4vxe.js";import{a as Dt,r as Mt}from"./hjPR6Rnc.js";import{M as Et,t as Be}from"./CoKvDYIY.js";import{o as Ge,r as Ot,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as zt}from"./9ZGNcJrk.js";var jt=H('<img alt="" class="size-4"/>'),Lt=H('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Ut=H("<span> </span>"),Vt=H('<span data-menu-action-detail=""> </span>'),Xt=H('<span aria-hidden="true"><!></span>'),Ke=H("<!> <!> <!>",1),Ht=H('<div class="my-1 h-px bg-border" role="separator"></div>'),De=H("<!> <!>",1),Jt=H('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=H('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=H('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=H('<div class="pl-4"><!> <!></div>'),Zt=H('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Ze({component:me,...be});$e(d,!0);const xe=(p,r=je)=>{var E=V(),O=y(E);{var L=W=>{const C=w(()=>Dt(r().editor));var U=V(),m=y(U);{var f=s=>{var i=jt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=V(),b=y(i);Z(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,U)},S=W=>{var C=V(),U=y(C);xt(U,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return J()},size:16,get class(){return e(C)}})}};D(O,W=>{r().editor?W(L):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,E)},ne=(p,r=je)=>{var E=Ke(),O=y(E);{var L=m=>{var f=Lt(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=X(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Ut(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(O,m=>{r().disabledReason?m(L):m(S,-1)})}var q=X(O,2);{var W=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=X(q,2);{var U=m=>{var f=Xt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(U)})}c(p,E)};let we=h(d,"actions",7),M=h(d,"menu",7),J=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Q(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return J()},set iconWeight(p){J(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Qe,$on:(p,r)=>Ye(d,p,r)},se=V(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const E=i=>{xe(i,()=>e(r))},O=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),L=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=V(),N=y(b);{var ae=a=>{var n=V(),g=y(n);Z(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Ht();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var U=X(W,2);{var m=i=>{var b=V(),N=y(b);{var ae=g=>{var x=V(),P=y(x);Z(P,()=>Nt,(I,T)=>{T(I,{children:(B,Y)=>{var $=De(),pe=y($);{let te=w(()=>e(O)?E:void 0);Z(pe,()=>Ot,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=X(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Z(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Z(Fe,()=>Rt,(ge,Oe)=>{Oe(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Yt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=X(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})}c(re,Ae)},z=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(z,-1)})}var le=X(l,2);{var Ee=re=>{var Ae=Jt(),Fe=y(Ae);Z(Fe,()=>Ge,(ge,Oe)=>{Oe(ge,{})});var Ce=X(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Ee)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0);Z(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:(Y,$)=>{ne(Y,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0);Z(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:(Y,$)=>{ne(Y,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0),T=w(()=>e(r).variant==="destructive");Z(P,()=>zt,(B,Y)=>{Y(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?j(F,e(F)===e(r).id?null:e(r).id,!0):Q(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=X(I,2);ne(B,()=>e(r));var Y=X(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=V(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Z(fe,()=>Et,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Y,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=X(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}});var x=X(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(U,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=X(U,2);{var s=i=>{var b=Zt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Qt(be,d){if(new.target)return Ze({component:Qt,...be});$e(d,!0);const ke=()=>ze(N,"$installedEditors$",ne),xe=()=>ze(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),J=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Q=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),E=h(d,"showArchiveOption",7,!1),O=h(d,"showPathCopy",7,!0),L=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),U=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Le(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ue.dispatch(ut())}),Le(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,z=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(z){const le=z.replace(/\\/g,"/");C()?j(a,le,!0):Ve(u())?j(a,u().replace(/\\/g,"/"),!0):j(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),j(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:z,resolvedPath:e(a)})}else j(a,u()),j(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else j(a,u()),j(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{j(a,u()),j(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(j(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ue.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Y(){if(e(a))try{await navigator.clipboard.writeText(Xe(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Ve(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Xe(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Q()&&(Q()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){j(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const z=await G("file:delete",{path:l,workspaceId:A()});if(z?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Ee){o.error("[WorkspaceActionsMenu] Failed to restore file",Ee),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:z?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{j(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:He,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:He,onClick:()=>{B()}}]}),O()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:Je,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Y()}}),O()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:Je,disabled:!u(),onClick:()=>{$()}}),L()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(z=>({...z,submenu:z.submenu?l(z.submenu):void 0,onClick:()=>{z.onClick(),s()}}));return t.push(...l(U())),E()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Q()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0&&t.at(-1)?.id!=="archive-workspace",onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return J()},set iconWeight(t){J(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Q()},set onDelete(t=void 0){Q(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return E()},set showArchiveOption(t=!1){E(t),v()},get showPathCopy(){return O()},set showPathCopy(t=!0){O(t),v()},get showFileNameCopy(){return L()},set showFileNameCopy(t=!1){L(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return U()},set additionalActions(t=[]){U(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Qe,$on:(t,l)=>Ye(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return J()}})}var ye=et(ve);return we(),ye}export{Qt as default};
|
|
1
|
+
import{t as Ze,bq as h,a_ as D,by as Qe,b as Ye,bs as ot,bo as k,bu as ze}from"./yZ5s7S5S.js";import{bo as nt,bs as $e,a7 as V,ay as y,aD as e,bS as X,W as c,a5 as Ie,bA as Pe,bH as j,bl as _e,b_ as oe,bO as de,bn as et,bf as je,bV as Me,aA as v,c9 as w,aB as H,be as st,b$ as it,bj as lt,cd as dt,ca as Le,bk as ct}from"./B8o4lNgr.js";import{i as G}from"./Da6QaYq0.js";import{Hb as Ue,mm as ut,ty as pt}from"./WOicJa2k.js";import{aZ as ft}from"./DfARSELN.js";import{ck as ht}from"./D24Lh2xV.js";import{c as vt}from"./ChTqQfQN.js";import{i as Ve,t as Xe}from"./H2jLkRRS.js";import{v as gt}from"./G0_EiVNo.js";import{d as _t}from"./B0Z-1lwJ.js";import{F as Se,at as mt,au as bt,cL as He,aU as Je,bb as kt,al as wt,ak as yt,cI as qe}from"./ah7LAYm4.js";import{n as K,w as At}from"./3cdteGtc.js";import{h as Ft,s as Re,a as Ne,k as Te,d as Wt}from"./D46WSk8U.js";import{s as xt}from"./Cb1eroFO.js";import{f as Ct,ai as It,aX as Pt}from"./CyAayV8v.js";import"./BIqUw3gi.js";import{c as Z}from"./CVjN4vxe.js";import{a as Dt,r as Mt}from"./Dj9vAmvP.js";import{M as Et,t as Be}from"./CoKvDYIY.js";import{o as Ge,r as Ot,q as St,R as Rt,p as Nt,n as Tt,j as Bt,l as zt}from"./9ZGNcJrk.js";var jt=H('<img alt="" class="size-4"/>'),Lt=H('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Ut=H("<span> </span>"),Vt=H('<span data-menu-action-detail=""> </span>'),Xt=H('<span aria-hidden="true"><!></span>'),Ke=H("<!> <!> <!>",1),Ht=H('<div class="my-1 h-px bg-border" role="separator"></div>'),De=H("<!> <!>",1),Jt=H('<!> <p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>',1),qt=H('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Gt=H('<p class="type-caption px-2 py-1 text-muted-foreground" data-menu-action-note=""> </p>'),Kt=H('<div class="pl-4"><!> <!></div>'),Zt=H('<span class="sr-only"> </span>');function me(be,d){const ke=nt();if(new.target)return Ze({component:me,...be});$e(d,!0);const xe=(p,r=je)=>{var E=V(),O=y(E);{var L=W=>{const C=w(()=>Dt(r().editor));var U=V(),m=y(U);{var f=s=>{var i=jt();oe(()=>Re(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=V(),b=y(i);Z(b,()=>e(C),(N,ae)=>{ae(N,{size:16})}),c(s,i)},R=s=>{{let i=w(()=>Mt(r().editor.category));Se(s,{get icon(){return e(i)},size:16})}};D(m,s=>{r().editor.iconBase64?s(f):e(C)?s(o,1):s(R,-1)})}c(W,U)},S=W=>{var C=V(),U=y(C);xt(U,()=>r().iconSnippet),c(W,C)},q=W=>{{let C=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Se(W,{get icon(){return r().icon},get weight(){return J()},size:16,get class(){return e(C)}})}};D(O,W=>{r().editor?W(L):r().iconSnippet?W(S,1):r().icon&&W(q,2)})}c(p,E)},ne=(p,r=je)=>{var E=Ke(),O=y(E);{var L=m=>{var f=Lt(),o=Ie(f),R=_e(o,!0);Ne(o,(b,N)=>Be?.(b,N),()=>r().label);var s=X(o,2),i=_e(s,!0);Pe(f),oe(()=>{de(R,r().label),de(i,r().disabledReason)}),c(m,f)},S=m=>{var f=Ut(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().label),oe(()=>{Te(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};D(O,m=>{r().disabledReason?m(L):m(S,-1)})}var q=X(O,2);{var W=m=>{var f=Vt(),o=_e(f,!0);Ne(f,(R,s)=>Be?.(R,s),()=>r().detail),oe(()=>{Te(f,1,`ml-4 min-w-0 truncate ${r().detailTone==="danger"?"text-danger":"text-muted-foreground"}`),de(o,r().detail)}),c(m,f)};D(q,m=>{r().detail&&m(W)})}var C=X(q,2);{var U=m=>{var f=Xt(),o=Ie(f);It(o,{children:(R,s)=>{st();var i=it();oe(b=>de(i,b),[()=>Pt(r().shortcut)]),c(R,i)},$$slots:{default:!0}}),Pe(f),oe(()=>Te(f,1,Wt(M()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};D(C,m=>{r().shortcut&&m(U)})}c(p,E)};let we=h(d,"actions",7),M=h(d,"menu",7),J=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Me(null);function Q(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return M()},set menu(p){M(p),v()},get iconWeight(){return J()},set iconWeight(p){J(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Qe,$on:(p,r)=>Ye(d,p,r)},se=V(),ie=y(se);return Ft(ie,17,we,p=>p.id,(p,r)=>{const E=i=>{xe(i,()=>e(r))},O=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),L=w(()=>e(r).disabled||e(r).disabledReason!==void 0),S=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Ke(),W=y(q);{var C=i=>{var b=V(),N=y(b);{var ae=a=>{var n=V(),g=y(n);Z(g,()=>Ge,(x,P)=>{P(x,{})}),c(a,n)},ue=a=>{var n=Ht();c(a,n)};D(N,a=>{M()?a(ae):a(ue,-1)})}c(i,b)};D(W,i=>{e(r).dividerBefore&&i(C)})}var U=X(W,2);{var m=i=>{var b=V(),N=y(b);{var ae=g=>{var x=V(),P=y(x);Z(P,()=>Nt,(I,T)=>{T(I,{children:(B,Y)=>{var $=De(),pe=y($);{let te=w(()=>e(O)?E:void 0);Z(pe,()=>Ot,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=X(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Z(ee,()=>St,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=De(),l=y(t);{var _=re=>{var Ae=De(),Fe=y(Ae);{let We=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Z(Fe,()=>Rt,(ge,Oe)=>{Oe(ge,{get value(){return e(We)},get"aria-label"(){return e(r).label},children:(tt,Yt)=>{{let rt=w(()=>e(r).submenu.filter(at=>at.checked!==void 0));me(tt,{get actions(){return e(rt)},selection:"single",get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var Ce=X(Fe,2);{let We=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(Ce,{get actions(){return e(We)},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})}c(re,Ae)},z=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})};D(l,re=>{e(r).selection==="single"?re(_):re(z,-1)})}var le=X(l,2);{var Ee=re=>{var Ae=Jt(),Fe=y(Ae);Z(Fe,()=>Ge,(ge,Oe)=>{Oe(ge,{})});var Ce=X(Fe,2),We=_e(Ce,!0);oe(()=>{Re(Ce,"id",`${ke}-${e(r).id}-note`),de(We,e(r).note)}),c(re,Ae)};D(le,re=>{e(r).note&&re(Ee)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,x)},ue=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0);Z(P,()=>Tt,(T,B)=>{B(T,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:(Y,$)=>{ne(Y,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},a=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0);Z(P,()=>Bt,(T,B)=>{B(T,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},closeOnSelect:!0,onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:(Y,$)=>{ne(Y,()=>e(r))},$$slots:{default:!0}})})}c(g,x)},n=g=>{var x=V(),P=y(x);{let I=w(()=>e(O)?E:void 0),T=w(()=>e(r).variant==="destructive");Z(P,()=>zt,(B,Y)=>{Y(B,{get leading(){return e(I)},get destructive(){return e(T)},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},onSelect:()=>Q(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,x)};D(N,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}})},o=i=>{var b=De(),N=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);Ct(N,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(L)},get"aria-describedby"(){return e(S)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?j(F,e(F)===e(r).id?null:e(r).id,!0):Q(e(r)),children:(g,x)=>{var P=qt(),I=y(P),T=Ie(I);xe(T,()=>e(r)),Pe(I);var B=X(I,2);ne(B,()=>e(r));var Y=X(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?mt:bt);Se(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=V(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Z(fe,()=>Et,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};D(Y,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=X(N,2);{var ue=a=>{var n=Kt(),g=Ie(n);me(g,{get actions(){return e(r).submenu},get menu(){return M()},get iconWeight(){return J()},get onClose(){return u()}});var x=X(g,2);{var P=I=>{var T=Gt(),B=_e(T,!0);oe(()=>de(B,e(r).note)),c(I,T)};D(x,I=>{e(r).note&&I(P)})}Pe(n),c(a,n)};D(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};D(U,i=>{M()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var R=X(U,2);{var s=i=>{var b=Zt(),N=_e(b,!0);oe(()=>{Re(b,"id",e(S)),de(N,e(r).disabledReason)}),c(i,b)};D(R,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),et(ce)}function Qt(be,d){if(new.target)return Ze({component:Qt,...be});$e(d,!0);const ke=()=>ze(N,"$installedEditors$",ne),xe=()=>ze(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=ot();let M=h(d,"layout",7,"list"),J=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Q=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),E=h(d,"showArchiveOption",7,!1),O=h(d,"showPathCopy",7,!0),L=h(d,"showFileNameCopy",7,!1),S=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),C=h(d,"isWorkspaceRoot",7,!1),U=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=vt("WorkspaceActionsMenu");let R=!1;lt(()=>{R=!0});function s(){R||p()?.()}const i=gt("externalEditors"),b=dt(A());Le(()=>{b.set(A())});const N=ft(b),ae=w(ke),ue=ht(b);let a=Me(""),n=Me(""),g=Me(!1);ct(()=>{Ue.dispatch(ut())}),Le(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,z=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(z){const le=z.replace(/\\/g,"/");C()?j(a,le,!0):Ve(u())?j(a,u().replace(/\\/g,"/"),!0):j(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),j(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:z,resolvedPath:e(a)})}else j(a,u()),j(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else j(a,u()),j(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{j(a,u()),j(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(j(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function x(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!C()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ue.dispatch(pt(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function T(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await x();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Y(){if(e(a))try{await navigator.clipboard.writeText(Xe(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Ve(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Xe(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Q()&&(Q()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){j(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const z=await G("file:delete",{path:l,workspaceId:A()});if(z?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),At({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),_t("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Ee){o.error("[WorkspaceActionsMenu] Failed to restore file",Ee),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:z?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{j(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];S()&&(i&&xe()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:He,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{T(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:He,onClick:()=>{B()}}]}),O()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:Je,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Y()}}),O()&&!C()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:Je,disabled:!u(),onClick:()=>{$()}}),L()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:kt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(z=>({...z,submenu:z.submenu?l(z.submenu):void 0,onClick:()=>{z.onClick(),s()}}));return t.push(...l(U())),E()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?wt:yt,dividerBefore:t.length>0,onClick:fe}),r()&&Q()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:qe,variant:"destructive",dividerBefore:t.length>0&&t.at(-1)?.id!=="archive-workspace",onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:qe,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return M()},set layout(t="list"){M(t),v()},get iconWeight(){return J()},set iconWeight(t){J(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Q()},set onDelete(t=void 0){Q(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return E()},set showArchiveOption(t=!1){E(t),v()},get showPathCopy(){return O()},set showPathCopy(t=!0){O(t),v()},get showFileNameCopy(){return L()},set showFileNameCopy(t=!1){L(t),v()},get showFileActions(){return S()},set showFileActions(t=!0){S(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return C()},set isWorkspaceRoot(t=!1){C(t),v()},get additionalActions(){return U()},set additionalActions(t=[]){U(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Qe,$on:(t,l)=>Ye(d,t,l)};{let t=w(()=>M()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return J()}})}var ye=et(ve);return we(),ye}export{Qt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./C0sDoyzY.js";import{p as et}from"./igt8MaJ4.js";import{K as at,aF as rt,L as it,aG as nt,O as ot,aI as st,a as l,ad as z,N as lt,j as ct,aE as dt,an as gt,r as pt,k as ht,y as ft}from"./D1YVXYbM.js";import"./Cc7p6my_.js";import{d as I}from"./BXDqRhfc.js";import{o as ut}from"./CmKTTxBW.js";import{d as mt}from"./3pZ2C7Oz.js";var vt=ft.pie,L={sections:new Map,showData:!1},T=L.sections,R=L.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{T=new Map,R=L.showData,ht()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(t)||(T.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>T,"getSections"),yt=l(t=>{R=t},"setShowData"),Dt=l(()=>R,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:st,getDiagramTitle:ot,setAccTitle:nt,getAccTitle:it,setAccDescription:rt,getAccDescription:at,addSection:Ct,getSections:$t,setShowData:yt,getShowData:Dt},Tt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{const a=await et("pie",t);z.debug(a),Tt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as it}from"./CnpqP3W5.js";import{g as at}from"./DDXtES5I.js";import{a as f,ad as Pe,N as B,R as rt,ax as nt,aV as Me,as as ut,aG as lt,L as ct,aF as ot,K as ht,aI as dt,O as pt,p as O,k as At,P as ft,aD as mt,ao as K}from"./pb4lGxfr.js";import{s as gt}from"./DwO2fxa6.js";import{c as Ct}from"./B4cRl4XZ.js";import{g as F,c3 as fe}from"./CSSOAZoU.js";var Re=(function(){var s=f(function(V,o,h,p){for(h=h||{},p=V.length;p--;h[V[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],g=[1,25],m=[1,32],x=[1,33],ge=[1,34],b=[1,45],Ce=[1,35],be=[1,36],ke=[1,37],Ee=[1,38],Te=[1,27],ye=[1,28],De=[1,29],Fe=[1,30],Be=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],_e=[1,9],A=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Se=[1,63],Ne=[1,64],S=[1,8,9,41],Ge=[1,77],U=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ue=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Ue=[13,60,68,69,70,71,72,86,100,102,103],ce=[1,103],W=[1,121],Q=[1,117],j=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],Z=[1,118],$=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Ke=[1,128],oe=[12,39],xe=[1,8,9,39,41,44,46],he=[1,8,9,22],Ye=[1,153],We=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(F(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(F(function(o,h,p,l,C,e,te){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(_e,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Ge,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(U,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(U,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ue,[2,133]),s(ue,[2,134]),s(ue,[2,135]),s(ue,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(_e,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne},s(A,[2,64]),{67:93,73:Se,74:Ne},s(le,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),s(Y,[2,84]),s(Y,[2,85]),s(Y,[2,86]),s(Y,[2,87]),s(Y,[2,88]),s(Ue,[2,89]),s(Ue,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:m,56:x},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ce},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:j,82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},{60:[1,122]},{13:Ge,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:Q,59:124,60:j,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},s(ze,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(U,[2,16]),s(U,[2,17]),s(U,[2,18]),{11:127,12:Ke,39:[2,36]},s(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(oe,[2,10]),s(xe,[2,55],{11:131,12:Ke}),s(_e,[2,7]),{9:[1,132]},s(he,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(le,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),s(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:m,56:x},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ce},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ye}),s(We,[2,107],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(S,[2,71]),s(A,[2,73],{61:Ye}),{60:[1,155]},s(U,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(oe,[2,12]),s(xe,[2,56]),{1:[2,4]},s(he,[2,69]),s(he,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(le,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:m,56:x},{45:163,51:ce},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:j,82:X,84:169,85:112,86:q,87:H,88:J,89:Z,90:$},s(v,[2,110]),s(ze,[2,75]),{14:[1,170]},s(oe,[2,11]),s(he,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ce},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(We,[2,108],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(xe,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(A,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(F(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),"parseError"),parse:f(F(function(o){var h=this,p=[0],l=[],C=[null],e=[],te=this.table,t="",de=0,Qe=0,et=2,je=1,tt=e.slice.call(arguments,1),D=Object.create(this.lexer),P={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(P.yy[ve]=this.yy[ve]);D.setInput(o,P.yy),P.yy.lexer=D,P.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var st=D.options&&D.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}F(Xe,"popStack"),f(Xe,"popStack");function Oe(){var N;return N=l.pop()||D.lex()||je,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=h.symbols_[N]||N),N}F(Oe,"lex"),f(Oe,"lex");for(var _,M,L,we,z={},pe,I,qe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=Oe()),L=te[M]&&te[M][_]),typeof L>"u"||!L.length||!L[0]){var Ve="";Ae=[];for(pe in te[M])this.terminals_[pe]&&pe>et&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Ve="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as it}from"./2ZXwYJuA.js";import{g as at}from"./g8wzFaTr.js";import{a as f,ad as Pe,N as B,R as rt,ax as nt,aV as Me,as as ut,aG as lt,L as ct,aF as ot,K as ht,aI as dt,O as pt,p as O,k as At,P as ft,aD as mt,ao as K}from"./D1YVXYbM.js";import{s as gt}from"./ConaHaDS.js";import{c as Ct}from"./CIhr4uzF.js";import{g as F,c3 as fe}from"./Cc7p6my_.js";var Re=(function(){var s=f(function(V,o,h,p){for(h=h||{},p=V.length;p--;h[V[p]]=o);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],c=[1,26],u=[1,42],d=[1,24],g=[1,25],m=[1,32],x=[1,33],ge=[1,34],b=[1,45],Ce=[1,35],be=[1,36],ke=[1,37],Ee=[1,38],Te=[1,27],ye=[1,28],De=[1,29],Fe=[1,30],Be=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],_e=[1,9],A=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Se=[1,63],Ne=[1,64],S=[1,8,9,41],Ge=[1,77],U=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ue=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Ue=[13,60,68,69,70,71,72,86,100,102,103],ce=[1,103],W=[1,121],Q=[1,117],j=[1,113],X=[1,119],q=[1,114],H=[1,115],J=[1,116],Z=[1,118],$=[1,120],ze=[22,50,60,61,82,86,87,88,89,90],Ke=[1,128],oe=[12,39],xe=[1,8,9,39,41,44,46],he=[1,8,9,22],Ye=[1,153],We=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(F(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(F(function(o,h,p,l,C,e,te){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(_e,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne}),{39:[1,65]},s(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Ge,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(U,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(U,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ue,[2,133]),s(ue,[2,134]),s(ue,[2,135]),s(ue,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(_e,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:c,48:u,51:d,52:g,54:m,56:x,57:ge,60:b,62:Ce,63:be,64:ke,65:Ee,75:Te,76:ye,78:De,82:Fe,83:Be,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Se,74:Ne},s(A,[2,64]),{67:93,73:Se,74:Ne},s(le,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),s(Y,[2,84]),s(Y,[2,85]),s(Y,[2,86]),s(Y,[2,87]),s(Y,[2,88]),s(Ue,[2,89]),s(Ue,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:m,56:x},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ce},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:j,82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},{60:[1,122]},{13:Ge,55:123},s(S,[2,72]),s(S,[2,138]),{22:W,50:Q,59:124,60:j,61:[1,125],82:X,84:111,85:112,86:q,87:H,88:J,89:Z,90:$},s(ze,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(U,[2,16]),s(U,[2,17]),s(U,[2,18]),{11:127,12:Ke,39:[2,36]},s(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(oe,[2,10]),s(xe,[2,55],{11:131,12:Ke}),s(_e,[2,7]),{9:[1,132]},s(he,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(le,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),s(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:m,56:x},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(S,[2,48],{39:[1,142]}),{41:[1,143]},s(S,[2,50]),{41:[2,61],45:144,51:ce},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:Ye}),s(We,[2,107],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(v,[2,109]),s(v,[2,111]),s(v,[2,112]),s(v,[2,113]),s(v,[2,114]),s(v,[2,115]),s(v,[2,116]),s(v,[2,117]),s(v,[2,118]),s(v,[2,119]),s(A,[2,106]),s(S,[2,71]),s(A,[2,73],{61:Ye}),{60:[1,155]},s(U,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(oe,[2,12]),s(xe,[2,56]),{1:[2,4]},s(he,[2,69]),s(he,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(le,[2,80]),s(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:m,56:x},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:m,56:x},{45:163,51:ce},s(S,[2,49]),{41:[2,62]},s(S,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:j,82:X,84:169,85:112,86:q,87:H,88:J,89:Z,90:$},s(v,[2,110]),s(ze,[2,75]),{14:[1,170]},s(oe,[2,11]),s(he,[2,70]),s(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ce},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(We,[2,108],{85:154,22:W,50:Q,60:j,82:X,86:q,87:H,88:J,89:Z,90:$}),s(xe,[2,8]),s(S,[2,51]),{41:[1,175]},s(S,[2,54]),s(A,[2,104]),s(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(F(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),"parseError"),parse:f(F(function(o){var h=this,p=[0],l=[],C=[null],e=[],te=this.table,t="",de=0,Qe=0,et=2,je=1,tt=e.slice.call(arguments,1),D=Object.create(this.lexer),P={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(P.yy[ve]=this.yy[ve]);D.setInput(o,P.yy),P.yy.lexer=D,P.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var st=D.options&&D.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}F(Xe,"popStack"),f(Xe,"popStack");function Oe(){var N;return N=l.pop()||D.lex()||je,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=h.symbols_[N]||N),N}F(Oe,"lex"),f(Oe,"lex");for(var _,M,L,we,z={},pe,I,qe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((_===null||typeof _>"u")&&(_=Oe()),L=te[M]&&te[M][_]),typeof L>"u"||!L.length||!L[0]){var Ve="";Ae=[];for(pe in te[M])this.terminals_[pe]&&pe>et&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Ve="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ve="Parse error on line "+(de+1)+": Unexpected "+(_==je?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ve,{text:D.match,token:this.terminals_[_]||_,line:D.yylineno,loc:Ie,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+_);switch(L[0]){case 1:p.push(_),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),_=null,Qe=D.yyleng,t=D.yytext,de=D.yylineno,Ie=D.yylloc;break;case 2:if(I=this.productions_[L[1]][1],z.$=C[C.length-I],z._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},st&&(z._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),we=this.performAction.apply(z,[t,Qe,de,P.yy,L[1],C,e].concat(tt)),typeof we<"u")return we;I&&(p=p.slice(0,-1*I*2),C=C.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),C.push(z.$),e.push(z._$),qe=te[p[p.length-2]][p[p.length-1]],p.push(qe);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var V={EOF:1,parseError:f(F(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),"parseError"),setInput:f(function(o,h){return this.yy=h||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:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(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:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(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:f(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:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,ad as se,N as W,aE as ye,$ as me,a3 as be,ar as _e,aK as Ee,y as Y,aD as G,ac as ke,J as Se,a8 as Ne,aa as he,w as ue}from"./
|
|
1
|
+
import{a as o,ad as se,N as W,aE as ye,$ as me,a3 as be,ar as _e,aK as Ee,y as Y,aD as G,ac as ke,J as Se,a8 as Ne,aa as he,w as ue}from"./D1YVXYbM.js";import{g as xe}from"./2ZXwYJuA.js";import{g as _}from"./Cc7p6my_.js";var te=(function(){var e=o(function(I,s,n,r){for(n=n||{},r=I.length;r--;n[I[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],E=[1,16],b=[1,20],l=[1,19],L=[6,7,8],C=[1,26],g=[1,24],A=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],j=[1,6,13,16,17,20,23],f=[1,35],T=[1,36],O=[1,6,7,11,13,16,17,20,23],U=[1,38],R={trace:o(_(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(_(function(s,n,r,a,u,t,H){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},{6:C,7:g,10:23,11:A},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:A},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:E,18:17,19:18,20:b,23:l},e(j,[2,14],{7:f,11:T}),e(O,[2,8]),e(O,[2,9]),e(O,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(j,[2,13],{7:f,11:T}),e(O,[2,11]),e(O,[2,12]),e(k,[2,15],{24:U}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(_(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),"parseError"),parse:o(_(function(s){var n=this,r=[0],a=[],u=[null],t=[],H=this.table,c="",z=0,ae=0,de=2,oe=1,pe=t.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(V.yy[q]=this.yy[q]);m.setInput(s,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var fe=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(N){r.length=r.length-2*N,u.length=u.length-N,t.length=t.length-N}_(ce,"popStack"),o(ce,"popStack");function Z(){var N;return N=a.pop()||m.lex()||oe,typeof N!="number"&&(N instanceof Array&&(a=N,N=a.pop()),N=n.symbols_[N]||N),N}_(Z,"lex"),o(Z,"lex");for(var S,B,v,$,F={},K,w,le,X;;){if(B=r[r.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((S===null||typeof S>"u")&&(S=Z()),v=H[B]&&H[B][S]),typeof v>"u"||!v.length||!v[0]){var ee="";X=[];for(K in H[B])this.terminals_[K]&&K>de&&X.push("'"+this.terminals_[K]+"'");m.showPosition?ee="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(S==oe?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ee,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:Q,expected:X})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+S);switch(v[0]){case 1:r.push(S),u.push(m.yytext),t.push(m.yylloc),r.push(v[1]),S=null,ae=m.yyleng,c=m.yytext,z=m.yylineno,Q=m.yylloc;break;case 2:if(w=this.productions_[v[1]][1],F.$=u[u.length-w],F._$={first_line:t[t.length-(w||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(w||1)].first_column,last_column:t[t.length-1].last_column},fe&&(F._$.range=[t[t.length-(w||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(F,[c,ae,z,V.yy,v[1],u,t].concat(pe)),typeof $<"u")return $;w&&(r=r.slice(0,-1*w*2),u=u.slice(0,-1*w),t=t.slice(0,-1*w)),r.push(this.productions_[v[1]][0]),u.push(F.$),t.push(F._$),le=H[r[r.length-2]][r[r.length-1]],r.push(le);break;case 3:return!0}}return!0},"parse"),"parse")},J=(function(){var I={EOF:1,parseError:o(_(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),"parseError"),setInput:o(function(s,n){return this.yy=n||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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(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:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(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:o(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:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as X}from"./
|
|
1
|
+
import{I as X}from"./Ca7foKhO.js";import{p as z}from"./C0sDoyzY.js";import{p as G}from"./igt8MaJ4.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"./D1YVXYbM.js";import{g as v}from"./Cc7p6my_.js";var H=/[─━│┃└┗├┣]/,W=/[└┗├┣]/,re=/[─━]/,A=/^[\s│┃]+$/,D=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,L=/^\s*%%/,ie=" ";function N(n){return n.some(t=>H.test(t))}v(N,"isBoxDrawingFormat");g(N,"isBoxDrawingFormat");function T(n){for(const t of n){const e=W.exec(t);if(e?.index&&e.index>0)return e.index}return 4}v(T,"inferSegmentWidth");g(T,"inferSegmentWidth");function V(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}v(V,"remapErrorLines");g(V,"remapErrorLines");function $(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||L.test(c)||D.test(c)||A.test(c)||s.push(c.replace(/\t/g," "))}if(!N(s))return{text:n,lineMap:e};const i=T(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(L.test(c)){o.push(c),a++,e.set(a,h);continue}if(D.test(c)){o.push(c),a++,e.set(a,h);continue}if(A.test(c))continue;const l=c.replace(/\t/g," "),m=W.exec(l);if(m?.index!==void 0){const f=m.index,w=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&re.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const b=l.slice(u).trimEnd();if(!b)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=ie.repeat(w);o.push(O+b),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(H.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}v($,"preprocessBoxDrawing");g($,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=g(()=>{x.reset(),Q()},"clear"),se=g(()=>x.records.stack[0],"getRoot"),ae=g(()=>x.records.cnt,"getCount"),ce=te.treeView,le=g(()=>M(ce,R().treeView),"getConfig"),de=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:j,getAccDescription:Z,getDiagramTitle:q,setAccDescription:P,setAccTitle:Y,setDiagramTitle:F},B=he,pe=g(n=>{z(n,B);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,R()):void 0;B.addNode(e,r,i,o,p,d)}},"populate"),ge={parse:g(async n=>{const{text:t,lineMap:e}=$(n);try{const r=await G("treeView",t);S.debug(r),pe(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=V(r.message,e)),r}},"parse")},I={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function E(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}v(E,"detectIcon");g(E,"detectIcon");function C(n,t){return n.includes(":")?n:n in I.icons||!t?`${I.prefix}:${n}`:`${t}:${n}`}v(C,"qualifyIcon");g(C,"qualifyIcon");function y(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=E(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${I.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}v(y,"getNodeIcon");g(y,"getNodeIcon");ne([{name:I.prefix,icons:I}]);var k=14,fe=4,ue=16,me=g(async(n,t)=>{const e=[],r=g(i=>{const o=y(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await ee(i,{height:k,width:k})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=k+fe,c=y(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),f=l+s.paddingY*2,w=n+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+f/2);const u=w+m,b=m+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:b,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),_=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),xe=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,m)=>{const f=m*(l.rowIndent+l.paddingX),w=we(f,s,h,d,l,r);o.push(w);const{height:u,width:b}=h.BBox;_(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+b),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(w=>{p(w,h+1)});const{x:l,y:m,height:f}=d.BBox;if(d.children.length){const{y:w,height:u}=d.children[d.children.length-1].BBox;_(n,l+e.paddingX,m+f,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+ue;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),ve=g(async(n,t,e,r)=>{S.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=U(t),p=a.append("g");p.attr("class","tree-view");const c=await me(i,o),{totalHeight:d,totalWidth:h}=xe(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),K(a,d,h,o.useMaxWidth)},"draw"),be={draw:ve},Ie=be,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=M(Ce,n);return`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as me,K as ye,O as le,aI as be,L as Ae,aG as Ce,a as n,ad as ce,aE as we,r as Se,k as Re,M as Bt,aD as _e,j as ge,y as ke,U as Te,q as De}from"./
|
|
1
|
+
import{aF as me,K as ye,O as le,aI as be,L as Ae,aG as Ce,a as n,ad as ce,aE as we,r as Se,k as Re,M as Bt,aD as _e,j as ge,y as ke,U as Te,q as De}from"./D1YVXYbM.js";import{g as r,bz as ae}from"./Cc7p6my_.js";import{b as ne}from"./CyfBUrNA.js";import{l as oe}from"./CcJbNmRb.js";var It=(function(){var i=n(function(F,l,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=l);return u},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],b=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],m=[1,26],k=[1,28],T=[1,29],L=[1,30],W=[1,31],X=[1,32],E=[1,33],M=[1,34],A=[1,35],D=[1,36],g=[1,37],B=[1,43],V=[1,42],Y=[1,47],N=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],U=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],C=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],z=[26,28],_={trace:n(r(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(r(function(l,u,x,d,S,o,ct){var p=o.length-1;switch(S){case 5:d.setOrientation(o[p]);break;case 9:d.setDiagramTitle(o[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},o[p]);break;case 13:d.setLineData(o[p-1],o[p]);break;case 14:d.setBarData({text:"",type:"text"},o[p]);break;case 15:d.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:d.setXAxisTitle(o[p]);break;case 25:d.setXAxisTitle(o[p-1]);break;case 26:d.setXAxisTitle({type:"text",text:""});break;case 27:d.setXAxisBand(o[p]);break;case 28:d.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:d.setYAxisTitle(o[p]);break;case 33:d.setYAxisTitle(o[p-1]);break;case 34:d.setYAxisTitle({type:"text",text:""});break;case 35:d.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(b,[2,36]),i(b,[2,37]),i(b,[2,38]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},i(b,[2,5]),i(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:39,13:38,24:B,29:V,30:f,31:40,32:41,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:45,15:44,29:Y,30:f,35:46,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:49,17:48,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:52,17:51,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{20:[1,53]},{22:[1,54]},i(R,[2,18]),{1:[2,2]},i(R,[2,8]),i(R,[2,9]),i(U,[2,39],{41:55,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g}),i(U,[2,40]),i(U,[2,41]),i(C,[2,42]),i(C,[2,44]),i(C,[2,45]),i(C,[2,46]),i(C,[2,47]),i(C,[2,48]),i(C,[2,49]),i(C,[2,50]),i(C,[2,51]),i(C,[2,52]),i(C,[2,53]),i(R,[2,10]),i(R,[2,24],{32:41,31:56,24:B,29:V}),i(R,[2,26]),i(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,11]),i(R,[2,32],{35:60,29:Y}),i(R,[2,34]),{33:[1,61]},i(R,[2,12]),{17:62,24:N},{25:63,27:64,29:w},i(R,[2,14]),{17:66,24:N},i(R,[2,16]),i(R,[2,17]),i(C,[2,43]),i(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},i(R,[2,33]),{29:[1,70]},i(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},i(z,[2,23],{30:[1,73]}),i(R,[2,15]),i(R,[2,28]),i(R,[2,29]),{11:59,30:f,34:74,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,35]),i(R,[2,19]),{25:75,27:64,29:w},i(z,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(r(function(l,u){if(u.recoverable)this.trace(l);else{var x=new Error(l);throw x.hash=u,x}},"parseError"),"parseError"),parse:n(r(function(l){var u=this,x=[0],d=[],S=[null],o=[],ct=this.table,p="",pt=0,te=0,de=2,ee=1,fe=o.slice.call(arguments,1),P=Object.create(this.lexer),q={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(q.yy[Dt]=this.yy[Dt]);P.setInput(l,q.yy),q.yy.lexer=P,q.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Pt=P.yylloc;o.push(Pt);var pe=P.options&&P.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(I){x.length=x.length-2*I,S.length=S.length-I,o.length=o.length-I}r(ie,"popStack"),n(ie,"popStack");function Lt(){var I;return I=d.pop()||P.lex()||ee,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=u.symbols_[I]||I),I}r(Lt,"lex"),n(Lt,"lex");for(var v,j,O,vt,rt={},mt,H,se,yt;;){if(j=x[x.length-1],this.defaultActions[j]?O=this.defaultActions[j]:((v===null||typeof v>"u")&&(v=Lt()),O=ct[j]&&ct[j][v]),typeof O>"u"||!O.length||!O[0]){var Et="";yt=[];for(mt in ct[j])this.terminals_[mt]&&mt>de&&yt.push("'"+this.terminals_[mt]+"'");P.showPosition?Et="Parse error on line "+(pt+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
3
|
Expecting `+yt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Et="Parse error on line "+(pt+1)+": Unexpected "+(v==ee?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Et,{text:P.match,token:this.terminals_[v]||v,line:P.yylineno,loc:Pt,expected:yt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+v);switch(O[0]){case 1:x.push(v),S.push(P.yytext),o.push(P.yylloc),x.push(O[1]),v=null,te=P.yyleng,p=P.yytext,pt=P.yylineno,Pt=P.yylloc;break;case 2:if(H=this.productions_[O[1]][1],rt.$=S[S.length-H],rt._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},pe&&(rt._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),vt=this.performAction.apply(rt,[p,te,pt,q.yy,O[1],S,o].concat(fe)),typeof vt<"u")return vt;H&&(x=x.slice(0,-1*H*2),S=S.slice(0,-1*H),o=o.slice(0,-1*H)),x.push(this.productions_[O[1]][0]),S.push(rt.$),o.push(rt._$),se=ct[x[x.length-2]][x[x.length-1]],x.push(se);break;case 3:return!0}}return!0},"parse"),"parse")},lt=(function(){var F={EOF:1,parseError:n(r(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),"parseError"),setInput:n(function(l,u){return this.yy=u||this.yy||{},this._input=l,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:n(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:n(function(l){var u=l.length,x=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=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),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(l){this.unput(this.match.slice(l))},"less"),pastInput:n(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bq as q,bo as H,a_ as C,by as G,bs as dt,b as J,bu as nt}from"./yZ5s7S5S.js";import{bs as K,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as L,bA as B,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./B8o4lNgr.js";import{C as ut}from"./
|
|
1
|
+
import{t as F,bq as q,bo as H,a_ as C,by as G,bs as dt,b as J,bu as nt}from"./yZ5s7S5S.js";import{bs as K,cd as lt,ca as z,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as L,bA as B,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./B8o4lNgr.js";import{C as ut}from"./DOb83nqS.js";import{f as V}from"./CyAayV8v.js";import{k as bt}from"./BOBlxuhv.js";import{Hb as W,dv as vt,dt as kt,dw as _t}from"./WOicJa2k.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),ft=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),mt=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());z(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));z(()=>{if(!s())return;const t=s();return ct(()=>{W.dispatch(vt(t)),W.dispatch(kt(t))}),()=>W.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},A=It(),O=T(A),j=T(O);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(j,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=L(j,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}B(O);var Z=L(O,2);{var tt=t=>{var r=ft(),p=T(r);{var y=a=>{var f=gt(),o=S(f,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,f)},i=a=>{{let f=u(()=>e(v)?.code??"");ut(a,{get code(){return e(f)},language:"javascript",noMargin:!0})}};C(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}B(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=mt(),m=pt(n),P=S(m,!0),at=L(m,2),ot=S(at,!0);h(st=>{_(P,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};C(p,o=>{e(v)?.lastError&&o(y)})}var i=L(p,2);{var a=o=>{var n=ht(),m=S(n,!0);h(()=>_(m,e(v).lastLogs)),l(o,n)},f=o=>{var n=xt(),m=S(n,!0);h(P=>_(m,P),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};C(i,o=>{e(v)?.lastLogs?o(a):o(f,-1)})}B(r),l(t,r)};C(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}B(A),l(x,A);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return B(s),l(x,s),N(E)}export{yt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,ab as d,aB as c}from"./
|
|
1
|
+
import{a as i,ab as d,aB as c}from"./D1YVXYbM.js";import{c3 as l,h as p}from"./Cc7p6my_.js";var o=p(c()),x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),f=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),w=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),k=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),v=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),E=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{w as a,f as b,E as c,g as d,x as e,h as f,k as g,v as h};
|