@intent-hq/web 2.374.0 → 2.374.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{DM5MJ3Sn.js → 3cKBmyAG.js} +1 -1
- package/web/app/immutable/chunks/{BqB2D1x5.js → 4QO0cu3z.js} +4 -4
- package/web/app/immutable/chunks/{oHriEIAi.js → 5ubKG1fw.js} +2 -2
- package/web/app/immutable/chunks/{ggBdElOR.js → 7u4ZW-_Z.js} +1 -1
- package/web/app/immutable/chunks/{1e1uSG0B.js → 85wf0Cv8.js} +1 -1
- package/web/app/immutable/chunks/{BoaqP5ET.js → A9zSZ8H9.js} +1 -1
- package/web/app/immutable/chunks/{CZoORueB.js → ATfBW89h.js} +1 -1
- package/web/app/immutable/chunks/{Jd-PTJBp.js → B-4SMsb_.js} +3 -3
- package/web/app/immutable/chunks/{wouXHNlM.js → B0GuR3bJ.js} +13 -13
- package/web/app/immutable/chunks/{CSrI4A-Z.js → B1JbKfg-.js} +1 -1
- package/web/app/immutable/chunks/{DLJOBEeO.js → B3U3T8_Z.js} +3 -3
- package/web/app/immutable/chunks/{78vu4B3v.js → B7M-47Is.js} +1 -1
- package/web/app/immutable/chunks/{ygVTpe0W.js → B8jCEPhi.js} +1 -1
- package/web/app/immutable/chunks/{Btxass_5.js → B9BY7BTd.js} +1 -1
- package/web/app/immutable/chunks/{LIjxNVmo.js → BA5rGp3P.js} +1 -1
- package/web/app/immutable/chunks/{D--r5mHa.js → BAUDY8ju.js} +1 -1
- package/web/app/immutable/chunks/{IcK2O8wN.js → BCAvWplY.js} +1 -1
- package/web/app/immutable/chunks/{DCwrIUyt.js → BDX_Xsmi.js} +1 -1
- package/web/app/immutable/chunks/{Z_Zl_SfR.js → BEs8P5qJ.js} +1 -1
- package/web/app/immutable/chunks/{CVKwip72.js → BGUKyP63.js} +1 -1
- package/web/app/immutable/chunks/{BpM87Usm.js → BIkmu8XX.js} +1 -1
- package/web/app/immutable/chunks/{o6BZHHo-.js → BMrvDo7v.js} +1 -1
- package/web/app/immutable/chunks/{DNvCdh98.js → BOf4ykdJ.js} +1 -1
- package/web/app/immutable/chunks/{0Xr6eOOE.js → BPK1anoi.js} +1 -1
- package/web/app/immutable/chunks/{C7CeFFBU.js → BQWRYuYV.js} +1 -1
- package/web/app/immutable/chunks/{C4ERaDtS.js → BTLE7W-J.js} +1 -1
- package/web/app/immutable/chunks/{Dt0cEsoV.js → BVhdEiOI.js} +2 -2
- package/web/app/immutable/chunks/{DUmGlkcv.js → BVpl8e4e.js} +1 -1
- package/web/app/immutable/chunks/{CSiViQVW.js → BXm1LOV6.js} +1 -1
- package/web/app/immutable/chunks/{GfYLoKaL.js → BYoDJRDO.js} +1 -1
- package/web/app/immutable/chunks/{DKOHx2a9.js → B_T-BNgN.js} +2 -2
- package/web/app/immutable/chunks/{DUGzdx5G.js → B_rOdNUT.js} +1 -1
- package/web/app/immutable/chunks/{hjdg1APe.js → BaUyyVaF.js} +2 -2
- package/web/app/immutable/chunks/{CivTzCBV.js → BalRQ77x.js} +1 -1
- package/web/app/immutable/chunks/{DMnVAzAI.js → Bb8U_oXl.js} +1 -1
- package/web/app/immutable/chunks/{CttZcTQ2.js → BcCmxwSj.js} +1 -1
- package/web/app/immutable/chunks/{BIzGfV52.js → BcM59Lcv.js} +1 -1
- package/web/app/immutable/chunks/{BymgwXRn.js → BdtL69yP.js} +1 -1
- package/web/app/immutable/chunks/{DXFg1wKa.js → Be3ctlCz.js} +1 -1
- package/web/app/immutable/chunks/{vE_bc7tB.js → Bg5oaQDG.js} +1 -1
- package/web/app/immutable/chunks/{v1GNktmz.js → BiVcCGFj.js} +3 -3
- package/web/app/immutable/chunks/{DsRXAU7N.js → BiekSSQx.js} +1 -1
- package/web/app/immutable/chunks/{C7QIVjEh.js → Bj-YBxcA.js} +1 -1
- package/web/app/immutable/chunks/{hsWXTUXg.js → Bm8gOyQA.js} +1 -1
- package/web/app/immutable/chunks/{BEtv8tBy.js → Bo-dnNXZ.js} +1 -1
- package/web/app/immutable/chunks/{CCK5TGK5.js → BoIx_pzM.js} +1 -1
- package/web/app/immutable/chunks/{DQPV9Jid.js → Boj7sQg1.js} +1 -1
- package/web/app/immutable/chunks/{D8IZMM7C.js → BsmtfVfM.js} +1 -1
- package/web/app/immutable/chunks/{DGK1iojf.js → BtIGJq9M.js} +1 -1
- package/web/app/immutable/chunks/{Dyo489Aj.js → Bw79RGVy.js} +4 -4
- package/web/app/immutable/chunks/{BNlcBg5q.js → BwxJWPNn.js} +1 -1
- package/web/app/immutable/chunks/{I7PibMUG.js → BzsWb2DZ.js} +1 -1
- package/web/app/immutable/chunks/{CW2YUdJi.js → Bzwng2vU.js} +1 -1
- package/web/app/immutable/chunks/{Opn_u-ak.js → C23BHMTF.js} +1 -1
- package/web/app/immutable/chunks/{Dtfq8wlv.js → C2RXgXeo.js} +1 -1
- package/web/app/immutable/chunks/{B3pPpWYK.js → C7p2lOwL.js} +1 -1
- package/web/app/immutable/chunks/{Cf5H5FW2.js → CAYmzy7n.js} +1 -1
- package/web/app/immutable/chunks/{BoDtRDem.js → CDt7gkIg.js} +1 -1
- package/web/app/immutable/chunks/{BLub_WLN.js → CFd4ikzx.js} +3 -3
- package/web/app/immutable/chunks/{DT6jGD_v.js → CKLF9hRU.js} +2 -2
- package/web/app/immutable/chunks/{xOVHBiMd.js → COUouSsQ.js} +1 -1
- package/web/app/immutable/chunks/{DZLkwu2T.js → CPloqKhj.js} +1 -1
- package/web/app/immutable/chunks/{mln4aKyz.js → CTAiPv85.js} +1 -1
- package/web/app/immutable/chunks/{CuLrgEBU.js → CTKxd-aq.js} +1 -1
- package/web/app/immutable/chunks/{B6z9N_8y.js → CTc2r7_5.js} +1 -1
- package/web/app/immutable/chunks/{Bq5w_10y.js → CVA4h5nu.js} +1 -1
- package/web/app/immutable/chunks/{DhezPe3y.js → CWAFstnw.js} +1 -1
- package/web/app/immutable/chunks/{B7FRjLIO.js → CWdVki31.js} +2 -2
- package/web/app/immutable/chunks/{Dlu7eNjM.js → CY3iiE5t.js} +1 -1
- package/web/app/immutable/chunks/{fvPmV5Gi.js → CYrmrI7Y.js} +2 -2
- package/web/app/immutable/chunks/{Bb4KDW-H.js → C_lt_MLT.js} +1 -1
- package/web/app/immutable/chunks/{BJkBPBON.js → CaA0sSW1.js} +2 -2
- package/web/app/immutable/chunks/{C6a1-Err.js → CeKzyAwj.js} +1 -1
- package/web/app/immutable/chunks/{CWplqerm.js → CgrfkEos.js} +1 -1
- package/web/app/immutable/chunks/{MncpPyA-.js → ColX8Rl-.js} +1 -1
- package/web/app/immutable/chunks/{FC-pHBfg.js → CrkK-7cq.js} +2 -2
- package/web/app/immutable/chunks/{C8hkzPoK.js → CtA5V2Vr.js} +2 -2
- package/web/app/immutable/chunks/{DKBM0Gj4.js → Cyu5F7IF.js} +1 -1
- package/web/app/immutable/chunks/{DcPZVozd.js → D0nMX7Fy.js} +1 -1
- package/web/app/immutable/chunks/{C-hRvbpj.js → D48rWb8_.js} +3 -3
- package/web/app/immutable/chunks/{Bi-OoqI4.js → D4Ynme_h.js} +3 -3
- package/web/app/immutable/chunks/{Dw2_URl8.js → D6KeRVx3.js} +1 -1
- package/web/app/immutable/chunks/{DJsRid9i.js → D6l063h1.js} +1 -1
- package/web/app/immutable/chunks/{D5D__L6c.js → D7zF8mVD.js} +1 -1
- package/web/app/immutable/chunks/{Chgxj7dA.js → D7zs1WNS.js} +1 -1
- package/web/app/immutable/chunks/{CLMgFYIH.js → DApALACW.js} +1 -1
- package/web/app/immutable/chunks/{DWBuWaVE.js → DBwPHDLx.js} +1 -1
- package/web/app/immutable/chunks/{C2eOYH_G.js → DFO9hn7q.js} +1 -1
- package/web/app/immutable/chunks/{DQbaQwzY.js → DHQlFr3x.js} +1 -1
- package/web/app/immutable/chunks/{Dxc-KEkE.js → DJVOcVb6.js} +3 -3
- package/web/app/immutable/chunks/{C-MW647h.js → DJmFFfBr.js} +1 -1
- package/web/app/immutable/chunks/{CN1fsMHu.js → DKqiEltW.js} +1 -1
- package/web/app/immutable/chunks/{DQjZPSYr.js → DVZxKzOj.js} +1 -1
- package/web/app/immutable/chunks/{C3XalDjV.js → DYtp8pRu.js} +1 -1
- package/web/app/immutable/chunks/{DoEVipUF.js → DYw1r29m.js} +1 -1
- package/web/app/immutable/chunks/{8un-1yF0.js → D_Ck4oYy.js} +1 -1
- package/web/app/immutable/chunks/{DHyTxmrF.js → Daka7UwW.js} +1 -1
- package/web/app/immutable/chunks/{4aIDpPwE.js → Daz1QCGS.js} +1 -1
- package/web/app/immutable/chunks/{CbMctCk2.js → DbKwos66.js} +1 -1
- package/web/app/immutable/chunks/{BWtNXuH3.js → DecRlFIH.js} +1 -1
- package/web/app/immutable/chunks/{b7K3kFDW.js → DfmpMhdc.js} +1 -1
- package/web/app/immutable/chunks/{CiEru0ce.js → Dh0g4rYu.js} +1 -1
- package/web/app/immutable/chunks/{BjC_rKsH.js → DhfRQpUa.js} +1 -1
- package/web/app/immutable/chunks/{DeREMpl2.js → DkgA-dp6.js} +1 -1
- package/web/app/immutable/chunks/{B7v8ICP4.js → DwwhuCym.js} +1 -1
- package/web/app/immutable/chunks/{BE1cGlQD.js → DwxO0CzF.js} +1 -1
- package/web/app/immutable/chunks/{CYk_a71f.js → Dx94_CW7.js} +1 -1
- package/web/app/immutable/chunks/{Dl3FDpKM.js → DxHDxHbR.js} +1 -1
- package/web/app/immutable/chunks/{5kmlNoKC.js → IyDGTGib.js} +4 -4
- package/web/app/immutable/chunks/{B4Pcyup-.js → KqnunP55.js} +1 -1
- package/web/app/immutable/chunks/{Qk2Uvykz.js → PAMGn91D.js} +1 -1
- package/web/app/immutable/chunks/{BLM5WEkv.js → YxIlUfko.js} +1 -1
- package/web/app/immutable/chunks/{BIXB2sEM.js → ZxE81vSk.js} +3 -3
- package/web/app/immutable/chunks/{DtYEnzBU.js → _a6vNmVW.js} +1 -1
- package/web/app/immutable/chunks/{DmmbYbmC.js → _zL9bNp2.js} +2 -2
- package/web/app/immutable/chunks/{BHrccWS6.js → d6_ZY1Pu.js} +1 -1
- package/web/app/immutable/chunks/{BlEa7UsU.js → eDLszxKs.js} +1 -1
- package/web/app/immutable/chunks/{PrLg-ksP.js → eMk2ArKz.js} +1 -1
- package/web/app/immutable/chunks/{Dotp5YRU.js → jX0VhUGG.js} +1 -1
- package/web/app/immutable/chunks/{CXwkFfQD.js → jgG3dE9T.js} +1 -1
- package/web/app/immutable/chunks/{BbRVqgQZ.js → k6oRCp56.js} +1 -1
- package/web/app/immutable/chunks/{CPc9hi45.js → piMAhJa1.js} +1 -1
- package/web/app/immutable/chunks/{ZyBOjDmf.js → tNwydG8P.js} +1 -1
- package/web/app/immutable/chunks/{B4on2wzU.js → tnMWXb13.js} +1 -1
- package/web/app/immutable/chunks/{CGvpPKXI.js → x4xTOnLp.js} +1 -1
- package/web/app/immutable/chunks/{CsaKmxO_.js → y-zFXgFQ.js} +1 -1
- package/web/app/immutable/chunks/{DZc-gQMq.js → z37DF9wR.js} +1 -1
- package/web/app/immutable/entry/{app.C3_ct89H.js → app.BbxDhWp9.js} +2 -2
- package/web/app/immutable/entry/start.BnlppRR8.js +1 -0
- package/web/app/immutable/nodes/{0.B60cY-E8.js → 0.DSIplukO.js} +1 -1
- package/web/app/immutable/nodes/{1.Fg7YybpB.js → 1.CXRUG1SB.js} +1 -1
- package/web/app/immutable/nodes/{10.CGBrSCkB.js → 10.DxleRET6.js} +4 -4
- package/web/app/immutable/nodes/{11.CxV9uXd7.js → 11.CbSyrlEM.js} +1 -1
- package/web/app/immutable/nodes/{15.Bh_nopxE.js → 15.keGRwwSO.js} +1 -1
- package/web/app/immutable/nodes/{19.0bOGZuAY.js → 19.NgmHhhjU.js} +2 -2
- package/web/app/immutable/nodes/{2.DREuwjqg.js → 2.BKQlffFF.js} +4 -4
- package/web/app/immutable/nodes/{3.DSIPMWPB.js → 3.Bdi4F8FT.js} +1 -1
- package/web/app/immutable/nodes/{4.CZVyJ7C4.js → 4.AJeYxvcn.js} +1 -1
- package/web/app/immutable/nodes/{5.DND6GJwF.js → 5.Wga00_ld.js} +1 -1
- package/web/app/immutable/nodes/{6.Bk5k_Omu.js → 6.0Su9KBVy.js} +1 -1
- package/web/app/immutable/nodes/{7.DCF-Fawn.js → 7.Dq7qh1Tw.js} +1 -1
- package/web/app/immutable/nodes/{8.aBszzfhj.js → 8.BC8OLPhP.js} +1 -1
- package/web/app/immutable/nodes/{9.Bs6CVTCT.js → 9.BAS_V8so.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BIOjq307.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as v,b as y}from"./
|
|
1
|
+
import{aB as v,b as y}from"./Bw79RGVy.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{t as Dt,bo as h,bw as Bt,b as Ft,bm as g,bp as Hf,bs as ht,bq as la,br as js,b6 as Yl,bj as zf,b9 as Wf,bi as jf,ba as Uf,bf as qf,a$ as Vf,b3 as Kf,bh as Gf,bk as Jf,a_ as Yf,b8 as Xf,b7 as Zf,b1 as Qf,be as $f,bl as eg,bu as Xl,bd as tg,b5 as rg,b4 as ng,b2 as ag,bc as og,bb as sg,bg as ig,b0 as lg,_ as cg}from"./DxxarOOi.js";import{bI as dg,bj as xo,aG as ug,bs as Ht,ca as _t,c0 as jn,aD as e,a7 as mt,ay as De,bS as m,be as rr,b$ as jt,b_ as I,bO as x,W as u,bH as T,c9 as d,a5 as P,bl as L,bA as w,bn as zt,bV as he,aA as b,aB as k,c5 as dn,aC as Ua,bo as Wo,br as Yr,bk as ss,ai as ao,cd as Lo,aw as Tn,a as pg,aj as Nr,c7 as fg,c6 as Zl,bf as Qo,bz as jd}from"./3SdAC2_C.js";import{i as F}from"./DzAQQ1i-.js";import{k as no}from"./ByAetY4P.js";import{g as Lt,h as gg,e as Un,I as is,i as Lr,o as vg,p as mg,f as hg,s as bg}from"./BUT4El0L.js";import{s as cn}from"./C600Ggsz.js";import{c as Cr}from"./CruJ4jyB.js";import{n as Oi}from"./DSjVYlVX.js";import{b as yg,s as se,g as Rn,e as _n,c as ir,f as pt}from"./Ch-D6DCZ.js";import{b as fr}from"./Dn334wJv.js";import{p as Ud,bG as qd,cX as Vd,dT as _g,dF as xg,aI as wg,cG as kg,ac as Ig,d1 as Sg,dE as $o,aN as Us,ce as Cg,R as Eg,b as Pg,a9 as Ql,d7 as Ag,c2 as Tg,X as Rg,dA as Mg,a3 as Lg,dK as Ng,aq as Og,cu as Dg,c_ as Bg,aE as Fg,n as Hg,H as zg}from"./BfdTnj-p.js";import{c as Wg}from"./D-62MVd3.js";import{m as Wn,w as jg,C as Kd,c as Ug,R as qg}from"./DkkzFfYK.js";import{aa as Gd,f as St,ah as Ro,ae as Di}from"./D5eCb9SA.js";import{w as Vg,F as Kg}from"./BfQPFCP7.js";import{T as Gg}from"./xzC0xG4O.js";import{F as Tt,bj as Bi,bO as Jg,aq as Yg,aS as Xg,cQ as Zg,bn as pl,bE as Qg,aI as Jd,aN as fl,d3 as Ts,ad as Fi,cs as $g,ch as ev,cn as gl,cK as vl,bv as tv,e as rv,c3 as $l,cd as nv,cq as av,c$ as Yd,bY as ov,ba as gi,bg as Go,aH as sv,aB as Hi,aw as Xd,be as Zd,bF as iv,B as lv,by as cv,a2 as Qd,b5 as dv,a8 as $d,cl as uv,an as eu,cS as tu,cO as ec,au as ru,aM as tc,cA as pv,cZ as fv,cT as gv,aL as vv,b1 as mv,bR as nu,bp as hv,ap as ml,c9 as rc,aA as bv,ab as yv,a9 as _v}from"./B5yEHkSy.js";import{c as au}from"./ChTqQfQN.js";import{g as xv}from"./BWsFbeUj.js";import{Jq as Nt,bY as wv,sw as nc,t5 as kv,Kg as Iv,Km as Sv,m as ou,J3 as su,nU as iu,o8 as lu,o7 as cu,nN as qs,qw as hl,yE as Cv,vG as Is,uZ as zi,vI as Ev,nB as du,Jv as Pv,tN as Av,oY as uu,rQ as bl,mh as ac,a9 as oc,ri as Tv,re as Rv,rj as Mv,ra as Lv,rg as Nv,vw as Ov,Bm as pu,Bq as fu,o9 as sc,Ag as Dv,Ae as Bv,Ai as Fv,bq as Wi,HO as Hv,I$ as zv,hp as ic,ho as Wv,o3 as jv,wH as Uv,wI as qv,wG as lc,Cl as sa,cD as gu,cr as Vv,xF as Kv,dc as Gv,dj as Jv,Bw as Yv}from"./Zs30783q.js";import{z as vu,I as mu}from"./Bqd7fdCF.js";import{e as cc,i as hu}from"./CL3a4Hm1.js";import{e as dc,d as bu,b as Xv,a as Zv,f as Qv,I as $v}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BaUyyVaF.js","/app/immutable/chunks/DxxarOOi.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Zs30783q.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/50l-lj9m.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C600Ggsz.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/piMAhJa1.js","/app/immutable/chunks/DkkzFfYK.js","/app/immutable/chunks/DzAQQ1i-.js","/app/immutable/chunks/Ch-D6DCZ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D5eCb9SA.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BUT4El0L.js","/app/immutable/chunks/BfQPFCP7.js","/app/immutable/chunks/C0_snm4j.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CruJ4jyB.js","/app/immutable/chunks/ByAetY4P.js","/app/immutable/chunks/BqJSWZOr.js","/app/immutable/chunks/BWsFbeUj.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/B5yEHkSy.js","/app/immutable/chunks/DSjVYlVX.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BfdTnj-p.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CkbzWFJM.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/CYrmrI7Y.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/BmO6NekI.js","/app/immutable/chunks/D1E_1zhz.js","/app/immutable/chunks/CAeNUoVv.js","/app/immutable/chunks/DhNEeuS_.js","/app/immutable/chunks/Hxdz4eYy.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as Dt,bo as h,bw as Bt,b as Ft,bm as g,bp as Hf,bs as ht,bq as la,br as js,b6 as Yl,bj as zf,b9 as Wf,bi as jf,ba as Uf,bf as qf,a$ as Vf,b3 as Kf,bh as Gf,bk as Jf,a_ as Yf,b8 as Xf,b7 as Zf,b1 as Qf,be as $f,bl as eg,bu as Xl,bd as tg,b5 as rg,b4 as ng,b2 as ag,bc as og,bb as sg,bg as ig,b0 as lg,_ as cg}from"./DxxarOOi.js";import{bI as dg,bj as xo,aG as ug,bs as Ht,ca as _t,c0 as jn,aD as e,a7 as mt,ay as De,bS as m,be as rr,b$ as jt,b_ as I,bO as x,W as u,bH as T,c9 as d,a5 as P,bl as L,bA as w,bn as zt,bV as he,aA as b,aB as k,c5 as dn,aC as Ua,bo as Wo,br as Yr,bk as ss,ai as ao,cd as Lo,aw as Tn,a as pg,aj as Nr,c7 as fg,c6 as Zl,bf as Qo,bz as jd}from"./3SdAC2_C.js";import{i as F}from"./DzAQQ1i-.js";import{k as no}from"./ByAetY4P.js";import{g as Lt,h as gg,e as Un,I as is,i as Lr,o as vg,p as mg,f as hg,s as bg}from"./BUT4El0L.js";import{s as cn}from"./C600Ggsz.js";import{c as Cr}from"./CruJ4jyB.js";import{n as Oi}from"./DSjVYlVX.js";import{b as yg,s as se,g as Rn,e as _n,c as ir,f as pt}from"./Ch-D6DCZ.js";import{b as fr}from"./Dn334wJv.js";import{p as Ud,bG as qd,cX as Vd,dT as _g,dF as xg,aI as wg,cG as kg,ac as Ig,d1 as Sg,dE as $o,aN as Us,ce as Cg,R as Eg,b as Pg,a9 as Ql,d7 as Ag,c2 as Tg,X as Rg,dA as Mg,a3 as Lg,dK as Ng,aq as Og,cu as Dg,c_ as Bg,aE as Fg,n as Hg,H as zg}from"./BfdTnj-p.js";import{c as Wg}from"./D-62MVd3.js";import{m as Wn,w as jg,C as Kd,c as Ug,R as qg}from"./DkkzFfYK.js";import{aa as Gd,f as St,ah as Ro,ae as Di}from"./D5eCb9SA.js";import{w as Vg,F as Kg}from"./BfQPFCP7.js";import{T as Gg}from"./xzC0xG4O.js";import{F as Tt,bj as Bi,bO as Jg,aq as Yg,aS as Xg,cQ as Zg,bn as pl,bE as Qg,aI as Jd,aN as fl,d3 as Ts,ad as Fi,cs as $g,ch as ev,cn as gl,cK as vl,bv as tv,e as rv,c3 as $l,cd as nv,cq as av,c$ as Yd,bY as ov,ba as gi,bg as Go,aH as sv,aB as Hi,aw as Xd,be as Zd,bF as iv,B as lv,by as cv,a2 as Qd,b5 as dv,a8 as $d,cl as uv,an as eu,cS as tu,cO as ec,au as ru,aM as tc,cA as pv,cZ as fv,cT as gv,aL as vv,b1 as mv,bR as nu,bp as hv,ap as ml,c9 as rc,aA as bv,ab as yv,a9 as _v}from"./B5yEHkSy.js";import{c as au}from"./ChTqQfQN.js";import{g as xv}from"./BWsFbeUj.js";import{Jq as Nt,bY as wv,sw as nc,t5 as kv,Kg as Iv,Km as Sv,m as ou,J3 as su,nU as iu,o8 as lu,o7 as cu,nN as qs,qw as hl,yE as Cv,vG as Is,uZ as zi,vI as Ev,nB as du,Jv as Pv,tN as Av,oY as uu,rQ as bl,mh as ac,a9 as oc,ri as Tv,re as Rv,rj as Mv,ra as Lv,rg as Nv,vw as Ov,Bm as pu,Bq as fu,o9 as sc,Ag as Dv,Ae as Bv,Ai as Fv,bq as Wi,HO as Hv,I$ as zv,hp as ic,ho as Wv,o3 as jv,wH as Uv,wI as qv,wG as lc,Cl as sa,cD as gu,cr as Vv,xF as Kv,dc as Gv,dj as Jv,Bw as Yv}from"./Zs30783q.js";import{z as vu,I as mu}from"./Bqd7fdCF.js";import{e as cc,i as hu}from"./CL3a4Hm1.js";import{e as dc,d as bu,b as Xv,a as Zv,f as Qv,I as $v}from"./C23BHMTF.js";import{b as yu}from"./Do2AbdMZ.js";/* empty css */import{d as _u,G as xu,R as wu,g as ku,f as em,M as Iu,C as tm,q as yl,l as rm,h as nm,e as am,a as Su,o as om,S as Ao,K as sm}from"./CvP7-iXZ.js";import{D as im,e as lm}from"./50l-lj9m.js";import"./Cncxuk-H.js";import"./euI_ACTK.js";import"./DBI9dTMM.js";import{b as cm}from"./Wu03VY_-.js";import{r as dm}from"./BMT3BZWc.js";import{a6 as um,ck as pm,cm as fm,cl as gm,b3 as vm,b1 as mm,b2 as hm,a4 as bm,am as bs,al as ym,cV as _m,aB as uc,aJ as xm,ak as wm,C as km,i as Im,E as Ss,cW as Sm,aY as pc,c$ as Cm,ah as Em,a9 as Pm,r as Am,p as Tm,aG as Rm,d2 as Mm,cM as Lm,cF as Nm,R as Om,cw as Dm,bU as Bm}from"./Be3ctlCz.js";import{v as Fm,k as Hm,E as zm,l as Wm,V as jm,q as Um,n as qm,A as fc,s as Vm,I as Km,R as Gm,m as Jm,W as Ym,o as Cu,S as Eu,i as Xm,g as gc,f as Zm,e as Qm,j as $m,h as eh,c as vc,r as th}from"./D4Ynme_h.js";import{a as rh}from"./BQWRYuYV.js";import{aA as nh,aH as ah,g as oh,n as sh,aK as ih,K as lh,M as ch,O as dh,at as uh,aD as ph,av as fh}from"./BmO6NekI.js";import{f as gh,e as vh,m as ji,bF as mh,B as hh,bE as bh,bB as yh,ai as mc,bD as _h,be as Ui,ar as xh,k as wh,b4 as kh,q as hc,A as Ih,L as bc}from"./piMAhJa1.js";import{i as Sh,I as No,c as yc}from"./VlOW_lom.js";import{A as Ch,s as Eh}from"./DJVOcVb6.js";import{e as _c,l as xc,M as Pu,m as qi,w as bo}from"./D6KeRVx3.js";import{b as Au}from"./BHhpe04T.js";import{H as Ph}from"./BtLlD_LO.js";import{t as es}from"./DAsc1V4f.js";import{a as Ah}from"./BrfF5NLx.js";import{P as Th}from"./DYME5vl6.js";import{C as Vi}from"./BrrhiHyd.js";import"./BVhdEiOI.js";import{d as Rh,c as Mh}from"./DVK3tNru.js";import{O as Lh,M as Nh}from"./BLKGmMKH.js";import{b3 as Oh,bc as Dh,aM as Bh,bg as Fh,b1 as Hh,bb as zh,b7 as Wh,ag as Do,bi as wc,aZ as jh,b4 as Uh,ba as _l,b5 as xl,a2 as vi,aB as qh,a4 as Vh,be as Kh,aY as Gh,b6 as Jh,b9 as Yh,bl as Xh,bj as Zh,aJ as Tu,u as Qh,s as $h,b8 as eb,a7 as tb,az as rb,aO as nb,M as ab,aN as ob,ah as sb}from"./IyDGTGib.js";import{s as Ki}from"./Cyu5F7IF.js";import{e as kc}from"./CddxYcvS.js";import{M as ib}from"./_rr6nsRq.js";import{s as lb,a as cb}from"./BsieX9dN.js";import{u as wl,w as db,v as Vs,I as ub,A as Ic,e as Bo,d as Fa,J as Sc,c as pb,f as fb,g as Cc,i as gb,b as vb,o as Ru,j as mb,q as Gi,r as hb,O as bb,x as yb,k as Mu,S as _b,N as xb,p as wb,n as Ec,z as kb,s as Ib}from"./CeKzyAwj.js";import{o as Pc,T as mi,a as Sb}from"./CWdVki31.js";import{O as Cb,x as Eb,i as Pb,g as Ab,V as Tb,d as Rb}from"./BXwdEeCG.js";import{D as ts}from"./DKqiEltW.js";import{l as nr,e as Mb,f as Ac,m as Tc}from"./BqJSWZOr.js";import{A as rs}from"./BcubO1aW.js";import"./ZQWbYglS.js";import{h as Lu}from"./BKD7o1lQ.js";import{C as ya}from"./eO_Y6Zjh.js";import{M as Lb}from"./Bw79RGVy.js";/* empty css */import{g as kl}from"./D1F-b1I5.js";import{h as Ji}from"./BaUyyVaF.js";import{f as Rc,d as Nb}from"./BwxJWPNn.js";import{c as Cs}from"./CkJd-nyM.js";import{handleIntentLink as Ob}from"./CrkK-7cq.js";import{a as Mc}from"./DgAgTFcK.js";import{t as Yi}from"./C-BsEdGZ.js";import{s as Db,a as Bb,M as Nu}from"./BiVcCGFj.js";import{b as Fb,k as Hb}from"./DhNEeuS_.js";import{m as zb}from"./Dms_DO28.js";import{showAssistantContent as Wb}from"./5ubKG1fw.js";import{o as Rs,c as jb,n as Ub}from"./BYoDJRDO.js";import{p as qb}from"./_a6vNmVW.js";import{H as Vb}from"./BYqiRSP_.js";import{d as Kb,c as Gb,r as Jb,g as Yb,w as Jo,e as Xb,W as Zb,b as Qb}from"./CFd4ikzx.js";import{A as Lc}from"./BMfEzUyf.js";import{m as $b}from"./A0p6PvBn.js";import{h as ys}from"./DQvmr3ea.js";import{g as ey,e as ty,f as ry,h as ny}from"./B5aYN90J.js";import{T as hi}from"./BuXfbkCo.js";import"./DtVS2Hpo.js";import{S as ja}from"./SqcDn3FF.js";import{O as ay,M as oy,X as sy,J as iy}from"./Hxdz4eYy.js";import{S as Zo,a as Xi,V as ly,b as mo,W as Zi,M as cy,C as dy,R as uy,P as py,y as fy,l as gy,_ as vy,X as my,Z as Nc,U as hy,Y as by}from"./C7PhRIIZ.js";import{D as yy}from"./_NdZi_dM.js";import{a as _y}from"./BQMaTSUT.js";import{a as xy}from"./BdWqymET.js";import{p as wy}from"./BAUDY8ju.js";const ky="intent:inline-visual-draft";function AP(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),o=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),s="`".repeat(Math.max(3,o+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
294
294
|
`,qk=["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"],Ti=96,kd=2e4,Vk=480,Vp=512,Kk=["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 Gk(r,t,n,a,o,s){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const p=(C,D={})=>{window.parent.postMessage({channel:r,type:C,...D},"*")};let i=o?.state??null,f=null,v=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!s(C))return!1;const D=JSON.parse(JSON.stringify(C));return i=D.state,f=D,v||(v=!0,requestAnimationFrame(()=>{v=!1,f&&p("snapshot",{snapshot:f}),f=null})),!0}catch{return!1}}})});let M=!1,_=-1,y=innerHeight,R=Number.NaN,O=0,B=0;const H=()=>{if(M=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const D=innerHeight,K=C-D;if(D>y+1&&K>1&&Math.abs(K-R)<=1?O+=1:(D!==y||K<=1)&&(O=0),y=D,R=K,!B&&O>=3){B=Math.max(a,D);const j="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(j),p("layout",{message:j})}B&&(C=Math.min(C,B)),C!==_&&(_=C,p("resize",{height:C}))},S=()=>{M||(M=!0,requestAnimationFrame(H))},A=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const D=document.documentElement;D.classList.toggle("dark",C.dark),D.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&&D.style.setProperty("--inline-html-root-font-size",K);for(const j of Object.keys(t.variables)){if(j==="--inline-html-root-font-size")continue;const V=C.variables[j];typeof V=="string"&&V.length<512&&D.style.setProperty(j,V)}S()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&A(C.data.theme)});const W=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const D=V=>{const de=getComputedStyle(V);if(V!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(de.overflowY)||/^(hidden|clip)$/.test(de.overflowY))return!1;const X=V.scrollHeight-V.clientHeight;return X>1&&(C.deltaY<0?V.scrollTop>1:V.scrollTop<X-1)};if(C.composedPath().some(V=>V instanceof Element&&D(V))||document.scrollingElement&&D(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,j=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(j)&&(C.preventDefault(),l({deltaY:j}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",W),window.addEventListener("wheel",W,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&p("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const D=C.reason;p("error",{message:String(D instanceof Error?D.message:D).slice(0,300)})}),window.addEventListener("click",C=>{const D=C.target instanceof Element?C.target.closest("a, area"):null;if(!D)return;(D.getAttribute("href")??D.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),A(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(S).observe(document.body),new MutationObserver(S).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",S),document.addEventListener("load",S,!0),document.fonts.ready.then(S),p("ready"),S()},{once:!0})}function Jk(r,t,n,a,o){const s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts"),s.setAttribute("referrerpolicy","no-referrer"),s.title=n,s.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=p=>{const i=p.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",p=>{const i=p.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(p.source===window.parent&&i.type==="theme"){s.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(p.source!==s.contentWindow||p.origin!=="null")){if(i.type==="scroll-port"&&!c&&p.ports.length===1){c=p.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&o(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{s.srcdoc=t,document.body.append(s)},{once:!0})}function Yk(r,t,n,a,o,s,c,l){const p=document.implementation.createHTMLDocument(""),i=p.createElement("template");i.innerHTML=n,p.body.append(i.content);const f=j=>{j.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(V=>V.remove()),j.querySelectorAll("template").forEach(V=>f(V.content)),j.querySelectorAll("a, area").forEach(V=>{for(const de of["href","xlink:href"])V.getAttribute(de)?.startsWith("#")||V.removeAttribute(de);V.removeAttribute("target"),V.removeAttribute("ping"),V.removeAttribute("download")})};f(p);const v=j=>JSON.stringify(j).replace(/</g,"\\u003c"),M=p.createElement("meta");M.httpEquiv="Content-Security-Policy",M.content=r.csp;const _=p.createElement("meta");_.setAttribute("charset","utf-8");const y=p.createElement("style"),R=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
295
295
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";y.textContent=`${R}${r.styles}`;const O=p.createElement("script"),B=v([a,o,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);O.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,p.head.prepend(M,_,y,O);const H=`<!doctype html>${p.documentElement.outerHTML}`,S=document.implementation.createHTMLDocument(""),A=S.createElement("meta");A.httpEquiv="Content-Security-Policy",A.content=r.csp.replace("frame-src 'none'","frame-src about:");const W=S.createElement("meta");W.setAttribute("charset","utf-8");const C=S.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const D=S.createElement("script"),K=v([a,H,s,r.maxScrollDelta]);return D.textContent=`(${r.shell})(...${K}, (${r.validate}));`,S.head.prepend(A,W,C,D),`<!doctype html>${S.documentElement.outerHTML}`}const Xk=()=>({csp:Kk,styles:Uk,maxScrollDelta:Vp,lockHeight:Vk,bridge:Gk.toString(),shell:Jk.toString(),validate:bl.toString()});function Zk(r,t,n,a,o=null,s=""){return Yk(Xk(),bl,r,t,n,a,o,s)}function Id(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(qk.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function Qk(r,t,n,a,o=null){return Zk(r,t,n,a,o,jk)}var $k=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),e2=k('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),t2=k('<p class="sr-only" role="status"> </p>'),r2=k('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),n2=k('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),a2=k('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),o2=k('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),s2=k('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),i2=k('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),l2=k('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),c2=k('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),d2=k('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),u2=k('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),p2=k("<!> <!>",1),f2=k('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function Kp(r,t){if(new.target)return Dt({component:Kp,...r});Ht(t,!0);const n=720,a=1e4;let o=h(t,"source",7),s=h(t,"isStreaming",7,!1),c=h(t,"isComplete",7,!0),l=h(t,"record",7),p=h(t,"storageStatus",7,"ready"),i=h(t,"onRecordChange",7),f=h(t,"onUseConfiguration",7),v=h(t,"onExport",7),M=h(t,"onRetry",7),_=h(t,"storageError",7),y=h(t,"exportStatus",7),R=h(t,"exportPath",7),O=h(t,"exportError",7),B,H=he(void 0),S=he(!1),A=he(!1),W=he(0),C=he(""),D=he(""),K=he(!1),j=he(""),V=he(Yr(Ti)),de=he(n),X=he(""),be=he(ac()),ce=he(void 0),Ee=he(void 0),le,Pe=he(void 0),re=he(!1);const Q=d(()=>l()??e(be)),xe=d(()=>e(Ee)!==void 0&&e(ce)!==void 0&&!zb(e(Ee),e(ce).inputs)),te=d(()=>p()!=="loading"&&(p()!=="error"||!!e(Q).current)),Me=d(()=>!s()&&c()&&!!o().trim()&&e(te)),Je=d(()=>Math.min(kd,Math.max(Ti,e(V)))),Ke=d(()=>s()||p()==="loading"?"loading":c()?o().trim()?e(j)?"error":e(K)?"ready":"loading":"empty":"incomplete"),Z=d(()=>s()||p()==="loading"||e(Me)&&!e(K)&&!e(j)),$=d(()=>om([{id:"source",label:e(A)?Wf():jf()},{id:"reload",label:Uf(),disabled:!e(Me)},{id:"save",label:qf(),when:!!(e(ce)&&e(Me)),disabled:!e(K)||!!e(j)||e(Q).scenarios.length>=oc,group:"configuration"},{id:"compare",label:Vf(),when:!!(e(ce)&&e(Me)&&e(Q).scenarios.length),group:"configuration"},{id:"export",label:Kf(),when:!!(e(ce)&&e(Me)&&v()),disabled:!e(K)||y()==="saving",group:"configuration"}]));function we(ue){ue==="source"?T(A,!e(A)):ue==="reload"?T(W,e(W)+1):ue==="save"?J():ue==="compare"?T(re,!e(re)):ue==="export"&&v()?.({...e(Q),current:e(ce)??null})}function z(ue){const Te={...ue,current:e(ce)??ue.current};T(be,Te),i()?.(Te)}function J(){const ue=e(ce);!ue||e(Q).scenarios.length>=oc||(z({...e(Q),scenarios:[...e(Q).scenarios,{id:crypto.randomUUID(),name:Gf({number:Tc(e(Q).scenarios.length+1)}),snapshot:structuredClone(ue)}]}),T(re,!0))}function G(ue,Te){const Qe=Te.trim().slice(0,120);Qe&&z({...e(Q),scenarios:e(Q).scenarios.map(gt=>gt.id===ue?{...gt,name:Qe}:gt)})}function ie(ue){const Te=structuredClone(ue);T(ce,Te),T(Pe,Te),z({...e(Q),current:Te}),T(W,e(W)+1)}function Ie(ue){return typeof ue=="number"?Tc(ue):typeof ue=="string"?ue:JSON.stringify(ue)}function Le(){!e(H)?.contentWindow||!e(D)||e(H).contentWindow.postMessage({channel:e(D),type:"theme",theme:Id(B)},"*")}function ee(ue){let Te=B.parentElement;for(;Te;){const Qe=getComputedStyle(Te),gt=Te.scrollHeight-Te.clientHeight;if(/^(auto|scroll|overlay)$/.test(Qe.overflowY)&>>1){if(ue<0?Te.scrollTop>0:Te.scrollTop<gt){Te.dispatchEvent(new WheelEvent("wheel",{deltaY:ue,bubbles:!0})),Te.scrollTop+=ue;return}if(/^(contain|none)$/.test(Qe.overscrollBehaviorY))return}Te=Te.parentElement}window.scrollBy({top:ue,behavior:"instant"})}_t(()=>{if(!e(S))return;const ue=o(),Te=e(Me);e(W),dn(()=>{le!==ue&&(T(be,ac()),T(ce,void 0),T(Ee,void 0),T(re,!1),T(Pe,void 0),le=ue),T(K,!1),T(j,""),T(X,""),T(V,Ti,!0),T(D,crypto.randomUUID(),!0),T(C,Te?Qk(ue,e(D),Id(B),Yl(),e(Pe)??e(ce)??e(Q).current):"",!0),T(Pe,void 0)})}),_t(()=>{if(!e(C)||e(K)||e(j))return;const ue=setTimeout(()=>{T(j,zf(),!0)},a);return()=>clearTimeout(ue)}),ss(()=>{T(S,!0);const ue=ut=>{if(ut.source!==e(H)?.contentWindow||ut.origin!=="null")return;const at=ut.data;if(!(!at||typeof at!="object"||at.channel!==e(D))){if(at.type==="bootstrap"){e(H)?.contentWindow?.postMessage({channel:e(D),type:"initialize",documentHtml:e(C)},"*");return}if(at.type==="resize"&&typeof at.height=="number"&&Number.isFinite(at.height)&&at.height>=0)T(V,Math.min(kd,Math.ceil(at.height)),!0);else if(at.type==="ready")T(K,!0),Le();else if(at.type==="error"&&typeof at.message=="string")T(j,at.message.slice(0,300),!0);else if(at.type==="layout"&&typeof at.message=="string")T(X,at.message.slice(0,300),!0);else if(at.type==="snapshot"&&e(Me)&&bl(at.snapshot)){const Et=at.snapshot;T(Ee,e(Ee)??structuredClone(Et.inputs)),T(ce,Et),z({...e(Q),current:Et})}else at.type==="wheel"&&e(K)&&e(Me)&&!e(A)&&!e(Z)&&typeof at.deltaY=="number"&&Number.isFinite(at.deltaY)&&at.deltaY!==0&&Math.abs(at.deltaY)<=Vp&&ee(at.deltaY)}},Te=()=>{T(de,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Qe=new MutationObserver(Le);Qe.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const gt=window.matchMedia("(prefers-color-scheme: dark)");return gt.addEventListener("change",Le),window.addEventListener("message",ue),window.addEventListener("resize",Te),Te(),()=>{Qe.disconnect(),gt.removeEventListener("change",Le),window.removeEventListener("message",ue),window.removeEventListener("resize",Te)}});var ne={get source(){return o()},set source(ue){o(ue),b()},get isStreaming(){return s()},set isStreaming(ue=!1){s(ue),b()},get isComplete(){return c()},set isComplete(ue=!0){c(ue),b()},get record(){return l()},set record(ue){l(ue),b()},get storageStatus(){return p()},set storageStatus(ue="ready"){p(ue),b()},get onRecordChange(){return i()},set onRecordChange(ue){i(ue),b()},get onUseConfiguration(){return f()},set onUseConfiguration(ue){f(ue),b()},get onExport(){return v()},set onExport(ue){v(ue),b()},get onRetry(){return M()},set onRetry(ue){M(ue),b()},get storageError(){return _()},set storageError(ue){_(ue),b()},get exportStatus(){return y()},set exportStatus(ue){y(ue),b()},get exportPath(){return R()},set exportPath(ue){R(ue),b()},get exportError(){return O()},set exportError(ue){O(ue),b()},$set:Bt,$on:(ue,Te)=>Ft(t,ue,Te)},Se=f2(),Ye=P(Se);{var ye=ue=>{var Te=e2(),Qe=De(Te),gt=P(Qe),ut=L(gt,!0),at=m(gt,2);{var Et=Rt=>{St(Rt,{variant:"ghost",size:"sm",get onclick(){return M()},children:(Gt,ar)=>{rr();var qt=jt();I(Oe=>x(qt,Oe),[()=>tg()]),u(Gt,qt)},$$slots:{default:!0}})};F(at,Rt=>{M()&&Rt(Et)})}w(Qe);var wt=m(Qe,2);{var kt=Rt=>{var Gt=$k(),ar=L(Gt,!0);I(()=>x(ar,_())),u(Rt,Gt)};F(wt,Rt=>{_()&&Rt(kt)})}I(Rt=>x(ut,Rt),[()=>Jf()]),u(ue,Te)};F(Ye,ue=>{p()==="error"&&ue(ye)})}var Ae=m(Ye,2);{var Y=ue=>{var Te=t2(),Qe=L(Te,!0);I(gt=>x(Qe,gt),[()=>s()?Yf():Xf()]),u(ue,Te)},Ce=ue=>{var Te=r2(),Qe=L(Te,!0);I(gt=>x(Qe,gt),[()=>c()?Qf():Zf()]),u(ue,Te)},pe=ue=>{var Te=n2(),Qe=P(Te),gt=L(Qe,!0),ut=m(Qe,2),at=L(ut,!0);w(Te),I(Et=>{x(gt,Et),x(at,e(j))},[()=>$f()]),u(ue,Te)};F(Ae,ue=>{e(Z)?ue(Y):e(Me)?e(j)&&ue(pe,2):ue(Ce,1)})}var N=m(Ae,2),q=P(N);{var _e=ue=>{var Te=mt(),Qe=De(Te);no(Qe,()=>e(D),gt=>{var ut=a2();let at,Et;fr(ut,wt=>T(H,wt),()=>e(H)),I(wt=>{se(ut,"title",wt),se(ut,"src",`/inline-html-sandbox.html#${e(D)}`),at=pt(ut,1,"block w-full border-0 svelte-1kkow1d",null,at,{"preview-hidden":e(A)||!e(K)}),se(ut,"aria-hidden",e(A)||!e(K)),Et=Rn(ut,"",Et,{height:`${e(Je)}px`})},[()=>Yl()]),u(gt,ut)}),u(ue,Te)};F(q,ue=>{e(Me)&&e(C)&&ue(_e)})}var qe=m(q,2);{var Ne=ue=>{ya(ue,{get code(){return o()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(de)}})},Ve=ue=>{var Te=o2(),Qe=P(Te),gt=P(Qe);Ao(gt,{class:"h-4 w-32 max-w-1/2"});var ut=m(gt,2);Ao(ut,{class:"h-3 w-2/3"}),w(Qe);var at=m(Qe,2);Ao(at,{class:"aspect-video max-h-60 w-full rounded-lg"});var Et=m(at,2),wt=P(Et);Ao(wt,{class:"h-3 w-16"});var kt=m(wt,2);Ao(kt,{class:"h-2 min-w-0 flex-1"});var Rt=m(kt,2);Ao(Rt,{class:"h-3 w-10"}),w(Et),w(Te),u(ue,Te)};F(qe,ue=>{e(A)?ue(Ne):e(Z)&&ue(Ve,1)})}w(N);var Ge=m(N,2),lt=P(Ge);{var bt=ue=>{{let Te=d(()=>!e(K)||!!e(j));St(ue,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Gi} ${hb} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Te)},onclick:()=>e(ce)&&f()(e(ce)),children:(Qe,gt)=>{var ut=s2(),at=De(ut),Et=P(at);Tt(Et,{get icon(){return Qd},size:16,get class(){return Fa}}),w(at);var wt=m(at,2),kt=L(wt,!0);I(Rt=>{pt(at,1,`${Bo??""} mt-px self-start`,"svelte-1kkow1d"),x(kt,Rt)},[()=>eg()]),u(Qe,ut)},$$slots:{default:!0}})}};F(lt,ue=>{e(ce)&&e(xe)&&e(Me)&&f()&&!e(A)&&ue(bt)})}var xt=m(lt,2);{const ue=(Qe,gt)=>{let ut=()=>(gt?.()).props;{let at=d(()=>Xl());St(Qe,js(ut,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(at)},children:(Et,wt)=>{Tt(Et,{get icon(){return dv},size:16})},$$slots:{default:!0}}))}};let Te=d(()=>Xl());Su(xt,{get actions(){return e($)},get ariaLabel(){return e(Te)},align:"end",side:"top",onAction:we,trigger:ue,$$slots:{trigger:!0}})}w(Ge);var Kt=m(Ge,2);{var Ct=ue=>{var Te=p2(),Qe=De(Te);{var gt=Et=>{var wt=i2(),kt=P(wt),Rt=m(kt);{var Gt=ar=>{var qt=jt();I(()=>x(qt,O())),u(ar,qt)};F(Rt,ar=>{y()==="error"&&O()&&ar(Gt)})}w(wt),I(ar=>x(kt,`${ar??""} `),[()=>y()==="saving"?rg():y()==="saved"?ng({path:R()??""}):ag()]),u(Et,wt)};F(Qe,Et=>{y()&&Et(gt)})}var ut=m(Qe,2);{var at=Et=>{var wt=u2(),kt=P(wt),Rt=P(kt),Gt=P(Rt),ar=P(Gt),qt=L(ar,!0),Oe=m(ar),fe=L(Oe,!0),Ze=m(Oe);Lt(Ze,17,()=>e(Q).scenarios,nt=>nt.id,(nt,Fe)=>{var oe=l2(),ke=P(oe);{let ze=d(()=>ig());No(ke,{get value(){return e(Fe).name},get"aria-label"(){return e(ze)},maxlength:120,onblur:He=>{He.currentTarget.value.trim()||(He.currentTarget.value=e(Fe).name),G(e(Fe).id,He.currentTarget.value)},onkeydown:He=>{He.key==="Enter"&&He.currentTarget.blur(),He.key==="Escape"&&(He.currentTarget.value=e(Fe).name,He.currentTarget.blur())}})}var ge=m(ke,2),Be=P(ge);St(Be,{variant:"ghost",size:"sm",onclick:()=>ie(e(Fe).snapshot),children:(ze,He)=>{rr();var Xe=jt();I($e=>x(Xe,$e),[()=>og()]),u(ze,Xe)},$$slots:{default:!0}});var ve=m(Be,2);St(ve,{variant:"ghost",size:"sm",onclick:()=>z({...e(Q),scenarios:e(Q).scenarios.filter(ze=>ze.id!==e(Fe).id)}),children:(ze,He)=>{rr();var Xe=jt();I($e=>x(Xe,$e),[()=>sg()]),u(ze,Xe)},$$slots:{default:!0}}),w(ge),w(oe),u(nt,oe)}),w(Gt),w(Rt);var it=m(Rt);Lt(it,20,()=>["inputs","results"],Lr,(nt,Fe)=>{const oe=d(()=>Fe),ke=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(oe)]),...e(Q).scenarios.flatMap(ve=>Object.keys(ve.snapshot[e(oe)]))])));var ge=mt(),Be=De(ge);Lt(Be,16,()=>e(ke),ve=>ve,(ve,ze)=>{var He=d2(),Xe=P(He),$e=L(Xe,!0),We=m(Xe);Lt(We,17,()=>[e(ce),...e(Q).scenarios.map(et=>et.snapshot)],Lr,(et,je)=>{var tt=c2(),rt=L(tt,!0);I(st=>x(rt,st),[()=>Object.hasOwn(e(je)[e(oe)],ze)?Ie(e(je)[e(oe)][ze]):"—"]),u(et,tt)}),w(He),I(()=>x($e,ze)),u(ve,He)}),u(nt,ge)}),w(it),w(kt),w(wt),I(nt=>{x(qt,e(ce).title),x(fe,nt)},[()=>lg()]),u(Et,wt)};F(ut,Et=>{e(re)&&e(Q).scenarios.length&&Et(at)})}u(ue,Te)};F(Kt,ue=>{e(ce)&&e(Me)&&ue(Ct)})}return w(Se),fr(Se,ue=>B=ue,()=>B),I(()=>{se(Se,"data-inline-html-status",e(Ke)),se(Se,"data-inline-html-layout",e(X)?"viewport-locked":void 0),se(Se,"aria-busy",e(Z))}),u(r,Se),zt(ne)}var g2=k('<div class="w-full min-w-0"><!></div>');function v2(r,t){if(new.target)return Dt({component:v2,...r});Ht(t,!0);const n=()=>ht(e(_),"$agent$",o),a=()=>ht(e(B),"$entry$",o),[o,s]=la();let c=h(t,"block",7),l=h(t,"role",7),p=h(t,"workspaceId",7),i=h(t,"agentId",7),f=h(t,"messageId",7),v=h(t,"contentBlockKey",7,""),M=he(void 0);const _=d(()=>Us(i()??"")),y=d(()=>l()==="assistant"&&p()&&i()&&f()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!uu(n())?{workspaceId:p(),agentId:i(),messageId:f(),blockKey:JSON.stringify([v(),c().metadata?.fenceStart??0]),source:c().content}:void 0),R=d(()=>!!(p()&&i()&&f()&&c().metadata?.fenceClosed&&!n())),O=d(()=>e(y)?Nv(e(y)):""),B=d(()=>Hh(e(O)));_t(()=>{e(y)&&Nt.dispatch(Tv(e(y)))});function H(j){!p()||!i()||n()?.retiredAt||e(M)?.dispatchEvent(new CustomEvent(ky,{bubbles:!0,detail:{workspaceId:p(),agentId:i(),snapshot:j}}))}var S={get block(){return c()},set block(j){c(j),b()},get role(){return l()},set role(j){l(j),b()},get workspaceId(){return p()},set workspaceId(j){p(j),b()},get agentId(){return i()},set agentId(j){i(j),b()},get messageId(){return f()},set messageId(j){f(j),b()},get contentBlockKey(){return v()},set contentBlockKey(j=""){v(j),b()},$set:Bt,$on:(j,V)=>Ft(t,j,V)},A=mt(),W=De(A);{var C=j=>{var V=g2(),de=P(V);{let X=d(()=>c().metadata?.isStreaming??!1),be=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Ee=d(()=>e(y)?a()?.status??"loading":e(R)?"loading":"ready"),le=d(()=>a()?.error),Pe=d(()=>e(y)?Ke=>Nt.dispatch(Lv(e(O),Ke)):void 0),re=d(()=>p()&&i()&&n()&&!n().retiredAt?H:void 0),Q=d(()=>e(y)?()=>Nt.dispatch(Mv(e(O))):void 0),xe=d(()=>e(y)?Ke=>Nt.dispatch(Rv(e(O),crypto.randomUUID(),Ke)):void 0),te=d(()=>a()?.export?.status),Me=d(()=>a()?.export?.path),Je=d(()=>a()?.export?.error);Kp(de,{get source(){return c().content},get isStreaming(){return e(X)},get isComplete(){return e(be)},get record(){return e(ce)},get storageStatus(){return e(Ee)},get storageError(){return e(le)},get onRecordChange(){return e(Pe)},get onUseConfiguration(){return e(re)},get onRetry(){return e(Q)},get onExport(){return e(xe)},get exportStatus(){return e(te)},get exportPath(){return e(Me)},get exportError(){return e(Je)}})}w(V),fr(V,X=>T(M,X),()=>e(M)),u(j,V)},D=j=>{ya(j,{get code(){return c().content},language:"html"})};F(W,j=>{l()==="assistant"?j(C):j(D,-1)})}u(r,A);var K=zt(S);return s(),K}var m2=k('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function h2(r,t){if(new.target)return Dt({component:h2,...r});Ht(t,!0);let n=h(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),b()},$set:Bt,$on:(c,l)=>Ft(t,c,l)},o=m2(),s=L(o,!0);return I(()=>x(s,n())),u(r,o),zt(a)}var b2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),y2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),_2=k('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),x2=k('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),w2=k('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function k2(r,t){if(new.target)return Dt({component:k2,...r});Ht(t,!0);let n=h(t,"scripts",7);var a={get scripts(){return n()},set scripts(_){n(_),b()},$set:Bt,$on:(_,y)=>Ft(t,_,y)},o=w2(),s=P(o),c=P(s);Tt(c,{get icon(){return Yd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),p=L(l,!0);w(s);var i=m(s,2);Lt(i,21,n,_=>_.name+_.command,(_,y)=>{var R=x2(),O=P(R),B=P(O),H=P(B),S=L(H,!0),A=m(H,2);{var W=de=>{var X=b2(),be=L(X,!0);I(ce=>x(be,ce),[()=>g.chat_detectedScripts_service_badge()]),u(de,X)},C=de=>{var X=y2(),be=L(X,!0);I(ce=>x(be,ce),[()=>g.chat_detectedScripts_command_badge()]),u(de,X)};F(A,de=>{e(y).mode==="service"?de(W):de(C,-1)})}var D=m(A,2);{var K=de=>{var X=_2(),be=L(X,!0);I(()=>x(be,e(y).category)),u(de,X)};F(D,de=>{e(y).category&&e(y).category!=="other"&&de(K)})}w(B);var j=m(B,2),V=L(j,!0);w(O),w(R),I(()=>{x(S,e(y).name),x(V,e(y).command)}),u(_,R)}),w(i);var f=m(i,2),v=P(f),M=L(v,!0);return w(f),w(o),I((_,y)=>{x(p,_),x(M,y)},[()=>g.chat_detectedScripts_title(),()=>n().length===1?g.chat_detectedScripts_count_one({count:nr(n().length)}):g.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,o),zt(a)}function I2(r,t){if(new.target)return Dt({component:I2,...r});Ht(t,!0);let n=h(t,"diff",7),a=h(t,"filePath",7),o=h(t,"language",7),s=h(t,"onApply",7),c=h(t,"onReject",7);function l(){s()?.(),Wn.success(g.chat_diffViewer_applied_toast())}function p(){c()?.(),Wn.info(g.chat_diffViewer_rejected_toast())}const i=d(()=>{const v=[];return s()&&v.push({label:g.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&v.push({label:g.chat_diffViewer_reject_label(),variant:"danger",onClick:p}),v});var f={get diff(){return n()},set diff(v){n(v),b()},get filePath(){return a()},set filePath(v){a(v),b()},get language(){return o()},set language(v){o(v),b()},get onApply(){return s()},set onApply(v){s(v),b()},get onReject(){return c()},set onReject(v){c(v),b()},$set:Bt,$on:(v,M)=>Ft(t,v,M)};{let v=d(()=>a()||g.chat_diffViewer_suggestedChanges_fallback());ts(r,{get patch(){return n()},get fileName(){return e(v)},get language(){return o()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return zt(f)}var S2=Ua('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Sd=Ua("<circle></circle>"),C2=Ua('<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>'),E2=k('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function As(r,t){if(new.target)return Dt({component:As,...r});Ht(t,!0);let n=h(t,"phase",7),a=h(t,"progress",7,0),o=h(t,"size",7,16),s=h(t,"class",7,""),c=d(()=>o()/2),l=d(()=>e(c)),p=d(()=>e(c)),i=d(()=>o()*.12),f=d(()=>e(c)-e(i)/2),v=d(()=>e(c)*.35),M=d(()=>2*Math.PI*e(v)),_=d(()=>Math.max(0,Math.min(1,a()))*e(M));const y={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let R=d(()=>y[n()]||"currentColor");var O={get phase(){return n()},set phase(X){n(X),b()},get progress(){return a()},set progress(X=0){a(X),b()},get size(){return o()},set size(X=16){o(X),b()},get class(){return s()},set class(X=""){s(X),b()},$set:Bt,$on:(X,be)=>Ft(t,X,be)},B=E2(),H=P(B),S=P(H),A=m(S);{var W=X=>{},C=X=>{var be=S2();I(()=>{se(be,"cx",e(l)),se(be,"cy",e(p)),se(be,"r",e(v)*.8),se(be,"stroke",e(R)),se(be,"stroke-width",e(v)*1.5),se(be,"stroke-dasharray",`${e(_)??""} ${e(M)??""}`),se(be,"stroke-dashoffset",e(M)*.25),se(be,"transform",`rotate(-90 ${e(l)??""} ${e(p)??""})`)}),u(X,be)},D=X=>{var be=Sd();I(()=>{se(be,"cx",e(l)),se(be,"cy",e(p)),se(be,"r",e(f)*.6),se(be,"fill",e(R))}),u(X,be)},K=X=>{var be=Sd();I(()=>{se(be,"cx",e(l)),se(be,"cy",e(p)),se(be,"r",e(f)),se(be,"fill",e(R))}),u(X,be)};F(A,X=>{n()==="planning"?X(W):n()==="building"?X(C,1):n()==="reviewing"?X(D,2):n()==="shipped"&&X(K,3)})}w(H);var j=m(H,2);{var V=X=>{},de=X=>{var be=C2();I(()=>se(be,"width",o()*.5)),u(X,be)};F(j,X=>{n()==="reviewing"?X(V):n()==="shipped"&&X(de,1)})}return w(B),I(()=>{se(H,"width",o()),se(H,"height",o()),se(H,"viewBox",`0 0 ${o()??""} ${o()??""}`),pt(H,0,ir(s())),se(S,"cx",e(l)),se(S,"cy",e(p)),se(S,"r",e(f)),se(S,"stroke",e(R)),se(S,"stroke-width",e(i))}),u(r,B),zt(O)}var Cd=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),P2=k('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Ed=k('<span class="text-ui text-subtle truncate"> </span>'),Pd=k('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Ad=k('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),A2=k('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),T2=k('<span class="text-ui text-subtle pl-4"> </span>'),R2=k('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),M2=k('<div class="text-ui text-subtle"> </div>'),L2=k("<!> <!> <!> <!>",1),N2=k('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),O2=k('<div class="rounded-[0.5px]"></div>');function Gp(r,t){if(new.target)return Dt({component:Gp,...r});Ht(t,!0);let n=h(t,"stats",7),a=h(t,"tasks",23,()=>[]),o=h(t,"maxBars",7,20),s=h(t,"barWidth",7,"1px"),c=h(t,"barHeight",7,"16px"),l=h(t,"gap",7,"1px"),p=h(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let f=d(()=>{const{completed:A,inProgress:W,notStarted:C,total:D}=n();if(D===0)return[];const K=[...Array(A).fill("completed"),...Array(W).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=o()?K:K.slice(K.length-o())}),v=d(()=>a().filter(A=>A.status==="complete")),M=d(()=>a().filter(A=>A.status==="in_progress"||A.status==="review_required")),_=d(()=>a().filter(A=>A.status!=="complete"&&A.status!=="in_progress"&&A.status!=="review_required"&&A.status!=="cancelled")),y=d(()=>a().filter(A=>A.status==="cancelled")),R=d(()=>a().length>0);var O={get stats(){return n()},set stats(A){n(A),b()},get tasks(){return a()},set tasks(A=[]){a(A),b()},get maxBars(){return o()},set maxBars(A=20){o(A),b()},get barWidth(){return s()},set barWidth(A="1px"){s(A),b()},get barHeight(){return c()},set barHeight(A="16px"){c(A),b()},get gap(){return l()},set gap(A="1px"){l(A),b()},get class(){return p()},set class(A){p(A),b()},$set:Bt,$on:(A,W)=>Ft(t,A,W)},B=mt(),H=De(B);{var S=A=>{Di(A,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var D=N2(),K=P(D),j=P(K),V=L(j,!0),de=m(j,2),X=P(de);{var be=xe=>{var te=Cd(),Me=P(te);Rn(Me,"",{},{"background-color":"#22c55e"});var Je=m(Me);w(te),I(()=>x(Je,` ${n().completed??""}`)),u(xe,te)};F(X,xe=>{n().completed>0&&xe(be)})}var ce=m(X,2);{var Ee=xe=>{var te=Cd(),Me=P(te);Rn(Me,"",{},{"background-color":"#4F7BF7"});var Je=m(Me);w(te),I(()=>x(Je,` ${n().inProgress??""}`)),u(xe,te)};F(ce,xe=>{n().inProgress>0&&xe(Ee)})}var le=m(ce,2);{var Pe=xe=>{var te=P2(),Me=m(P(te));w(te),I(()=>x(Me,` ${n().notStarted??""}`)),u(xe,te)};F(le,xe=>{n().notStarted>0&&xe(Pe)})}w(de),w(K);var re=m(K,2);{var Q=xe=>{var te=L2(),Me=De(te);Lt(Me,17,()=>e(M),Lr,(z,J)=>{var G=Ad(),ie=P(G),Ie=P(ie);mi(Ie,{get status(){return e(J).status},size:14}),w(ie);var Le=m(ie,2),ee=P(Le),ne=L(ee,!0),Se=m(ee,2);{var Ye=ye=>{var Ae=Pd(),Y=P(Ae);{let N=d(()=>e(J).agentState||"idle");Lc(Y,{get agentId(){return e(J).agentId},get state(){return e(N)},size:12,get specialist(){return e(J).agentSpecialist}})}var Ce=m(Y,2);{var pe=N=>{var q=Ed(),_e=L(q,!0);I(()=>x(_e,e(J).agentName)),u(N,q)};F(Ce,N=>{e(J).agentName&&N(pe)})}w(Ae),u(ye,Ae)};F(Se,ye=>{e(J).agentId&&ye(Ye)})}w(Le),w(G),I(()=>x(ne,e(J).title)),u(z,G)});var Je=m(Me,2);Lt(Je,17,()=>e(_),Lr,(z,J)=>{var G=Ad(),ie=P(G),Ie=P(ie);mi(Ie,{get status(){return e(J).status},size:14}),w(ie);var Le=m(ie,2),ee=P(Le),ne=L(ee,!0),Se=m(ee,2);{var Ye=ye=>{var Ae=Pd(),Y=P(Ae);{let N=d(()=>e(J).agentState||"idle");Lc(Y,{get agentId(){return e(J).agentId},get state(){return e(N)},size:12,get specialist(){return e(J).agentSpecialist}})}var Ce=m(Y,2);{var pe=N=>{var q=Ed(),_e=L(q,!0);I(()=>x(_e,e(J).agentName)),u(N,q)};F(Ce,N=>{e(J).agentName&&N(pe)})}w(Ae),u(ye,Ae)};F(Se,ye=>{e(J).agentId&&ye(Ye)})}w(Le),w(G),I(()=>x(ne,e(J).title)),u(z,G)});var Ke=m(Je,2);{var Z=z=>{var J=R2(),G=P(J);Lt(G,17,()=>e(v).slice(0,3),Lr,(Le,ee)=>{var ne=A2(),Se=P(ne),Ye=P(Se);mi(Ye,{status:"complete",size:12}),w(Se);var ye=m(Se,2),Ae=L(ye,!0);w(ne),I(()=>x(Ae,e(ee).title)),u(Le,ne)});var ie=m(G,2);{var Ie=Le=>{var ee=T2(),ne=L(ee,!0);I(Se=>x(ne,Se),[()=>g.workspace_taskProgressBar_moreCompleted_label({count:nr(e(v).length-3)})]),u(Le,ee)};F(ie,Le=>{e(v).length>3&&Le(Ie)})}w(J),u(z,J)};F(Ke,z=>{e(v).length>0&&z(Z)})}var $=m(Ke,2);{var we=z=>{var J=M2(),G=L(J,!0);I(ie=>x(G,ie),[()=>g.workspace_taskProgressBar_cancelled_label({count:nr(e(y).length)})]),u(z,J)};F($,z=>{e(y).length>0&&z(we)})}u(xe,te)};F(re,xe=>{e(R)&&xe(Q)})}w(D),I(xe=>x(V,xe),[()=>g.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(C,D)},children:(C,D)=>{{let K=d(()=>_n("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",p())),j=d(()=>`gap: ${l()}`),V=d(()=>g.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));St(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(j)},get"aria-label"(){return e(V)},"data-task-progress-trigger":!0,children:(de,X)=>{var be=mt(),ce=De(be);Lt(ce,17,()=>e(f),Lr,(Ee,le)=>{var Pe=O2();let re;I(()=>re=Rn(Pe,"",re,{width:s(),height:c(),"background-color":i[e(le)]})),u(Ee,Pe)}),u(de,be)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};F(H,A=>{n().total>0&&A(S)})}return u(r,B),zt(O)}function Ws(r,t){if(new.target)return Dt({component:Ws,...r});Ht(t,!0);let n=h(t,"items",7),a=h(t,"ariaLabel",7),o=h(t,"open",15,!1),s=h(t,"orientation",7,"vertical"),c=h(t,"selection",7),l=h(t,"class",7,"");const p=d(()=>Ym(n(),c(),a()));var i={get items(){return n()},set items(f){n(f),b()},get ariaLabel(){return a()},set ariaLabel(f){a(f),b()},get open(){return o()},set open(f=!1){o(f),b()},get orientation(){return s()},set orientation(f="vertical"){s(f),b()},get selection(){return c()},set selection(f){c(f),b()},get class(){return l()},set class(f=""){l(f),b()},$set:Bt,$on:(f,v)=>Ft(t,f,v)};return Su(r,{get actions(){return e(p)},align:"end",get ariaLabel(){return a()},onAction:v=>Jm(n(),v)?.onClick(),get open(){return o()},set open(v){o(v)},trigger:(v,M)=>{let _=()=>(M?.()).props;St(v,js(_,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:y=>{y.stopPropagation(),_().onclick?.(y)},oncontextmenu:y=>{y.preventDefault(),y.stopPropagation()},children:(y,R)=>{sm(y,{get orientation(){return s()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),zt(i)}var D2=k('<span class="contents"><!></span>'),B2=k("<!> <!>",1);function Jp(r,t){if(new.target)return Dt({component:Jp,...r});Ht(t,!0);let n=h(t,"workspaceId",7),a=h(t,"slot",7);const o=d(()=>xv(a()));let s=he(null);_t(()=>{e(s)&&e(s).workspaceId!==n()&&T(s,null)});function c(y){const R=Cu(y);R&&T(s,{...R,workspaceId:n()},!0)}function l(y){y.preventDefault(),y.stopPropagation();const R=y.currentTarget.getBoundingClientRect();T(s,{x:R.left,y:R.bottom+2,returnFocus:y.currentTarget,workspaceId:n()},!0)}function p(){T(s,null)}var i={get workspaceId(){return n()},set workspaceId(y){n(y),b()},get slot(){return a()},set slot(y){a(y),b()},$set:Bt,$on:(y,R)=>Ft(t,y,R)},f=B2(),v=De(f);{let y=d(()=>g.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),R=d(()=>g.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),O=d(()=>e(s)!==null);St(v,{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(y)},get title(){return e(R)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(O)},children:(B,H)=>{var S=D2(),A=P(S);Ug(A,{get slot(){return a()},get class(){return`transition-colors ${e(o)??""}`}}),w(S),u(B,S)},$$slots:{default:!0}})}var M=m(v,2);{var _=y=>{{let R=d(()=>e(s)?.x??0),O=d(()=>e(s)?.y??0),B=d(()=>e(s)?.returnFocus),H=d(()=>g.workspace_card_assignMicroKey_label()),S=d(()=>Kb(n(),p));Eu(y,{get x(){return e(R)},get y(){return e(O)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(H)},get items(){return e(S)},onClickOutside:p})}};F(M,y=>{e(s)&&y(_)})}return u(r,f),zt(i)}var F2=k('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),H2=k('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),z2=k('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),W2=k('<span data-workspace-card-pr-item=""><!></span>'),j2=k('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),U2=k('<span data-workspace-card-time=""><!></span>'),q2=k('<span aria-hidden="true"><!></span>'),V2=k("<div><!> <!> <!> <!></div>"),K2=k('<div data-workspace-card-hover-surface=""><!></div>'),G2=k('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),J2=k('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),Y2=k('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),X2=k('<div class="text-sm font-semibold truncate"> </div>'),Td=k('<span class="truncate"> </span>'),Z2=k('<span class="text-muted-foreground">·</span>'),Q2=k('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),$2=k('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),eI=k('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),tI=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),rI=k('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),nI=k('<div class="flex items-center text-ui"><span> </span></div>'),aI=k('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),oI=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),sI=k('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),iI=k('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function cl(r,t){if(new.target)return Dt({component:cl,...r});Ht(t,!0);const n=()=>ht(Ke,"$prMonitors$",c),a=()=>ht(Z,"$microConnected$",c),o=()=>ht(we,"$hidesOwnerActions$",c),s=()=>ht($,"$workspaceKeySlot$",c),[c,l]=la();let p=h(t,"workspace",7),i=h(t,"phase",7),f=h(t,"stats",7),v=h(t,"variant",7,"compact"),M=h(t,"showTime",7,!0),_=h(t,"isRunning",7,!1),y=h(t,"isUnread",7,!1),R=h(t,"isWaiting",7),O=h(t,"isPinned",7,!1),B=h(t,"streamingAgentIds",23,()=>[]),H=h(t,"hasSpec",7,!1),S=h(t,"isAgentRunning",7,!1),A=h(t,"agentDigest",7),W=h(t,"trailingLabel",7),C=h(t,"title",7),D=h(t,"repoName",7),K=h(t,"branch",7),j=h(t,"onClick",7),V=h(t,"onAction",7),de=h(t,"onTogglePin",7),X=h(t,"onMarkAsRead",7),be=h(t,"onOpenInNewWindow",7),ce=h(t,"onHover",7),Ee=h(t,"highlighted",7,!1),le=h(t,"selected",7,!1),Pe=h(t,"highlightId",7),re=h(t,"suppressHover",7,!1),Q=h(t,"hoverPreview",7,!0),xe=h(t,"isolateHoverReveal",7,!1),te=h(t,"class",7),Me=h(t,"actions",7);const Je=Lo("");_t(()=>{Je.set(p()?.id??"")});const Ke=Ag(Je),Z=$b(),$=ih(Je),we=Tg(Je),z=d(()=>Jb(p()??{})),J=d(()=>Yb(e(z)));let G=d(()=>p()?qb.url.pathname===`/workspace/${p().id}`:!1),ie=d(()=>p()?`workspace-hover-card-${p().id}`:void 0),Ie=he(!1),Le=he(null),ee=he(null);_t(()=>{if(!e(ee))return;const ae=ys(e(ee),{id:Pe()});return()=>ae.destroy()});let ne=he(null),Se=he(null),Ye=he(null),ye=he(0),Ae=he(0),Y=d(()=>e(ye)+(e(Ae)>0?e(Ae)+4:0));function Ce(){const ae=e(ne),vt=e(Ye);T(ye,ae?Math.max(0,ae.scrollWidth-ae.clientWidth):0,!0),T(Ae,ae&&vt&&vt.getClientRects().length>0?Math.max(0,ae.getBoundingClientRect().right-vt.getBoundingClientRect().left):0,!0)}_t(()=>{const ae=e(ne),vt=e(Se),At=e(Ye);if(!ae||!vt||(Ce(),typeof ResizeObserver>"u"))return;const vr=new ResizeObserver(Ce);return vr.observe(ae),vr.observe(vt),At&&vr.observe(At),()=>vr.disconnect()});let pe=null,N=null,q=!1,_e=!1,qe=!1,Ne=!1,Ve=!1,Ge=!1,lt=he(!1),bt=!1,xt=null,Kt=he(null),Ct=null,ue;function Te(){pe!==null&&(clearTimeout(pe),pe=null)}function Qe(){N!==null&&(clearTimeout(N),N=null),Ct?.(),Ct=null}function gt(){Qe(),T(lt,!0),T(Ie,!0),!Ve&&(Ve=!0,Jo.notifyOpened())}function ut(){Qe(),clearTimeout(ue),T(lt,!1),T(Ie,!1),_e=!1,Ne=!1,Ve&&(Ve=!1,Jo.notifyClosed())}function at(){return q||_e||qe||Ne}function Et(){if(!e(Ie)){ut();return}Qe(),N=setTimeout(()=>{N=null,at()||ut()},Zb),Ct=Jo.deferClose(ut)}function wt(){_e=!0,Qe()}function kt(){_e=!1,!qe&&!Ne&&Et()}function Rt(){Ne=!0,clearTimeout(ue),Qe()}function Gt(ae){const vt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;if(vt&&ge()?.contains(vt)||(Ne=!1,vt&&e(Le)?.contains(vt)))return;if(vt){!q&&!_e&&ut();return}const At=ae.target;clearTimeout(ue),ue=setTimeout(()=>{const vr=document.activeElement,wr=ge()?.contains(vr)||e(Le)?.contains(vr);vr&&vr!==At&&wr||!q&&!_e&&ut()},0)}function ar(){xt!==null&&clearTimeout(xt),bt=!0,xt=setTimeout(()=>{bt=!1,xt=null},0)}function qt(ae){const vt=ae.target,At=ge();vt instanceof Node&&At?.contains(vt)||ae.type==="scroll"&&e(Le)&&vt instanceof Node&&!vt.contains(e(Le))||(ae.type==="pointerdown"&&ar(),Te(),ut())}_t(()=>{if(e(lt))return window.addEventListener("pointerdown",qt,!0),window.addEventListener("scroll",qt,!0),()=>{window.removeEventListener("pointerdown",qt,!0),window.removeEventListener("scroll",qt,!0)}});function Oe(ae){if(ae.key!=="Escape")return;const vt=ae.target;vt instanceof Node&&ge()?.contains(vt)||(ae.preventDefault(),ae.stopPropagation(),Ge=qe,Te(),ut())}_t(()=>{if(e(Ie))return window.addEventListener("keydown",Oe,!0),()=>window.removeEventListener("keydown",Oe,!0)});const fe=d(()=>p()?Mg.select(Nt.state,p().id):null),Ze=d(()=>e(fe)?e(fe):p()?.activePullRequest?p().activePullRequest:!p()?.prStatus||p().prNumber==null?null:{id:`legacy-pr-${p().prNumber}`,number:p().prNumber,url:p().prUrl??"",title:g.workspace_hoverCard_pullRequest_label(),status:p().prStatus,createdAt:p().updatedAt,updatedAt:p().updatedAt}),it=d(()=>Rg(p())),nt=d(()=>{if(!p()||e(it))return[];const ae=p(),vt=ae.repositoryOwner&&ae.repositoryName?`${ae.repositoryOwner}/${ae.repositoryName}`:void 0;return Xm({workspacePRs:ae.pullRequests,activePR:e(Ze),monitors:n(),workspaceRepo:vt,buildPrUrl:(At,vr)=>Tm(At,ae.repositoryOwner,ae.repositoryName,vr),getDisplayTitle:At=>At.title})}),Fe=d(()=>e(nt)[0]);function oe(ae){const vt=ae.resource?.repository.provider==="gitlab"?`${ae.repo} !${ae.number}`:ae.repo?g.workspace_card_prBadge_repoLine_tooltip({repo:ae.repo,number:ae.number}):g.workspace_card_prBadge_label({number:` #${ae.number}`});return[Lg(vt,ae),ae.title,ae.details].filter(Boolean).join(`
|
|
296
296
|
`)}function ke(ae){ae.key==="Enter"&&j()?.(ae)}function ge(){return e(ie)?document.getElementById(e(ie)):null}function Be(){return Array.from(ge()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ve(){const ae=e(Le)?.querySelector("[data-workspace-card-trigger]"),vt=ge();if(!ae||!vt)return null;const At=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(wr=>wr.tabIndex>=0&&!vt.contains(wr)),vr=At.indexOf(ae);return vr>=0?At[vr+1]:null}function ze(ae){Ge=!!e(Le)?.contains(ae),ut(),ae.focus({preventScroll:!0})}function He(){const ae=e(Le)?.querySelector("[data-workspace-card-trigger]");ae&&ze(ae)}async function Xe(ae){if(ae.key==="Escape"&&e(Ie)){ae.preventDefault(),ae.stopPropagation(),ut();return}ae.key!=="ArrowDown"||re()||!p()||(ae.preventDefault(),ae.stopPropagation(),T(lt,!0),T(Ie,!0),await jn(),Be()[0]?.focus({preventScroll:!0}))}function $e(ae){const vt=Be(),At=ae.key==="Tab"&&ae.shiftKey&&ae.currentTarget===vt[0],wr=ae.key==="Tab"&&!ae.shiftKey&&ae.currentTarget===vt.at(-1)?ve():null;ae.key!=="Escape"&&!At&&!wr||(ae.preventDefault(),ae.stopPropagation(),wr?ze(wr):He())}function We(){q=!0,Qe(),Jo.settleDeferredCloses(),Ce(),ce()?.(),p()&&!re()&&!qe&&(Te(),T(lt,!0),pe=setTimeout(()=>{pe=null,gt()},Jo.currentOpenDelay))}function et(){q=!1,Te(),!qe&&!Ne&&Et()}function je(){qe=!0,Te(),Qe(),!Ge&&(bt||p()&&!re()&&(T(lt,!0),T(Ie,!0)))}function tt(ae){const vt=ae.relatedTarget instanceof Node?ae.relatedTarget:null;vt&&e(Le)?.contains(vt)||(Ge=!1,qe=!1,!(vt&&ge()?.contains(vt))&&!q&&!_e&&ut())}_t(()=>{re()&&(Te(),Qe(),ut())});let rt=he(null),st=he(!1),ft;_t(()=>{const ae=p()?.id;ft!==ae&&(ft=ae,T(st,!1)),e(rt)&&e(rt).workspaceId!==p()?.id&&dt()});function Vt(ae){if(!p())return;const vt=Cu(ae);if(vt){if(T(st,!1),Wt().length===0){T(rt,null);return}T(rt,{...vt,returnFocus:ae.target instanceof HTMLElement?ae.target.closest("button")??e(Le)?.querySelector("button")??null:null,workspaceId:p().id},!0)}}function dt(){T(rt,null),T(st,!1)}_t(()=>{e(st)&&T(rt,null)}),xo(()=>{Te(),Qe(),xt!==null&&(clearTimeout(xt),xt=null),ut()});function Wt(){if(!p())return[];const ae=[];return be()&&ae.push({id:"open-new-window",label:g.workspace_card_openNewWindow_label(),icon:$d,onClick:()=>{be()?.(),dt()}}),ae.push(...Xb(p().id,{connected:a(),onClose:dt})),o()||(e(it)||ae.push({id:"transfer",label:g.workspace_card_transfer_label(),icon:uv,onClick:()=>{Nt.dispatch(Ov({workspaceId:p().id,workspaceTitle:p().title})),dt()}}),ae.push({id:"archive",label:g.workspace_card_archive_label(),icon:eu,onClick:()=>{Nt.dispatch(pu(p().id)),dt()}}),ae.push({id:"delete",label:g.workspace_card_deleteSpace_label(),icon:tu,destructive:!0,onClick:()=>{Nt.dispatch(fu(p().id)),dt()}})),ae}let Yt=d(()=>S()&&A()?A():i()?.subtitle??""),Zt=d(()=>f()&&f().tasks.total>0?f().tasks.completed/f().tasks.total:0),xr=d(()=>!!f()&&(f().tasks.total>0||f().files.changed>0||f().commits.total>0||f().pr.hasOpen||f().pr.hasMerged)),Pr=d(()=>e(it)?void 0:K()),un=d(()=>!f()||e(it)?"":f().pr.hasMerged?g.workspace_card_prMerged_label({number:f().pr.number??""}):f().pr.hasOpen?g.workspace_card_prOpen_label({number:f().pr.number?`#${f().pr.number}`:""}):""),Kr=d(()=>i()?.phase==="planning"?S()?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:H()||(f()?.tasks.total??0)>0?{primary:{label:g.workspace_card_approveStart_label(),action:"approve"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:g.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:g.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:g.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:g.workspace_card_archive_label(),action:"archive"},secondary:{label:g.workspace_card_showChanges_label(),action:"show-changes"}});const gr={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 Mn={get workspace(){return p()},set workspace(ae){p(ae),b()},get phase(){return i()},set phase(ae){i(ae),b()},get stats(){return f()},set stats(ae){f(ae),b()},get variant(){return v()},set variant(ae="compact"){v(ae),b()},get showTime(){return M()},set showTime(ae=!0){M(ae),b()},get isRunning(){return _()},set isRunning(ae=!1){_(ae),b()},get isUnread(){return y()},set isUnread(ae=!1){y(ae),b()},get isWaiting(){return R()},set isWaiting(ae){R(ae),b()},get isPinned(){return O()},set isPinned(ae=!1){O(ae),b()},get streamingAgentIds(){return B()},set streamingAgentIds(ae=[]){B(ae),b()},get hasSpec(){return H()},set hasSpec(ae=!1){H(ae),b()},get isAgentRunning(){return S()},set isAgentRunning(ae=!1){S(ae),b()},get agentDigest(){return A()},set agentDigest(ae){A(ae),b()},get trailingLabel(){return W()},set trailingLabel(ae){W(ae),b()},get title(){return C()},set title(ae){C(ae),b()},get repoName(){return D()},set repoName(ae){D(ae),b()},get branch(){return K()},set branch(ae){K(ae),b()},get onClick(){return j()},set onClick(ae){j(ae),b()},get onAction(){return V()},set onAction(ae){V(ae),b()},get onTogglePin(){return de()},set onTogglePin(ae){de(ae),b()},get onMarkAsRead(){return X()},set onMarkAsRead(ae){X(ae),b()},get onOpenInNewWindow(){return be()},set onOpenInNewWindow(ae){be(ae),b()},get onHover(){return ce()},set onHover(ae){ce(ae),b()},get highlighted(){return Ee()},set highlighted(ae=!1){Ee(ae),b()},get selected(){return le()},set selected(ae=!1){le(ae),b()},get highlightId(){return Pe()},set highlightId(ae){Pe(ae),b()},get suppressHover(){return re()},set suppressHover(ae=!1){re(ae),b()},get hoverPreview(){return Q()},set hoverPreview(ae=!0){Q(ae),b()},get isolateHoverReveal(){return xe()},set isolateHoverReveal(ae=!1){xe(ae),b()},get class(){return te()},set class(ae){te(ae),b()},get actions(){return Me()},set actions(ae){Me(ae),b()},$set:Bt,$on:(ae,vt)=>Ft(t,ae,vt)},qn=mt(),wa=De(qn);{var Ln=ae=>{var vt=G2(),At=De(vt);let vr;var wr=P(At);{let yt=d(()=>p().title||g.workspace_links_untitled_label()),Mt=d(()=>`workspace-status-state-${p().id}${O()?` workspace-pinned-state-${p().id}`:""}${e(Ie)?` ${e(ie)}`:""}`),cr=d(()=>e(G)?"page":void 0);St(wr,{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(yt)},get"aria-describedby"(){return e(Mt)},get"aria-current"(){return e(cr)},"data-workspace-card-trigger":!0,onkeydown:Xe,onclick:mr=>{mr.stopPropagation(),j()?.(mr)}})}var Xr=m(wr,2),Kn=P(Xr);{var Nn=yt=>{var Mt=F2(),cr=P(Mt);{var mr=Er=>{Jp(Er,{get workspaceId(){return p().id},get slot(){return s()}})};F(cr,Er=>{s()!==null&&Er(mr)})}w(Mt),u(yt,Mt)};F(Kn,yt=>{a()&&yt(Nn)})}var wn=m(Kn,2);Di(wn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(yt,Mt)=>{Gb(yt,{get status(){return e(z)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var On=m(wn,2),ca=L(On,!0);w(Xr);var Tr=m(Xr,2),en=P(Tr),Qt=P(en),lr=P(Qt),zr=L(lr,!0);fr(lr,yt=>T(Se,yt),()=>e(Se)),w(Qt),fr(Qt,yt=>T(ne,yt),()=>e(ne));var Rr=m(Qt,2);{var kr=yt=>{var Mt=H2(),cr=De(Mt),mr=P(cr);Tt(mr,{get icon(){return ec},size:"xs"}),w(cr);var Er=m(cr,2),Or=L(Er,!0);I(da=>{pt(cr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
297
|
-
${de()?Ee()?"opacity-0":re()?"":xe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Or,da)},[()=>g.layout_activeCard_pinned_header()]),u(yt,Mt)};F(Rr,yt=>{O()&&yt(kr)})}w(en);var sn=m(en,2);{var ka=yt=>{var Mt=z2(),cr=L(Mt,!0);I(()=>x(cr,W())),u(yt,Mt)};F(sn,yt=>{W()&&yt(ka)})}var ln=m(sn,2);{var Wr=yt=>{const Mt=d(()=>e(Fe));var cr=j2(),mr=P(cr);{let Er=d(()=>oe(e(Mt)));Di(mr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Or,da)=>{var ua=mt(),Ra=De(ua);{var Dr=kn=>{{let Br=d(()=>oe(e(Mt)));St(kn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Mt).foregroundClass??""}`},get"aria-label"(){return e(Br)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Mt).identity},get"data-pr-status"(){return e(Mt).status},onclick:In=>{In.stopPropagation();const Ha=p().id;cg(async()=>{const{handleLink:Sa}=await import("./
|
|
297
|
+
${de()?Ee()?"opacity-0":re()?"":xe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(Er,"id",`workspace-pinned-state-${p().id??""}`),x(Or,da)},[()=>g.layout_activeCard_pinned_header()]),u(yt,Mt)};F(Rr,yt=>{O()&&yt(kr)})}w(en);var sn=m(en,2);{var ka=yt=>{var Mt=z2(),cr=L(Mt,!0);I(()=>x(cr,W())),u(yt,Mt)};F(sn,yt=>{W()&&yt(ka)})}var ln=m(sn,2);{var Wr=yt=>{const Mt=d(()=>e(Fe));var cr=j2(),mr=P(cr);{let Er=d(()=>oe(e(Mt)));Di(mr,{get content(){return e(Er)},side:"bottom",sideOffset:4,children:(Or,da)=>{var ua=mt(),Ra=De(ua);{var Dr=kn=>{{let Br=d(()=>oe(e(Mt)));St(kn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Mt).foregroundClass??""}`},get"aria-label"(){return e(Br)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Mt).identity},get"data-pr-status"(){return e(Mt).status},onclick:In=>{In.stopPropagation();const Ha=p().id;cg(async()=>{const{handleLink:Sa}=await import("./BaUyyVaF.js").then(Sn=>Sn.l);return{handleLink:Sa}},__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]),import.meta.url).then(({handleLink:Sa})=>Sa(e(Mt).url,{workspaceId:Ha,event:In}))},children:(In,Ha)=>{Tt(In,{get icon(){return e(Mt).statusIcon},size:14})},$$slots:{default:!0}})}},pa=kn=>{var Br=W2(),In=P(Br);Tt(In,{get icon(){return e(Mt).statusIcon},size:14}),w(Br),I(Ha=>{pt(Br,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Mt).foregroundClass??""}`,"svelte-1ct56pd"),se(Br,"aria-label",Ha),se(Br,"data-pr-identity",e(Mt).identity),se(Br,"data-pr-status",e(Mt).status)},[()=>oe(e(Mt))]),u(kn,Br)};F(Ra,kn=>{e(Mt).url?kn(Dr):kn(pa,-1)})}u(Or,ua)},$$slots:{default:!0}})}w(cr),I(Er=>se(cr,"aria-label",Er),[()=>e(Mt).resource?.repository.provider==="gitlab"?g.workspace_hoverCard_mergeRequest_label():g.workspace_hoverCard_pullRequest_label()]),u(yt,cr)};F(ln,yt=>{e(Fe)&&yt(Wr)})}var Zr=m(ln,2);{var Ia=yt=>{var Mt=U2(),cr=P(Mt);{var mr=Or=>{{let da=d(()=>sc(p()));qg(Or,{get date(){return e(da)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Er=d(()=>sc(p())>0);F(cr,Or=>{e(Er)&&Or(mr)})}w(Mt),I(()=>pt(Mt,1,`wc-secondary shrink-0 ${Me()||de()||y()&&X()?Ee()?"opacity-0":re()?"":xe()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(yt,Mt)};F(Zr,yt=>{M()&&yt(Ia)})}w(Tr);var Xa=m(Tr,2);{var qa=yt=>{var Mt=V2(),cr=P(Mt);{var mr=Dr=>{{let pa=d(()=>O()?"text-primary-ink":"text-muted-foreground"),kn=d(()=>O()?g.workspace_card_unpin_ariaLabel():g.workspace_card_pin_ariaLabel()),Br=d(()=>O()?g.workspace_card_unpin_tooltip():g.workspace_card_pin_tooltip());St(Dr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
298
298
|
${e(pa)??""}`},onclick:In=>{In.stopPropagation(),de()?.(In)},get"aria-label"(){return e(kn)},get title(){return e(Br)},children:(In,Ha)=>{var Sa=q2(),Sn=P(Sa);Tt(Sn,{get icon(){return ec},size:"xs"}),w(Sa),u(In,Sa)},$$slots:{default:!0}})}};F(cr,Dr=>{de()&&Dr(mr)})}var Er=m(cr,2);{var Or=Dr=>{{let pa=d(()=>g.workspace_card_markAsRead_label()),kn=d(()=>g.workspace_card_markAsRead_label());St(Dr,{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:Br=>{Br.stopPropagation(),X()?.(Br)},get"aria-label"(){return e(pa)},get title(){return e(kn)},children:(Br,In)=>{Tt(Br,{get icon(){return ru},size:"xs"})},$$slots:{default:!0}})}};F(Er,Dr=>{y()&&X()&&Dr(Or)})}var da=m(Er,2);cn(da,()=>Me()??Qo);var ua=m(da,2);{var Ra=Dr=>{{let pa=d(Wt),kn=d(()=>g.workspace_progressCard_actions_ariaLabel());Ws(Dr,{get items(){return e(pa)},get ariaLabel(){return e(kn)},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(st)},set open(Br){T(st,Br,!0)}})}};F(ua,Dr=>{be()&&Dr(Ra)})}w(Mt),fr(Mt,Dr=>T(Ye,Dr),()=>e(Ye)),I(()=>pt(Mt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
299
299
|
${xe()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
300
300
|
${Ee()?"opacity-100":re()?"opacity-0":xe()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(yt,Mt)};F(Xa,yt=>{(Me()||be()||de()||y()&&X())&&yt(qa)})}w(At),fr(At,yt=>T(Le,yt),()=>e(Le)),Un(At,(yt,Mt)=>ys?.(yt,Mt),()=>({id:Pe()}));var Qr=m(At,2);{var tn=yt=>{Vb(yt,{get id(){return e(ie)},get anchor(){return`--workspace-list-${p().id??""}`},position:"right",get anchorElement(){return e(Le)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:wt,onmouseleave:kt,onfocusin:Rt,onfocusout:Gt,children:(Mt,cr)=>{var mr=K2(),Er=P(mr);Qb(Er,{get workspace(){return p()},get activeAgentIds(){return B()},onkeydown:$e}),w(mr),fr(mr,Or=>T(Kt,Or),()=>e(Kt)),Tn("pointerenter",mr,wt),Tn("pointerleave",mr,kt),Nr("focusin",mr,Rt),Nr("focusout",mr,Gt),u(Mt,mr)},$$slots:{default:!0}})};F(Qr,yt=>{e(Ie)&&!re()&&Q()&&yt(tn)})}var dr=m(Qr,2);{var Dn=yt=>{const Mt=d(Wt);var cr=mt(),mr=De(cr);{var Er=Or=>{{let da=d(()=>e(rt)?.x??0),ua=d(()=>e(rt)?.y??0),Ra=d(()=>e(rt)?.returnFocus),Dr=d(()=>g.workspace_progressCard_actions_ariaLabel());Eu(Or,{get x(){return e(da)},get y(){return e(ua)},get returnFocus(){return e(Ra)},get ariaLabel(){return e(Dr)},get items(){return e(Mt)},onClickOutside:dt})}};F(mr,Or=>{e(Mt).length>0&&Or(Er)})}u(yt,cr)};F(dr,yt=>{e(rt)&&yt(Dn)})}I((yt,Mt,cr)=>{pt(At,1,yt,"svelte-1ct56pd"),se(At,"data-pinned",O()),se(At,"data-highlight-id",Pe()),vr=Rn(At,"",vr,{"anchor-name":`--workspace-list-${p().id??""}`}),se(On,"id",`workspace-status-state-${p().id??""}`),x(ca,e(J).accessibleName),pt(Qt,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{K as jt}from"./
|
|
1
|
+
import{K as jt}from"./DJVOcVb6.js";import{V as Ut}from"./D4Ynme_h.js";import{bI as Mt,aD as s,aG as zt,bH as Ie,bV as Me,bs as dt,ca as _t,c0 as Ht,a5 as j,bS as u,bl as F,bA as U,b_ as v,bO as l,aw as Kt,W as n,bn as pt,c9 as y,aA as T,aB as N,b$ as L,bf as ee,a7 as $,ay as w,be as De,am as Fe,ax as Ee}from"./3SdAC2_C.js";import{t as vt,bo as O,bm as _,bw as ut,b as ct,bs as Ze,bq as qt}from"./DxxarOOi.js";import{i as I}from"./DzAQQ1i-.js";import{s as je,f as Ue,g as Be}from"./Ch-D6DCZ.js";import{b as Yt}from"./Dn334wJv.js";import{A as Gt,c as Vt}from"./CTKxd-aq.js";import{k as et}from"./ByAetY4P.js";import{s as tt}from"./C600Ggsz.js";import{n as se,b as at,j as ge}from"./DSjVYlVX.js";import{F as $t,bo as Xt,aN as Jt,cK as Qt,cn as Zt}from"./B5yEHkSy.js";import{m as ea}from"./DkkzFfYK.js";import{f as Le}from"./D5eCb9SA.js";import"./BfQPFCP7.js";import{T as rt}from"./xzC0xG4O.js";import"./ChTqQfQN.js";import"./BWsFbeUj.js";import"./Zs30783q.js";import{q as ta,h as aa,S as ra}from"./CeKzyAwj.js";import{O as We}from"./B_rOdNUT.js";import{be as na,D as sa,q as oa}from"./piMAhJa1.js";import{d as ia}from"./BwxJWPNn.js";import{s as la,f as da,c as nt}from"./DCEkJXus.js";function ar(M){let b=0,E=!1;function Q(x){E!==x&&(E=x,M.onDragChange(x))}function Z(){b=0,Q(!1)}function X(x){return M.isEnabled&&!M.isEnabled()?!1:jt(x)}return{handleDragEnter(x){X(x)&&(x.preventDefault(),b++,Q(!0))},handleDragLeave(x){X(x)&&(x.preventDefault(),b=Math.max(0,b-1),b===0&&Q(!1))},handleDragOver(x){X(x)&&x.preventDefault()},handleDrop(x){if(!X(x))return;x.preventDefault(),Z();const G=Ut(x.dataTransfer);(G.files.length>0||G.folderFiles.length>0)&&M.onDrop(G)},reset:Z}}const gt=Symbol("panel-file-drop-context");function rr(){let M=Me(null);const b={register(E){Ie(M,E)},unregister(E){s(M)===E&&Ie(M,null)}};return Mt(gt,b),{context:b,handler:{get current(){return s(M)}}}}function nr(){return zt(gt)??null}var _a=N('<p class="type-caption text-subtle"> </p>'),pa=N('<div class="space-y-1" data-remote-setup-log=""><!> <pre role="log" tabindex="0"> </pre></div>');function va(M,b){if(new.target)return vt({component:va,...M});dt(b,!0);let E=O(b,"machine",7),Q=O(b,"output",7),Z=O(b,"truncated",7,!1);const X=y(()=>Gt({chunks:[{text:Q()??"",timestamp:""}]}).join(`
|
|
2
2
|
`));let x=Me(null),G=!0;function V(){s(x)&&(G=s(x).scrollHeight-s(x).scrollTop-s(x).clientHeight<8)}_t(()=>{s(X),!(!s(x)||!G)&&Ht().then(()=>{s(x)&&(s(x).scrollTop=s(x).scrollHeight)})});var oe={get machine(){return E()},set machine(R){E(R),T()},get output(){return Q()},set output(R){Q(R),T()},get truncated(){return Z()},set truncated(R=!1){Z(R),T()},$set:ut,$on:(R,J)=>ct(b,R,J)},H=pa(),te=j(H);{var ae=R=>{var J=_a(),W=F(J,!0);v(re=>l(W,re),[()=>_.remoteAgent_setup_outputTruncated()]),n(R,J)};I(te,R=>{Z()&&R(ae)})}var q=u(te,2),pe=F(q,!0);return Yt(q,R=>Ie(x,R),()=>s(x)),U(H),v((R,J)=>{je(q,"aria-label",R),Ue(q,1,`max-h-60 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted/60 px-3 py-2 font-mono text-xs ${s(X)?"text-foreground":"text-subtle"} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`),l(pe,J)},[()=>_.remoteAgent_setup_outputLabel({machine:E()}),()=>s(X)||_.remoteAgent_setup_noOutput()]),Kt("scroll",q,V),n(M,H),pt(oe)}var ua=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),ca=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),ga=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),fa=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),ma=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),st=N('<div class="svelte-enden2"><!></div>'),ba=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),xa=N('<div class="mt-1 text-xs tabular-nums svelte-enden2" data-testid="setup-card-progress-transfer"> </div>'),ha=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div> <!>',1),fe=N(" <!>",1),Ca=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),wa=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),ot=N(" <!> <!>",1),Sa=N(' <span class="svelte-enden2"> </span> ',1),ya=N(' <span class="svelte-enden2"> </span> <!>',1),ka=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),Pa=N("<!> ",1),it=N('<span class="svelte-enden2"> </span>'),_e=N(" <!> ",1),Da=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),lt=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),Ia=N(" <!> <!> ",1),Na=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),Ta=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Oa(M,b){if(new.target)return vt({component:Oa,...M});dt(b,!0);const E=()=>Ze(ft,"$progressEntry$",Z),Q=()=>Ze(mt,"$specialists$",Z),[Z,X]=qt();let x=O(b,"repoName",7),G=O(b,"repoPath",7),V=O(b,"worktreePath",7),oe=O(b,"workspaceId",7),H=O(b,"branch",7),te=O(b,"baseRef",7,"origin/main"),ae=O(b,"projectType",7),q=O(b,"setupScriptStatus",7),pe=O(b,"setupScriptContent",7),R=O(b,"onFocusSetupTerminal",7),J=O(b,"specialistName",7),W=O(b,"specialistId",7),re=O(b,"hasPrompt",7,!0),ve=O(b,"repoStatus",7,"pending"),me=O(b,"branchStatus",7,"pending"),be=O(b,"agentStatus",7,"pending"),ie=O(b,"skipIsolation",7,!1),ue=O(b,"plainFolder",7,!1),Ne=O(b,"progressId",7);const ft=la(Ne()??""),mt=na();let xe=Me(0);_t(()=>{const d=Math.min(E()?.percent??0,100);d>s(xe)&&Ie(xe,d,!0)});const bt=y(()=>E()?.sawFrame===!0),ze=y(()=>E()?.transfer?Vt(E().transfer):null),xt=y(()=>te().replace(/^[^/]+\//,"")),Te=y(()=>W()?oa(W()):void 0),ht=y(()=>W()?Q().find(d=>d.id===W()):void 0),Ct=y(()=>s(ht)?.name||s(Te)?.name||J()),He=y(()=>W()==="spec-writer"||W()===sa),Ke=y(()=>{const d=ue()?[ve()]:[ve(),me()];return q()&&d.push(q()),d.push(be()),d}),Oe=y(()=>s(Ke).length),qe=y(()=>s(Ke).filter(d=>d==="done").length),Ye=y(()=>Math.min(s(qe)+1,s(Oe))),ye=y(()=>s(qe)===s(Oe)),Ge=y(()=>s(ye)?_.onboarding_setupCard_ready_title():_.onboarding_setupCard_settingUp_title());function wt(d,B){navigator.clipboard.writeText(d),ea.success(_.onboarding_setupCard_copied_label({label:B}))}function Ae(d){return d.replace(/^\/Users\/[^/]+/,"~")}function St(){W()&&ia({specialist:W(),hash:"specialists"})}var yt={get repoName(){return x()},set repoName(d){x(d),T()},get repoPath(){return G()},set repoPath(d){G(d),T()},get worktreePath(){return V()},set worktreePath(d){V(d),T()},get workspaceId(){return oe()},set workspaceId(d){oe(d),T()},get branch(){return H()},set branch(d){H(d),T()},get baseRef(){return te()},set baseRef(d="origin/main"){te(d),T()},get projectType(){return ae()},set projectType(d){ae(d),T()},get setupScriptStatus(){return q()},set setupScriptStatus(d){q(d),T()},get setupScriptContent(){return pe()},set setupScriptContent(d){pe(d),T()},get onFocusSetupTerminal(){return R()},set onFocusSetupTerminal(d){R(d),T()},get specialistName(){return J()},set specialistName(d){J(d),T()},get specialistId(){return W()},set specialistId(d){W(d),T()},get hasPrompt(){return re()},set hasPrompt(d=!0){re(d),T()},get repoStatus(){return ve()},set repoStatus(d="pending"){ve(d),T()},get branchStatus(){return me()},set branchStatus(d="pending"){me(d),T()},get agentStatus(){return be()},set agentStatus(d="pending"){be(d),T()},get skipIsolation(){return ie()},set skipIsolation(d=!1){ie(d),T()},get plainFolder(){return ue()},set plainFolder(d=!1){ue(d),T()},get progressId(){return Ne()},set progressId(d){Ne(d),T()},$set:ut,$on:(d,B)=>ct(b,d,B)},ke=Ta(),Pe=j(ke);Be(Pe,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Re=j(Pe),kt=j(Re);et(kt,()=>s(ye),d=>{var B=ca(),le=j(B);{var he=Y=>{var z=ua(),we=F(z,!0);v(()=>l(we,s(Ge))),n(Y,z)},Ce=Y=>{var z=L();v(()=>l(z,s(Ge))),n(Y,z)};I(le,Y=>{s(ye)?Y(he):Y(Ce,-1)})}U(B),se(1,B,()=>at,()=>({tier:"slow",distance:3})),se(2,B,()=>at,()=>({tier:"slow",distance:3})),n(d,B)}),U(Re);var Pt=u(Re,2);{var Dt=d=>{var B=fa(),le=j(B),he=j(le);et(he,()=>s(Ye),Y=>{var z=ga(),we=F(z,!0);v(()=>l(we,s(Ye))),se(1,z,()=>ge,()=>({axis:"y",tier:"slow"})),n(Y,z)}),U(le);var Ce=u(le);U(B),v(()=>l(Ce,`/${s(Oe)??""}`)),n(d,B)};I(Pt,d=>{s(ye)||d(Dt)})}U(Pe);var Ve=u(Pe,2);{const d=(f,h=ee,P=ee,D=ee,S=ee,C=ee)=>{var o=ba();Be(o,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=j(o);{var e=m=>{var k=ma(),A=j(k);ra(A,{}),U(k),n(m,k)};I(t,m=>{h()==="active"&&m(e)})}var a=u(t,2),r=j(a);$t(r,{get icon(){return P()},size:14,get class(){return D()}}),U(a);var i=u(a,2),c=j(i);{var g=m=>{var k=st(),A=j(k);tt(A,S),U(k),se(1,k,()=>ge,()=>({axis:"y",tier:"moderate"})),se(2,k,()=>ge,()=>({axis:"y",tier:"moderate"})),n(m,k)},p=m=>{var k=st(),A=j(k);tt(A,C),U(k),se(1,k,()=>ge,()=>({axis:"y",tier:"moderate"})),se(2,k,()=>ge,()=>({axis:"y",tier:"moderate"})),n(m,k)};I(c,m=>{h()==="active"?m(g):m(p,-1)})}U(i),U(o),v(()=>Ue(a,1,`${aa} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),se(3,o,()=>ge,()=>({tier:"slow"})),n(f,o)},B=(f,h)=>{let P=Fe(()=>Ee(h?.(),""));var D=$(),S=w(D);{var C=t=>{{let e=y(()=>_.onboarding_setupCard_originalFolder_label());z(t,x,()=>s(e),G,()=>s(P))}},o=t=>{var e=L();v(()=>l(e,`${x()??""}${s(P)??""}`)),n(t,e)};I(S,t=>{G()?t(C):t(o,-1)})}n(f,D)},le=f=>{var h=$(),P=w(h);{var D=o=>{var t=ha(),e=w(t),a=F(e,!0),r=u(e,2),i=F(r),c=u(r,2);{var g=p=>{var m=xa(),k=F(m,!0);v(()=>l(k,s(ze))),n(p,m)};I(c,p=>{s(ze)&&p(g)})}v((p,m)=>{l(a,p),Be(i,`width: ${s(xe)??""}%`),je(i,"aria-label",m),je(i,"aria-valuenow",s(xe))},[()=>_.workspace_compactInitializer_progressWithPercent_label({label:nt(E()),percent:da(s(xe))}),()=>nt(E())]),n(o,t)},S=o=>{var t=fe(),e=w(t),a=u(e);{let r=y(()=>_.onboarding_setupCard_opening_after());B(a,()=>s(r))}v(r=>l(e,`${r??""} `),[()=>_.onboarding_setupCard_opening_before()]),n(o,t)},C=o=>{var t=fe(),e=w(t),a=u(e);B(a),v(r=>l(e,`${r??""} `),[()=>_.onboarding_setupCard_creatingIsolatedCopy_before()]),n(o,t)};I(P,o=>{s(bt)&&E()?o(D):ie()||ue()?o(S,1):o(C,-1)})}n(f,h)},he=f=>{var h=$(),P=w(h);{var D=o=>{const t=y(()=>V()||G());var e=Ca(),a=j(e),r=u(a);{var i=p=>{We(p,{get filePath(){return s(t)},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(m,k)=>{{let A=y(()=>Ae(s(t)));Y(m,()=>s(A),()=>".")}},$$slots:{default:!0}})},c=p=>{var m=L();v(()=>l(m,`${x()??""}.`)),n(p,m)};I(r,p=>{s(t)?p(i):p(c,-1)})}var g=u(r);U(e),v((p,m)=>{l(a,`${p??""} `),l(g,` ${m??""}`)},[()=>_.onboarding_setupCard_workingInFolder_before(),()=>_.onboarding_setupCard_plainFolderInPlace_label()]),n(o,e)},S=o=>{var t=wa(),e=w(t),a=u(e),r=F(a,!0),i=u(a,2);{var c=p=>{var m=fe(),k=w(m),A=u(k);We(A,{get filePath(){return V()},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(K,de)=>{{let ne=y(()=>Ae(V()));Y(K,()=>s(ne),()=>".")}},$$slots:{default:!0}}),v(K=>l(k,` ${K??""} `),[()=>_.onboarding_setupCard_at_label()]),n(p,m)},g=p=>{var m=L(".");n(p,m)};I(i,p=>{V()?p(c):p(g,-1)})}v(p=>{l(e,`${p??""} `),l(r,s(xt))},[()=>_.onboarding_setupCard_workingDirectlyOn_before()]),n(o,t)},C=o=>{var t=ot(),e=w(t),a=u(e);B(a);var r=u(a,2);{var i=g=>{var p=fe(),m=w(p),k=u(m);We(k,{get filePath(){return V()},get workspaceId(){return oe()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(A,K)=>{{let de=y(()=>Ae(V()));Y(A,()=>s(de),()=>".")}},$$slots:{default:!0}}),v(A=>l(m,` ${A??""} `),[()=>_.onboarding_setupCard_at_label()]),n(g,p)},c=g=>{var p=L(".");n(g,p)};I(r,g=>{V()?g(i):g(c,-1)})}v(g=>l(e,`${g??""} `),[()=>_.onboarding_setupCard_createdIsolatedCopy_before()]),n(o,t)};I(P,o=>{ue()?o(D):ie()?o(S,1):o(C,-1)})}n(f,h)},Ce=f=>{var h=$(),P=w(h);{var D=o=>{var t=$(),e=w(t);{var a=i=>{var c=Sa(),g=w(c),p=u(g),m=F(p,!0),k=u(p,1,!0);v((A,K)=>{l(g,`${A??""} `),l(m,H()),l(k,K)},[()=>_.onboarding_setupCard_workingOnBranchNamed_before(),()=>_.onboarding_setupCard_workingOnBranchActive_after()]),n(i,c)},r=i=>{var c=L();v(g=>l(c,g),[()=>_.onboarding_setupCard_workingOnBranch_label()]),n(i,c)};I(e,i=>{H()?i(a):i(r,-1)})}n(o,t)},S=o=>{var t=ya(),e=w(t),a=u(e),r=F(a,!0),i=u(a),c=u(i);{let g=y(()=>_.onboarding_setupCard_baseRef_label()),p=y(()=>_.onboarding_setupCard_creatingBranch_after());z(c,te,()=>s(g),()=>{},()=>s(p))}v((g,p)=>{l(e,`${g??""} `),l(r,H()),l(i,` ${p??""} `)},[()=>_.onboarding_setupCard_creatingBranch_before(),()=>_.onboarding_setupCard_creatingBranch_middle()]),n(o,t)},C=o=>{var t=L();v(e=>l(t,e),[()=>_.onboarding_setupCard_creatingBranchNoName_label()]),n(o,t)};I(P,o=>{ie()?o(D):H()?o(S,1):o(C,-1)})}n(f,h)},Y=(f,h=ee,P)=>{let D=Fe(()=>Ee(P?.(),""));const S=y(()=>Array.from(h()));var C=ka(),o=w(C),t=F(o,!0),e=u(o),a=j(e),r=F(a,!0),i=u(a),c=F(i,!0);U(e),v((g,p)=>{l(t,g),l(r,p),l(c,s(D))},[()=>s(S).slice(0,-1).join(""),()=>s(S).at(-1)??""]),n(f,C)},z=(f,h=ee,P=ee,D=ee,S)=>{let C=Fe(()=>Ee(S?.(),""));const o=y(()=>s(C).match(/^\p{P}+/u)?.[0]??"");var t=Pa(),e=w(t);Le(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>wt(D()??h(),P()),children:(r,i)=>{Y(r,h,()=>s(o))},$$slots:{default:!0}});var a=u(e,1,!0);v(r=>l(a,r),[()=>s(C).slice(s(o).length)]),n(f,t)},we=f=>{var h=$(),P=w(h);{var D=o=>{var t=$(),e=w(t);{var a=i=>{var c=fe(),g=w(c),p=u(g);{let m=y(()=>_.onboarding_setupCard_branchName_label()),k=y(()=>_.onboarding_setupCard_workingOnBranchDone_after());z(p,H,()=>s(m),()=>{},()=>s(k))}v(m=>l(g,`${m??""} `),[()=>_.onboarding_setupCard_workingOnBranchNamed_before()]),n(i,c)},r=i=>{var c=L();v(g=>l(c,g),[()=>_.onboarding_setupCard_workingDirectlyOnBranch_label()]),n(i,c)};I(e,i=>{H()?i(a):i(r,-1)})}n(o,t)},S=o=>{var t=ot(),e=w(t),a=u(e);{let i=y(()=>_.onboarding_setupCard_branchName_label()),c=y(()=>_.onboarding_setupCard_workingInNewBranch_middle());z(a,H,()=>s(i),()=>{},()=>s(c))}var r=u(a,2);{let i=y(()=>_.onboarding_setupCard_baseRef_label()),c=y(()=>_.onboarding_setupCard_workingInNewBranch_after());z(r,te,()=>s(i),()=>{},()=>s(c))}v(i=>l(e,`${i??""} `),[()=>_.onboarding_setupCard_workingInNewBranch_before()]),n(o,t)},C=o=>{var t=L();v(e=>l(t,e),[()=>_.onboarding_setupCard_branchCreated_label()]),n(o,t)};I(P,o=>{ie()?o(D):H()?o(S,1):o(C,-1)})}n(f,h)},Ft=f=>{De();var h=_e(),P=w(h),D=u(P);{var S=t=>{var e=it(),a=F(e,!0);v(()=>l(a,ae())),n(t,e)},C=t=>{var e=L();v(a=>l(e,a),[()=>_.onboarding_setupCard_project_label()]),n(t,e)};I(D,t=>{ae()?t(S):t(C,-1)})}var o=u(D);v((t,e)=>{l(P,`${t??""} `),l(o,` ${e??""}`)},[()=>_.onboarding_setupCard_runningSetup_before(),()=>_.onboarding_setupCard_runningSetup_after()]),n(f,h)},Et=f=>{De();var h=Ia(),P=w(h),D=u(P);{var S=r=>{var i=it(),c=F(i,!0);v(()=>l(c,ae())),n(r,i)},C=r=>{var i=L();v(c=>l(i,c),[()=>_.onboarding_setupCard_project_label()]),n(r,i)};I(D,r=>{ae()?r(S):r(C,-1)})}var o=u(D),t=u(o);{var e=r=>{var i=fe(),c=w(i),g=u(c);rt(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:A=>{Le(A,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return R()},children:(K,de)=>{De();var ne=L();v(Se=>l(ne,Se),[()=>_.onboarding_setupCard_terminalTab_label()]),n(K,ne)},$$slots:{default:!0}})},content:A=>{var K=$(),de=w(K);{var ne=Se=>{var Qe=Da(),Wt=F(Qe,!0);v(()=>l(Wt,pe())),n(Se,Qe)};I(de,Se=>{pe()&&Se(ne)})}n(A,K)},footer:A=>{var K=lt(),de=F(K,!0);v(ne=>l(de,ne),[()=>_.onboarding_setupCard_openTerminal_footer()]),n(A,K)},$$slots:{trigger:!0,content:!0,footer:!0}}),v(p=>l(c,` ${p??""} `),[()=>_.onboarding_setupCard_ranSetupIn_middle()]),n(r,i)};I(t,r=>{R()&&r(e)})}var a=u(t,1,!0);v((r,i,c)=>{l(P,`${r??""} `),l(o,` ${i??""}`),l(a,c)},[()=>_.onboarding_setupCard_ranSetup_before(),()=>_.onboarding_setupCard_ranSetup_middle(),()=>_.onboarding_setupCard_ranSetup_after()]),n(f,h)},ce=f=>{rt(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:S=>{Le(S,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:St,children:(C,o)=>{De();var t=L();v(()=>l(t,s(Ct))),n(C,t)},$$slots:{default:!0}})},content:S=>{var C=$(),o=w(C);{var t=e=>{var a=Na(),r=F(a,!0);v(()=>l(r,s(Te).description)),n(e,a)};I(o,e=>{s(Te)&&e(t)})}n(S,C)},footer:S=>{var C=lt(),o=F(C,!0);v(t=>l(o,t),[()=>_.onboarding_setupCard_editInSettings_footer()]),n(S,C)},$$slots:{trigger:!0,content:!0,footer:!0}})},Bt=f=>{var h=$(),P=w(h);{var D=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentReadyNamed_before(),()=>_.onboarding_setupCard_agentReadyNamed_after()]),n(e,a)},S=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentReady_label()]),n(e,a)},C=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_specStartingUp_before(),()=>_.onboarding_setupCard_specStartingUp_after()]),n(e,a)},o=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_startingUpNamed_before(),()=>_.onboarding_setupCard_startingUpNamed_after()]),n(e,a)},t=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_startingUp_label()]),n(e,a)};I(P,e=>{!re()&&W()?e(D):re()?s(He)?e(C,2):W()?e(o,3):e(t,-1):e(S,1)})}n(f,h)},Lt=f=>{var h=$(),P=w(h);{var D=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentReadyNamed_before(),()=>_.onboarding_setupCard_agentReadyNamed_after()]),n(e,a)},S=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentReady_label()]),n(e,a)},C=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_specDone_before(),()=>_.onboarding_setupCard_specDone_after()]),n(e,a)},o=e=>{var a=_e(),r=w(a),i=u(r);ce(i);var c=u(i);v((g,p)=>{l(r,`${g??""} `),l(c,` ${p??""}`)},[()=>_.onboarding_setupCard_agentDoneNamed_before(),()=>_.onboarding_setupCard_agentDoneNamed_after()]),n(e,a)},t=e=>{var a=L();v(r=>l(a,r),[()=>_.onboarding_setupCard_agentOrienting_label()]),n(e,a)};I(P,e=>{!re()&&W()?e(D):re()?s(He)?e(C,2):W()?e(o,3):e(t,-1):e(S,1)})}n(f,h)};var $e=j(Ve);{var It=f=>{d(f,ve,()=>Xt,()=>"-ml-px transform scale-[0.98]",()=>le,()=>he)};I($e,f=>{ve()!=="pending"&&f(It)})}var Xe=u($e,2);{var Nt=f=>{d(f,me,()=>Jt,()=>"",()=>Ce,()=>we)};I(Xe,f=>{me()!=="pending"&&!ie()&&!ue()&&f(Nt)})}var Je=u(Xe,2);{var Tt=f=>{d(f,q,()=>Qt,()=>"ml-[0.5px]",()=>Ft,()=>Et)};I(Je,f=>{q()&&q()!=="pending"&&f(Tt)})}var Ot=u(Je,2);{var At=f=>{d(f,be,()=>Zt,()=>"ml-[-0.5px]",()=>Bt,()=>Lt)};I(Ot,f=>{be()!=="pending"&&f(At)})}U(Ve)}U(ke),v(()=>Ue(ke,1,`${ta} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),n(M,ke);var Rt=pt(yt);return X(),Rt}export{va as R,Oa as W,rr as a,ar as c,nr as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./B7v8ICP4.js";import{s as Kt}from"./D8IZMM7C.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./Dyo489Aj.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[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],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[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],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[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],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"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(function(n,l,d,i,_,t,$){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"),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:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{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(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./DwwhuCym.js";import{s as Kt}from"./BsmtfVfM.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./Bw79RGVy.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[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],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[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],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[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],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"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(function(n,l,d,i,_,t,$){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"),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:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{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(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={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},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"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()+`
|