@intent-hq/web 2.355.0 → 2.355.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/{CQOzxS37.js → 1SLrhPyO.js} +1 -1
- package/web/app/immutable/chunks/{DRu2SmqZ.js → 2ZC36t6Y.js} +1 -1
- package/web/app/immutable/chunks/{DDrNrLrU.js → 4i5EVueM.js} +1 -1
- package/web/app/immutable/chunks/{ZdkLfBer.js → B5JG9cuN.js} +3 -3
- package/web/app/immutable/chunks/{CR5Y4liG.js → B5UEHKfc.js} +1 -1
- package/web/app/immutable/chunks/{NXv_P5Qh.js → B72MJ3vu.js} +1 -1
- package/web/app/immutable/chunks/{BtgXG1bI.js → B8V3vzpb.js} +1 -1
- package/web/app/immutable/chunks/{by6bEb9-.js → BCvsQuki.js} +1 -1
- package/web/app/immutable/chunks/{CYsqduek.js → BE6Tebnn.js} +1 -1
- package/web/app/immutable/chunks/{Cngz4SkV.js → BGKbam_q.js} +1 -1
- package/web/app/immutable/chunks/{CRPVb-NN.js → BHE9A9Ku.js} +1 -1
- package/web/app/immutable/chunks/{CPjDbn62.js → BHIhrgF3.js} +1 -1
- package/web/app/immutable/chunks/{Bdy7vCm7.js → BHV_SpF_.js} +1 -1
- package/web/app/immutable/chunks/{C6D71HVX.js → BIu3EK4M.js} +1 -1
- package/web/app/immutable/chunks/{FfneHBLs.js → BKPuOauG.js} +1 -1
- package/web/app/immutable/chunks/{DLMRD5TK.js → BLIddJz7.js} +1 -1
- package/web/app/immutable/chunks/{DVWLaxba.js → BLep2lYT.js} +1 -1
- package/web/app/immutable/chunks/{BnqQcpEI.js → BMG-wHCR.js} +1 -1
- package/web/app/immutable/chunks/{D1DEK8H6.js → BMdFflzZ.js} +1 -1
- package/web/app/immutable/chunks/{qj_ON81L.js → BQ1baLcx.js} +1 -1
- package/web/app/immutable/chunks/{hERCQx8m.js → BRbLIP91.js} +1 -1
- package/web/app/immutable/chunks/{CG3T6SOf.js → BTiw_PQQ.js} +1 -1
- package/web/app/immutable/chunks/{D6mw8KEc.js → BXaHAPIM.js} +1 -1
- package/web/app/immutable/chunks/{C6w2676x.js → BXopNUzR.js} +1 -1
- package/web/app/immutable/chunks/{CO9yyopN.js → BYQLxhbC.js} +1 -1
- package/web/app/immutable/chunks/{DaoeY9LL.js → BZ5mOiI-.js} +4 -4
- package/web/app/immutable/chunks/{BAUmJitx.js → BbzW_OaY.js} +1 -1
- package/web/app/immutable/chunks/{BvDhoV5o.js → Bl9yzXPP.js} +1 -1
- package/web/app/immutable/chunks/{C7UD9DTe.js → BoHKKVF_.js} +1 -1
- package/web/app/immutable/chunks/{CY3bfIXG.js → Bun1NnOh.js} +1 -1
- package/web/app/immutable/chunks/{k2N4NU1e.js → BwSRi0uX.js} +1 -1
- package/web/app/immutable/chunks/{BxEOqX92.js → BwUXkhFN.js} +2 -2
- package/web/app/immutable/chunks/{Di9HvUJO.js → BxggGvVh.js} +1 -1
- package/web/app/immutable/chunks/{Bw7J4KV9.js → Bxhar1lK.js} +1 -1
- package/web/app/immutable/chunks/{C7viSic6.js → C0WbqnMl.js} +1 -1
- package/web/app/immutable/chunks/{5dP06dgt.js → C0dDMWyG.js} +1 -1
- package/web/app/immutable/chunks/{D_AW5_kx.js → C1NTmdzU.js} +1 -1
- package/web/app/immutable/chunks/{B1XU-ZD5.js → C1ZyPKke.js} +1 -1
- package/web/app/immutable/chunks/{DCaO1n-G.js → C1ymNXYM.js} +1 -1
- package/web/app/immutable/chunks/{TH1qr9eA.js → C2Biyw3j.js} +1 -1
- package/web/app/immutable/chunks/{DYtlrgPM.js → C9mvCLYS.js} +1 -1
- package/web/app/immutable/chunks/{Cq29Q7UD.js → CAv7yxiQ.js} +1 -1
- package/web/app/immutable/chunks/{DC3A_b9e.js → CBiyyn5t.js} +2 -2
- package/web/app/immutable/chunks/{DUPxOfKr.js → CCIeFHqh.js} +2 -2
- package/web/app/immutable/chunks/{CMSbEsNG.js → CCqa4XPE.js} +1 -1
- package/web/app/immutable/chunks/{C9GcP6Mx.js → CDjHQ3KR.js} +1 -1
- package/web/app/immutable/chunks/{BIpPAEmZ.js → CEdeKEH5.js} +1 -1
- package/web/app/immutable/chunks/{BYp96700.js → CFQNYbfN.js} +1 -1
- package/web/app/immutable/chunks/{RjC8XXem.js → CGue0_9O.js} +1 -1
- package/web/app/immutable/chunks/{D2WHu0uY.js → CJR-fJTC.js} +1 -1
- package/web/app/immutable/chunks/{D_J0qIRM.js → CKBKzqDD.js} +1 -1
- package/web/app/immutable/chunks/{CD7UFjMG.js → CMYENl61.js} +1 -1
- package/web/app/immutable/chunks/{DZoAvL0T.js → CO531tLI.js} +2 -2
- package/web/app/immutable/chunks/{D-G_JMag.js → COcPdiz-.js} +1 -1
- package/web/app/immutable/chunks/{DtWyzoyb.js → CPxXU1c_.js} +1 -1
- package/web/app/immutable/chunks/{CrsAEKLD.js → CRBm_KYe.js} +1 -1
- package/web/app/immutable/chunks/{BMxVcrc0.js → CRHxLu94.js} +1 -1
- package/web/app/immutable/chunks/{Dgmf6bXZ.js → CSor2xJT.js} +1 -1
- package/web/app/immutable/chunks/{CAEUGHBT.js → CTZYeLTN.js} +1 -1
- package/web/app/immutable/chunks/{BYBXBR1N.js → CTmPV4px.js} +1 -1
- package/web/app/immutable/chunks/{DyOfGZJq.js → CXpE7H_z.js} +1 -1
- package/web/app/immutable/chunks/{Dm1FlVyV.js → C__IofCN.js} +1 -1
- package/web/app/immutable/chunks/{Dl6iJg2m.js → Cfxk9qsj.js} +1 -1
- package/web/app/immutable/chunks/{D8EgnPWP.js → CiNDhRnQ.js} +1 -1
- package/web/app/immutable/chunks/{CCnb8u7s.js → CkojcfYz.js} +1 -1
- package/web/app/immutable/chunks/{PRsCy7Qn.js → Clbb1Quu.js} +1 -1
- package/web/app/immutable/chunks/{B-wDyvq6.js → CmIH9pPA.js} +1 -1
- package/web/app/immutable/chunks/{DctTjn6B.js → CnXKtYEY.js} +2 -2
- package/web/app/immutable/chunks/{sOLB01Xt.js → Cr4Z84ZQ.js} +1 -1
- package/web/app/immutable/chunks/{fudQlx_N.js → CwV6KdwG.js} +4 -4
- package/web/app/immutable/chunks/{B8_K0Ghc.js → D1dKOodV.js} +1 -1
- package/web/app/immutable/chunks/{jycTRRr5.js → D2rJR8Kd.js} +1 -1
- package/web/app/immutable/chunks/{Bgxu_Ykz.js → D3XAqchb.js} +1 -1
- package/web/app/immutable/chunks/{B9hBNK3g.js → D5-76Omb.js} +3 -3
- package/web/app/immutable/chunks/{D553PbG6.js → D50spOQl.js} +1 -1
- package/web/app/immutable/chunks/{Bml5bnEZ.js → D7r3X1aQ.js} +4 -4
- package/web/app/immutable/chunks/{DJfkZVoc.js → D8PRNAXi.js} +1 -1
- package/web/app/immutable/chunks/{Dt8ynTh_.js → D9KC2q61.js} +1 -1
- package/web/app/immutable/chunks/{BLwi8VLk.js → DBVCVTUu.js} +1 -1
- package/web/app/immutable/chunks/{CjamSASN.js → DMUY6wr5.js} +1 -1
- package/web/app/immutable/chunks/{_0Akk0N0.js → DNrb54jP.js} +1 -1
- package/web/app/immutable/chunks/{DLpY8t6L.js → DRLHEDtz.js} +3 -3
- package/web/app/immutable/chunks/{C7SD_h7y.js → DU4lRwyV.js} +1 -1
- package/web/app/immutable/chunks/{D6ipXFWq.js → DUbC3YzM.js} +1 -1
- package/web/app/immutable/chunks/{Ddr1cDmN.js → DVSI7mFz.js} +1 -1
- package/web/app/immutable/chunks/{dFx_WDK9.js → DXABAlso.js} +2 -2
- package/web/app/immutable/chunks/{XrSyKhRq.js → Dfr1lQjm.js} +1 -1
- package/web/app/immutable/chunks/{DZXtxMhn.js → DgjOoN_L.js} +3 -3
- package/web/app/immutable/chunks/{CL0gh7eK.js → DhCMgQKK.js} +1 -1
- package/web/app/immutable/chunks/{Bh0MKrtC.js → DhZb2otX.js} +2 -2
- package/web/app/immutable/chunks/{CdJ-iQAl.js → Dk-bN4j5.js} +1 -1
- package/web/app/immutable/chunks/{DmU6qPbC.js → DmbFU-Mr.js} +1 -1
- package/web/app/immutable/chunks/{C8dy9jKV.js → DopZSVYu.js} +3 -3
- package/web/app/immutable/chunks/{CfTDrXA4.js → Drm-NnN7.js} +1 -1
- package/web/app/immutable/chunks/{DdxORfnM.js → DsxARKI6.js} +1 -1
- package/web/app/immutable/chunks/{DyOpBWO8.js → DtPkoBHn.js} +1 -1
- package/web/app/immutable/chunks/{Xy4NAXmR.js → DtjTeVR3.js} +1 -1
- package/web/app/immutable/chunks/{B61jFDO7.js → Dvrk45ey.js} +1 -1
- package/web/app/immutable/chunks/{0Mjcgdi0.js → Dxky5vdm.js} +1 -1
- package/web/app/immutable/chunks/{Bm6HvQFF.js → Et4hs9LJ.js} +1 -1
- package/web/app/immutable/chunks/{Ct4AnE7x.js → GYf7TgLR.js} +1 -1
- package/web/app/immutable/chunks/{CxusERHp.js → LMcS9iRR.js} +1 -1
- package/web/app/immutable/chunks/{3mLiyzqh.js → MbKR475z.js} +12 -12
- package/web/app/immutable/chunks/{CBdpCMGg.js → N-kFoWep.js} +1 -1
- package/web/app/immutable/chunks/{CWGWxjkW.js → NBerdmKr.js} +1 -1
- package/web/app/immutable/chunks/{ClOnGfh3.js → OiAhH10D.js} +1 -1
- package/web/app/immutable/chunks/{D_1OUHe5.js → QyVBgWLE.js} +1 -1
- package/web/app/immutable/chunks/{lXkefv0c.js → R5yad3fN.js} +1 -1
- package/web/app/immutable/chunks/{B76B2CEw.js → RGAGry1B.js} +1 -1
- package/web/app/immutable/chunks/{DJhxftTm.js → VjUdQEa_.js} +2 -2
- package/web/app/immutable/chunks/{1en6Nskf.js → Vjje40Nh.js} +1 -1
- package/web/app/immutable/chunks/{B3RPp65M.js → Wr7HSEko.js} +1 -1
- package/web/app/immutable/chunks/{B8AiWRnD.js → baTnhfkt.js} +57 -57
- package/web/app/immutable/chunks/{DXbxXgMb.js → cVDYGNk_.js} +1 -1
- package/web/app/immutable/chunks/{BE4fmbrd.js → d49NjlCP.js} +1 -1
- package/web/app/immutable/chunks/{D0r9nh2D.js → e_SMT_cB.js} +1 -1
- package/web/app/immutable/chunks/{SnkT67dh.js → fdHhQhtv.js} +1 -1
- package/web/app/immutable/chunks/{9bB63VdN.js → glNSRCnV.js} +1 -1
- package/web/app/immutable/chunks/{B1ZZGqDR.js → hG4jjZYI.js} +1 -1
- package/web/app/immutable/chunks/{Ck3PfCWY.js → i609sim6.js} +1 -1
- package/web/app/immutable/chunks/{Derdn26w.js → iiHO66OG.js} +1 -1
- package/web/app/immutable/chunks/{DDxnJah0.js → pNljm9DY.js} +1 -1
- package/web/app/immutable/chunks/{DzLsS9D8.js → prO6MIJE.js} +1 -1
- package/web/app/immutable/chunks/{CZoruBq7.js → xaGNRYm_.js} +2 -2
- package/web/app/immutable/entry/{app.DsedXxCq.js → app.C7Gp5ffn.js} +2 -2
- package/web/app/immutable/entry/start.DtQdIacO.js +1 -0
- package/web/app/immutable/nodes/{0.DFm0uMPD.js → 0.DIDJMd84.js} +1 -1
- package/web/app/immutable/nodes/{1.CwLJr2Fx.js → 1.CEx193fD.js} +1 -1
- package/web/app/immutable/nodes/{10.DUkyiyGM.js → 10.CL_rI79-.js} +1 -1
- package/web/app/immutable/nodes/{14.DuebugBg.js → 14.CCcTMEGX.js} +1 -1
- package/web/app/immutable/nodes/{18.DoKSJAmC.js → 18.p26LUwMf.js} +2 -2
- package/web/app/immutable/nodes/{2.Bxl6SY_3.js → 2.CoVXK-19.js} +4 -4
- package/web/app/immutable/nodes/{3.Bjzt-5x5.js → 3.BRZLUORO.js} +1 -1
- package/web/app/immutable/nodes/{4.DbwSRbcy.js → 4.VF3kCDJt.js} +1 -1
- package/web/app/immutable/nodes/{5.CeIP8x-e.js → 5.CSUxVeR1.js} +1 -1
- package/web/app/immutable/nodes/{6.m9XvDOSk.js → 6.dTQ4Ln2C.js} +1 -1
- package/web/app/immutable/nodes/{7.CkOI-QWK.js → 7.AOpiD-Qu.js} +1 -1
- package/web/app/immutable/nodes/{8.D324-VCX.js → 8.ByKmjaRv.js} +4 -4
- package/web/app/immutable/nodes/{9.CoElnN-I.js → 9.DlsfDUD5.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.WXVbrDoR.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as v,t as Bt,bo as y,bw as Ft,b as zt,bp as rp,bs as yt,bq as ga,br as Bo,b6 as Ll,bj as np,b9 as ap,bi as sp,ba as op,bf as ip,a$ as lp,b3 as cp,bh as dp,bk as up,a_ as fp,b8 as pp,b7 as gp,b1 as vp,be as mp,bl as hp,bu as Ol,bd as bp,b5 as yp,b4 as _p,b2 as xp,bc as wp,bb as kp,bg as Ip,b0 as Sp,_ as Cp}from"./CVtvGnj8.js";import{bI as Ep,bj as eo,aG as Pp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as Ct,ay as Ue,be as cr,b$ as Ut,aC as Ha,bl as M,b_ as I,bO as x,aB as k,bo as Ms,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ap,aj as Rr,c7 as Tp,c6 as Dl,c5 as Mn,bf as So,bz as Cd}from"./DYhIMPy1.js";import{i as D}from"./DKs05YEr.js";import{k as Es}from"./CN90kKWF.js";import{h as Rp,e as Un,I as ro,g as Nt,i as Tr,o as Mp,p as Np,f as Lp,s as Op}from"./DGvhYwwC.js";import{s as un}from"./CR_DYxzQ.js";import{c as Qr}from"./tOQ0MdfM.js";import{I as Ci,t as nr,n as Dp,i as Bl,u as Fl}from"./sj0eQTm1.js";import{b as Bp,s as ee,g as Nn,e as In,c as ir,f as pt}from"./BT-leRNV.js";import{b as pr}from"./BaIAhI85.js";import{i as Ed,bv as Pd,cM as Ad,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as Vs,aC as Fo,c3 as qp,I as Vp,a as Kp,a0 as zl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./BwmV4u5a.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Td,c as og,R as ig}from"./Hx_Q5ZY_.js";import{f as kt,ah as ws,aa as lg,ae as Ei}from"./CDX6j4QU.js";import{F as cg}from"./BU46x7E3.js";import{ap as dg,ac as Hl,$ as ug,aG as fg,ad as pg,h as gg,ae as vg,aZ as mg,I as hg,R as bg,av as yg,ai as _g,a0 as xg,a as jl,ax as wg,s as kg,n as Ig,b3 as Sg,m as Cg,b5 as Pi,A as Wl,ah as Eg,b4 as Pg,ar as Rd,Q as Md,a7 as Ag,a5 as Ul,V as Tg,U as Rg,ab as Mg,a6 as Ng,K as ql,aw as Lg}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CCIeFHqh.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CVtvGnj8.js","/app/immutable/chunks/DKs05YEr.js","/app/immutable/chunks/CR_DYxzQ.js","/app/immutable/chunks/Dg5rAMu7.js","/app/immutable/chunks/sj0eQTm1.js","/app/immutable/chunks/DGvhYwwC.js","/app/immutable/chunks/BT-leRNV.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CQNY8AIr.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B64lZ_-k.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CGpelL0C.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CDX6j4QU.js","/app/immutable/chunks/BU46x7E3.js","/app/immutable/chunks/BE35_Kwj.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/tOQ0MdfM.js","/app/immutable/chunks/CN90kKWF.js","/app/immutable/chunks/CF1bQLZh.js","/app/immutable/chunks/DQh0old4.js","/app/immutable/chunks/FYq6LgZ3.js","/app/immutable/chunks/BgPqfjSP.js","/app/immutable/chunks/PnRQRSpt.js","/app/immutable/chunks/ChC2njK7.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BLLNPhaG.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/DPCJnGoX.js","/app/immutable/chunks/BMGEbk-i.js","/app/immutable/chunks/7NnWOZ1A.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BtTrP9fj.js","/app/immutable/chunks/BMJmYye_.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/3urZOd0a.js","/app/immutable/chunks/BxLr8uYz.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Hx_Q5ZY_.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/D1dKOodV.js","/app/immutable/chunks/BwmV4u5a.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CeW1xZTK.js","/app/immutable/chunks/rfzg_0PW.js","/app/immutable/chunks/CXWGcPvu.js","/app/immutable/chunks/DIlUp7xT.js","/app/immutable/chunks/CTZhg0JI.js","/app/immutable/chunks/Co2eSgEE.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CBiyyn5t.js","/app/immutable/chunks/CTmPV4px.js","/app/immutable/chunks/DXABAlso.js","/app/immutable/chunks/DhCMgQKK.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CCqa4XPE.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,t as Bt,bo as y,bw as Ft,b as zt,bp as rp,bs as yt,bq as ga,br as Bo,b6 as Ll,bj as np,b9 as ap,bi as sp,ba as op,bf as ip,a$ as lp,b3 as cp,bh as dp,bk as up,a_ as fp,b8 as pp,b7 as gp,b1 as vp,be as mp,bl as hp,bu as Ol,bd as bp,b5 as yp,b4 as _p,b2 as xp,bc as wp,bb as kp,bg as Ip,b0 as Sp,_ as Cp}from"./CVtvGnj8.js";import{bI as Ep,bj as eo,aG as Pp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as Ct,ay as Ue,be as cr,b$ as Ut,aC as Ha,bl as M,b_ as I,bO as x,aB as k,bo as Ms,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ap,aj as Rr,c7 as Tp,c6 as Dl,c5 as Mn,bf as So,bz as Cd}from"./DYhIMPy1.js";import{i as D}from"./DKs05YEr.js";import{k as Es}from"./CN90kKWF.js";import{h as Rp,e as Un,I as ro,g as Nt,i as Tr,o as Mp,p as Np,f as Lp,s as Op}from"./DGvhYwwC.js";import{s as un}from"./CR_DYxzQ.js";import{c as Qr}from"./tOQ0MdfM.js";import{I as Ci,t as nr,n as Dp,i as Bl,u as Fl}from"./sj0eQTm1.js";import{b as Bp,s as ee,g as Nn,e as In,c as ir,f as pt}from"./BT-leRNV.js";import{b as pr}from"./BaIAhI85.js";import{i as Ed,bv as Pd,cM as Ad,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as Vs,aC as Fo,c3 as qp,I as Vp,a as Kp,a0 as zl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./BwmV4u5a.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Td,c as og,R as ig}from"./Hx_Q5ZY_.js";import{f as kt,ah as ws,aa as lg,ae as Ei}from"./CDX6j4QU.js";import{F as cg}from"./BU46x7E3.js";import{ap as dg,ac as Hl,$ as ug,aG as fg,ad as pg,h as gg,ae as vg,aZ as mg,I as hg,R as bg,av as yg,ai as _g,a0 as xg,a as jl,ax as wg,s as kg,n as Ig,b3 as Sg,m as Cg,b5 as Pi,A as Wl,ah as Eg,b4 as Pg,ar as Rd,Q as Md,a7 as Ag,a5 as Ul,V as Tg,U as Rg,ab as Mg,a6 as Ng,K as ql,aw as Lg}from"./baTnhfkt.js";import{F as Pt,bg as Ai,bL as Og,an as Dg,aP as Bg,cM as Fg,bk as rl,bB as zg,aF as Nd,aK as nl,c$ as Co,aa as Ti,co as Hg,cd as jg,cj as al,cG as Ld,bs as Wg,e as Ug,b$ as Vl,c9 as qg,cm as Vg,cX as Od,bV as Kl,b7 as si,bd as js,aE as Kg,ay as Ri,at as Dd,bb as Bd,bC as Gg,B as Jg,bv as Yg,$ as Fd,b2 as Xg,a5 as zd,ch as Zg,ak as Hd,cO as jd,cK as Gl,ar as Wd,aJ as Jl,cw as Qg,cV as $g,cP as ev,aI as tv,a_ as rv,bO as Ud,bm as nv,am as sl,c5 as Yl,ax as av,a8 as sv,a6 as ov}from"./PnRQRSpt.js";import{c as qd}from"./ChTqQfQN.js";import{g as iv}from"./BMJmYye_.js";import{IA as Ot,bN as lv,r_ as Xl,sz as cv,Jo as dv,Ju as uv,i as Vd,Id as Kd,nw as Gd,nM as Jd,nL as Yd,np as zo,q7 as ol,y4 as fv,v6 as yo,up as Mi,v8 as pv,ne as Xd,IF as gv,te as vv,oA as Zd,rk as il,lX as Zl,a4 as Ql,qQ as mv,qM as hv,qR as bv,qI as yv,qO as _v,uY as xv,AD as Qd,AH as $d,nN as $l,bf as Ni,GY as wv,I9 as kv,ha as ec,h9 as Iv,nH as Sv,w7 as Cv,w8 as Ev,w6 as tc,BC as ia,cs as Pv,cg as Av,d1 as Tv,d8 as Rv,AN as Mv}from"./CQNY8AIr.js";import{bU as Nv,c1 as Lv,p as Ov,L as Dv,c4 as Bv,au as Fv,aw as zv,ay as Hv,ai as jv,ah as Wv,aA as Uv,a6 as qv,bx as Vv,bZ as Kv,bz as Gv}from"./DIlUp7xT.js";import{n as Jv,m as Yv,v as Li,co as Xv,O as Zv,cm as Qv,cf as $v,aG as rc,ch as em,bQ as Oi,aQ as tm,s as rm,c as Ks,d as Di,cj as eu,ck as Bi,bF as nm,b9 as am,bU as sm,bS as om,H as im,ci as nc,by as lm,z as ac,cl as cm,N as dm,a4 as sc}from"./D1dKOodV.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as oc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as ic,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./glNSRCnV.js";import{i as Dm,I as Ss,c as lc}from"./CF1bQLZh.js";import"./DQh0old4.js";import{f as cc,z as dc,M as tu,m as Bm,l as Fm,E as ru,y as Fi,e as Gs,H as zi,X as us,h as zm}from"./CCIeFHqh.js";import"./7NnWOZ1A.js";import{b as nu}from"./BxLr8uYz.js";import"./BLLNPhaG.js";import{z as ll,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,a as au,x as Jm,t as _s,K as Ym,k as Xm,R as Zm}from"./FYq6LgZ3.js";import{t as Js,O as Qm,M as $m,S as za}from"./BgPqfjSP.js";import{a as eh}from"./ChC2njK7.js";import{C as Hi}from"./CoRl8mzp.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as uc,aK as ih,aR as lh,aX as cl,aS as dl,W as oi,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as su,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./DopZSVYu.js";import{s as ji}from"./CEdeKEH5.js";import{M as Ch}from"./BqYjvgE5.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as ul,w as Ah,v as Ho,I as Th,A as fc,e as As,d as Ta,J as pc,c as Rh,f as Mh,g as gc,i as Nh,b as Lh,o as ou,j as Oh,q as Wi,r as Dh,O as Bh,x as Fh,k as iu,S as zh,N as Hh,p as jh,n as vc,z as Wh,s as Uh}from"./BQ1baLcx.js";import{o as mc,a as hc,T as ii,b as qh}from"./VjUdQEa_.js";import{O as Vh,x as Kh,i as Gh,g as Jh,T as Yh}from"./DBWsr7gt.js";import{D as Ys}from"./BwSRi0uX.js";import"./B5OcfxDj.js";import{C as ua}from"./C0WbqnMl.js";import{M as Xh}from"./D7r3X1aQ.js";import{g as fl}from"./Dg5rAMu7.js";import{f as bc,d as Zh}from"./CTmPV4px.js";import{c as xo}from"./DOfs9nEL.js";import{handleIntentLink as Qh}from"./CnXKtYEY.js";import{s as $h,a as eb,f as tb,d as rb,r as nb,h as ab,w as Ws,g as sb,W as ob,H as ib,c as lb,M as lu}from"./CwV6KdwG.js";import{e as cb,q as db}from"./CTZhg0JI.js";import{m as ub}from"./WFvSJ9zU.js";import{showAssistantContent as fb}from"./BwUXkhFN.js";import{o as Eo,c as pb,n as gb}from"./CCqa4XPE.js";import{p as vb}from"./B8V3vzpb.js";import{m as mb}from"./-DqWFMjY.js";import{h as vo}from"./BOE7sYT_.js";import{i as cu}from"./rfzg_0PW.js";import{I as hb,z as bb}from"./CGpelL0C.js";import{g as yb,e as _b,f as xb,h as wb}from"./BvFAWM27.js";import{T as li}from"./D3LsbrvJ.js";import"./BMGEbk-i.js";import{a as kb}from"./3urZOd0a.js";import{a as Ib}from"./BdWqymET.js";import{p as Sb}from"./DMUY6wr5.js";const Cb="intent:inline-visual-draft";function zC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
294
294
|
`,B0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],xi=96,id=2e4,F0=480,hf=512,z0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function H0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(L=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,G=E-z;if(z>h+1&&G>1&&Math.abs(G-P)<=1?R+=1:(z!==h||G<=1)&&(R=0),h=z,P=G,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{L||(L=!0,requestAnimationFrame(F))},O=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const G=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof G=="string"&&G.length<512&&z.style.setProperty("--inline-html-root-font-size",G);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&O(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const we=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(we.overflowY)||/^(hidden|clip)$/.test(we.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const G=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*G));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),O(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function j0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function W0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const we of["href","xlink:href"])Q.getAttribute(we)?.startsWith("#")||Q.removeAttribute(we);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
295
295
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(L,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),O=T.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),G=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${G}, (${r.validate}));`,T.head.prepend(O,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const U0=()=>({csp:z0,styles:D0,maxScrollDelta:hf,lockHeight:F0,bridge:H0.toString(),shell:j0.toString(),validate:il.toString()});function q0(r,t,n,a,s=null,o=""){return W0(U0(),il,r,t,n,a,s,o)}function ld(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(B0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function V0(r,t,n,a,s=null){return q0(r,t,n,a,s,O0)}var K0=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),G0=k('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),J0=k('<p class="sr-only" role="status"> </p>'),Y0=k('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),X0=k('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),Z0=k('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Q0=k('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),$0=k('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),ek=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),tk=k('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),rk=k('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),nk=k('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),ak=k('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),sk=k("<!> <!>",1),ok=k('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function bf(r,t){if(new.target)return Bt({component:bf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),L=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),O=ye(!1),U=ye(0),E=ye(""),z=ye(""),G=ye(!1),Y=ye(""),Q=ye(Gr(xi)),we=ye(n),le=ye(""),de=ye(Zl()),oe=ye(void 0),Re=ye(void 0),J,ke=ye(void 0),ne=ye(!1);const Ie=d(()=>l()??e(de)),De=d(()=>e(Re)!==void 0&&e(oe)!==void 0&&!ub(e(Re),e(oe).inputs)),Se=d(()=>f()!=="loading"&&(f()!=="error"||!!e(Ie).current)),me=d(()=>!o()&&c()&&!!s().trim()&&e(Se)),He=d(()=>Math.min(id,Math.max(xi,e(Q)))),Xe=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(G)?"ready":"loading":"empty":"incomplete"),ae=d(()=>o()||f()==="loading"||e(me)&&!e(G)&&!e(Y)),Z=d(()=>Jm([{id:"source",label:e(O)?ap():sp()},{id:"reload",label:op(),disabled:!e(me)},{id:"save",label:ip(),when:!!(e(oe)&&e(me)),disabled:!e(G)||!!e(Y)||e(Ie).scenarios.length>=Ql,group:"configuration"},{id:"compare",label:lp(),when:!!(e(oe)&&e(me)&&e(Ie).scenarios.length),group:"configuration"},{id:"export",label:cp(),when:!!(e(oe)&&e(me)&&g()),disabled:!e(G)||h()==="saving",group:"configuration"}]));function Ke(fe){fe==="source"?A(O,!e(O)):fe==="reload"?A(U,e(U)+1):fe==="save"?K():fe==="compare"?A(ne,!e(ne)):fe==="export"&&g()?.({...e(Ie),current:e(oe)??null})}function V(fe){const Me={...fe,current:e(oe)??fe.current};A(de,Me),i()?.(Me)}function K(){const fe=e(oe);!fe||e(Ie).scenarios.length>=Ql||(V({...e(Ie),scenarios:[...e(Ie).scenarios,{id:crypto.randomUUID(),name:dp({number:Fl(e(Ie).scenarios.length+1)}),snapshot:structuredClone(fe)}]}),A(ne,!0))}function W(fe,Me){const rt=Me.trim().slice(0,120);rt&&V({...e(Ie),scenarios:e(Ie).scenarios.map(st=>st.id===fe?{...st,name:rt}:st)})}function se(fe){const Me=structuredClone(fe);A(oe,Me),A(ke,Me),V({...e(Ie),current:Me}),A(U,e(U)+1)}function _e(fe){return typeof fe=="number"?Fl(fe):typeof fe=="string"?fe:JSON.stringify(fe)}function X(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:ld(B)},"*")}function ce(fe){let Me=B.parentElement;for(;Me;){const rt=getComputedStyle(Me),st=Me.scrollHeight-Me.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&st>1){if(fe<0?Me.scrollTop>0:Me.scrollTop<st){Me.dispatchEvent(new WheelEvent("wheel",{deltaY:fe,bubbles:!0})),Me.scrollTop+=fe;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}Me=Me.parentElement}window.scrollBy({top:fe,behavior:"instant"})}wt(()=>{if(!e(T))return;const fe=s(),Me=e(me);e(U),Mn(()=>{J!==fe&&(A(de,Zl()),A(oe,void 0),A(Re,void 0),A(ne,!1),A(ke,void 0),J=fe),A(G,!1),A(Y,""),A(le,""),A(Q,xi,!0),A(z,crypto.randomUUID(),!0),A(E,Me?V0(fe,e(z),ld(B),Ll(),e(ke)??e(oe)??e(Ie).current):"",!0),A(ke,void 0)})}),wt(()=>{if(!e(E)||e(G)||e(Y))return;const fe=setTimeout(()=>{A(Y,np(),!0)},a);return()=>clearTimeout(fe)}),to(()=>{A(T,!0);const fe=St=>{if(St.source!==e(F)?.contentWindow||St.origin!=="null")return;const at=St.data;if(!(!at||typeof at!="object"||at.channel!==e(z))){if(at.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(at.type==="resize"&&typeof at.height=="number"&&Number.isFinite(at.height)&&at.height>=0)A(Q,Math.min(id,Math.ceil(at.height)),!0);else if(at.type==="ready")A(G,!0),X();else if(at.type==="error"&&typeof at.message=="string")A(Y,at.message.slice(0,300),!0);else if(at.type==="layout"&&typeof at.message=="string")A(le,at.message.slice(0,300),!0);else if(at.type==="snapshot"&&e(me)&&il(at.snapshot)){const xt=at.snapshot;A(Re,e(Re)??structuredClone(xt.inputs)),A(oe,xt),V({...e(Ie),current:xt})}else at.type==="wheel"&&e(G)&&e(me)&&!e(O)&&!e(ae)&&typeof at.deltaY=="number"&&Number.isFinite(at.deltaY)&&at.deltaY!==0&&Math.abs(at.deltaY)<=hf&&ce(at.deltaY)}},Me=()=>{A(we,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(X);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const st=window.matchMedia("(prefers-color-scheme: dark)");return st.addEventListener("change",X),window.addEventListener("message",fe),window.addEventListener("resize",Me),Me(),()=>{rt.disconnect(),st.removeEventListener("change",X),window.removeEventListener("message",fe),window.removeEventListener("resize",Me)}});var Le={get source(){return s()},set source(fe){s(fe),_()},get isStreaming(){return o()},set isStreaming(fe=!1){o(fe),_()},get isComplete(){return c()},set isComplete(fe=!0){c(fe),_()},get record(){return l()},set record(fe){l(fe),_()},get storageStatus(){return f()},set storageStatus(fe="ready"){f(fe),_()},get onRecordChange(){return i()},set onRecordChange(fe){i(fe),_()},get onUseConfiguration(){return p()},set onUseConfiguration(fe){p(fe),_()},get onExport(){return g()},set onExport(fe){g(fe),_()},get onRetry(){return L()},set onRetry(fe){L(fe),_()},get storageError(){return b()},set storageError(fe){b(fe),_()},get exportStatus(){return h()},set exportStatus(fe){h(fe),_()},get exportPath(){return P()},set exportPath(fe){P(fe),_()},get exportError(){return R()},set exportError(fe){R(fe),_()},$set:Ft,$on:(fe,Me)=>zt(t,fe,Me)},xe=ok(),tt=S(xe);{var ve=fe=>{var Me=G0(),rt=Ue(Me),st=S(rt),St=M(st,!0),at=m(st,2);{var xt=Tt=>{kt(Tt,{variant:"ghost",size:"sm",get onclick(){return L()},children:(Zt,tr)=>{cr();var qt=Ut();I(Pe=>x(qt,Pe),[()=>bp()]),u(Zt,qt)},$$slots:{default:!0}})};D(at,Tt=>{L()&&Tt(xt)})}w(rt);var vt=m(rt,2);{var At=Tt=>{var Zt=K0(),tr=M(Zt,!0);I(()=>x(tr,b())),u(Tt,Zt)};D(vt,Tt=>{b()&&Tt(At)})}I(Tt=>x(St,Tt),[()=>up()]),u(fe,Me)};D(tt,fe=>{f()==="error"&&fe(ve)})}var Ae=m(tt,2);{var q=fe=>{var Me=J0(),rt=M(Me,!0);I(st=>x(rt,st),[()=>o()?fp():pp()]),u(fe,Me)},Ce=fe=>{var Me=Y0(),rt=M(Me,!0);I(st=>x(rt,st),[()=>c()?vp():gp()]),u(fe,Me)},ge=fe=>{var Me=X0(),rt=S(Me),st=M(rt,!0),St=m(rt,2),at=M(St,!0);w(Me),I(xt=>{x(st,xt),x(at,e(Y))},[()=>mp()]),u(fe,Me)};D(Ae,fe=>{e(ae)?fe(q):e(me)?e(Y)&&fe(ge,2):fe(Ce,1)})}var N=m(Ae,2),H=S(N);{var ue=fe=>{var Me=Ct(),rt=Ue(Me);Es(rt,()=>e(z),st=>{var St=Z0();let at,xt;pr(St,vt=>A(F,vt),()=>e(F)),I(vt=>{ee(St,"title",vt),ee(St,"src",`/inline-html-sandbox.html#${e(z)}`),at=pt(St,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(O)||!e(G)}),ee(St,"aria-hidden",e(O)||!e(G)),xt=Nn(St,"",xt,{height:`${e(He)}px`})},[()=>Ll()]),u(st,St)}),u(fe,Me)};D(H,fe=>{e(me)&&e(E)&&fe(ue)})}var Ye=m(H,2);{var Te=fe=>{ua(fe,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(we)}})},je=fe=>{var Me=Q0(),rt=S(Me),st=S(rt);_s(st,{class:"h-4 w-32 max-w-1/2"});var St=m(st,2);_s(St,{class:"h-3 w-2/3"}),w(rt);var at=m(rt,2);_s(at,{class:"aspect-video max-h-60 w-full rounded-lg"});var xt=m(at,2),vt=S(xt);_s(vt,{class:"h-3 w-16"});var At=m(vt,2);_s(At,{class:"h-2 min-w-0 flex-1"});var Tt=m(At,2);_s(Tt,{class:"h-3 w-10"}),w(xt),w(Me),u(fe,Me)};D(Ye,fe=>{e(O)?fe(Te):e(ae)&&fe(je,1)})}w(N);var $e=m(N,2),ut=S($e);{var mt=fe=>{{let Me=d(()=>!e(G)||!!e(Y));kt(fe,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Wi} ${Dh} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Me)},onclick:()=>e(oe)&&p()(e(oe)),children:(rt,st)=>{var St=$0(),at=Ue(St),xt=S(at);Pt(xt,{get icon(){return Fd},size:16,get class(){return Ta}}),w(at);var vt=m(at,2),At=M(vt,!0);I(Tt=>{pt(at,1,`${As??""} mt-px self-start`,"svelte-1kkow1d"),x(At,Tt)},[()=>hp()]),u(rt,St)},$$slots:{default:!0}})}};D(ut,fe=>{e(oe)&&e(De)&&e(me)&&p()&&!e(O)&&fe(mt)})}var It=m(ut,2);{const fe=(rt,st)=>{let St=()=>(st?.()).props;{let at=d(()=>Ol());kt(rt,Bo(St,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(at)},children:(xt,vt)=>{Pt(xt,{get icon(){return Xg},size:16})},$$slots:{default:!0}}))}};let Me=d(()=>Ol());au(It,{get actions(){return e(Z)},get ariaLabel(){return e(Me)},align:"end",side:"top",onAction:Ke,trigger:fe,$$slots:{trigger:!0}})}w($e);var Lt=m($e,2);{var nt=fe=>{var Me=sk(),rt=Ue(Me);{var st=xt=>{var vt=ek(),At=S(vt),Tt=m(At);{var Zt=tr=>{var qt=Ut();I(()=>x(qt,R())),u(tr,qt)};D(Tt,tr=>{h()==="error"&&R()&&tr(Zt)})}w(vt),I(tr=>x(At,`${tr??""} `),[()=>h()==="saving"?yp():h()==="saved"?_p({path:P()??""}):xp()]),u(xt,vt)};D(rt,xt=>{h()&&xt(st)})}var St=m(rt,2);{var at=xt=>{var vt=ak(),At=S(vt),Tt=S(At),Zt=S(Tt),tr=S(Zt),qt=M(tr,!0),Pe=m(tr),ie=M(Pe,!0),Ge=m(Pe);Nt(Ge,17,()=>e(Ie).scenarios,et=>et.id,(et,Ne)=>{var te=tk(),pe=S(te);{let ze=d(()=>Ip());Ss(pe,{get value(){return e(Ne).name},get"aria-label"(){return e(ze)},maxlength:120,onblur:Fe=>{Fe.currentTarget.value.trim()||(Fe.currentTarget.value=e(Ne).name),W(e(Ne).id,Fe.currentTarget.value)},onkeydown:Fe=>{Fe.key==="Enter"&&Fe.currentTarget.blur(),Fe.key==="Escape"&&(Fe.currentTarget.value=e(Ne).name,Fe.currentTarget.blur())}})}var re=m(pe,2),Oe=S(re);kt(Oe,{variant:"ghost",size:"sm",onclick:()=>se(e(Ne).snapshot),children:(ze,Fe)=>{cr();var qe=Ut();I(Je=>x(qe,Je),[()=>wp()]),u(ze,qe)},$$slots:{default:!0}});var he=m(Oe,2);kt(he,{variant:"ghost",size:"sm",onclick:()=>V({...e(Ie),scenarios:e(Ie).scenarios.filter(ze=>ze.id!==e(Ne).id)}),children:(ze,Fe)=>{cr();var qe=Ut();I(Je=>x(qe,Je),[()=>kp()]),u(ze,qe)},$$slots:{default:!0}}),w(re),w(te),u(et,te)}),w(Zt),w(Tt);var lt=m(Tt);Nt(lt,20,()=>["inputs","results"],Tr,(et,Ne)=>{const te=d(()=>Ne),pe=d(()=>Array.from(new Set([...Object.keys(e(oe)[e(te)]),...e(Ie).scenarios.flatMap(he=>Object.keys(he.snapshot[e(te)]))])));var re=Ct(),Oe=Ue(re);Nt(Oe,16,()=>e(pe),he=>he,(he,ze)=>{var Fe=nk(),qe=S(Fe),Je=M(qe,!0),We=m(qe);Nt(We,17,()=>[e(oe),...e(Ie).scenarios.map(Qe=>Qe.snapshot)],Tr,(Qe,Be)=>{var Ze=rk(),ft=M(Ze,!0);I(it=>x(ft,it),[()=>Object.hasOwn(e(Be)[e(te)],ze)?_e(e(Be)[e(te)][ze]):"—"]),u(Qe,Ze)}),w(Fe),I(()=>x(Je,ze)),u(he,Fe)}),u(et,re)}),w(lt),w(At),w(vt),I(et=>{x(qt,e(oe).title),x(ie,et)},[()=>Sp()]),u(xt,vt)};D(St,xt=>{e(ne)&&e(Ie).scenarios.length&&xt(at)})}u(fe,Me)};D(Lt,fe=>{e(oe)&&e(me)&&fe(nt)})}return w(xe),pr(xe,fe=>B=fe,()=>B),I(()=>{ee(xe,"data-inline-html-status",e(Xe)),ee(xe,"data-inline-html-layout",e(le)?"viewport-locked":void 0),ee(xe,"aria-busy",e(ae))}),u(r,xe),jt(Le)}var ik=k('<div class="w-full min-w-0"><!></div>');function lk(r,t){if(new.target)return Bt({component:lk,...r});Ht(t,!0);const n=()=>yt(e(b),"$agent$",s),a=()=>yt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=ye(void 0);const b=d(()=>Fo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Zd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?_v(e(h)):""),B=d(()=>sh(e(R)));wt(()=>{e(h)&&Ot.dispatch(mv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(Cb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},O=Ct(),U=Ue(O);{var E=Y=>{var Q=ik(),we=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),de=d(()=>c().metadata?.fenceClosed??!1),oe=d(()=>a()?.record),Re=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),J=d(()=>a()?.error),ke=d(()=>e(h)?Xe=>Ot.dispatch(yv(e(R),Xe)):void 0),ne=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ie=d(()=>e(h)?()=>Ot.dispatch(bv(e(R))):void 0),De=d(()=>e(h)?Xe=>Ot.dispatch(hv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),me=d(()=>a()?.export?.path),He=d(()=>a()?.export?.error);bf(we,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(de)},get record(){return e(oe)},get storageStatus(){return e(Re)},get storageError(){return e(J)},get onRecordChange(){return e(ke)},get onUseConfiguration(){return e(ne)},get onRetry(){return e(Ie)},get onExport(){return e(De)},get exportStatus(){return e(Se)},get exportPath(){return e(me)},get exportError(){return e(He)}})}w(Q),pr(Q,le=>A(L,le),()=>e(L)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,O);var G=jt(T);return o(),G}var ck=k('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function dk(r,t){if(new.target)return Bt({component:dk,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ck(),o=M(s,!0);return I(()=>x(o,n())),u(r,s),jt(a)}var uk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),fk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),pk=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),gk=k('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),vk=k('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function mk(r,t){if(new.target)return Bt({component:mk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=vk(),o=S(s),c=S(o);Pt(c,{get icon(){return Od},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Nt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=gk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),O=m(F,2);{var U=we=>{var le=uk(),de=M(le,!0);I(oe=>x(de,oe),[()=>v.chat_detectedScripts_service_badge()]),u(we,le)},E=we=>{var le=fk(),de=M(le,!0);I(oe=>x(de,oe),[()=>v.chat_detectedScripts_command_badge()]),u(we,le)};D(O,we=>{e(h).mode==="service"?we(U):we(E,-1)})}var z=m(O,2);{var G=we=>{var le=pk(),de=M(le,!0);I(()=>x(de,e(h).category)),u(we,le)};D(z,we=>{e(h).category&&e(h).category!=="other"&&we(G)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),I(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),L=M(g,!0);return w(p),w(s),I((b,h)=>{x(f,b),x(L,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function hk(r,t){if(new.target)return Bt({component:hk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,L)=>zt(t,g,L)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var bk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),cd=Ha("<circle></circle>"),yk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),_k=k('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),L=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,de)=>zt(t,le,de)},B=_k(),F=S(B),T=S(F),O=m(T);{var U=le=>{},E=le=>{var de=bk();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(g)*.8),ee(de,"stroke",e(P)),ee(de,"stroke-width",e(g)*1.5),ee(de,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),ee(de,"stroke-dashoffset",e(L)*.25),ee(de,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,de)},z=le=>{var de=cd();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(p)*.6),ee(de,"fill",e(P))}),u(le,de)},G=le=>{var de=cd();I(()=>{ee(de,"cx",e(l)),ee(de,"cy",e(f)),ee(de,"r",e(p)),ee(de,"fill",e(P))}),u(le,de)};D(O,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(G,3)})}w(F);var Y=m(F,2);{var Q=le=>{},we=le=>{var de=yk();I(()=>ee(de,"width",s()*.5)),u(le,de)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(we,1)})}return w(B),I(()=>{ee(F,"width",s()),ee(F,"height",s()),ee(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),pt(F,0,ir(o())),ee(T,"cx",e(l)),ee(T,"cy",e(f)),ee(T,"r",e(p)),ee(T,"stroke",e(P)),ee(T,"stroke-width",e(i))}),u(r,B),jt(R)}var dd=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),xk=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),ud=k('<span class="text-ui text-subtle truncate"> </span>'),fd=k('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),pd=k('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),wk=k('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),kk=k('<span class="text-ui text-subtle pl-4"> </span>'),Ik=k('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Sk=k('<div class="text-ui text-subtle"> </div>'),Ck=k("<!> <!> <!> <!>",1),Ek=k('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Pk=k('<div class="rounded-[0.5px]"></div>');function yf(r,t){if(new.target)return Bt({component:yf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:O,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const G=[...Array(O).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return G.length<=s()?G:G.slice(G.length-s())}),g=d(()=>a().filter(O=>O.status==="complete")),L=d(()=>a().filter(O=>O.status==="in_progress"||O.status==="review_required")),b=d(()=>a().filter(O=>O.status!=="complete"&&O.status!=="in_progress"&&O.status!=="review_required"&&O.status!=="cancelled")),h=d(()=>a().filter(O=>O.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(O){n(O),_()},get tasks(){return a()},set tasks(O=[]){a(O),_()},get maxBars(){return s()},set maxBars(O=20){s(O),_()},get barWidth(){return o()},set barWidth(O="1px"){o(O),_()},get barHeight(){return c()},set barHeight(O="16px"){c(O),_()},get gap(){return l()},set gap(O="1px"){l(O),_()},get class(){return f()},set class(O){f(O),_()},$set:Ft,$on:(O,U)=>zt(t,O,U)},B=Ct(),F=Ue(B);{var T=O=>{Ei(O,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ek(),G=S(z),Y=S(G),Q=M(Y,!0),we=m(Y,2),le=S(we);{var de=De=>{var Se=dd(),me=S(Se);Nn(me,"",{},{"background-color":"#22c55e"});var He=m(me);w(Se),I(()=>x(He,` ${n().completed??""}`)),u(De,Se)};D(le,De=>{n().completed>0&&De(de)})}var oe=m(le,2);{var Re=De=>{var Se=dd(),me=S(Se);Nn(me,"",{},{"background-color":"#4F7BF7"});var He=m(me);w(Se),I(()=>x(He,` ${n().inProgress??""}`)),u(De,Se)};D(oe,De=>{n().inProgress>0&&De(Re)})}var J=m(oe,2);{var ke=De=>{var Se=xk(),me=m(S(Se));w(Se),I(()=>x(me,` ${n().notStarted??""}`)),u(De,Se)};D(J,De=>{n().notStarted>0&&De(ke)})}w(we),w(G);var ne=m(G,2);{var Ie=De=>{var Se=Ck(),me=Ue(Se);Nt(me,17,()=>e(L),Tr,(V,K)=>{var W=pd(),se=S(W),_e=S(se);ii(_e,{get status(){return e(K).status},size:14}),w(se);var X=m(se,2),ce=S(X),Le=M(ce,!0),xe=m(ce,2);{var tt=ve=>{var Ae=fd(),q=S(Ae);{let N=d(()=>e(K).agentState||"idle");Wl(q,{get agentId(){return e(K).agentId},get state(){return e(N)},size:12,get specialist(){return e(K).agentSpecialist}})}var Ce=m(q,2);{var ge=N=>{var H=ud(),ue=M(H,!0);I(()=>x(ue,e(K).agentName)),u(N,H)};D(Ce,N=>{e(K).agentName&&N(ge)})}w(Ae),u(ve,Ae)};D(xe,ve=>{e(K).agentId&&ve(tt)})}w(X),w(W),I(()=>x(Le,e(K).title)),u(V,W)});var He=m(me,2);Nt(He,17,()=>e(b),Tr,(V,K)=>{var W=pd(),se=S(W),_e=S(se);ii(_e,{get status(){return e(K).status},size:14}),w(se);var X=m(se,2),ce=S(X),Le=M(ce,!0),xe=m(ce,2);{var tt=ve=>{var Ae=fd(),q=S(Ae);{let N=d(()=>e(K).agentState||"idle");Wl(q,{get agentId(){return e(K).agentId},get state(){return e(N)},size:12,get specialist(){return e(K).agentSpecialist}})}var Ce=m(q,2);{var ge=N=>{var H=ud(),ue=M(H,!0);I(()=>x(ue,e(K).agentName)),u(N,H)};D(Ce,N=>{e(K).agentName&&N(ge)})}w(Ae),u(ve,Ae)};D(xe,ve=>{e(K).agentId&&ve(tt)})}w(X),w(W),I(()=>x(Le,e(K).title)),u(V,W)});var Xe=m(He,2);{var ae=V=>{var K=Ik(),W=S(K);Nt(W,17,()=>e(g).slice(0,3),Tr,(X,ce)=>{var Le=wk(),xe=S(Le),tt=S(xe);ii(tt,{status:"complete",size:12}),w(xe);var ve=m(xe,2),Ae=M(ve,!0);w(Le),I(()=>x(Ae,e(ce).title)),u(X,Le)});var se=m(W,2);{var _e=X=>{var ce=kk(),Le=M(ce,!0);I(xe=>x(Le,xe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,ce)};D(se,X=>{e(g).length>3&&X(_e)})}w(K),u(V,K)};D(Xe,V=>{e(g).length>0&&V(ae)})}var Z=m(Xe,2);{var Ke=V=>{var K=Sk(),W=M(K,!0);I(se=>x(W,se),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(V,K)};D(Z,V=>{e(h).length>0&&V(Ke)})}u(De,Se)};D(ne,De=>{e(P)&&De(Ie)})}w(z),I(De=>x(Q,De),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let G=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));kt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(G)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(we,le)=>{var de=Ct(),oe=Ue(de);Nt(oe,17,()=>e(p),Tr,(Re,J)=>{var ke=Pk();let ne;I(()=>ne=Nn(ke,"",ne,{width:o(),height:c(),"background-color":i[e(J)]})),u(Re,ke)}),u(we,de)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,O=>{n().total>0&&O(T)})}return u(r,B),jt(R)}function Sl(r,t){if(new.target)return Bt({component:Sl,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Pg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return au(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Eg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;kt(g,Bo(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Ym(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ak=k('<span class="contents"><!></span>'),Tk=k("<!> <!>",1);function _f(r,t){if(new.target)return Bt({component:_f,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>iv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Rd(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Tk(),g=Ue(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);kt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ak(),O=S(T);og(O,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var L=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>tb(n(),f));Md(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(L,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Rk=k('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Mk=k('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Nk=k('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Lk=k('<span data-workspace-card-pr-item=""><!></span>'),Ok=k('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Dk=k('<span data-workspace-card-time=""><!></span>'),Bk=k('<span aria-hidden="true"><!></span>'),Fk=k("<div><!> <!> <!> <!></div>"),zk=k('<div data-workspace-card-hover-surface=""><!></div>'),Hk=k('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),jk=k('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),Wk=k('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Uk=k('<div class="text-sm font-semibold truncate"> </div>'),gd=k('<span class="truncate"> </span>'),qk=k('<span class="text-muted-foreground">·</span>'),Vk=k('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Kk=k('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Gk=k('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Jk=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Yk=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Xk=k('<div class="flex items-center text-ui"><span> </span></div>'),Zk=k('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Qk=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),$k=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),e2=k('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function xf(r,t){if(new.target)return Bt({component:xf,...r});Ht(t,!0);const n=()=>yt(He,"$prMonitors$",c),a=()=>yt(Xe,"$microConnected$",c),s=()=>yt(Z,"$hidesOwnerActions$",c),o=()=>yt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),O=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),G=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),we=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),de=y(t,"onOpenInNewWindow",7),oe=y(t,"onHover",7),Re=y(t,"highlighted",7,!1),J=y(t,"selected",7,!1),ke=y(t,"highlightId",7),ne=y(t,"suppressHover",7,!1),Ie=y(t,"isolateHoverReveal",7,!1),De=y(t,"class",7),Se=y(t,"actions",7);const me=Is("");wt(()=>{me.set(f()?.id??"")});const He=Gp(me),Xe=mb(),ae=Bv(me),Z=Jp(me),Ke=d(()=>nb(f()??{})),V=d(()=>ab(e(Ke)));let K=d(()=>f()?vb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),se=ye(!1),_e=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const $=vo(e(X),{id:ke()});return()=>$.destroy()});let ce=ye(null),Le=ye(null),xe=ye(null),tt=ye(0),ve=ye(0),Ae=d(()=>e(tt)+(e(ve)>0?e(ve)+4:0));function q(){const $=e(ce),gt=e(xe);A(tt,$?Math.max(0,$.scrollWidth-$.clientWidth):0,!0),A(ve,$&>&>.getClientRects().length>0?Math.max(0,$.getBoundingClientRect().right-gt.getBoundingClientRect().left):0,!0)}wt(()=>{const $=e(ce),gt=e(Le),Vt=e(xe);if(!$||!gt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe($),Jt.observe(gt),Vt&&Jt.observe(Vt),()=>Jt.disconnect()});let Ce=null,ge=null,N=!1,H=!1,ue=!1,Ye=!1,Te=!1,je=!1,$e=ye(!1),ut=!1,mt=null,It=ye(null),Lt=null,nt;function fe(){Ce!==null&&(clearTimeout(Ce),Ce=null)}function Me(){ge!==null&&(clearTimeout(ge),ge=null),Lt?.(),Lt=null}function rt(){Me(),A($e,!0),A(se,!0),!Te&&(Te=!0,Ws.notifyOpened())}function st(){Me(),clearTimeout(nt),A($e,!1),A(se,!1),H=!1,Ye=!1,Te&&(Te=!1,Ws.notifyClosed())}function St(){return N||H||ue||Ye}function at(){if(!e(se)){st();return}Me(),ge=setTimeout(()=>{ge=null,St()||st()},ob),Lt=Ws.deferClose(st)}function xt(){H=!0,Me()}function vt(){H=!1,!ue&&!Ye&&at()}function At(){Ye=!0,clearTimeout(nt),Me()}function Tt($){const gt=$.relatedTarget instanceof Node?$.relatedTarget:null;if(gt&&pe()?.contains(gt)||(Ye=!1,gt&&e(_e)?.contains(gt)))return;if(gt){!N&&!H&&st();return}const Vt=$.target;clearTimeout(nt),nt=setTimeout(()=>{const Jt=document.activeElement,_r=pe()?.contains(Jt)||e(_e)?.contains(Jt);Jt&&Jt!==Vt&&_r||!N&&!H&&st()},0)}function Zt(){mt!==null&&clearTimeout(mt),ut=!0,mt=setTimeout(()=>{ut=!1,mt=null},0)}function tr($){const gt=$.target,Vt=pe();gt instanceof Node&&Vt?.contains(gt)||$.type==="scroll"&&e(_e)&> instanceof Node&&!gt.contains(e(_e))||($.type==="pointerdown"&&Zt(),fe(),st())}wt(()=>{if(e($e))return window.addEventListener("pointerdown",tr,!0),window.addEventListener("scroll",tr,!0),()=>{window.removeEventListener("pointerdown",tr,!0),window.removeEventListener("scroll",tr,!0)}});function qt($){if($.key!=="Escape")return;const gt=$.target;gt instanceof Node&&pe()?.contains(gt)||($.preventDefault(),$.stopPropagation(),je=ue,fe(),st())}wt(()=>{if(e(se))return window.addEventListener("keydown",qt,!0),()=>window.removeEventListener("keydown",qt,!0)});const Pe=d(()=>f()?Xp.select(Ot.state,f().id):null),ie=d(()=>e(Pe)?e(Pe):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ge=d(()=>Yp(f())),lt=d(()=>{if(!f()||e(Ge))return[];const $=f(),gt=$.repositoryOwner&&$.repositoryName?`${$.repositoryOwner}/${$.repositoryName}`:void 0;return Ag({workspacePRs:$.pullRequests,activePR:e(ie),monitors:n(),workspaceRepo:gt,buildPrUrl:(Vt,Jt)=>Pm(Vt,$.repositoryOwner,$.repositoryName,Jt),getDisplayTitle:Vt=>Vt.title})}),et=d(()=>e(lt)[0]);function Ne($){const gt=$.resource?.repository.provider==="gitlab"?`${$.repo} !${$.number}`:$.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:$.repo,number:$.number}):v.workspace_card_prBadge_label({number:` #${$.number}`});return[Zp(gt,$),$.title,$.details].filter(Boolean).join(`
|
|
296
296
|
`)}function te($){$.key==="Enter"&&Y()?.($)}function pe(){return e(W)?document.getElementById(e(W)):null}function re(){return Array.from(pe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Oe(){const $=e(_e)?.querySelector("[data-workspace-card-trigger]"),gt=pe();if(!$||!gt)return null;const Vt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!gt.contains(_r)),Jt=Vt.indexOf($);return Jt>=0?Vt[Jt+1]:null}function he($){je=!!e(_e)?.contains($),st(),$.focus({preventScroll:!0})}function ze(){const $=e(_e)?.querySelector("[data-workspace-card-trigger]");$&&he($)}async function Fe($){if($.key==="Escape"&&e(se)){$.preventDefault(),$.stopPropagation(),st();return}$.key!=="ArrowDown"||ne()||!f()||($.preventDefault(),$.stopPropagation(),A($e,!0),A(se,!0),await ca(),re()[0]?.focus({preventScroll:!0}))}function qe($){const gt=re(),Vt=$.key==="Tab"&&$.shiftKey&&$.currentTarget===gt[0],_r=$.key==="Tab"&&!$.shiftKey&&$.currentTarget===gt.at(-1)?Oe():null;$.key!=="Escape"&&!Vt&&!_r||($.preventDefault(),$.stopPropagation(),_r?he(_r):ze())}function Je(){N=!0,Me(),Ws.settleDeferredCloses(),q(),oe()?.(),f()&&!ne()&&!ue&&(fe(),A($e,!0),Ce=setTimeout(()=>{Ce=null,rt()},Ws.currentOpenDelay))}function We(){N=!1,fe(),!ue&&!Ye&&at()}function Qe(){ue=!0,fe(),Me(),!je&&(ut||f()&&!ne()&&(A($e,!0),A(se,!0)))}function Be($){const gt=$.relatedTarget instanceof Node?$.relatedTarget:null;gt&&e(_e)?.contains(gt)||(je=!1,ue=!1,!(gt&&pe()?.contains(gt))&&!N&&!H&&st())}wt(()=>{ne()&&(fe(),Me(),st())});let Ze=ye(null),ft=ye(!1),it;wt(()=>{const $=f()?.id;it!==$&&(it=$,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Mt()});function ct($){if(!f())return;const gt=Rd($);if(gt){if(A(ft,!1),ht().length===0){A(Ze,null);return}A(Ze,{...gt,returnFocus:$.target instanceof HTMLElement?$.target.closest("button")??e(_e)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Mt(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{fe(),Me(),mt!==null&&(clearTimeout(mt),mt=null),st()});function ht(){if(!f())return[];const $=[];return de()&&$.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:zd,onClick:()=>{de()?.(),Mt()}}),$.push(...sb(f().id,{connected:a(),onClose:Mt})),s()||(e(Ge)||$.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Zg,onClick:()=>{Ot.dispatch(xv({workspaceId:f().id,workspaceTitle:f().title})),Mt()}}),$.push({id:"archive",label:v.workspace_card_archive_label(),icon:Hd,onClick:()=>{Ot.dispatch(Qd(f().id)),Mt()}}),$.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:jd,destructive:!0,onClick:()=>{Ot.dispatch($d(f().id)),Mt()}})),$}let Dt=d(()=>T()&&O()?O():i()?.subtitle??""),Yt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Qt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),lr=d(()=>e(Ge)?void 0:G()),Hr=d(()=>!p()||e(Ge)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace($){f($),_()},get phase(){return i()},set phase($){i($),_()},get stats(){return p()},set stats($){p($),_()},get variant(){return g()},set variant($="compact"){g($),_()},get showTime(){return L()},set showTime($=!0){L($),_()},get isRunning(){return b()},set isRunning($=!1){b($),_()},get isUnread(){return h()},set isUnread($=!1){h($),_()},get isWaiting(){return P()},set isWaiting($){P($),_()},get isPinned(){return R()},set isPinned($=!1){R($),_()},get streamingAgentIds(){return B()},set streamingAgentIds($=[]){B($),_()},get hasSpec(){return F()},set hasSpec($=!1){F($),_()},get isAgentRunning(){return T()},set isAgentRunning($=!1){T($),_()},get agentDigest(){return O()},set agentDigest($){O($),_()},get trailingLabel(){return U()},set trailingLabel($){U($),_()},get title(){return E()},set title($){E($),_()},get repoName(){return z()},set repoName($){z($),_()},get branch(){return G()},set branch($){G($),_()},get onClick(){return Y()},set onClick($){Y($),_()},get onAction(){return Q()},set onAction($){Q($),_()},get onTogglePin(){return we()},set onTogglePin($){we($),_()},get onMarkAsRead(){return le()},set onMarkAsRead($){le($),_()},get onOpenInNewWindow(){return de()},set onOpenInNewWindow($){de($),_()},get onHover(){return oe()},set onHover($){oe($),_()},get highlighted(){return Re()},set highlighted($=!1){Re($),_()},get selected(){return J()},set selected($=!1){J($),_()},get highlightId(){return ke()},set highlightId($){ke($),_()},get suppressHover(){return ne()},set suppressHover($=!1){ne($),_()},get isolateHoverReveal(){return Ie()},set isolateHoverReveal($=!1){Ie($),_()},get class(){return De()},set class($){De($),_()},get actions(){return Se()},set actions($){Se($),_()},$set:Ft,$on:($,gt)=>zt(t,$,gt)},qn=Ct(),ea=Ue(qn);{var Vn=$=>{var gt=Hk(),Vt=Ue(gt);let Jt;var _r=S(Vt);{let bt=d(()=>f().title||v.workspace_links_untitled_label()),Rt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(se)?` ${e(W)}`:""}`),ar=d(()=>e(K)?"page":void 0);kt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(bt)},get"aria-describedby"(){return e(Rt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=bt=>{var Rt=Rk(),ar=S(Rt);{var hr=wr=>{_f(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Rt),u(bt,Rt)};D(Jr,bt=>{a()&&bt(Gn)})}var fn=m(Jr,2);Ei(fn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(bt,Rt)=>{rb(bt,{get status(){return e(Ke)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,bt=>A(Le,bt),()=>e(Le)),w(rr),pr(rr,bt=>A(ce,bt),()=>e(ce));var xr=m(rr,2);{var Or=bt=>{var Rt=Mk(),ar=Ue(Rt),hr=S(ar);Pt(hr,{get icon(){return Gl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);I(yn=>{pt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
297
|
-
${we()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ee(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(bt,Rt)};D(xr,bt=>{R()&&bt(Or)})}w(en);var gn=m(en,2);{var va=bt=>{var Rt=Nk(),ar=M(Rt,!0);I(()=>x(ar,U())),u(bt,Rt)};D(gn,bt=>{U()&&bt(va)})}var tn=m(gn,2);{var Yr=bt=>{const Rt=d(()=>e(et));var ar=Ok(),hr=S(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Ct(),Dn=Ue(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));kt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=f().id;Cp(async()=>{const{handleLink:Yn}=await import("./
|
|
297
|
+
${we()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ee(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(bt,Rt)};D(xr,bt=>{R()&&bt(Or)})}w(en);var gn=m(en,2);{var va=bt=>{var Rt=Nk(),ar=M(Rt,!0);I(()=>x(ar,U())),u(bt,Rt)};D(gn,bt=>{U()&&bt(va)})}var tn=m(gn,2);{var Yr=bt=>{const Rt=d(()=>e(et));var ar=Ok(),hr=S(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Ct(),Dn=Ue(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));kt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=f().id;Cp(async()=>{const{handleLink:Yn}=await import("./CCIeFHqh.js").then(vn=>vn.I);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Rt).url,{workspaceId:Ra,event:nn}))},children:(nn,Ra)=>{Pt(nn,{get icon(){return e(Rt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Lk(),nn=S(Er);Pt(nn,{get icon(){return e(Rt).statusIcon},size:14}),w(Er),I(Ra=>{pt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Rt).foregroundClass??""}`,"svelte-1ct56pd"),ee(Er,"aria-label",Ra),ee(Er,"data-pr-identity",e(Rt).identity),ee(Er,"data-pr-status",e(Rt).status)},[()=>Ne(e(Rt))]),u(cn,Er)};D(Dn,cn=>{e(Rt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),I(wr=>ee(ar,"aria-label",wr),[()=>e(Rt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(bt,ar)};D(tn,bt=>{e(et)&&bt(Yr)})}var Mr=m(tn,2);{var xa=bt=>{var Rt=Dk(),ar=S(Rt);{var hr=Dr=>{{let yn=d(()=>$l(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>$l(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Rt),I(()=>pt(Rt,1,`wc-secondary shrink-0 ${Se()||we()||h()&&le()?Re()?"opacity-0":ne()?"":Ie()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(bt,Rt)};D(Mr,bt=>{L()&&bt(xa)})}w(jr);var rs=m(jr,2);{var ns=bt=>{var Rt=Fk(),ar=S(Rt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());kt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
298
298
|
${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),we()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ra)=>{var Yn=Bk(),vn=S(Yn);Pt(vn,{get icon(){return Gl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{we()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());kt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{Pt(Er,{get icon(){return Wd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(ht),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Sl(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{de()&&Cr(Dn)})}w(Rt),pr(Rt,Cr=>A(xe,Cr),()=>e(xe)),I(()=>pt(Rt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
299
299
|
${Ie()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
300
300
|
${Re()?"opacity-100":ne()?"opacity-0":Ie()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(bt,Rt)};D(rs,bt=>{(Se()||de()||we()||h()&&le())&&bt(ns)})}w(Vt),pr(Vt,bt=>A(_e,bt),()=>e(_e)),Un(Vt,(bt,Rt)=>vo?.(bt,Rt),()=>({id:ke()}));var Xr=m(Vt,2);{var rn=bt=>{ib(bt,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(_e)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:xt,onmouseleave:vt,onfocusin:At,onfocusout:Tt,children:(Rt,ar)=>{var hr=zk(),wr=S(hr);lb(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(It,Dr),()=>e(It)),Rn("pointerenter",hr,xt),Rn("pointerleave",hr,vt),Rr("focusin",hr,At),Rr("focusout",hr,Tt),u(Rt,hr)},$$slots:{default:!0}})};D(Xr,bt=>{e(se)&&!ne()&&bt(rn)})}var On=m(Xr,2);{var kr=bt=>{const Rt=d(ht);var ar=Ct(),hr=Ue(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Md(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Rt)},onClickOutside:Mt})}};D(hr,Dr=>{e(Rt).length>0&&Dr(wr)})}u(bt,ar)};D(On,bt=>{e(Ze)&&bt(kr)})}I((bt,Rt,ar)=>{pt(Vt,1,bt,"svelte-1ct56pd"),ee(Vt,"data-pinned",R()),ee(Vt,"data-highlight-id",ke()),Jt=Nn(Vt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),ee(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(V).accessibleName),pt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as d}from"./sj0eQTm1.js";import{bm as t}from"./CVtvGnj8.js";import{IA as n,nx as m,oO as _}from"./CQNY8AIr.js";import{bT as g,aO as h}from"./BwmV4u5a.js";import{bU as H}from"./
|
|
1
|
+
import{p as d}from"./sj0eQTm1.js";import{bm as t}from"./CVtvGnj8.js";import{IA as n,nx as m,oO as _}from"./CQNY8AIr.js";import{bT as g,aO as h}from"./BwmV4u5a.js";import{bU as H}from"./D1dKOodV.js";import{ar as f,y as w,z as b}from"./Dxky5vdm.js";function u(e){return e.lastBackupAt?d(e.lastBackupAt):""}function k(e){if(e.starting)return t.workspaceHome_starting_label();if(e.state==="moving")return t.workspaceHome_banner_moving();if(e.unknownState)return t.workspaceHome_banner_detachedNoBackup({name:e.name});const o=u(e);return o?t.workspaceHome_banner_detached({name:e.name,time:o}):t.workspaceHome_banner_detachedNoBackup({name:e.name})}function A(e){return e?.unavailable?k(e):null}function y(e){if(e.banner==="detached"||e.banner==="moving")return k(e);if(e.banner!=="backupWarning")return"";const o=u(e);return o?t.workspaceHome_banner_backupWarning({name:e.name,time:o}):t.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function N(e){switch(e.setup?.phase){case"preparing":case"runningSetup":return t.workspaceHome_opening_title({name:e.name});case"openFailed":return t.workspaceHome_openFailed_title({name:e.name});case"setupFailed":return t.remoteAgent_notice_setupFailed_title({machine:e.name});default:return""}}function R(e){const o=e.setup;switch(o?.phase){case"preparing":return t.remoteAgent_status_preparingCheckout();case"runningSetup":return t.remoteAgent_status_runningSetup();case"openFailed":return t.workspaceHome_openFailed_hint({name:e.name});case"setupFailed":return o.exitCode!==null?t.workspaceHome_setupFailed_exitCode({code:String(o.exitCode)}):o.timedOut?t.workspaceHome_setupFailed_timeout():t.workspaceHome_setupFailed_generic();default:return null}}function D(e){const o=e.setup,r=o?.phase==="openFailed"||o?.phase==="setupFailed"?o.error:null;return r&&r.replace(/^[a-z][a-z0-9-]*:\s*/,"").trim()||null}function E(e){return e==="detached"?t.workspaceHome_marker_detached():t.workspaceHome_marker_moving()}function C(e){const o=u(e);return o?t.workspaceHome_header_lastBackup({time:o}):null}function V(e){if(!e.moveWarning)return null;const o=u(e);return o?t.workspaceHome_moveDialog_warning({name:e.name,time:o}):t.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function U(e){switch(e.code){case"forbidden":return t.workspaceHome_moveError_forbidden();case"homes-unsupported":return t.workspaceHome_moveError_homesUnsupported();case"home-moving":return t.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return t.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return t.workspaceHome_moveError_updateRequired();default:return t.workspaceHome_moveError_failed({message:e.message})}}const i=new WeakMap,S=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o),a=r?.home;if(!a)return null;const s=i.get(a);if(s)return s;const c=f(r);return c&&i.set(a,c),c}),q=n.createSelector((e,o)=>w(m(e.workspace.workspaces,o),!g.select(e,o))),F=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o)?.home;return r?.setup?.state==="failed"?_(r.homeId,r.setup.finishedAt):""}),z=n.createSelector((e,o)=>{const r=S.select(e,o);if(r?.banner!=="setupFailed")return r;const a=F.select(e,o);if(!a||!e.workspaceHome.dismissedSetupFailures[a])return r;const s=p.get(r);if(s)return s;const c={...r,banner:null};return p.set(r,c),c}),p=new WeakMap,I=n.createSelector((e,o)=>{const r=e.workspaceHome.setupOutputs[o],a=m(e.workspace.workspaces,o)?.home?.homeId;return r&&r.homeId===a?r:null}),L=n.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),K=n.createSelector(e=>e.workspaceHome.dialogWorkspaceId),j=n.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),J=n.createSelector(e=>e.workspaceHome.moveFailure),W=[],l=new Map,P=n.createSelector((e,o)=>{if(!o)return W;const r=b({agents:h.select(e,o),machineRows:H.select(e)}),a=JSON.stringify(r),s=l.get(o);return s?.key===a?s.options:(l.set(o,{key:a,options:r}),r)}),G=n.createSelector((e,o)=>m(e.workspace.workspaces,o)!==void 0);export{C as a,E as b,V as c,D as d,A as e,R as f,N as g,y as h,k as i,F as j,I as k,L as l,U as m,K as n,J as o,P as p,j as q,z as r,q as s,S as t,G as u};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./CVtvGnj8.js";import{g as dC}from"./BdWqymET.js";import{aP as bs}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/4i5EVueM.js","/app/immutable/chunks/CJR-fJTC.js","/app/immutable/chunks/xaGNRYm_.js","/app/immutable/chunks/CVtvGnj8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BHIhrgF3.js","/app/immutable/chunks/CRBm_KYe.js","/app/immutable/chunks/R5yad3fN.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/iiHO66OG.js","/app/immutable/chunks/fdHhQhtv.js","/app/immutable/chunks/CGue0_9O.js","/app/immutable/chunks/DtjTeVR3.js","/app/immutable/chunks/CRHxLu94.js","/app/immutable/chunks/DtPkoBHn.js","/app/immutable/chunks/glNSRCnV.js","/app/immutable/chunks/BwmV4u5a.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CQNY8AIr.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B64lZ_-k.js","/app/immutable/chunks/CR_DYxzQ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CGpelL0C.js","/app/immutable/chunks/PnRQRSpt.js","/app/immutable/chunks/tOQ0MdfM.js","/app/immutable/chunks/DKs05YEr.js","/app/immutable/chunks/BT-leRNV.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DGvhYwwC.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BU46x7E3.js","/app/immutable/chunks/BE35_Kwj.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CeW1xZTK.js","/app/immutable/chunks/sj0eQTm1.js","/app/immutable/chunks/D1dKOodV.js","/app/immutable/chunks/Hx_Q5ZY_.js","/app/immutable/chunks/CDX6j4QU.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CN90kKWF.js","/app/immutable/chunks/BMJmYye_.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/rfzg_0PW.js","/app/immutable/chunks/CXWGcPvu.js","/app/immutable/chunks/DIlUp7xT.js","/app/immutable/chunks/CTZhg0JI.js","/app/immutable/chunks/Co2eSgEE.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CBiyyn5t.js","/app/immutable/chunks/DBWsr7gt.js","/app/immutable/chunks/6uQ5KuWX.js","/app/immutable/chunks/CSor2xJT.js","/app/immutable/chunks/BMdFflzZ.js","/app/immutable/chunks/BKPuOauG.js","/app/immutable/chunks/C2Biyw3j.js","/app/immutable/chunks/BIu3EK4M.js","/app/immutable/chunks/CKBKzqDD.js","/app/immutable/chunks/B05Gr1S7.js","/app/immutable/chunks/Dfr1lQjm.js","/app/immutable/chunks/Cfxk9qsj.js","/app/immutable/chunks/cVDYGNk_.js","/app/immutable/chunks/DBVCVTUu.js","/app/immutable/chunks/RGAGry1B.js","/app/immutable/chunks/COcPdiz-.js","/app/immutable/chunks/BGKbam_q.js","/app/immutable/chunks/CAv7yxiQ.js","/app/immutable/chunks/BHV_SpF_.js","/app/immutable/chunks/prO6MIJE.js","/app/immutable/chunks/Dvrk45ey.js","/app/immutable/chunks/Drm-NnN7.js","/app/immutable/chunks/Dk-bN4j5.js","/app/immutable/chunks/pNljm9DY.js","/app/immutable/chunks/i609sim6.js","/app/immutable/chunks/B72MJ3vu.js","/app/immutable/chunks/Vjje40Nh.js","/app/immutable/chunks/BbzW_OaY.js","/app/immutable/chunks/CkojcfYz.js","/app/immutable/chunks/BMG-wHCR.js","/app/immutable/chunks/Cr4Z84ZQ.js","/app/immutable/chunks/BYQLxhbC.js","/app/immutable/chunks/Bxhar1lK.js","/app/immutable/chunks/LMcS9iRR.js","/app/immutable/chunks/BRbLIP91.js","/app/immutable/chunks/D8PRNAXi.js","/app/immutable/chunks/CXpE7H_z.js","/app/immutable/chunks/Wr7HSEko.js","/app/immutable/chunks/BxggGvVh.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./CVtvGnj8.js";import{g as dC}from"./BdWqymET.js";import{aP as bs}from"./glNSRCnV.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as A,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as _e,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./DYhIMPy1.js";import{i as yr}from"./DKs05YEr.js";import{E as zu}from"./CCIeFHqh.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./BT-leRNV.js";import{b as no}from"./BaIAhI85.js";import{c as mC}from"./ChTqQfQN.js";import{d0 as yC,cS as xC,F as dn,aJ as bC,b8 as zp,m as CC,n as wC,f as kC,j as SC,w as Hu,t as Yu,h as vC,G as MC,P as TC,r as BC,z as _C,q as LC,k as AC,D as Xu,H as FC,U as $C,au as EC,av as PC,aV as IC}from"./PnRQRSpt.js";import{f as Ja,ae as OC}from"./CDX6j4QU.js";import"./BU46x7E3.js";import{r as DC,a4 as RC}from"./baTnhfkt.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./DGvhYwwC.js";import{e as HC,H as YC}from"./CwV6KdwG.js";import{k as Hp}from"./CN90kKWF.js";import{I as To,h as Gu,H as Is,d as Uu}from"./sj0eQTm1.js";import{c as fa}from"./tOQ0MdfM.js";import{e as XC}from"./Dg5rAMu7.js";import{t as jC}from"./BgPqfjSP.js";import{s as il}from"./CR_DYxzQ.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{p as UC,K as VC,h as ZC,i as Cc,M as KC}from"./FYq6LgZ3.js";import"./ChC2njK7.js";import{t as wo}from"./Hx_Q5ZY_.js";import"./BMJmYye_.js";import"./CQNY8AIr.js";import{cu as QC}from"./D1dKOodV.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
|
|
3
3
|
|
|
4
4
|
`+r.mark.snippet),a+" "+o):a}C(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return C(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=C(function(i){return this.name+": "+e(this,i)},"toString"),wc=t,wc}C(Bs,"requireException");var kc,Qu;function jp(){if(Qu)return kc;Qu=1;const e=Ts();function t(o,a,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-a>d&&(c=" ... ",a=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+o.slice(a,s).replace(/\t/g,"→")+h,pos:n-a+c.length}}C(t,"getLine");function r(o,a){return e.repeat(" ",a-o.length)+o}C(r,"padStart");function i(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(o.buffer);)l.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(o.line+a.linesAfter,l.length).toString().length,f=a.maxLength-(a.indent+u+3);for(let p=1;p<=a.linesBefore&&!(h-p<0);p++){const m=t(o.buffer,n[h-p],l[h-p],o.position-(n[h]-n[h-p]),f);d=e.repeat(" ",a.indent)+r((o.line-p+1).toString(),u)+" | "+m.str+`
|
|
5
5
|
`+d}const g=t(o.buffer,n[h],l[h],o.position,f);d+=e.repeat(" ",a.indent)+r((o.line+1).toString(),u)+" | "+g.str+`
|
|
@@ -298,8 +298,8 @@ ${a.join(`
|
|
|
298
298
|
L0,20`)},"requirement_arrow"),lL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
299
299
|
L20,10
|
|
300
300
|
M20,10
|
|
301
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./DDrNrLrU.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./CPjDbn62.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./CrsAEKLD.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./lXkefv0c.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var LP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",AP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Derdn26w.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./RjC8XXem.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dgmf6bXZ.js");return{diagram:t}},__vite__mapDeps([59,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D1DEK8H6.js");return{diagram:t}},__vite__mapDeps([60,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./FfneHBLs.js");return{diagram:t}},__vite__mapDeps([61,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./TH1qr9eA.js");return{diagram:t}},__vite__mapDeps([62,63,64,65,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./XrSyKhRq.js");return{diagram:t}},__vite__mapDeps([66,6,67]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DXbxXgMb.js");return{diagram:t}},__vite__mapDeps([68,65,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BLwi8VLk.js");return{diagram:t}},__vite__mapDeps([69,64,65,3,4,67]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B76B2CEw.js");return{diagram:t}},__vite__mapDeps([70,67]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D-G_JMag.js");return{diagram:t}},__vite__mapDeps([71,67]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cngz4SkV.js");return{diagram:t}},__vite__mapDeps([72,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cq29Q7UD.js");return{diagram:t}},__vite__mapDeps([73,63,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bdy7vCm7.js");return{diagram:t}},__vite__mapDeps([74,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DzLsS9D8.js");return{diagram:t}},__vite__mapDeps([75,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B61jFDO7.js");return{diagram:t}},__vite__mapDeps([76,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
-
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./RjC8XXem.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BE4fmbrd.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CfTDrXA4.js");return{diagram:t}},__vite__mapDeps([77,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CdJ-iQAl.js");return{diagram:t}},__vite__mapDeps([78,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DDxnJah0.js");return{diagram:t}},__vite__mapDeps([79,67]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Ck3PfCWY.js");return{diagram:t}},__vite__mapDeps([80,64,65,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./NXv_P5Qh.js");return{diagram:t}},__vite__mapDeps([81,64,65,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./1en6Nskf.js");return{diagram:t}},__vite__mapDeps([82,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BAUmJitx.js");return{diagram:t}},__vite__mapDeps([83,63,64,65,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CCnb8u7s.js");return{diagram:t}},__vite__mapDeps([84,64,65,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BnqQcpEI.js");return{diagram:t}},__vite__mapDeps([85,64,65,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DLMRD5TK.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D_1OUHe5.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./sOLB01Xt.js");return{diagram:t}},__vite__mapDeps([86,16,64,65,3,4,67]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CO9yyopN.js");return{diagram:t}},__vite__mapDeps([87,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bw7J4KV9.js");return{diagram:t}},__vite__mapDeps([88,64,65,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CxusERHp.js");return{diagram:t}},__vite__mapDeps([89,64,65,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./hERCQx8m.js");return{diagram:t}},__vite__mapDeps([90,91,64,65,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DyOfGZJq.js");return{diagram:t}},__vite__mapDeps([92,91,64,65,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B3RPp65M.js");return{diagram:t}},__vite__mapDeps([93,91,64,65,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Di9HvUJO.js");return{diagram:t}},__vite__mapDeps([94,91,64,65,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
301
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./4i5EVueM.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./BHIhrgF3.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./CRBm_KYe.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./R5yad3fN.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var LP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",AP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,L=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(L,d-1)==58?(x++,L+="("):L+=hh(b);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){L+=hn(b);break}L+=FL(g);break;case 92:L+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(L)&&ks(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:n[c++]=oo(L)*y;case 125*p:case 59:case 0:if(x>0&&b){L+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(L=ed(L,/\f/g,"")),f>0&&(oo(L)-d||p===0)&&jn(f>32?sp(L+";",i,r,d-1,l):sp(ed(L," ","")+";",i,r,d-2,l),l);break;case 59:L+=";";default:if(jn(_=ap(L,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(L,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(L,3)===110)break;case 108:if(is(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(L,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=L="",d=s;break;case 58:d=1+oo(L),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(L+=hn(b),b*p){case 38:y=h>0?1:(L+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(L)-1)*y,y=1;break;case 64:Vo()===45&&(L+=hh(ji())),u=Vo(),h=d=oo(S=L+=PL(fl())),b++;break;case 45:g===45&&oo(L)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./iiHO66OG.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CGue0_9O.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CSor2xJT.js");return{diagram:t}},__vite__mapDeps([59,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BMdFflzZ.js");return{diagram:t}},__vite__mapDeps([60,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BKPuOauG.js");return{diagram:t}},__vite__mapDeps([61,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C2Biyw3j.js");return{diagram:t}},__vite__mapDeps([62,63,64,65,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dfr1lQjm.js");return{diagram:t}},__vite__mapDeps([66,6,67]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./cVDYGNk_.js");return{diagram:t}},__vite__mapDeps([68,65,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DBVCVTUu.js");return{diagram:t}},__vite__mapDeps([69,64,65,3,4,67]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./RGAGry1B.js");return{diagram:t}},__vite__mapDeps([70,67]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./COcPdiz-.js");return{diagram:t}},__vite__mapDeps([71,67]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BGKbam_q.js");return{diagram:t}},__vite__mapDeps([72,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CAv7yxiQ.js");return{diagram:t}},__vite__mapDeps([73,63,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BHV_SpF_.js");return{diagram:t}},__vite__mapDeps([74,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./prO6MIJE.js");return{diagram:t}},__vite__mapDeps([75,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dvrk45ey.js");return{diagram:t}},__vite__mapDeps([76,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
|
|
302
|
+
`);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CGue0_9O.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,6,52,53,54,55,56,57,58]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./d49NjlCP.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Drm-NnN7.js");return{diagram:t}},__vite__mapDeps([77,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dk-bN4j5.js");return{diagram:t}},__vite__mapDeps([78,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./pNljm9DY.js");return{diagram:t}},__vite__mapDeps([79,67]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./i609sim6.js");return{diagram:t}},__vite__mapDeps([80,64,65,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B72MJ3vu.js");return{diagram:t}},__vite__mapDeps([81,64,65,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Vjje40Nh.js");return{diagram:t}},__vite__mapDeps([82,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BbzW_OaY.js");return{diagram:t}},__vite__mapDeps([83,63,64,65,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CkojcfYz.js");return{diagram:t}},__vite__mapDeps([84,64,65,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BMG-wHCR.js");return{diagram:t}},__vite__mapDeps([85,64,65,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BLIddJz7.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./QyVBgWLE.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cr4Z84ZQ.js");return{diagram:t}},__vite__mapDeps([86,16,64,65,3,4,67]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BYQLxhbC.js");return{diagram:t}},__vite__mapDeps([87,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bxhar1lK.js");return{diagram:t}},__vite__mapDeps([88,64,65,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./LMcS9iRR.js");return{diagram:t}},__vite__mapDeps([89,64,65,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BRbLIP91.js");return{diagram:t}},__vite__mapDeps([90,91,64,65,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CXpE7H_z.js");return{diagram:t}},__vite__mapDeps([92,91,64,65,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Wr7HSEko.js");return{diagram:t}},__vite__mapDeps([93,91,64,65,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BxggGvVh.js");return{diagram:t}},__vite__mapDeps([94,91,64,65,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
|
|
303
303
|
`;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new Ma(a,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ma,"Diagram"),Ma),lp=[],wF=C(()=>{lp.forEach(e=>{e()}),lp=[]},"attachFunctions"),kF=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f1(e){const t=Qp(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
|
|
304
304
|
`).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
|
|
305
305
|
`):t.body;let o=o2(i,{schema:i2})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:e.slice(t.length),metadata:a}}C(f1,"extractFrontMatter");var SF=C(e=>e.replace(/\r\n?/g,`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./
|
|
1
|
+
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./D7r3X1aQ.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./CVtvGnj8.js";import{bs as kt,ca as L,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./DYhIMPy1.js";import{i as J}from"./DKs05YEr.js";import{k as wt}from"./CN90kKWF.js";import{c as _t}from"./tOQ0MdfM.js";import{b5 as Bt}from"./
|
|
1
|
+
import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./CVtvGnj8.js";import{bs as kt,ca as L,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./DYhIMPy1.js";import{i as J}from"./DKs05YEr.js";import{k as wt}from"./CN90kKWF.js";import{c as _t}from"./tOQ0MdfM.js";import{b5 as Bt}from"./baTnhfkt.js";import{IA as u,ev as It,ew as Wt,J5 as Rt,Jl as Ut,Ja as Tt,uW as At,o2 as V}from"./CQNY8AIr.js";import{g as Dt}from"./DfN8_dcw.js";import{bA as Ft,bC as Ht,dr as Mt}from"./BwmV4u5a.js";import{C as f}from"./DypB-Dwi.js";import"./BwSRi0uX.js";import"./BT-leRNV.js";import"./CR_DYxzQ.js";import{bd as xt}from"./PnRQRSpt.js";import"./BU46x7E3.js";import"./CCIeFHqh.js";import{T as Nt}from"./C0dDMWyG.js";import"./ChC2njK7.js";import{M as qt}from"./BqYjvgE5.js";import{V as Lt}from"./DtfWpL9k.js";import{O as Et}from"./C1NTmdzU.js";import{bR as Jt,bL as Vt,b6 as Kt}from"./glNSRCnV.js";import{i as Ot}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function jt(I,p){if(new.target)return pt({component:jt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),K=()=>h(Z,"$ftCommits$",l),R=()=>h(Q,"$foldUnchanged",l),U=()=>h(z,"$lineWrapping",l),T=()=>h(X,"$diffSideBySide",l),[l,O]=Pt(),G=t=>{Lt(t,{embedded:!0,get foldEnabled(){return R()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Rt())})},j=t=>{var e=Gt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return xt},get label(){return n(m)},onclick:zt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};J(s,m=>{n(k)&&m(d)})}_(t,e)},z=Jt(),Q=Vt(),X=Kt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),A=Dt(),et=Mt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);L(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),D=i(()=>a().data?.gitRootPath),v=i(()=>n(D)||n(nt)),k=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of K())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const M=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),x=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(x)||n(N))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(M))return n(M);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(At(o(),r))}L(()=>{!A||!b()||A.registerActions({display:G,actions:j})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},q=E(),mt=w(q);{var lt=t=>{var e=E(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return R()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(x)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(D)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};J(mt,t=>{a().diffPath&&t(lt)})}_(I,q);var gt=$t(ct);return O(),gt}export{jt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./CKBKzqDD.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./D7r3X1aQ.js";import{p as ut}from"./B05Gr1S7.js";import{o as mt}from"./Cfxk9qsj.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=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.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|