@intent-hq/web 2.308.0 → 2.308.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/{Cdw6MInS.js → 20p6UVrJ.js} +1 -1
- package/web/app/immutable/chunks/{sFBciGzK.js → 3mA9htoY.js} +1 -1
- package/web/app/immutable/chunks/{Dft9saDn.js → 4sdU8HJh.js} +1 -1
- package/web/app/immutable/chunks/{Hv37H7OW.js → 5jHx5tgm.js} +1 -1
- package/web/app/immutable/chunks/{mxMUw61m.js → 64K2oBlN.js} +1 -1
- package/web/app/immutable/chunks/{-B3w7smR.js → 7GaMUkMr.js} +1 -1
- package/web/app/immutable/chunks/{fsr4ml-E.js → 7I4Lb20T.js} +1 -1
- package/web/app/immutable/chunks/{Dy2IW3UQ.js → 7NZPmxCc.js} +1 -1
- package/web/app/immutable/chunks/{C4EO5Kfs.js → 7woFK997.js} +1 -1
- package/web/app/immutable/chunks/{CVmTCE7s.js → AcuCqG0h.js} +1 -1
- package/web/app/immutable/chunks/{7-4K7v4g.js → Aq8XADnv.js} +1 -1
- package/web/app/immutable/chunks/{BvSpaYYO.js → B-Do9RZm.js} +1 -1
- package/web/app/immutable/chunks/{DRY7e-Lq.js → B1gh0LOn.js} +1 -1
- package/web/app/immutable/chunks/{DtWlovTg.js → B2MkQOVO.js} +1 -1
- package/web/app/immutable/chunks/{DCYtlLu-.js → B43S04j_.js} +1 -1
- package/web/app/immutable/chunks/{C3Fbg3bo.js → B4kMH02u.js} +1 -1
- package/web/app/immutable/chunks/{DqF0c_03.js → B5n1NWyy.js} +1 -1
- package/web/app/immutable/chunks/B6MkJHGN.js +1 -0
- package/web/app/immutable/chunks/{BgY3ql3v.js → B6Utvg2n.js} +1 -1
- package/web/app/immutable/chunks/{DbN_saL_.js → B6qPnBG-.js} +1 -1
- package/web/app/immutable/chunks/{Bsg35Oqb.js → B7OQprzS.js} +1 -1
- package/web/app/immutable/chunks/{CuDezCQ5.js → B7ZegD4D.js} +2 -2
- package/web/app/immutable/chunks/{_ybNzzj4.js → B8923tpn.js} +1 -1
- package/web/app/immutable/chunks/{DketxIzW.js → BAzJKeaK.js} +1 -1
- package/web/app/immutable/chunks/{Bmp6mo_s.js → BD3-5til.js} +1 -1
- package/web/app/immutable/chunks/{BWEOkWg3.js → BDzrcVAC.js} +1 -1
- package/web/app/immutable/chunks/{BiFgVe6g.js → BEW3Nx_B.js} +2 -2
- package/web/app/immutable/chunks/{7EvfrDU0.js → BIQCpOqH.js} +1 -1
- package/web/app/immutable/chunks/{hTYb21U_.js → BJgRJinA.js} +1 -1
- package/web/app/immutable/chunks/{DExyo3TI.js → BK1cEBjQ.js} +1 -1
- package/web/app/immutable/chunks/{79Zkca1D.js → BKv7jjmi.js} +1 -1
- package/web/app/immutable/chunks/{C2Ib9ljU.js → BNIR-Q1X.js} +1 -1
- package/web/app/immutable/chunks/{BWLUCU8u.js → BR9v8XzI.js} +1 -1
- package/web/app/immutable/chunks/{DMl2hAjr.js → BV6v273A.js} +1 -1
- package/web/app/immutable/chunks/{CCL8C58v.js → BW8HfXsd.js} +1 -1
- package/web/app/immutable/chunks/{5Ji_nn5U.js → BWaUCvWp.js} +1 -1
- package/web/app/immutable/chunks/{CkRxNMzn.js → BXxd1yfG.js} +1 -1
- package/web/app/immutable/chunks/{BW4J01Vd.js → BY5rau8Y.js} +1 -1
- package/web/app/immutable/chunks/{Dt4s7v4Q.js → BY6gVP5g.js} +2 -2
- package/web/app/immutable/chunks/{BNzOwWfC.js → B_xltzgW.js} +1 -1
- package/web/app/immutable/chunks/{Co8-Pa6T.js → BaW2Kupg.js} +4 -4
- package/web/app/immutable/chunks/{D_LJNo0n.js → BbGSGn0Q.js} +1 -1
- package/web/app/immutable/chunks/{BoSllnp_.js → BbUQNpFr.js} +1 -1
- package/web/app/immutable/chunks/{CxrPw94A.js → BbzvDmlI.js} +3 -3
- package/web/app/immutable/chunks/{CU8cEhkD.js → Bc8khoFa.js} +1 -1
- package/web/app/immutable/chunks/{B1yY6GJu.js → BcN0CnII.js} +1 -1
- package/web/app/immutable/chunks/{C_QScSD8.js → Beai452N.js} +1 -1
- package/web/app/immutable/chunks/{Ces2yzPJ.js → BfZnDuM_.js} +1 -1
- package/web/app/immutable/chunks/{CHPRzIEy.js → BhHn9akW.js} +1 -1
- package/web/app/immutable/chunks/{CH9XQcSf.js → BhVXJo65.js} +1 -1
- package/web/app/immutable/chunks/{BUHhLhgs.js → Bi74ET9W.js} +1 -1
- package/web/app/immutable/chunks/{CARz5CCT.js → BqVcdxr-.js} +1 -1
- package/web/app/immutable/chunks/{CdV1nqqz.js → Br15jMhJ.js} +1 -1
- package/web/app/immutable/chunks/{CRzOnFQP.js → Bs4FWb9N.js} +1 -1
- package/web/app/immutable/chunks/{BVOBfKOE.js → BsqCeXyo.js} +1 -1
- package/web/app/immutable/chunks/{dih-86Tc.js → Bt1rXtoo.js} +1 -1
- package/web/app/immutable/chunks/{CVyBS3oN.js → BtabWTXt.js} +1 -1
- package/web/app/immutable/chunks/{gdHduTFA.js → Byuo4e4d.js} +1 -1
- package/web/app/immutable/chunks/{DmUYWvMN.js → Bz6PKE7H.js} +1 -1
- package/web/app/immutable/chunks/{CWC_Nlup.js → BzL4sJXY.js} +1 -1
- package/web/app/immutable/chunks/{9hq3-PO7.js → C0a6I3vg.js} +1 -1
- package/web/app/immutable/chunks/{BOCOLX90.js → C44FfRqF.js} +3 -3
- package/web/app/immutable/chunks/{DQjYQpqd.js → C4OKLpdN.js} +1 -1
- package/web/app/immutable/chunks/{D4DWEC-L.js → C4V8YQCv.js} +1 -1
- package/web/app/immutable/chunks/{BqcwAMAI.js → C5EoO5Sg.js} +1 -1
- package/web/app/immutable/chunks/{BjPXFOqO.js → C5UReY-E.js} +1 -1
- package/web/app/immutable/chunks/{BCX3JQcy.js → C5j9FNqg.js} +1 -1
- package/web/app/immutable/chunks/{Dm4s1Q7w.js → C5zpIq2z.js} +1 -1
- package/web/app/immutable/chunks/{eArTaZy5.js → C6lu15Tw.js} +1 -1
- package/web/app/immutable/chunks/{DWTnVkwi.js → C6z3A8E7.js} +1 -1
- package/web/app/immutable/chunks/{BX6K5XDX.js → C8QbdAo3.js} +1 -1
- package/web/app/immutable/chunks/{De8QYb8q.js → CDnda6Iq.js} +1 -1
- package/web/app/immutable/chunks/{V0vWExlc.js → CG68xo30.js} +1 -1
- package/web/app/immutable/chunks/{C_ibd4Ww.js → CGMdgn-W.js} +1 -1
- package/web/app/immutable/chunks/{DrsphvSS.js → CGzdYZTI.js} +1 -1
- package/web/app/immutable/chunks/{Deu3BA7u.js → CIC39etl.js} +1 -1
- package/web/app/immutable/chunks/{Bzvl9BJV.js → CJYxykIm.js} +1 -1
- package/web/app/immutable/chunks/{B7Se8Mhp.js → CKIXy6ww.js} +1 -1
- package/web/app/immutable/chunks/{Hf5uwTdE.js → CL-rni0w.js} +1 -1
- package/web/app/immutable/chunks/{BXeRsIrT.js → CLy6KHFt.js} +6 -6
- package/web/app/immutable/chunks/{BeMvIUhX.js → CMNzHnZE.js} +1 -1
- package/web/app/immutable/chunks/{BiGwvkYf.js → COErIaxB.js} +1 -1
- package/web/app/immutable/chunks/{CyFFAGL5.js → CRHmQRas.js} +1 -1
- package/web/app/immutable/chunks/{Ds_Kf9EA.js → CWfnIL3Q.js} +7 -7
- package/web/app/immutable/chunks/{BwldUeEG.js → CY2dENCG.js} +1 -1
- package/web/app/immutable/chunks/{Xo50RLJp.js → CYbC4Xec.js} +1 -1
- package/web/app/immutable/chunks/{Bj1RMWlB.js → CboPiPQY.js} +1 -1
- package/web/app/immutable/chunks/{Bjte08dR.js → Cce6TTnZ.js} +1 -1
- package/web/app/immutable/chunks/{GF5ZSxte.js → CdwBPvEi.js} +1 -1
- package/web/app/immutable/chunks/{DR-Aj_ks.js → Cg2VNX7z.js} +1 -1
- package/web/app/immutable/chunks/{BnUIUu9T.js → ChGBRwNt.js} +1 -1
- package/web/app/immutable/chunks/{nPJWc816.js → Cm7xDtac.js} +1 -1
- package/web/app/immutable/chunks/{Cr9D3b1H.js → CmXHtTkz.js} +1 -1
- package/web/app/immutable/chunks/{C8htDeGn.js → CpiHp8Ae.js} +4 -4
- package/web/app/immutable/chunks/{Du-d3vcz.js → CrvoX2WJ.js} +1 -1
- package/web/app/immutable/chunks/{CUSFlCws.js → Ctl_B37M.js} +1 -1
- package/web/app/immutable/chunks/{CUUGGMlu.js → CucuIbmg.js} +1 -1
- package/web/app/immutable/chunks/{BP5FX2kf.js → CwFOIVIZ.js} +1 -1
- package/web/app/immutable/chunks/{C6ujNqIY.js → CxQfN3-2.js} +1 -1
- package/web/app/immutable/chunks/{hQ9zd42d.js → Cxs8qSWC.js} +1 -1
- package/web/app/immutable/chunks/{08jl08Lg.js → D-vX4iJv.js} +1 -1
- package/web/app/immutable/chunks/{5MwvnnU4.js → D3vkMbH6.js} +2 -2
- package/web/app/immutable/chunks/{VKybzKaK.js → D6FhcUuF.js} +1 -1
- package/web/app/immutable/chunks/{B2WUxdNu.js → DAKiyYLi.js} +2 -2
- package/web/app/immutable/chunks/{DYyzIkMa.js → DBe3iowp.js} +1 -1
- package/web/app/immutable/chunks/{BdjTR4R9.js → DCHrAI0P.js} +4 -4
- package/web/app/immutable/chunks/{BdrD6-Yk.js → DCTOYXXK.js} +1 -1
- package/web/app/immutable/chunks/{B70VJUk6.js → DCn_fwGY.js} +1 -1
- package/web/app/immutable/chunks/{UDIxqEeg.js → DCpLg9rk.js} +1 -1
- package/web/app/immutable/chunks/{Biu0mZ7b.js → DDVvWGb_.js} +1 -1
- package/web/app/immutable/chunks/{jZC5wC-X.js → DFX-g_B2.js} +1 -1
- package/web/app/immutable/chunks/{DZ0q4VGI.js → DGCL143k.js} +1 -1
- package/web/app/immutable/chunks/{fgutS2Xt.js → DHeLZdAl.js} +1 -1
- package/web/app/immutable/chunks/{JyqDnnKU.js → DJhdh1Cj.js} +1 -1
- package/web/app/immutable/chunks/{TNF6hsWn.js → DJlDux3f.js} +1 -1
- package/web/app/immutable/chunks/{BfVCrToW.js → DLDAnI9z.js} +1 -1
- package/web/app/immutable/chunks/{BU52YJZu.js → DMUxnsSi.js} +1 -1
- package/web/app/immutable/chunks/{DiTToznV.js → DN0k4-NH.js} +2 -2
- package/web/app/immutable/chunks/{q3LKPyTi.js → DNS6iE59.js} +1 -1
- package/web/app/immutable/chunks/{C4JGZJVX.js → DQpf1Ksw.js} +1 -1
- package/web/app/immutable/chunks/{B8zPoaDq.js → DRm8GvSg.js} +1 -1
- package/web/app/immutable/chunks/{6zbeEeHU.js → DWbUmCoQ.js} +1 -1
- package/web/app/immutable/chunks/{hRTXnLSp.js → DZcnfrfN.js} +1 -1
- package/web/app/immutable/chunks/{BvZ472sk.js → DaR6SlK7.js} +3 -3
- package/web/app/immutable/chunks/{OXkvCdQy.js → Dd78YZJ8.js} +2 -2
- package/web/app/immutable/chunks/{RBtryOly.js → DeGjTipP.js} +1 -1
- package/web/app/immutable/chunks/{CbdsiBFH.js → DeKx3e_L.js} +1 -1
- package/web/app/immutable/chunks/{DUNFJ1mG.js → DgBIwWee.js} +1 -1
- package/web/app/immutable/chunks/{CZrhAzUT.js → DgHl4bT8.js} +1 -1
- package/web/app/immutable/chunks/{Bu8ds4Jl.js → DhIDq5qU.js} +1 -1
- package/web/app/immutable/chunks/{DmfJJbWh.js → DhT0fw5L.js} +1 -1
- package/web/app/immutable/chunks/{7EVUv7lz.js → Djwcl6Fr.js} +1 -1
- package/web/app/immutable/chunks/{0Jt7HvfX.js → Dl8JqE7s.js} +1 -1
- package/web/app/immutable/chunks/{fe_eftOD.js → DlZ5F9Lx.js} +1 -1
- package/web/app/immutable/chunks/{ByIqwBuP.js → DnamVqCn.js} +1 -1
- package/web/app/immutable/chunks/{DcW7h9iU.js → DoMPu14N.js} +1 -1
- package/web/app/immutable/chunks/{Cuq5AuKG.js → Dof0iyzF.js} +1 -1
- package/web/app/immutable/chunks/{D-L0g5sP.js → Doh3PUYI.js} +1 -1
- package/web/app/immutable/chunks/{DPCSzjyj.js → DqgAlN7P.js} +1 -1
- package/web/app/immutable/chunks/{DcWh3crB.js → DtDxrQfi.js} +1 -1
- package/web/app/immutable/chunks/{P2xe4rfv.js → DtLridJD.js} +1 -1
- package/web/app/immutable/chunks/{DvcYKh19.js → DuD6uhYH.js} +1 -1
- package/web/app/immutable/chunks/{CQwSYydk.js → DvBs4Hcz.js} +1 -1
- package/web/app/immutable/chunks/{fLy_hJlz.js → DvDq_wDk.js} +1 -1
- package/web/app/immutable/chunks/{BsBYt8VW.js → DwclCkw1.js} +1 -1
- package/web/app/immutable/chunks/{Bsl2-PKT.js → Dx2FEG0z.js} +1 -1
- package/web/app/immutable/chunks/{BmhoW_L6.js → DxGyW0lA.js} +1 -1
- package/web/app/immutable/chunks/{D49m-ZaH.js → DzsfGvxl.js} +1 -1
- package/web/app/immutable/chunks/{B-ahkFCR.js → Fo7QNM30.js} +1 -1
- package/web/app/immutable/chunks/{CaHzETsO.js → Glr413kB.js} +1 -1
- package/web/app/immutable/chunks/{DtB5d-1F.js → HsvYWQrw.js} +1 -1
- package/web/app/immutable/chunks/{BL9-ROzw.js → JWlrX8g6.js} +1 -1
- package/web/app/immutable/chunks/{DMFRjZee.js → Jqp5qOVD.js} +1 -1
- package/web/app/immutable/chunks/{CLgOAyRn.js → LigVTKZd.js} +1 -1
- package/web/app/immutable/chunks/{7Oj1FwH7.js → M5XKIMwb.js} +1 -1
- package/web/app/immutable/chunks/{CRTiEGz_.js → NcTzLGaE.js} +6 -6
- package/web/app/immutable/chunks/{8xz0mqCS.js → Q7h5F5MY.js} +1 -1
- package/web/app/immutable/chunks/{HFgXggBX.js → ST0Pr06L.js} +1 -1
- package/web/app/immutable/chunks/{DBG-2jVd.js → SqT0PCrX.js} +1 -1
- package/web/app/immutable/chunks/{1Q6G0pvW.js → U1EJdIrS.js} +1 -1
- package/web/app/immutable/chunks/{BaCDnbdR.js → U5EkHYlB.js} +1 -1
- package/web/app/immutable/chunks/{CKylENIK.js → UuhfJP8e.js} +1 -1
- package/web/app/immutable/chunks/{B6SdqA8G.js → VLIUKGSW.js} +1 -1
- package/web/app/immutable/chunks/{B_ihHIXk.js → XhVa-cY9.js} +1 -1
- package/web/app/immutable/chunks/{B9Zb2I-3.js → XwAA3IRV.js} +1 -1
- package/web/app/immutable/chunks/{LNGUAKz-.js → ZSVjaaq5.js} +1 -1
- package/web/app/immutable/chunks/{Bdi_ql3M.js → ZW7HN3jk.js} +1 -1
- package/web/app/immutable/chunks/{D60UPZv6.js → cK_X_Z2_.js} +1 -1
- package/web/app/immutable/chunks/{B4JY7OdG.js → cp14at2-.js} +1 -1
- package/web/app/immutable/chunks/{DKI6Z6i9.js → cyTctvu3.js} +1 -1
- package/web/app/immutable/chunks/{mXP56bVn.js → f4sPQl0K.js} +1 -1
- package/web/app/immutable/chunks/{DhLqxXsb.js → hebNG67g.js} +1 -1
- package/web/app/immutable/chunks/{DKUxKAad.js → hf6CuW6w.js} +1 -1
- package/web/app/immutable/chunks/{BCShYG5q.js → i-Fs1U2f.js} +1 -1
- package/web/app/immutable/chunks/{gZfnsun1.js → jqiCLmEu.js} +6 -6
- package/web/app/immutable/chunks/{W_knKG-M.js → lP8JdB64.js} +1 -1
- package/web/app/immutable/chunks/{DgTxDo3A.js → qCYtXSkB.js} +1 -1
- package/web/app/immutable/chunks/{edWktldY.js → s0uOmxSf.js} +1 -1
- package/web/app/immutable/chunks/{DpfRsBSx.js → saR3-JRv.js} +1 -1
- package/web/app/immutable/chunks/{CrHWjZvi.js → t-AupbTj.js} +1 -1
- package/web/app/immutable/chunks/{CjnNpRDF.js → uD982nf2.js} +1 -1
- package/web/app/immutable/chunks/{B2LC9Sos.js → yQERw7Ok.js} +1 -1
- package/web/app/immutable/chunks/{BC2yRiH0.js → ybv9yBcQ.js} +1 -1
- package/web/app/immutable/entry/{app.5swf8fH6.js → app.DbJk3ZpG.js} +2 -2
- package/web/app/immutable/entry/start.DTPxOZG8.js +1 -0
- package/web/app/immutable/nodes/{0.rj6WxPiI.js → 0.BJ700vC2.js} +1 -1
- package/web/app/immutable/nodes/{1.D2LKdxSK.js → 1.BTyy14rK.js} +1 -1
- package/web/app/immutable/nodes/{10.CsOXyM9t.js → 10.V55g30nz.js} +1 -1
- package/web/app/immutable/nodes/{14.EKyMha8S.js → 14._G7LK5Dq.js} +1 -1
- package/web/app/immutable/nodes/{16.DJIf57hW.js → 16.DvmMFRvS.js} +2 -2
- package/web/app/immutable/nodes/{2.lbWc9DH5.js → 2.CxEoe4OH.js} +3 -3
- package/web/app/immutable/nodes/{3.in8ZwJzB.js → 3.Cx7GEzkN.js} +1 -1
- package/web/app/immutable/nodes/{4.CUsxPHda.js → 4.BScaFjaT.js} +1 -1
- package/web/app/immutable/nodes/{5.DvU91sgr.js → 5.B524kS74.js} +1 -1
- package/web/app/immutable/nodes/{6.BdAKoKat.js → 6.DazQUzxi.js} +1 -1
- package/web/app/immutable/nodes/{7.JNWjRQgm.js → 7.BtN1OPi8.js} +1 -1
- package/web/app/immutable/nodes/{8.CzuEJYxY.js → 8.Ak4UD-JY.js} +2 -2
- package/web/app/immutable/nodes/{9.Bn4F0-mM.js → 9.BGiVSjZY.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/ppMO_QX7.js +0 -1
- package/web/app/immutable/entry/start.B6Q2SB8U.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./B8o4lNgr.js";import{j as Be}from"./CRLCgacz.js";import{C as be,D as pe,c as Me,E as Ee}from"./WsKP4LPk.js";import{s as Re}from"./DMFRjZee.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
|
|
1
|
+
import"./B8o4lNgr.js";import{j as Be}from"./CRLCgacz.js";import{C as be,D as pe,c as Me,E as Ee}from"./WsKP4LPk.js";import{s as Re}from"./Jqp5qOVD.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as D,bq as d,a_ as P,by as b,b as S}from"./DVcxpZob.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as z}from"./
|
|
1
|
+
import{t as D,bq as d,a_ as P,by as b,b as S}from"./DVcxpZob.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as z}from"./jqiCLmEu.js";import{S as B,p as J}from"./LigVTKZd.js";import{N}from"./Jqp5qOVD.js";import{Hp as W,u8 as j,bi as E}from"./DOX6tqe2.js";import{J as K}from"./DN0k4-NH.js";import{$ as O}from"./Rw2sIc23.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new N,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return J(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?W.dispatch(j(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{z(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);B(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return $(l,u),x(w)}export{R as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,s as r}from"./
|
|
1
|
+
import{c as t,s as r}from"./BsqCeXyo.js";import{a}from"./CWfnIL3Q.js";import"./jqiCLmEu.js";import"./i-Fs1U2f.js";var s=a(e=>`${r(e)}
|
|
2
2
|
.swimlane.cluster rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./
|
|
1
|
+
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./CWfnIL3Q.js";import{g as k,c3 as Z}from"./jqiCLmEu.js";import{d as ct}from"./3mA9htoY.js";var nt=(function(){var e=c(function(v,s,d,l){for(d=d||{},l=v.length;l--;d[v[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],o=[1,16],a=[1,19],f=[1,20],g={trace:c(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:c(k(function(s,d,l,p,x,u,E){var _=u.length-1;switch(x){case 1:return u[_-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[_-1].push(u[_]),this.$=u[_-1];break;case 7:case 8:this.$=u[_];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[_].substr(6)),this.$=u[_].substr(6);break;case 12:this.$=u[_].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[_].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[_].substr(8)),this.$=u[_].substr(8);break;case 18:p.addTask(u[_],0,""),this.$=u[_];break;case 19:p.addEvent(u[_].substr(2)),this.$=u[_];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:c(k(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),"parseError"),parse:c(k(function(s){var d=this,l=[0],p=[],x=[null],u=[],E=this.table,_="",H=0,C=0,P=2,G=1,M=u.slice.call(arguments,1),S=Object.create(this.lexer),L={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(L.yy[F]=this.yy[F]);S.setInput(s,L.yy),L.yy.lexer=S,L.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var z=S.yylloc;u.push(z);var X=S.options&&S.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(R){l.length=l.length-2*R,x.length=x.length-R,u.length=u.length-R}k(N,"popStack"),c(N,"popStack");function b(){var R;return R=p.pop()||S.lex()||G,typeof R!="number"&&(R instanceof Array&&(p=R,R=p.pop()),R=d.symbols_[R]||R),R}k(b,"lex"),c(b,"lex");for(var w,I,$,B,W={},D,V,j,q;;){if(I=l[l.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=b()),$=E[I]&&E[I][w]),typeof $>"u"||!$.length||!$[0]){var et="";q=[];for(D in E[I])this.terminals_[D]&&D>P&&q.push("'"+this.terminals_[D]+"'");S.showPosition?et="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(H+1)+": Unexpected "+(w==G?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:z,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch($[0]){case 1:l.push(w),x.push(S.yytext),u.push(S.yylloc),l.push($[1]),w=null,C=S.yyleng,_=S.yytext,H=S.yylineno,z=S.yylloc;break;case 2:if(V=this.productions_[$[1]][1],W.$=x[x.length-V],W._$={first_line:u[u.length-(V||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(V||1)].first_column,last_column:u[u.length-1].last_column},X&&(W._$.range=[u[u.length-(V||1)].range[0],u[u.length-1].range[1]]),B=this.performAction.apply(W,[_,C,H,L.yy,$[1],x,u].concat(M)),typeof B<"u")return B;V&&(l=l.slice(0,-1*V*2),x=x.slice(0,-1*V),u=u.slice(0,-1*V)),l.push(this.productions_[$[1]][0]),x.push(W.$),u.push(W._$),j=E[l[l.length-2]][l[l.length-1]],l.push(j);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var v={EOF:1,parseError:c(k(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),"parseError"),setInput:c(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Kt}from"./BL9-ROzw.js";import{a as f,aG as Zt,L as jt,aF as qt,K as Wt,aI as Ht,O as Qt,N as st,ad as Y,p as Xt,k as Jt,P as $t,aC as te,i as ee,_ as se,R as ie,ax as re,aV as ae}from"./Ds_Kf9EA.js";import{s as ne}from"./BnUIUu9T.js";import{g as E,c3 as oe}from"./gZfnsun1.js";var Nt=(function(){var s=f(function(F,n,l,d){for(l=l||{},d=F.length;d--;l[F[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],x=[1,19],N=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],ct=[1,100],lt=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,l,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:x,51:C,53:L,54:w,55:V},{10:51,43:x,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:x,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:x,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:ct,76:lt},{15:102,43:M,44:B},{10:103,43:x,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:ct,76:lt},{15:127,43:M,44:B},{13:128,43:ot,53:ct,76:lt},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:ct,76:lt},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),"parseError"),parse:f(E(function(n){var l=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=l.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,Ot,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var xt="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?xt="Parse error on line "+(ht+1)+`:
|
|
1
|
+
import{g as Kt}from"./JWlrX8g6.js";import{a as f,aG as Zt,L as jt,aF as qt,K as Wt,aI as Ht,O as Qt,N as st,ad as Y,p as Xt,k as Jt,P as $t,aC as te,i as ee,_ as se,R as ie,ax as re,aV as ae}from"./CWfnIL3Q.js";import{s as ne}from"./ChGBRwNt.js";import{g as E,c3 as oe}from"./jqiCLmEu.js";var Nt=(function(){var s=f(function(F,n,l,d){for(l=l||{},d=F.length;d--;l[F[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],x=[1,19],N=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],ct=[1,100],lt=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,l,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:x,51:C,53:L,54:w,55:V},{10:51,43:x,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:x,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:x,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:ct,76:lt},{15:102,43:M,44:B},{10:103,43:x,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:ct,76:lt},{15:127,43:M,44:B},{13:128,43:ot,53:ct,76:lt},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:ct,76:lt},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),"parseError"),parse:f(E(function(n){var l=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=l.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,Ot,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var xt="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?xt="Parse error on line "+(ht+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+dt.join(", ")+", got '"+(this.terminals_[S]||S)+"'":xt="Parse error on line "+(ht+1)+": Unexpected "+(S==Vt?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(xt,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:St,expected:dt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+S);switch(O[0]){case 1:d.push(S),_.push(m.yytext),t.push(m.yylloc),d.push(O[1]),S=null,wt=m.yyleng,e=m.yytext,ht=m.yylineno,St=m.yylloc;break;case 2:if(R=this.productions_[O[1]][1],Z.$=_[_.length-R],Z._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Ut&&(Z._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Ot=this.performAction.apply(Z,[e,wt,ht,P.yy,O[1],_,t].concat(zt)),typeof Ot<"u")return Ot;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[O[1]][0]),_.push(Z.$),t.push(Z._$),Bt=et[d[d.length-2]][d[d.length-1]],d.push(Bt);break;case 3:return!0}}return!0},"parse"),"parse")},Yt=(function(){var F={EOF:1,parseError:f(E(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./DVcxpZob.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{D as Bs,I as ip,x as lp}from"./CtOtN9TD.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./CRLCgacz.js";import{s as pn}from"./Dy0ApYVY.js";import{c as Zr}from"./Bo1m530q.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./WsKP4LPk.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./Rw2sIc23.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./DTCb8Epd.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./C-KminjT.js";import{al as jp,a9 as al,Z as Wp,ax as Up,aa as qp,i as Vp,aP as Kp,I as Gp,R as Jp,aq as Yp,ae as Xp,_ as Zp,b as sl,ar as Qp,r as $p,o as eg,aV as tg,n as rg,aX as zo,A as ol,ad as ng,aW as ag,an as Kc,Q as Gc,a5 as sg,a4 as il,K as ll}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DN0k4-NH.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/BrgZ9aoi.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/vE_6l2bj.js","/app/immutable/chunks/B14QHMsi.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DfkSOrqi.js","/app/immutable/chunks/Cc_MPyh-.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BkXhQv7o.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/BCKgwkD0.js","/app/immutable/chunks/aGrIQKRU.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BT9muwwL.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DMaeVMuN.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BccLwsaC.js","/app/immutable/chunks/DTCb8Epd.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/D3cGjGGm.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DzsfGvxl.js","/app/immutable/chunks/DNqOZtos.js","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/BY6gVP5g.js","/app/immutable/chunks/B6Utvg2n.js","/app/immutable/chunks/CLy6KHFt.js","/app/immutable/chunks/DDVvWGb_.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B8923tpn.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./DVcxpZob.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{D as Bs,I as ip,x as lp}from"./CtOtN9TD.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./CRLCgacz.js";import{s as pn}from"./Dy0ApYVY.js";import{c as Zr}from"./Bo1m530q.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./WsKP4LPk.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./Rw2sIc23.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./DTCb8Epd.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./C-KminjT.js";import{al as jp,a9 as al,Z as Wp,ax as Up,aa as qp,i as Vp,aP as Kp,I as Gp,R as Jp,aq as Yp,ae as Xp,_ as Zp,b as sl,ar as Qp,r as $p,o as eg,aV as tg,n as rg,aX as zo,A as ol,ad as ng,aW as ag,an as Kc,Q as Gc,a5 as sg,a4 as il,K as ll}from"./CpiHp8Ae.js";import{c$ as og,F as Tt,bh as Ho,bL as ig,ap as lg,aQ as cg,cL as dg,bl as ci,bB as ug,aG as Jc,aL as di,c_ as Fs,ac as jo,cn as fg,cd as pg,ci as ui,cF as Yc,bs as gg,e as vg,b$ as cl,c9 as mg,cl as hg,cW as Xc,bV as dl,b8 as ho,be as rs,aF as bg,aA as Wo,av as Zc,bc as Qc,bC as yg,B as _g,bv as xg,a7 as $c,ch as wg,am as ed,cN as td,cJ as ul,at as rd,aK as fl,a1 as kg,cv as Sg,cU as Ig,bO as nd,bn as Cg,c5 as pl,ao as ad,az as Eg,aa as Ag,a8 as Pg}from"./ofkVZzaj.js";import{c as sd}from"./ChTqQfQN.js";import{h as Tg}from"./BT9muwwL.js";import{Hp as Nt,bP as Rg,rg as gl,rS as Lg,Ic as Ng,Ii as Mg,g as od,Hb as Og,n4 as id,nk as ld,nj as cd,mZ as Xs,pA as fi,x4 as Dg,u8 as Ts,tt as Uo,ua as Bg,mN as dd,Hu as Fg,so as zg,o8 as ud,qF as pi,lu as vl,a6 as ml,qb as Hg,q7 as jg,qc as Wg,q3 as Ug,q9 as qg,t_ as Vg,zC as fd,zG as pd,nl as hl,bi as qo,FW as Kg,H7 as Gg,nf as Jg,vb as Yg,vc as Xg,va as bl,AD as Gn,cu as gd,ci as Zg,d7 as Qg,de as $g,zM as ev}from"./DOX6tqe2.js";import{bw as tv,bE as rv,i as nv,w as av,bH as sv,a5 as ov,a7 as iv,a9 as lv}from"./BCKgwkD0.js";import{m as cv,l as dv,t as Vo,c8 as uv,K as fv,c7 as pv,c2 as gv,aA as yl,c4 as vv,bE as Ko,aK as mv,r as hv,bo as bv,w as yv}from"./DzsfGvxl.js";import{cd as _v,cf as xv,ce as wv,b0 as kv,a_ as Sv,a$ as Iv,a3 as Cv,ak as Is,aj as Ev,az as _l,aH as Av,ai as Pv,C as Tv,i as Rv,E as Rs,cO as Lv,aV as xl,cT as Nv,af as Mv,a7 as Ov,r as Dv,p as Bv,aE as Fv,cW as zv,cF as Hv,cy as jv,cp as Wv,bO as Uv}from"./Jqp5qOVD.js";import{s as qv,j as Vv,i as Kv,I as Va,c as wl}from"./vE_6l2bj.js";import"./B14QHMsi.js";import{k as vd,f as kl,K as Sl,M as Gv,r as Jv,q as Yv,N as md,J as Go,e as ls,a0 as Il,i as Xv}from"./DN0k4-NH.js";import"./BkXhQv7o.js";import{J as gi,P as Zv,s as Qv,k as $v,G as em,o as tm,l as rm,M as nm,H as am,w as ja,a as sm,K as om,n as im,R as lm}from"./DfkSOrqi.js";import{t as cs,n as cm,O as dm,M as um,S as ma}from"./Cc_MPyh-.js";import{C as Jo}from"./CD0-GHau.js";import{aM as fm,aU as pm,ay as gm,aY as vm,aK as mm,aQ as hm,a6 as Ga,a$ as Cl,aG as bm,aN as ym,aT as vi,aO as mi,V as bo,an as _m,W as xm,aW as wm,aF as km,aP as Sm,aS as Im,b2 as Cm,b0 as Em,av as hd,p as Am,n as Pm,aR as Tm,Z as Rm,z as Lm}from"./BbzvDmlI.js";import{s as Yo}from"./DNS6iE59.js";import{M as Nm}from"./BCxNS6oH.js";import{u as hi,w as Mm,v as Zs,I as Om,A as El,e as ds,d as ha,J as Al,c as Dm,f as Bm,g as Pl,i as Fm,b as zm,o as bd,j as Hm,O as jm,x as Wm,k as yd,S as Um,N as qm,q as Tl,p as Vm,n as Rl,z as Km,s as Gm}from"./VLIUKGSW.js";import{o as Ll,a as Nl,T as yo,b as Jm}from"./Dd78YZJ8.js";import{ag as Ym,a6 as Xm,M as Zm,J as Qm,aj as $m}from"./DRWXI2c9.js";import{D as us}from"./DlZ5F9Lx.js";import"./C29OqWSw.js";import{C as ea}from"./CY2dENCG.js";import{M as eh}from"./jqiCLmEu.js";import{g as bi}from"./BrgZ9aoi.js";import{f as Ml}from"./B6Utvg2n.js";import{c as Ls}from"./D8U5PK8P.js";import{handleIntentLink as th}from"./BEW3Nx_B.js";import{s as rh,a as nh,f as ah,d as sh,r as oh,h as ih,w as ns,g as lh,W as ch,H as dh,c as uh,M as _d}from"./BaW2Kupg.js";import{e as fh,q as ph}from"./aGrIQKRU.js";import{showAssistantContent as gh}from"./D3vkMbH6.js";import{o as zs,c as vh,n as mh}from"./B8923tpn.js";import{p as hh}from"./U5EkHYlB.js";import{m as bh}from"./DY0zw3Os.js";import{h as Cs}from"./BIJtNIE9.js";import{i as xd}from"./DNqOZtos.js";import{g as yh,e as _h,f as xh,h as wh}from"./BvFAWM27.js";import{T as _o}from"./aqB_PH9O.js";import{i as kh,r as Ol}from"./DLDAnI9z.js";import{a as Sh}from"./D3cGjGGm.js";import{a as Ih}from"./BJzHxIyr.js";import{p as Ch}from"./LigVTKZd.js";const Eh="intent:inline-visual-draft";function mI(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((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,z1=["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"],No=96,Sc=2e4,H1=480,Pu=512,j1=["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 W1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const u=(C,z={})=>{window.parent.postMessage({channel:r,type:C,...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(C){try{if(!o(C))return!1;const z=JSON.parse(JSON.stringify(C));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&u("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let R=!1,b=-1,h=innerHeight,A=Number.NaN,P=0,F=0;const B=()=>{if(R=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,K=C-z;if(z>h+1&&K>1&&Math.abs(K-A)<=1?P+=1:(z!==h||K<=1)&&(P=0),h=z,A=K,!F&&P>=3){F=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),u("layout",{message:Y})}F&&(C=Math.min(C,F)),C!==b&&(b=C,u("resize",{height:C}))},M=()=>{R||(R=!0,requestAnimationFrame(B))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const z=document.documentElement;z.classList.toggle("dark",C.dark),z.style.colorScheme=C.dark?"dark":"light";const K=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof K=="string"&&K.length<512&&z.style.setProperty("--inline-html-root-font-size",K);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const oe=C.variables[Y];typeof oe=="string"&&oe.length<512&&z.style.setProperty(Y,oe)}M()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const H=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const z=oe=>{const Se=getComputedStyle(oe);if(oe!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Se.overflowY)||/^(hidden|clip)$/.test(Se.overflowY))return!1;const ce=oe.scrollHeight-oe.clientHeight;return ce>1&&(C.deltaY<0?oe.scrollTop>1:oe.scrollTop<ce-1)};if(C.composedPath().some(oe=>oe instanceof Element&&z(oe))||document.scrollingElement&&z(document.scrollingElement))return;const K=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(Y)&&(C.preventDefault(),c({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",H),window.addEventListener("wheel",H,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&u("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;u("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",C=>{const z=C.target instanceof Element?C.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(M).observe(document.body),new MutationObserver(M).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",M),document.addEventListener("load",M,!0),document.fonts.ready.then(M),u("ready"),M()},{once:!0})}function U1(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 l;const c=u=>{const i=u.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",u=>{const i=u.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(u.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(u.source!==o.contentWindow||u.origin!=="null")){if(i.type==="scroll-port"&&!l&&u.ports.length===1){l=u.ports[0],l.onmessage=c;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 q1(r,t,n,a,s,o,l,c){const u=document.implementation.createHTMLDocument(""),i=u.createElement("template");i.innerHTML=n,u.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(oe=>oe.remove()),Y.querySelectorAll("template").forEach(oe=>p(oe.content)),Y.querySelectorAll("a, area").forEach(oe=>{for(const Se of["href","xlink:href"])oe.getAttribute(Se)?.startsWith("#")||oe.removeAttribute(Se);oe.removeAttribute("target"),oe.removeAttribute("ping"),oe.removeAttribute("download")})};p(u);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),R=u.createElement("meta");R.httpEquiv="Content-Security-Policy",R.content=r.csp;const b=u.createElement("meta");b.setAttribute("charset","utf-8");const h=u.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const P=u.createElement("script"),F=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);P.textContent=`(${r.bridge})(...${F}, (${r.validate}));`,u.head.prepend(R,b,h,P);const B=`<!doctype html>${u.documentElement.outerHTML}`,M=document.implementation.createHTMLDocument(""),D=M.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const H=M.createElement("meta");H.setAttribute("charset","utf-8");const C=M.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=M.createElement("script"),K=g([a,B,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${K}, (${r.validate}));`,M.head.prepend(D,H,C,z),`<!doctype html>${M.documentElement.outerHTML}`}const V1=()=>({csp:j1,styles:F1,maxScrollDelta:Pu,lockHeight:H1,bridge:W1.toString(),shell:U1.toString(),validate:pi.toString()});function K1(r,t,n,a,s=null,o=""){return q1(V1(),pi,r,t,n,a,s,o)}function Ic(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(z1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function G1(r,t,n,a,s=null){return K1(r,t,n,a,s,B1)}var J1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),Y1=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),X1=S('<p class="sr-only" role="status"> </p>'),Z1=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),Q1=S('<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>'),$1=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),e0=S('<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>'),t0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),r0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),n0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),a0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),s0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),o0=S('<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>'),i0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),l0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function Tu(r,t){if(new.target)return Ht({component:Tu,...r});Ut(t,!0);const n=720;let a=_(t,"source",7),s=_(t,"isStreaming",7,!1),o=_(t,"isComplete",7,!0),l=_(t,"record",7),c=_(t,"storageStatus",7,"ready"),u=_(t,"onRecordChange",7),i=_(t,"onUseConfiguration",7),p=_(t,"onExport",7),g=_(t,"onRetry",7),R=_(t,"storageError",7),b=_(t,"exportStatus",7),h=_(t,"exportPath",7),A=_(t,"exportError",7),P,F=_e(void 0),B=_e(!1),M=_e(!1),D=_e(0),H=_e(""),C=_e(""),z=_e(!1),K=_e(""),Y=_e(qr(No)),oe=_e(n),Se=_e(""),ce=_e(vl()),ne=_e(void 0),ge,Oe=_e(void 0),V=_e(!1);const fe=f(()=>l()??e(ce)),de=f(()=>c()!=="loading"&&(c()!=="error"||!!e(fe).current)),Te=f(()=>!s()&&o()&&!!a().trim()&&e(de)),Ne=f(()=>Math.min(Sc,Math.max(No,e(Y)))),we=f(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(K)?"error":e(z)?"ready":"loading":"empty":"incomplete"),Qe=f(()=>s()||c()==="loading"||e(Te)&&!e(z)&&!e(K));function qe(Q){const Ce={...Q,current:e(ne)??Q.current};N(ce,Ce),u()?.(Ce)}function et(){const Q=e(ne);!Q||e(fe).scenarios.length>=ml||(qe({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:Wf({number:rl(e(fe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),N(V,!0))}function $(Q,Ce){const $e=Ce.trim().slice(0,120);$e&&qe({...e(fe),scenarios:e(fe).scenarios.map(tt=>tt.id===Q?{...tt,name:$e}:tt)})}function Z(Q){const Ce=structuredClone(Q);N(ne,Ce),N(Oe,Ce),qe({...e(fe),current:Ce}),N(D,e(D)+1)}function Ve(Q){return typeof Q=="number"?rl(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function J(){!e(F)?.contentWindow||!e(C)||e(F).contentWindow.postMessage({channel:e(C),type:"theme",theme:Ic(P)},"*")}function G(Q){let Ce=P.parentElement;for(;Ce;){const $e=getComputedStyle(Ce),tt=Ce.scrollHeight-Ce.clientHeight;if(/^(auto|scroll|overlay)$/.test($e.overflowY)&&tt>1){if(Q<0?Ce.scrollTop>0:Ce.scrollTop<tt){Ce.dispatchEvent(new WheelEvent("wheel",{deltaY:Q,bubbles:!0})),Ce.scrollTop+=Q;return}if(/^(contain|none)$/.test($e.overscrollBehaviorY))return}Ce=Ce.parentElement}window.scrollBy({top:Q,behavior:"instant"})}kt(()=>{if(!e(B))return;const Q=a(),Ce=e(Te);e(D),Mn(()=>{ge!==Q&&(N(ce,vl()),N(ne,void 0),N(V,!1),N(Oe,void 0),ge=Q),N(z,!1),N(K,""),N(Se,""),N(Y,No,!0),N(C,crypto.randomUUID(),!0),N(H,Ce?G1(Q,e(C),Ic(P),$i(),e(Oe)??e(ne)??e(fe).current):"",!0),N(Oe,void 0)})}),bs(()=>{N(B,!0);const Q=ft=>{if(ft.source!==e(F)?.contentWindow||ft.origin!=="null")return;const Be=ft.data;if(!(!Be||typeof Be!="object"||Be.channel!==e(C)))if(Be.type==="resize"&&typeof Be.height=="number"&&Number.isFinite(Be.height)&&Be.height>=0)N(Y,Math.min(Sc,Math.ceil(Be.height)),!0);else if(Be.type==="ready")N(z,!0),J();else if(Be.type==="error"&&typeof Be.message=="string")N(K,Be.message.slice(0,300),!0);else if(Be.type==="layout"&&typeof Be.message=="string")N(Se,Be.message.slice(0,300),!0);else if(Be.type==="snapshot"&&e(Te)&&pi(Be.snapshot)){const ht=Be.snapshot;N(ne,ht),qe({...e(fe),current:ht})}else Be.type==="wheel"&&e(z)&&e(Te)&&!e(M)&&!e(Qe)&&typeof Be.deltaY=="number"&&Number.isFinite(Be.deltaY)&&Be.deltaY!==0&&Math.abs(Be.deltaY)<=Pu&&G(Be.deltaY)},Ce=()=>{N(oe,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},$e=new MutationObserver(J);$e.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",J),window.addEventListener("message",Q),window.addEventListener("resize",Ce),Ce(),()=>{$e.disconnect(),tt.removeEventListener("change",J),window.removeEventListener("message",Q),window.removeEventListener("resize",Ce)}});var q={get source(){return a()},set source(Q){a(Q),x()},get isStreaming(){return s()},set isStreaming(Q=!1){s(Q),x()},get isComplete(){return o()},set isComplete(Q=!0){o(Q),x()},get record(){return l()},set record(Q){l(Q),x()},get storageStatus(){return c()},set storageStatus(Q="ready"){c(Q),x()},get onRecordChange(){return u()},set onRecordChange(Q){u(Q),x()},get onUseConfiguration(){return i()},set onUseConfiguration(Q){i(Q),x()},get onExport(){return p()},set onExport(Q){p(Q),x()},get onRetry(){return g()},set onRetry(Q){g(Q),x()},get storageError(){return R()},set storageError(Q){R(Q),x()},get exportStatus(){return b()},set exportStatus(Q){b(Q),x()},get exportPath(){return h()},set exportPath(Q){h(Q),x()},get exportError(){return A()},set exportError(Q){A(Q),x()},$set:jt,$on:(Q,Ce)=>Wt(t,Q,Ce)},ae=l0(),he=I(ae),ee=I(he);yt(ee,{variant:"ghost",size:"sm",get active(){return e(M)},get"aria-pressed"(){return e(M)},onclick:()=>{N(M,!e(M))},children:(Q,Ce)=>{ar();var $e=Pt();k(tt=>y($e,tt),[()=>e(M)?Lf():Nf()]),d(Q,$e)},$$slots:{default:!0}});var ue=m(ee,2);{let Q=f(()=>!e(Te));yt(ue,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{N(D,e(D)+1)},children:(Ce,$e)=>{ar();var tt=Pt();k(ft=>y(tt,ft),[()=>Mf()]),d(Ce,tt)},$$slots:{default:!0}})}w(he);var Pe=m(he,2);{var We=Q=>{var Ce=Y1(),$e=He(Ce),tt=I($e),ft=L(tt,!0),Be=m(tt,2);{var ht=vt=>{yt(vt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,Rt)=>{ar();var Zt=Pt();k(_t=>y(Zt,_t),[()=>Uf()]),d(Ct,Zt)},$$slots:{default:!0}})};O(Be,vt=>{g()&&vt(ht)})}w($e);var lt=m($e,2);{var gt=vt=>{var Ct=J1(),Rt=L(Ct,!0);k(()=>y(Rt,R())),d(vt,Ct)};O(lt,vt=>{R()&&vt(gt)})}k(vt=>y(ft,vt),[()=>Of()]),d(Q,Ce)};O(Pe,Q=>{c()==="error"&&Q(We)})}var at=m(Pe,2);{var me=Q=>{var Ce=X1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>s()?Df():Bf()]),d(Q,Ce)},Ee=Q=>{var Ce=Z1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>o()?zf():Ff()]),d(Q,Ce)},U=Q=>{var Ce=Q1(),$e=I(Ce),tt=L($e,!0),ft=m($e,2),Be=L(ft,!0);w(Ce),k(ht=>{y(tt,ht),y(Be,e(K))},[()=>Hf()]),d(Q,Ce)};O(at,Q=>{e(Qe)?Q(me):e(Te)?e(K)&&Q(U,2):Q(Ee,1)})}var ye=m(at,2),pe=I(ye);{var T=Q=>{var Ce=$1();let $e,tt;gr(Ce,ft=>N(F,ft),()=>e(F)),k(ft=>{se(Ce,"title",ft),se(Ce,"srcdoc",e(H)),$e=mt(Ce,1,"block w-full border-0 svelte-1kkow1d",null,$e,{"preview-hidden":e(M)||e(Qe)}),se(Ce,"aria-hidden",e(M)||e(Qe)),tt=An(Ce,"",tt,{height:`${e(Ne)}px`})},[()=>$i()]),d(Q,Ce)};O(pe,Q=>{e(Te)&&e(H)&&Q(T)})}var j=m(pe,2);{var xe=Q=>{ea(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(oe)}})},Ze=Q=>{var Ce=e0(),$e=I(Ce),tt=I($e);ja(tt,{class:"h-4 w-32 max-w-1/2"});var ft=m(tt,2);ja(ft,{class:"h-3 w-2/3"}),w($e);var Be=m($e,2);ja(Be,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(Be,2),lt=I(ht);ja(lt,{class:"h-3 w-16"});var gt=m(lt,2);ja(gt,{class:"h-2 min-w-0 flex-1"});var vt=m(gt,2);ja(vt,{class:"h-3 w-10"}),w(ht),w(Ce),d(Q,Ce)};O(j,Q=>{e(M)?Q(xe):e(Qe)&&Q(Ze,1)})}w(ye);var Re=m(ye,2);{var je=Q=>{var Ce=i0(),$e=He(Ce),tt=I($e);{var ft=Et=>{{let Jt=f(()=>!e(z)||!!e(K));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>qf()]),d(Mt,te)},$$slots:{default:!0}})}};O(tt,Et=>{i()&&Et(ft)})}var Be=m(tt,2);{let Et=f(()=>!e(z)||!!e(K)||e(fe).scenarios.length>=ml);yt(Be,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:et,children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>jf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(Be,2);{var lt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(V)},get"aria-expanded"(){return e(V)},onclick:()=>N(V,!e(V)),children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>Vf()]),d(Jt,ve)},$$slots:{default:!0}})};O(ht,Et=>{e(fe).scenarios.length&&Et(lt)})}var gt=m(ht,2);{var vt=Et=>{{let Jt=f(()=>!e(z)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(fe),current:e(ne)??null}),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>Kf()]),d(Mt,te)},$$slots:{default:!0}})}};O(gt,Et=>{p()&&Et(vt)})}var Ct=m(gt,2);{var Rt=Et=>{var Jt=t0(),Mt=L(Jt,!0);k(ve=>y(Mt,ve),[()=>c()==="saving"?Gf():c()==="ready"?Jf():""]),d(Et,Jt)};O(Ct,Et=>{u()&&Et(Rt)})}w($e);var Zt=m($e,2);{var _t=Et=>{var Jt=r0(),Mt=I(Jt),ve=m(Mt);{var te=Ue=>{var nt=Pt();k(()=>y(nt,A())),d(Ue,nt)};O(ve,Ue=>{b()==="error"&&A()&&Ue(te)})}w(Jt),k(Ue=>y(Mt,`${Ue??""} `),[()=>b()==="saving"?Yf():b()==="saved"?Xf({path:h()??""}):Zf()]),d(Et,Jt)};O(Zt,Et=>{b()&&Et(_t)})}var Vt=m(Zt,2);{var er=Et=>{var Jt=o0(),Mt=I(Jt),ve=I(Mt),te=I(ve),Ue=I(te),nt=L(Ue,!0),dt=m(Ue),ze=L(dt,!0),X=m(dt);At(X,17,()=>e(fe).scenarios,le=>le.id,(le,ke)=>{var Ae=n0(),De=I(Ae);{let Ie=f(()=>ep());Va(De,{get value(){return e(ke).name},get"aria-label"(){return e(Ie)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(ke).name),$(e(ke).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(ke).name,Ye.currentTarget.blur())}})}var Fe=m(De,2),Je=I(Fe);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Z(e(ke).snapshot),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>Qf()]),d(Ie,Ge)},$$slots:{default:!0}});var Ke=m(Je,2);yt(Ke,{variant:"ghost",size:"sm",onclick:()=>qe({...e(fe),scenarios:e(fe).scenarios.filter(Ie=>Ie.id!==e(ke).id)}),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>$f()]),d(Ie,Ge)},$$slots:{default:!0}}),w(Fe),w(Ae),d(le,Ae)}),w(te),w(ve);var ie=m(ve);At(ie,20,()=>["inputs","results"],Tr,(le,ke)=>{const Ae=f(()=>ke),De=f(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ae)]),...e(fe).scenarios.flatMap(Ke=>Object.keys(Ke.snapshot[e(Ae)]))])));var Fe=wt(),Je=He(Fe);At(Je,16,()=>e(De),Ke=>Ke,(Ke,Ie)=>{var Ye=s0(),Ge=I(Ye),rt=L(Ge,!0),ot=m(Ge);At(ot,17,()=>[e(ne),...e(fe).scenarios.map(it=>it.snapshot)],Tr,(it,ut)=>{var St=a0(),bt=L(St,!0);k(Lt=>y(bt,Lt),[()=>Object.hasOwn(e(ut)[e(Ae)],Ie)?Ve(e(ut)[e(Ae)][Ie]):"—"]),d(it,St)}),w(Ye),k(()=>y(rt,Ie)),d(Ke,Ye)}),d(le,Fe)}),w(ie),w(Mt),w(Jt),k(le=>{y(nt,e(ne).title),y(ze,le)},[()=>tp()]),d(Et,Jt)};O(Vt,Et=>{e(V)&&e(fe).scenarios.length&&Et(er)})}d(Q,Ce)};O(Re,Q=>{e(ne)&&e(Te)&&Q(je)})}return w(ae),gr(ae,Q=>P=Q,()=>P),k(()=>{se(ae,"data-inline-html-status",e(we)),se(ae,"data-inline-html-layout",e(Se)?"viewport-locked":void 0),se(ae,"aria-busy",e(Qe))}),d(r,ae),qt(q)}var c0=S('<div class="w-full min-w-0"><!></div>');function d0(r,t){if(new.target)return Ht({component:d0,...r});Ut(t,!0);const n=()=>Dt(e(b),"$agent$",s),a=()=>Dt(e(F),"$entry$",s),[s,o]=ia();let l=_(t,"block",7),c=_(t,"role",7),u=_(t,"workspaceId",7),i=_(t,"agentId",7),p=_(t,"messageId",7),g=_(t,"contentBlockKey",7,""),R=_e(void 0);const b=f(()=>Ys(i()??"")),h=f(()=>c()==="assistant"&&u()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!ud(n())?{workspaceId:u(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),A=f(()=>!!(u()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),P=f(()=>e(h)?qg(e(h)):""),F=f(()=>mm(e(P)));kt(()=>{e(h)&&Nt.dispatch(Hg(e(h)))});function B(Y){!u()||!i()||n()?.retiredAt||e(R)?.dispatchEvent(new CustomEvent(Eh,{bubbles:!0,detail:{workspaceId:u(),agentId:i(),snapshot:Y}}))}var M={get block(){return l()},set block(Y){l(Y),x()},get role(){return c()},set role(Y){c(Y),x()},get workspaceId(){return u()},set workspaceId(Y){u(Y),x()},get agentId(){return i()},set agentId(Y){i(Y),x()},get messageId(){return p()},set messageId(Y){p(Y),x()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),x()},$set:jt,$on:(Y,oe)=>Wt(t,Y,oe)},D=wt(),H=He(D);{var C=Y=>{var oe=c0(),Se=I(oe);{let ce=f(()=>l().metadata?.isStreaming??!1),ne=f(()=>l().metadata?.fenceClosed??!1),ge=f(()=>a()?.record),Oe=f(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),V=f(()=>a()?.error),fe=f(()=>e(h)?et=>Nt.dispatch(Ug(e(P),et)):void 0),de=f(()=>u()&&i()&&n()&&!n().retiredAt?B:void 0),Te=f(()=>e(h)?()=>Nt.dispatch(Wg(e(P))):void 0),Ne=f(()=>e(h)?et=>Nt.dispatch(jg(e(P),crypto.randomUUID(),et)):void 0),we=f(()=>a()?.export?.status),Qe=f(()=>a()?.export?.path),qe=f(()=>a()?.export?.error);Tu(Se,{get source(){return l().content},get isStreaming(){return e(ce)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Oe)},get storageError(){return e(V)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e(de)},get onRetry(){return e(Te)},get onExport(){return e(Ne)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(qe)}})}w(oe),gr(oe,ce=>N(R,ce),()=>e(R)),d(Y,oe)},z=Y=>{ea(Y,{get code(){return l().content},language:"html"})};O(H,Y=>{c()==="assistant"?Y(C):Y(z,-1)})}d(r,D);var K=qt(M);return o(),K}var u0=S('<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 f0(r,t){if(new.target)return Ht({component:f0,...r});Ut(t,!0);let n=_(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),x()},$set:jt,$on:(l,c)=>Wt(t,l,c)},s=u0(),o=L(s,!0);return k(()=>y(o,n())),d(r,s),qt(a)}var p0=S('<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>'),g0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),v0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),m0=S('<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>'),h0=S('<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 b0(r,t){if(new.target)return Ht({component:b0,...r});Ut(t,!0);let n=_(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),x()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=h0(),o=I(s),l=I(o);Tt(l,{get icon(){return Xc},size:"sm",class:"text-primary-ink/70"});var c=m(l,2),u=L(c,!0);w(o);var i=m(o,2);At(i,21,n,b=>b.name+b.command,(b,h)=>{var A=m0(),P=I(A),F=I(P),B=I(F),M=L(B,!0),D=m(B,2);{var H=Se=>{var ce=p0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(Se,ce)},C=Se=>{var ce=g0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(Se,ce)};O(D,Se=>{e(h).mode==="service"?Se(H):Se(C,-1)})}var z=m(D,2);{var K=Se=>{var ce=v0(),ne=L(ce,!0);k(()=>y(ne,e(h).category)),d(Se,ce)};O(z,Se=>{e(h).category&&e(h).category!=="other"&&Se(K)})}w(F);var Y=m(F,2),oe=L(Y,!0);w(P),w(A),k(()=>{y(M,e(h).name),y(oe,e(h).command)}),d(b,A)}),w(i);var p=m(i,2),g=I(p),R=L(g,!0);return w(p),w(s),k((b,h)=>{y(u,b),y(R,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:lr(n().length)}):v.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),qt(a)}function y0(r,t){if(new.target)return Ht({component:y0,...r});Ut(t,!0);let n=_(t,"diff",7),a=_(t,"filePath",7),s=_(t,"language",7),o=_(t,"onApply",7),l=_(t,"onReject",7);function c(){o()?.(),$n.success(v.chat_diffViewer_applied_toast())}function u(){l()?.(),$n.info(v.chat_diffViewer_rejected_toast())}const i=f(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:u}),g});var p={get diff(){return n()},set diff(g){n(g),x()},get filePath(){return a()},set filePath(g){a(g),x()},get language(){return s()},set language(g){s(g),x()},get onApply(){return o()},set onApply(g){o(g),x()},get onReject(){return l()},set onReject(g){l(g),x()},$set:jt,$on:(g,R)=>Wt(t,g,R)};{let g=f(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());us(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 qt(p)}var _0=ba('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Cc=ba("<circle></circle>"),x0=ba('<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>'),w0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Os(r,t){if(new.target)return Ht({component:Os,...r});Ut(t,!0);let n=_(t,"phase",7),a=_(t,"progress",7,0),s=_(t,"size",7,16),o=_(t,"class",7,""),l=f(()=>s()/2),c=f(()=>e(l)),u=f(()=>e(l)),i=f(()=>s()*.12),p=f(()=>e(l)-e(i)/2),g=f(()=>e(l)*.35),R=f(()=>2*Math.PI*e(g)),b=f(()=>Math.max(0,Math.min(1,a()))*e(R));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=f(()=>h[n()]||"currentColor");var P={get phase(){return n()},set phase(ce){n(ce),x()},get progress(){return a()},set progress(ce=0){a(ce),x()},get size(){return s()},set size(ce=16){s(ce),x()},get class(){return o()},set class(ce=""){o(ce),x()},$set:jt,$on:(ce,ne)=>Wt(t,ce,ne)},F=w0(),B=I(F),M=I(B),D=m(M);{var H=ce=>{},C=ce=>{var ne=_0();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(g)*.8),se(ne,"stroke",e(A)),se(ne,"stroke-width",e(g)*1.5),se(ne,"stroke-dasharray",`${e(b)??""} ${e(R)??""}`),se(ne,"stroke-dashoffset",e(R)*.25),se(ne,"transform",`rotate(-90 ${e(c)??""} ${e(u)??""})`)}),d(ce,ne)},z=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)*.6),se(ne,"fill",e(A))}),d(ce,ne)},K=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)),se(ne,"fill",e(A))}),d(ce,ne)};O(D,ce=>{n()==="planning"?ce(H):n()==="building"?ce(C,1):n()==="reviewing"?ce(z,2):n()==="shipped"&&ce(K,3)})}w(B);var Y=m(B,2);{var oe=ce=>{},Se=ce=>{var ne=x0();k(()=>se(ne,"width",s()*.5)),d(ce,ne)};O(Y,ce=>{n()==="reviewing"?ce(oe):n()==="shipped"&&ce(Se,1)})}return w(F),k(()=>{se(B,"width",s()),se(B,"height",s()),se(B,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(B,0,ur(o())),se(M,"cx",e(c)),se(M,"cy",e(u)),se(M,"r",e(p)),se(M,"stroke",e(A)),se(M,"stroke-width",e(i))}),d(r,F),qt(P)}var Ec=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),k0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Ac=S('<span class="text-ui text-subtle truncate"> </span>'),Pc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Tc=S('<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>'),S0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),I0=S('<span class="text-ui text-subtle pl-4"> </span>'),C0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),E0=S('<div class="text-ui text-subtle"> </div>'),A0=S("<!> <!> <!> <!>",1),P0=S('<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>'),T0=S('<div class="rounded-[0.5px]"></div>');function Ru(r,t){if(new.target)return Ht({component:Ru,...r});Ut(t,!0);let n=_(t,"stats",7),a=_(t,"tasks",23,()=>[]),s=_(t,"maxBars",7,20),o=_(t,"barWidth",7,"1px"),l=_(t,"barHeight",7,"16px"),c=_(t,"gap",7,"1px"),u=_(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=f(()=>{const{completed:D,inProgress:H,notStarted:C,total:z}=n();if(z===0)return[];const K=[...Array(D).fill("completed"),...Array(H).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=s()?K:K.slice(K.length-s())}),g=f(()=>a().filter(D=>D.status==="complete")),R=f(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=f(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=f(()=>a().filter(D=>D.status==="cancelled")),A=f(()=>a().length>0);var P={get stats(){return n()},set stats(D){n(D),x()},get tasks(){return a()},set tasks(D=[]){a(D),x()},get maxBars(){return s()},set maxBars(D=20){s(D),x()},get barWidth(){return o()},set barWidth(D="1px"){o(D),x()},get barHeight(){return l()},set barHeight(D="16px"){l(D),x()},get gap(){return c()},set gap(D="1px"){c(D),x()},get class(){return u()},set class(D){u(D),x()},$set:jt,$on:(D,H)=>Wt(t,D,H)},F=wt(),B=He(F);{var M=D=>{Fo(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=P0(),K=I(z),Y=I(K),oe=L(Y,!0),Se=m(Y,2),ce=I(Se);{var ne=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#22c55e"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().completed??""}`)),d(Ne,we)};O(ce,Ne=>{n().completed>0&&Ne(ne)})}var ge=m(ce,2);{var Oe=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#4F7BF7"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().inProgress??""}`)),d(Ne,we)};O(ge,Ne=>{n().inProgress>0&&Ne(Oe)})}var V=m(ge,2);{var fe=Ne=>{var we=k0(),Qe=m(I(we));w(we),k(()=>y(Qe,` ${n().notStarted??""}`)),d(Ne,we)};O(V,Ne=>{n().notStarted>0&&Ne(fe)})}w(Se),w(K);var de=m(K,2);{var Te=Ne=>{var we=A0(),Qe=He(we);At(Qe,17,()=>e(R),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var qe=m(Qe,2);At(qe,17,()=>e(b),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var et=m(qe,2);{var $=J=>{var G=C0(),q=I(G);At(q,17,()=>e(g).slice(0,3),Tr,(ee,ue)=>{var Pe=S0(),We=I(Pe),at=I(We);yo(at,{status:"complete",size:12}),w(We);var me=m(We,2),Ee=L(me,!0);w(Pe),k(()=>y(Ee,e(ue).title)),d(ee,Pe)});var ae=m(q,2);{var he=ee=>{var ue=I0(),Pe=L(ue,!0);k(We=>y(Pe,We),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(ee,ue)};O(ae,ee=>{e(g).length>3&&ee(he)})}w(G),d(J,G)};O(et,J=>{e(g).length>0&&J($)})}var Z=m(et,2);{var Ve=J=>{var G=E0(),q=L(G,!0);k(ae=>y(q,ae),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,G)};O(Z,J=>{e(h).length>0&&J(Ve)})}d(Ne,we)};O(de,Ne=>{e(A)&&Ne(Te)})}w(z),k(Ne=>y(oe,Ne),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,z)},children:(C,z)=>{{let K=f(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",u())),Y=f(()=>`gap: ${c()}`),oe=f(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(Y)},get"aria-label"(){return e(oe)},"data-task-progress-trigger":!0,children:(Se,ce)=>{var ne=wt(),ge=He(ne);At(ge,17,()=>e(p),Tr,(Oe,V)=>{var fe=T0();let de;k(()=>de=An(fe,"",de,{width:o(),height:l(),"background-color":i[e(V)]})),d(Oe,fe)}),d(Se,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};O(B,D=>{n().total>0&&D(M)})}return d(r,F),qt(P)}function Pi(r,t){if(new.target)return Ht({component:Pi,...r});Ut(t,!0);let n=_(t,"items",7),a=_(t,"ariaLabel",7),s=_(t,"open",15,!1),o=_(t,"orientation",7,"vertical"),l=_(t,"selection",7),c=_(t,"class",7,"");const u=f(()=>ag(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),x()},get ariaLabel(){return a()},set ariaLabel(p){a(p),x()},get open(){return s()},set open(p=!1){s(p),x()},get orientation(){return o()},set orientation(p="vertical"){o(p),x()},get selection(){return l()},set selection(p){l(p),x()},get class(){return c()},set class(p=""){c(p),x()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return sm(r,{get actions(){return e(u)},align:"end",get ariaLabel(){return a()},onAction:g=>ng(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,R)=>{let b=()=>(R?.()).props;yt(g,li(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{om(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var R0=S('<span class="contents"><!></span>'),L0=S("<!> <!>",1);function Lu(r,t){if(new.target)return Ht({component:Lu,...r});Ut(t,!0);let n=_(t,"workspaceId",7),a=_(t,"slot",7);const s=f(()=>Tg(a()));let o=_e(null);kt(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const A=Kc(h);A&&N(o,{...A,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();N(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function u(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),x()},get slot(){return a()},set slot(h){a(h),x()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=L0(),g=He(p);{let h=f(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),A=f(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),P=f(()=>e(o)!==null);yt(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(A)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(P)},children:(F,B)=>{var M=R0(),D=I(M);Bp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(M),d(F,M)},$$slots:{default:!0}})}var R=m(g,2);{var b=h=>{{let A=f(()=>e(o)?.x??0),P=f(()=>e(o)?.y??0),F=f(()=>e(o)?.returnFocus),B=f(()=>v.workspace_card_assignMicroKey_label()),M=f(()=>ah(n(),u));Gc(h,{get x(){return e(A)},get y(){return e(P)},get returnFocus(){return e(F)},selection:"single",get ariaLabel(){return e(B)},get items(){return e(M)},onClickOutside:u})}};O(R,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var N0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),M0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),O0=S('<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>'),D0=S('<span data-workspace-card-pr-item=""><!></span>'),B0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),F0=S('<span data-workspace-card-time=""><!></span>'),z0=S('<span aria-hidden="true"><!></span>'),H0=S("<div><!> <!> <!> <!></div>"),j0=S('<div data-workspace-card-hover-surface=""><!></div>'),W0=S('<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),U0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),q0=S('<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>'),V0=S('<div class="text-sm font-semibold truncate"> </div>'),Rc=S('<span class="truncate"> </span>'),K0=S('<span class="text-muted-foreground">·</span>'),G0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),J0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Y0=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),X0=S('<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>'),Z0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Q0=S('<div class="flex items-center text-ui"><span> </span></div>'),$0=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),ek=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),tk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),rk=S('<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 Nu(r,t){if(new.target)return Ht({component:Nu,...r});Ut(t,!0);const n=()=>Dt(qe,"$prMonitors$",l),a=()=>Dt(et,"$microConnected$",l),s=()=>Dt(Z,"$hidesOwnerActions$",l),o=()=>Dt($,"$workspaceKeySlot$",l),[l,c]=ia();let u=_(t,"workspace",7),i=_(t,"phase",7),p=_(t,"stats",7),g=_(t,"variant",7,"compact"),R=_(t,"showTime",7,!0),b=_(t,"isRunning",7,!1),h=_(t,"isUnread",7,!1),A=_(t,"isWaiting",7),P=_(t,"isPinned",7,!1),F=_(t,"streamingAgentIds",23,()=>[]),B=_(t,"hasSpec",7,!1),M=_(t,"isAgentRunning",7,!1),D=_(t,"agentDigest",7),H=_(t,"trailingLabel",7),C=_(t,"title",7),z=_(t,"repoName",7),K=_(t,"branch",7),Y=_(t,"onClick",7),oe=_(t,"onAction",7),Se=_(t,"onTogglePin",7),ce=_(t,"onMarkAsRead",7),ne=_(t,"onOpenInNewWindow",7),ge=_(t,"onHover",7),Oe=_(t,"highlighted",7,!1),V=_(t,"selected",7,!1),fe=_(t,"highlightId",7),de=_(t,"suppressHover",7,!1),Te=_(t,"isolateHoverReveal",7,!1),Ne=_(t,"class",7),we=_(t,"actions",7);const Qe=os("");kt(()=>{Qe.set(u()?.id??"")});const qe=Cp(Qe),et=bh(),$=sv(Qe),Z=Ep(Qe),Ve=f(()=>oh(u()??{})),J=f(()=>ih(e(Ve)));let G=f(()=>u()?hh.url.pathname===`/workspace/${u().id}`:!1),q=f(()=>u()?`workspace-hover-card-${u().id}`:void 0),ae=_e(!1),he=_e(null),ee=_e(null);kt(()=>{if(!e(ee))return;const re=Cs(e(ee),{id:fe()});return()=>re.destroy()});let ue=_e(null),Pe=_e(null),We=_e(null),at=_e(0),me=_e(0),Ee=f(()=>e(at)+(e(me)>0?e(me)+4:0));function U(){const re=e(ue),pt=e(We);N(at,re?Math.max(0,re.scrollWidth-re.clientWidth):0,!0),N(me,re&&pt&&pt.getClientRects().length>0?Math.max(0,re.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}kt(()=>{const re=e(ue),pt=e(Pe),Bt=e(We);if(!re||!pt||(U(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(U);return hr.observe(re),hr.observe(pt),Bt&&hr.observe(Bt),()=>hr.disconnect()});let ye=null,pe=null,T=!1,j=!1,xe=!1,Ze=!1,Re=!1,je=!1,Q=_e(!1),Ce=!1,$e=null,tt=_e(null),ft=null,Be;function ht(){ye!==null&&(clearTimeout(ye),ye=null)}function lt(){pe!==null&&(clearTimeout(pe),pe=null),ft?.(),ft=null}function gt(){lt(),N(Q,!0),N(ae,!0),!Re&&(Re=!0,ns.notifyOpened())}function vt(){lt(),clearTimeout(Be),N(Q,!1),N(ae,!1),j=!1,Ze=!1,Re&&(Re=!1,ns.notifyClosed())}function Ct(){return T||j||xe||Ze}function Rt(){if(!e(ae)){vt();return}lt(),pe=setTimeout(()=>{pe=null,Ct()||vt()},ch),ft=ns.deferClose(vt)}function Zt(){j=!0,lt()}function _t(){j=!1,!xe&&!Ze&&Rt()}function Vt(){Ze=!0,clearTimeout(Be),lt()}function er(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;if(pt&&ie()?.contains(pt)||(Ze=!1,pt&&e(he)?.contains(pt)))return;if(pt){!T&&!j&&vt();return}const Bt=re.target;clearTimeout(Be),Be=setTimeout(()=>{const hr=document.activeElement,Cr=ie()?.contains(hr)||e(he)?.contains(hr);hr&&hr!==Bt&&Cr||!T&&!j&&vt()},0)}function Et(){$e!==null&&clearTimeout($e),Ce=!0,$e=setTimeout(()=>{Ce=!1,$e=null},0)}function Jt(re){const pt=re.target,Bt=ie();pt instanceof Node&&Bt?.contains(pt)||re.type==="scroll"&&e(he)&&pt instanceof Node&&!pt.contains(e(he))||(re.type==="pointerdown"&&Et(),ht(),vt())}kt(()=>{if(e(Q))return window.addEventListener("pointerdown",Jt,!0),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("pointerdown",Jt,!0),window.removeEventListener("scroll",Jt,!0)}});function Mt(re){if(re.key!=="Escape")return;const pt=re.target;pt instanceof Node&&ie()?.contains(pt)||(re.preventDefault(),re.stopPropagation(),je=xe,ht(),vt())}kt(()=>{if(e(ae))return window.addEventListener("keydown",Mt,!0),()=>window.removeEventListener("keydown",Mt,!0)});const ve=f(()=>u()?Pp.select(Nt.state,u().id):null),te=f(()=>e(ve)?e(ve):u()?.activePullRequest?u().activePullRequest:!u()?.prStatus||u().prNumber==null?null:{id:`legacy-pr-${u().prNumber}`,number:u().prNumber,url:u().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:u().prStatus,createdAt:u().updatedAt,updatedAt:u().updatedAt}),Ue=f(()=>Ap(u())),nt=f(()=>{if(!u()||e(Ue))return[];const re=u(),pt=re.repositoryOwner&&re.repositoryName?`${re.repositoryOwner}/${re.repositoryName}`:void 0;return sg({workspacePRs:re.pullRequests,activePR:e(te),monitors:n(),workspaceRepo:pt,buildPrUrl:(Bt,hr)=>Bv(Bt,re.repositoryOwner,re.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),dt=f(()=>e(nt)[0]);function ze(re){const pt=re.resource?.repository.provider==="gitlab"?`${re.repo} !${re.number}`:re.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:re.repo,number:re.number}):v.workspace_card_prBadge_label({number:` #${re.number}`});return[Tp(pt,re),re.title,re.details].filter(Boolean).join(`
|
|
262
262
|
`)}function X(re){re.key==="Enter"&&Y()?.(re)}function ie(){return e(q)?document.getElementById(e(q)):null}function le(){return Array.from(ie()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const re=e(he)?.querySelector("[data-workspace-card-trigger]"),pt=ie();if(!re||!pt)return null;const Bt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Cr=>Cr.tabIndex>=0&&!pt.contains(Cr)),hr=Bt.indexOf(re);return hr>=0?Bt[hr+1]:null}function Ae(re){je=!!e(he)?.contains(re),vt(),re.focus({preventScroll:!0})}function De(){const re=e(he)?.querySelector("[data-workspace-card-trigger]");re&&Ae(re)}async function Fe(re){if(re.key==="Escape"&&e(ae)){re.preventDefault(),re.stopPropagation(),vt();return}re.key!=="ArrowDown"||de()||!u()||(re.preventDefault(),re.stopPropagation(),N(Q,!0),N(ae,!0),await Jn(),le()[0]?.focus({preventScroll:!0}))}function Je(re){const pt=le(),Bt=re.key==="Tab"&&re.shiftKey&&re.currentTarget===pt[0],Cr=re.key==="Tab"&&!re.shiftKey&&re.currentTarget===pt.at(-1)?ke():null;re.key!=="Escape"&&!Bt&&!Cr||(re.preventDefault(),re.stopPropagation(),Cr?Ae(Cr):De())}function Ke(){T=!0,lt(),ns.settleDeferredCloses(),U(),ge()?.(),u()&&!de()&&!xe&&(ht(),N(Q,!0),ye=setTimeout(()=>{ye=null,gt()},ns.currentOpenDelay))}function Ie(){T=!1,ht(),!xe&&!Ze&&Rt()}function Ye(){xe=!0,ht(),lt(),!je&&(Ce||u()&&!de()&&(N(Q,!0),N(ae,!0)))}function Ge(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;pt&&e(he)?.contains(pt)||(je=!1,xe=!1,!(pt&&ie()?.contains(pt))&&!T&&!j&&vt())}kt(()=>{de()&&(ht(),lt(),vt())});let rt=_e(null),ot=_e(!1),it;kt(()=>{const re=u()?.id;it!==re&&(it=re,N(ot,!1)),e(rt)&&e(rt).workspaceId!==u()?.id&&St()});function ut(re){if(!u())return;const pt=Kc(re);if(pt){if(N(ot,!1),bt().length===0){N(rt,null);return}N(rt,{...pt,returnFocus:re.target instanceof HTMLElement?re.target.closest("button")??e(he)?.querySelector("button")??null:null,workspaceId:u().id},!0)}}function St(){N(rt,null),N(ot,!1)}kt(()=>{e(ot)&&N(rt,null)}),ms(()=>{ht(),lt(),$e!==null&&(clearTimeout($e),$e=null),vt()});function bt(){if(!u())return[];const re=[];return ne()&&re.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:$c,onClick:()=>{ne()?.(),St()}}),re.push(...lh(u().id,{connected:a(),onClose:St})),s()||(e(Ue)||re.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:wg,onClick:()=>{Nt.dispatch(Vg({workspaceId:u().id,workspaceTitle:u().title})),St()}}),re.push({id:"archive",label:v.workspace_card_archive_label(),icon:ed,onClick:()=>{Nt.dispatch(fd(u().id)),St()}}),re.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:td,destructive:!0,onClick:()=>{Nt.dispatch(pd(u().id)),St()}})),re}let Lt=f(()=>M()&&D()?D():i()?.subtitle??""),Yt=f(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=f(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=f(()=>e(Ue)?void 0:K()),Lr=f(()=>!p()||e(Ue)?"":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}`:""}):""),Qr=f(()=>i()?.phase==="planning"?M()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:B()||(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 gn={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 Dn={get workspace(){return u()},set workspace(re){u(re),x()},get phase(){return i()},set phase(re){i(re),x()},get stats(){return p()},set stats(re){p(re),x()},get variant(){return g()},set variant(re="compact"){g(re),x()},get showTime(){return R()},set showTime(re=!0){R(re),x()},get isRunning(){return b()},set isRunning(re=!1){b(re),x()},get isUnread(){return h()},set isUnread(re=!1){h(re),x()},get isWaiting(){return A()},set isWaiting(re){A(re),x()},get isPinned(){return P()},set isPinned(re=!1){P(re),x()},get streamingAgentIds(){return F()},set streamingAgentIds(re=[]){F(re),x()},get hasSpec(){return B()},set hasSpec(re=!1){B(re),x()},get isAgentRunning(){return M()},set isAgentRunning(re=!1){M(re),x()},get agentDigest(){return D()},set agentDigest(re){D(re),x()},get trailingLabel(){return H()},set trailingLabel(re){H(re),x()},get title(){return C()},set title(re){C(re),x()},get repoName(){return z()},set repoName(re){z(re),x()},get branch(){return K()},set branch(re){K(re),x()},get onClick(){return Y()},set onClick(re){Y(re),x()},get onAction(){return oe()},set onAction(re){oe(re),x()},get onTogglePin(){return Se()},set onTogglePin(re){Se(re),x()},get onMarkAsRead(){return ce()},set onMarkAsRead(re){ce(re),x()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(re){ne(re),x()},get onHover(){return ge()},set onHover(re){ge(re),x()},get highlighted(){return Oe()},set highlighted(re=!1){Oe(re),x()},get selected(){return V()},set selected(re=!1){V(re),x()},get highlightId(){return fe()},set highlightId(re){fe(re),x()},get suppressHover(){return de()},set suppressHover(re=!1){de(re),x()},get isolateHoverReveal(){return Te()},set isolateHoverReveal(re=!1){Te(re),x()},get class(){return Ne()},set class(re){Ne(re),x()},get actions(){return we()},set actions(re){we(re),x()},$set:jt,$on:(re,pt)=>Wt(t,re,pt)},cn=wt(),Xn=He(cn);{var Pn=re=>{var pt=W0(),Bt=He(pt);let hr;var Cr=I(Bt);{let Le=f(()=>u().title||v.workspace_links_untitled_label()),st=f(()=>`workspace-status-state-${u().id}${P()?` workspace-pinned-state-${u().id}`:""}${e(ae)?` ${e(q)}`:""}`),Qt=f(()=>e(G)?"page":void 0);yt(Cr,{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(Le)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:Ot=>{Ot.stopPropagation(),Y()?.(Ot)}})}var Tn=m(Cr,2),kr=I(Tn);{var Bn=Le=>{var st=N0(),Qt=I(st);{var Ot=tr=>{Lu(tr,{get workspaceId(){return u().id},get slot(){return o()}})};O(Qt,tr=>{o()!==null&&tr(Ot)})}w(st),d(Le,st)};O(kr,Le=>{a()&&Le(Bn)})}var Fn=m(kr,2);Fo(Fn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Le,st)=>{sh(Le,{get status(){return e(Ve)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Zn=m(Fn,2),zn=L(Zn,!0);w(Tn);var Vr=m(Tn,2),vn=I(Vr),sr=I(vn),Kr=I(sr),ra=L(Kr,!0);gr(Kr,Le=>N(Pe,Le),()=>e(Pe)),w(sr),gr(sr,Le=>N(ue,Le),()=>e(ue));var Sr=m(sr,2);{var Er=Le=>{var st=M0(),Qt=He(st),Ot=I(Qt);Tt(Ot,{get icon(){return ul},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=L(tr,!0);k(dn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./
|
|
263
|
+
${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./DN0k4-NH.js").then(na=>na.Q);return{handleLink:an}},__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]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Ar,event:Or}))},children:(Or,Ar)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Nr=>{var yr=D0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Ar=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Ar),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>ze(e(st))]),d(Nr,yr)};O(un,Nr=>{e(st).url?Nr(fr):Nr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Le,Qt)};O(Gr,Le=>{e(dt)&&Le(en)})}var Jr=m(Gr,2);{var da=Le=>{var st=F0(),Qt=I(st);{var Ot=vr=>{{let dn=f(()=>hl(u()));Fp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=f(()=>hl(u())>0);O(Qt,vr=>{e(tr)&&vr(Ot)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Se()||h()&&ce()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Le,st)};O(Jr,Le=>{R()&&Le(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Le=>{var st=H0(),Qt=I(st);{var Ot=fr=>{{let jr=f(()=>P()?"text-primary-ink":"text-muted-foreground"),Nr=f(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=f(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{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
|
|
264
264
|
${e(jr)??""}`},onclick:Or=>{Or.stopPropagation(),Se()?.(Or)},get"aria-label"(){return e(Nr)},get title(){return e(yr)},children:(Or,Ar)=>{var an=z0(),na=I(an);Tt(na,{get icon(){return ul},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};O(Qt,fr=>{Se()&&fr(Ot)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=f(()=>v.workspace_card_markAsRead_label()),Nr=f(()=>v.workspace_card_markAsRead_label());yt(fr,{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:yr=>{yr.stopPropagation(),ce()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Nr)},children:(yr,Or)=>{Tt(yr,{get icon(){return rd},size:"xs"})},$$slots:{default:!0}})}};O(tr,fr=>{h()&&ce()&&fr(vr)})}var dn=m(tr,2);pn(dn,()=>we()??Ds);var xn=m(dn,2);{var un=fr=>{{let jr=f(bt),Nr=f(()=>v.workspace_progressCard_actions_ariaLabel());Pi(fr,{get items(){return e(jr)},get ariaLabel(){return e(Nr)},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(ot)},set open(yr){N(ot,yr,!0)}})}};O(xn,fr=>{ne()&&fr(un)})}w(st),gr(st,fr=>N(We,fr),()=>e(We)),k(()=>mt(st,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
|
|
265
265
|
${Te()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${Oe()?"opacity-100":de()?"opacity-0":Te()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Le,st)};O(Ta,Le=>{(we()||ne()||Se()||h()&&ce())&&Le(Ra)})}w(Bt),gr(Bt,Le=>N(he,Le),()=>e(he)),On(Bt,(Le,st)=>Cs?.(Le,st),()=>({id:fe()}));var Yr=m(Bt,2);{var tn=Le=>{dh(Le,{get id(){return e(q)},get anchor(){return`--workspace-list-${u().id??""}`},position:"right",get anchorElement(){return e(he)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Vt,onfocusout:er,children:(st,Qt)=>{var Ot=j0(),tr=I(Ot);uh(tr,{get workspace(){return u()},get activeAgentIds(){return F()},onkeydown:Je}),w(Ot),gr(Ot,vr=>N(tt,vr),()=>e(tt)),Cn("pointerenter",Ot,Zt),Cn("pointerleave",Ot,_t),Rr("focusin",Ot,Vt),Rr("focusout",Ot,er),d(st,Ot)},$$slots:{default:!0}})};O(Yr,Le=>{e(ae)&&!de()&&Le(tn)})}var W=m(Yr,2);{var Me=Le=>{const st=f(bt);var Qt=wt(),Ot=He(Qt);{var tr=vr=>{{let dn=f(()=>e(rt)?.x??0),xn=f(()=>e(rt)?.y??0),un=f(()=>e(rt)?.returnFocus),fr=f(()=>v.workspace_progressCard_actions_ariaLabel());Gc(vr,{get x(){return e(dn)},get y(){return e(xn)},get returnFocus(){return e(un)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:St})}};O(Ot,vr=>{e(st).length>0&&vr(tr)})}d(Le,Qt)};O(W,Le=>{e(rt)&&Le(Me)})}k((Le,st,Qt)=>{mt(Bt,1,Le,"svelte-1ct56pd"),se(Bt,"data-pinned",P()),se(Bt,"data-highlight-id",fe()),hr=An(Bt,"",hr,{"anchor-name":`--workspace-list-${u().id??""}`}),se(Zn,"id",`workspace-status-state-${u().id??""}`),y(zn,e(J).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as ue,t as ne,bq as v,a_ as L,by as re,b as se,bo as k}from"./DVcxpZob.js";import{Hp as pe}from"./DOX6tqe2.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as M,aA as h,a5 as U,bA as G,b_ as T,aB as P,bl as q,bO as j,bS as S,ca as fe,bH as _e,bV as ge,aC as z}from"./B8o4lNgr.js";import{d as me,f as ve,k as te,a as he,l as ce,s as A}from"./CRLCgacz.js";import{u as Ce,H as O,e as $,A as J}from"./WsKP4LPk.js";import{t as we}from"./Cc_MPyh-.js";import{F as ke}from"./ofkVZzaj.js";import{M as be}from"./DMl2hAjr.js";import{c as xe}from"./Rw2sIc23.js";import{aL as Te}from"./DMFRjZee.js";import{f as Se}from"./C-KminjT.js";function ct(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./5MwvnnU4.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ut(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function pt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Ae=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Le=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Me=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),g=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=M(()=>i()||c()>0||e()>0||u()),R=M(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(n){return Ce(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return g()},set inline(n=!0){g(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),H=X(C);{var p=n=>{var w=Pe(),K=U(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(D=>j(N,D),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var D=s=>{var l=Ae(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(D)})}var Z=S(N,2);{var W=s=>{var l=Le(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Me(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(K,_=>{u()?_(E):_(V,-1)})}G(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};L(H,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const He=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),De=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Oe=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function ze(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of ze(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||De.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=He.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const g of t.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Oe.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function Be(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function Fe(t){const a=await Be(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function qe(t,a){if(new.target)return ne({component:qe,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),g=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=M(()=>xe(e().name,e().input||{})),y=M(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=ge("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||_e(R,w,!0)}),()=>{n=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var H=p=>{var n=Ze(),w=U(n);{var K=_=>{var m=Ve(),N=U(m);{var D=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=M(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};L(N,x=>{r(Z)?x(D):x(W,-1)})}G(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};L(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),G(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};L(C,p=>{r(d).hidden||p(H)})}return f(t,F),oe(B)}var Ue=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=z('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=z('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=z('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=z('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=z('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=z('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=M(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=M(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=M(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,H)=>se(a,C,H)};{let C=M(()=>k.tiptap_taskStatus_status_tooltip({status:r(B)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(H,p)=>{var n=Je(),w=U(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ue();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},D=s=>{var l=Ge();O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>A(l,"stroke",r(y).stroke)),O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();O(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);O(3,b,()=>$,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);O(3,b,()=>J,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};L(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(D,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}G(n),T(()=>{A(n,"width",i()),A(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),A(K,"id",`half-clip-${g??""}`),A(E,"r",`${r(y).innerCircleRPercentage*.5}%`),A(E,"fill",r(y).fill),A(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${g})`:"none"),A(V,"stroke",r(y).stroke)}),f(H,n)},$$slots:{default:!0}})}return oe(F)}export{qe as A,Re as L,Qe as T,Ee as a,Be as b,pt as g,ct as o,Fe as r,ut as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D3vkMbH6.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/DRWXI2c9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/BEW3Nx_B.js","/app/immutable/chunks/DTCb8Epd.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/BT9muwwL.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/aGrIQKRU.js","/app/immutable/chunks/pJjgPm2r.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as ue,t as ne,bq as v,a_ as L,by as re,b as se,bo as k}from"./DVcxpZob.js";import{Hp as pe}from"./DOX6tqe2.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as M,aA as h,a5 as U,bA as G,b_ as T,aB as P,bl as q,bO as j,bS as S,ca as fe,bH as _e,bV as ge,aC as z}from"./B8o4lNgr.js";import{d as me,f as ve,k as te,a as he,l as ce,s as A}from"./CRLCgacz.js";import{u as Ce,H as O,e as $,A as J}from"./WsKP4LPk.js";import{t as we}from"./Cc_MPyh-.js";import{F as ke}from"./ofkVZzaj.js";import{M as be}from"./BV6v273A.js";import{c as xe}from"./Rw2sIc23.js";import{aL as Te}from"./Jqp5qOVD.js";import{f as Se}from"./C-KminjT.js";function ct(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./D3vkMbH6.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ut(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function pt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Ae=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Le=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Me=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),g=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=M(()=>i()||c()>0||e()>0||u()),R=M(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(n){return Ce(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return g()},set inline(n=!0){g(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),H=X(C);{var p=n=>{var w=Pe(),K=U(w);{var E=_=>{var m=Ie(),N=q(m,!0);T(D=>j(N,D),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Ne(),N=X(m);{var D=s=>{var l=Ae(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(D)})}var Z=S(N,2);{var W=s=>{var l=Le(),b=S(U(l),2),I=q(b,!0);G(l),T(Y=>j(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Me(),b=q(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(K,_=>{u()?_(E):_(V,-1)})}G(w),T(_=>te(w,1,_),[()=>me(ve("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};L(H,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const He=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),De=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Oe=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function ze(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of ze(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||De.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=He.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const g of t.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Oe.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function Be(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function Fe(t){const a=await Be(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function qe(t,a){if(new.target)return ne({component:qe,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),g=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=M(()=>xe(e().name,e().input||{})),y=M(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=ge("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||_e(R,w,!0)}),()=>{n=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var H=p=>{var n=Ze(),w=U(n);{var K=_=>{var m=Ve(),N=U(m);{var D=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=M(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};L(N,x=>{r(Z)?x(D):x(W,-1)})}G(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};L(w,_=>{g()&&_(K)})}var E=S(w,2),V=q(E,!0);he(E,(_,m)=>we?.(_,m),()=>r(R)),G(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};L(C,p=>{r(d).hidden||p(H)})}return f(t,F),oe(B)}var Ue=z('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=z('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=z('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=z('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=z('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=z('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=z('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=M(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=M(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=M(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,H)=>se(a,C,H)};{let C=M(()=>k.tiptap_taskStatus_status_tooltip({status:r(B)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(H,p)=>{var n=Je(),w=U(n),K=q(w),E=S(w),V=S(E),_=S(V);{var m=s=>{},N=s=>{var l=Ue();T(()=>A(l,"stroke",r(y).stroke)),f(s,l)},D=s=>{var l=Ge();O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>A(l,"stroke",r(y).stroke)),O(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();O(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);O(3,b,()=>$,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);O(3,b,()=>J,()=>({tier:"slow"})),O(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};L(_,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(D,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}G(n),T(()=>{A(n,"width",i()),A(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),A(K,"id",`half-clip-${g??""}`),A(E,"r",`${r(y).innerCircleRPercentage*.5}%`),A(E,"fill",r(y).fill),A(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${g})`:"none"),A(V,"stroke",r(y).stroke)}),f(H,n)},$$slots:{default:!0}})}return oe(F)}export{qe as A,Re as L,Qe as T,Ee as a,Be as b,pt as g,ct as o,Fe as r,ut as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as k}from"./
|
|
1
|
+
import{l as k}from"./Bz6PKE7H.js";import{a as m,aP as x,N as O,G as A,ad as p,b as Y,t as J,n as w,u as T,aU as _,aJ as H,B as D,a2 as z,T as F,a1 as X,ar as R,$ as q,a0 as U,aq as W}from"./CWfnIL3Q.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),j=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],u=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&u.add(i),o!==d&&u.add(o)}),u.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,u=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+u;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-u;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}case"top":default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const u=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:u,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};case"top":default:return{x:u,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(u=>{const c=t.edge(u);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:u.v,end:u.w})}else a.push({edge:c,start:u.v,end:u.w})}),d.forEach(u=>{if(u.length!==3){u.forEach(h=>a.push(h));return}u.sort((h,b)=>h.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=u,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){u.forEach(h=>a.push(h));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,u,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const u=e.graph().rankdir;p.trace("Dir in recursive render - dir:",u);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=T(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=j(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const h=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,h.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,h),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,h))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:h,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:h+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;_(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),H(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),u),await z(i,e.node(y),{config:f,dir:u}))})),await m(async()=>{const y=e.edges().map(async function(g){const h=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&h.selfLoop){if(h.selfLoop.order!==1)return;const b={...h.originalEdge,...h,id:h.selfLoop.id,startLabelLeft:h.originalEdge?.startLabelLeft??h.startLabelLeft,startLabelRight:h.originalEdge?.startLabelRight??h.startLabelRight,endLabelLeft:h.originalEdge?.endLabelLeft??h.endLabelLeft,endLabelRight:h.originalEdge?.endLabelRight??h.endLabelRight};await X(s,b),h.width=b.width,h.height=b.height,h.labelStyle=b.labelStyle;return}await X(s,h)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=F(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),k(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const u=a/2;return t.edges=B(r,u,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,u)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:u,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await q(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:u}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(h=>h.y+=s);const E=e.node(n),y=e.node(L),g=U(d,o,w,a,E,y,f);W(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),G=m(t=>{const e=new A({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",u=e.node(d);e.setNode(a,{domId:a,id:a,parentId:u.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,u.parentId),e.setNode(f,{domId:f,id:f,parentId:u.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,u.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",u.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),Y(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??G(t),a=O(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),ce=J({prepareLayout:G,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,G as prepareLayoutForDagre,ce as render,ne as runDagreLayoutCore};
|