@intent-hq/web 2.357.4 → 2.357.5
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/{BRnEHgHa.js → 3E3FFIBp.js} +1 -1
- package/web/app/immutable/chunks/{B3w_tv0r.js → 5cZE-Bb1.js} +1 -1
- package/web/app/immutable/chunks/{BrYqzKAn.js → 6gXfEeGO.js} +1 -1
- package/web/app/immutable/chunks/{DJ2tjGUh.js → AZ8Xy_Xh.js} +2 -2
- package/web/app/immutable/chunks/{BuUBjVar.js → B40EQFF1.js} +1 -1
- package/web/app/immutable/chunks/{VhDocpDM.js → B9uFsQO_.js} +4 -4
- package/web/app/immutable/chunks/{C9UpJBBj.js → BCb2Hynx.js} +1 -1
- package/web/app/immutable/chunks/{B_A7paAH.js → BDG2v-O6.js} +1 -1
- package/web/app/immutable/chunks/{yrnucJGA.js → BOXzTbe3.js} +1 -1
- package/web/app/immutable/chunks/{BegNZsrj.js → BOpfuH36.js} +1 -1
- package/web/app/immutable/chunks/{GDe3-FMi.js → BQBELrK8.js} +1 -1
- package/web/app/immutable/chunks/{B96xkBqi.js → BQyjLiC0.js} +1 -1
- package/web/app/immutable/chunks/{KoP_1TPv.js → BZCr6ykZ.js} +1 -1
- package/web/app/immutable/chunks/{DpAflFhf.js → BZQMWVq2.js} +1 -1
- package/web/app/immutable/chunks/{Y-OyMtSc.js → Bd8jLsTN.js} +1 -1
- package/web/app/immutable/chunks/{vgBqJ0W5.js → BdlgOWZv.js} +1 -1
- package/web/app/immutable/chunks/{C9rtksN7.js → BfQMGn9-.js} +1 -1
- package/web/app/immutable/chunks/{1aTCAbgv.js → BgvNw2ix.js} +1 -1
- package/web/app/immutable/chunks/{BavSfKsp.js → BiL4QTcV.js} +1 -1
- package/web/app/immutable/chunks/{BkMPf-hH.js → BjdDije1.js} +1 -1
- package/web/app/immutable/chunks/{DdYYYzyf.js → BmvbrR5U.js} +1 -1
- package/web/app/immutable/chunks/{C6U9O50r.js → BrYUi9M4.js} +1 -1
- package/web/app/immutable/chunks/{Dw1fJq7X.js → BslfCNif.js} +1 -1
- package/web/app/immutable/chunks/{BbWt0c2Q.js → Btd6UQfU.js} +1 -1
- package/web/app/immutable/chunks/{DuwPQUhd.js → ByvADqYQ.js} +1 -1
- package/web/app/immutable/chunks/{CUENfhIj.js → ByzmHTuF.js} +1 -1
- package/web/app/immutable/chunks/{C7yU1Im3.js → C0Yhbcvw.js} +1 -1
- package/web/app/immutable/chunks/{DNNI3gyK.js → C0yEwiys.js} +1 -1
- package/web/app/immutable/chunks/{DLVAkJxA.js → C2Dp-Wl8.js} +1 -1
- package/web/app/immutable/chunks/{uuMWQrcj.js → C5G99nVB.js} +12 -12
- package/web/app/immutable/chunks/{BE2RLndQ.js → C72TMHEI.js} +1 -1
- package/web/app/immutable/chunks/{BHWZ3Etq.js → C7tJ8OXj.js} +1 -1
- package/web/app/immutable/chunks/{CidDuwj5.js → CB5CVvIg.js} +1 -1
- package/web/app/immutable/chunks/{D0KK05nQ.js → CBPLWyQ8.js} +1 -1
- package/web/app/immutable/chunks/{DJGM2j6m.js → CBkni_u0.js} +1 -1
- package/web/app/immutable/chunks/{C2J91Ybl.js → CEiAdjWq.js} +1 -1
- package/web/app/immutable/chunks/{Br91V8RL.js → CKWWK9AG.js} +2 -2
- package/web/app/immutable/chunks/{m9ZCGvto.js → CMGOeDRU.js} +1 -1
- package/web/app/immutable/chunks/{CYhYk9vg.js → CMK6nD4P.js} +3 -3
- package/web/app/immutable/chunks/{CevkAW-G.js → CWvv3NtN.js} +1 -1
- package/web/app/immutable/chunks/{CjYf-qr2.js → Cax0Mn2M.js} +1 -1
- package/web/app/immutable/chunks/{DEMIUKCI.js → CbOr2Wo7.js} +1 -1
- package/web/app/immutable/chunks/{p6tdR-bF.js → CcoWXdk5.js} +1 -1
- package/web/app/immutable/chunks/{Bc6DrDuw.js → Cf7gW7aB.js} +1 -1
- package/web/app/immutable/chunks/{D7mXebVR.js → Cg1IDzIA.js} +1 -1
- package/web/app/immutable/chunks/{CB1RbuBr.js → CgmFGCOs.js} +1 -1
- package/web/app/immutable/chunks/{BWf1NdbK.js → CjPqlWA8.js} +1 -1
- package/web/app/immutable/chunks/{ByhfeSoA.js → CkfQIblp.js} +1 -1
- package/web/app/immutable/chunks/{CiytRxeL.js → CkqMzcAU.js} +1 -1
- package/web/app/immutable/chunks/{7VnBiBId.js → Coi-YeL3.js} +1 -1
- package/web/app/immutable/chunks/{BWTqffIS.js → CpbXIHWP.js} +1 -1
- package/web/app/immutable/chunks/{BQyqxanw.js → CqHhPGmA.js} +1 -1
- package/web/app/immutable/chunks/{uEUD23Io.js → CrdWfEsG.js} +1 -1
- package/web/app/immutable/chunks/{DTSeldrl.js → CtQODp8h.js} +3 -3
- package/web/app/immutable/chunks/{COjr4Q76.js → Ctf7Dmj8.js} +2 -2
- package/web/app/immutable/chunks/{C3rfyt9G.js → Cv7PDz7N.js} +1 -1
- package/web/app/immutable/chunks/{DpklRiU5.js → CvCvufVJ.js} +1 -1
- package/web/app/immutable/chunks/{C7b-eHjB.js → CvdR6Bd_.js} +1 -1
- package/web/app/immutable/chunks/{yb3Co1vF.js → Czt_AdsD.js} +1 -1
- package/web/app/immutable/chunks/{tPMekvvd.js → D-jxMveW.js} +1 -1
- package/web/app/immutable/chunks/{CgYlJivn.js → D0V81fq2.js} +1 -1
- package/web/app/immutable/chunks/{BztjFXg4.js → D3Rn6g6v.js} +6 -6
- package/web/app/immutable/chunks/{TJb4C4BX.js → D471hSlY.js} +1 -1
- package/web/app/immutable/chunks/{D46pT3zv.js → DGeJx6D0.js} +1 -1
- package/web/app/immutable/chunks/{DoP1t9d2.js → DGx3tKbO.js} +1 -1
- package/web/app/immutable/chunks/{-rkW0Q6N.js → DIbhT_40.js} +1 -1
- package/web/app/immutable/chunks/{DZcwYGS9.js → DLZwi7N_.js} +1 -1
- package/web/app/immutable/chunks/{DvU6Xs6d.js → DLfUjnGm.js} +1 -1
- package/web/app/immutable/chunks/{DeM2gg0S.js → DNnYGTTZ.js} +1 -1
- package/web/app/immutable/chunks/{yurXhKKF.js → DQ6qUzf1.js} +1 -1
- package/web/app/immutable/chunks/{D7dG8IxI.js → DT0KOxBR.js} +1 -1
- package/web/app/immutable/chunks/{DgTfJBBV.js → DU5JIBjp.js} +1 -1
- package/web/app/immutable/chunks/{DqSulugZ.js → D_rjCUs4.js} +1 -1
- package/web/app/immutable/chunks/{wbi8geh_.js → D_wC6Fqe.js} +1 -1
- package/web/app/immutable/chunks/{uZOAfSHR.js → DblIbdBw.js} +1 -1
- package/web/app/immutable/chunks/{BhB8N3fb.js → DcNaMmNl.js} +1 -1
- package/web/app/immutable/chunks/{B6b75DQb.js → Dd0GRPZW.js} +1 -1
- package/web/app/immutable/chunks/{BMFkTdqL.js → De27JRFf.js} +1 -1
- package/web/app/immutable/chunks/{Bh1vUt9d.js → Deb9adiR.js} +1 -1
- package/web/app/immutable/chunks/{Dm9nSbXn.js → DepfqAOx.js} +1 -1
- package/web/app/immutable/chunks/{BMje4Ns7.js → DgMHJRTi.js} +4 -4
- package/web/app/immutable/chunks/{zfFEy871.js → DgebLBJ3.js} +1 -1
- package/web/app/immutable/chunks/{C22dT4UV.js → DiFdx5oB.js} +1 -1
- package/web/app/immutable/chunks/{Bj7EqZg1.js → Djq26kWU.js} +1 -1
- package/web/app/immutable/chunks/{Cp3ZOsmE.js → Djx7tjiF.js} +1 -1
- package/web/app/immutable/chunks/{6nEKsd4m.js → Dn1W0Y6I.js} +3 -3
- package/web/app/immutable/chunks/{Bmp026-E.js → DnKl4bfl.js} +1 -1
- package/web/app/immutable/chunks/{Bh2TfD77.js → Dnem51XN.js} +1 -1
- package/web/app/immutable/chunks/{CfAeME9p.js → Dtd8hHcj.js} +1 -1
- package/web/app/immutable/chunks/{szAtw5TB.js → Du6fZ610.js} +2 -2
- package/web/app/immutable/chunks/{WI2rU6Dw.js → DwdAFMs6.js} +4 -4
- package/web/app/immutable/chunks/{B2dQCxg7.js → Dy7XitXS.js} +2 -2
- package/web/app/immutable/chunks/{nwV8pNbJ.js → DzLCtzaZ.js} +1 -1
- package/web/app/immutable/chunks/{C2OZB732.js → DzPu3hXf.js} +1 -1
- package/web/app/immutable/chunks/{TWlQnI1a.js → G1wxRXy_.js} +1 -1
- package/web/app/immutable/chunks/{DGyBq8td.js → GNBTf9n2.js} +1 -1
- package/web/app/immutable/chunks/{CApCUeix.js → HwJSjKPR.js} +3 -3
- package/web/app/immutable/chunks/{DuTm84a7.js → JLBeR_lu.js} +1 -1
- package/web/app/immutable/chunks/{DhYZ_jqj.js → L73m0JEz.js} +2 -2
- package/web/app/immutable/chunks/{BRg3yx4t.js → N0DQzoVo.js} +1 -1
- package/web/app/immutable/chunks/{B_j5bBwR.js → On9oBe3C.js} +1 -1
- package/web/app/immutable/chunks/{B_VFEM89.js → PO83wZCL.js} +1 -1
- package/web/app/immutable/chunks/{BfC3EYEu.js → VWARWUyw.js} +4 -4
- package/web/app/immutable/chunks/{D9ihrtxc.js → WA5aF6nq.js} +1 -1
- package/web/app/immutable/chunks/{D3ME3iof.js → WtQ21IhK.js} +1 -1
- package/web/app/immutable/chunks/{Baxo-p4A.js → XxrpDha8.js} +1 -1
- package/web/app/immutable/chunks/{BetmOerX.js → YglZqzQH.js} +1 -1
- package/web/app/immutable/chunks/{ChNn4wkV.js → Z89jOfre.js} +1 -1
- package/web/app/immutable/chunks/{C2fVGsLZ.js → buk5RAoP.js} +1 -1
- package/web/app/immutable/chunks/{C4URXf9z.js → byhfHhUo.js} +1 -1
- package/web/app/immutable/chunks/{45S952xd.js → d5Uq64N6.js} +1 -1
- package/web/app/immutable/chunks/{wDOMtmLO.js → doMsOb8h.js} +3 -3
- package/web/app/immutable/chunks/{DMHwvyvz.js → ejm--nzP.js} +1 -1
- package/web/app/immutable/chunks/{D48YW7ZL.js → glaRhtwK.js} +2 -2
- package/web/app/immutable/chunks/{BWvY_DCM.js → kkAUANeA.js} +1 -1
- package/web/app/immutable/chunks/{DMAj9PUV.js → lV2DHKlu.js} +1 -1
- package/web/app/immutable/chunks/{C2sVpxj-.js → oZSR7jB5.js} +2 -2
- package/web/app/immutable/chunks/{DliGSI4f.js → ocohHyhc.js} +1 -1
- package/web/app/immutable/chunks/{DNtNjvDe.js → qFl3oWnR.js} +1 -1
- package/web/app/immutable/chunks/{6eRayZXD.js → rXzX5xZR.js} +1 -1
- package/web/app/immutable/chunks/{BTTKWVvN.js → vFmgUcY-.js} +1 -1
- package/web/app/immutable/chunks/{BLsWj6oF.js → x7yWobyq.js} +1 -1
- package/web/app/immutable/chunks/{DnSTzyB_.js → yHUOSXrf.js} +1 -1
- package/web/app/immutable/chunks/{BOZgIk7Z.js → yrOFcITJ.js} +1 -1
- package/web/app/immutable/entry/{app.Kv0DFQvR.js → app.DgJ9n1oL.js} +2 -2
- package/web/app/immutable/entry/start.4H5rT-16.js +1 -0
- package/web/app/immutable/nodes/{0.CnX0gjVy.js → 0.Dyl0nNbk.js} +1 -1
- package/web/app/immutable/nodes/{1.BDneWl1s.js → 1.CRLYaZ63.js} +1 -1
- package/web/app/immutable/nodes/{10.DZFL5_cQ.js → 10.DxPon5wB.js} +1 -1
- package/web/app/immutable/nodes/{14.DHFGIJTR.js → 14.B4mlyc1_.js} +1 -1
- package/web/app/immutable/nodes/{18.CaanBxcs.js → 18.8z39u87k.js} +2 -2
- package/web/app/immutable/nodes/{2.DKpY1NjB.js → 2.BA0oK1QI.js} +4 -4
- package/web/app/immutable/nodes/{3.C8i4_bLO.js → 3.BR33xGjs.js} +1 -1
- package/web/app/immutable/nodes/{4.AseZck_W.js → 4.Cd06_jG8.js} +1 -1
- package/web/app/immutable/nodes/{5.CK86dPa5.js → 5.C8pevtne.js} +1 -1
- package/web/app/immutable/nodes/{6.cni0i0ME.js → 6.haMdZkdJ.js} +1 -1
- package/web/app/immutable/nodes/{7.DCy8OShP.js → 7.qUwyypfP.js} +1 -1
- package/web/app/immutable/nodes/{8.DQ-1j6VE.js → 8.B9LxN_HF.js} +4 -4
- package/web/app/immutable/nodes/{9.DDnJ4KMi.js → 9.CuzqllGK.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.YEAegS9Y.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as h}from"./
|
|
1
|
+
import{J as h}from"./DepfqAOx.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./CkxlqZls.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ke,bo as y,bm as Ce,bw as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as yr,m as kr,j as $r,i as Sr,h as Cr,k as Nr}from"./BkP7iWmk.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as I,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as k,c9 as _,aB as x,br as mt}from"./DYhIMPy1.js";import{nC as Rr,II as ct,mK as Wt,ed as Mr,ex as Pr,ey as Ir}from"./fvC-6LgA.js";import{i as z}from"./Cmsd5u03.js";import{I as He,D as Oe,y as Lr,h as at}from"./EFalm4kN.js";import{ds as Ar,bf as Er}from"./COHdP7EQ.js";import{a9 as jt}from"./
|
|
1
|
+
import{t as Ke,bo as y,bm as Ce,bw as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as yr,m as kr,j as $r,i as Sr,h as Cr,k as Nr}from"./BkP7iWmk.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as I,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as k,c9 as _,aB as x,br as mt}from"./DYhIMPy1.js";import{nC as Rr,II as ct,mK as Wt,ed as Mr,ex as Pr,ey as Ir}from"./fvC-6LgA.js";import{i as z}from"./Cmsd5u03.js";import{I as He,D as Oe,y as Lr,h as at}from"./EFalm4kN.js";import{ds as Ar,bf as Er}from"./COHdP7EQ.js";import{a9 as jt}from"./Dn1W0Y6I.js";import{I as it,g as Ge,i as It}from"./eF4sVb1p.js";import{f as xe}from"./BTU_oKHo.js";import"./CkxlqZls.js";import{f as ze,s as zr}from"./DdeuoyZB.js";import"./C400w5jq.js";import{F as fe,$ as Dr,cN as Hr,at as ot,au as pt,b_ as Tr,aS as Wr,bK as jr,bE as Fr,b6 as Br,cS as Gr,cj as Or,b3 as St,cX as Rt,cn as _t,bl as Kr,cB as Ur,ar as Vr}from"./Duz2cV7w.js";import{i as Jr}from"./C5G99nVB.js";import{E as Ft,B as qr}from"./AZ8Xy_Xh.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Vt}from"./C9iqPxLd.js";import"./DJpoQ2fS.js";import{M as Mt}from"./DwdAFMs6.js";import{t as Ct}from"./BPRVG6k-.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Xr($){const r=[];if(!$)return r;const d=$.split(`
|
|
2
2
|
`);let m=null,b=0,u=0;const W=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){W(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Yr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=y(r,"lineNumber",7,0),m=y(r,"fileName",7,""),b=y(r,"onSend",7),u=y(r,"onClose",7),W=y(r,"isSending",7,!1),P=y(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||W()||(b()?.(e(h).trim(),d(),m()),I(h,""))}function pe(L){L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),K()),L.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(L=0){d(L),k()},get fileName(){return m()},set fileName(L=""){m(L),k()},get onSend(){return b()},set onSend(L){b(L),k()},get onClose(){return u()},set onClose(L){u(L),k()},get isSending(){return W()},set isSending(L=!1){W(L),k()},get class(){return P()},set class(L=""){P(L),k()},$set:Ue,$on:(L,he)=>Ve(r,L,he)},w=Yr(),D=be(w),de=o(D);{let L=_(()=>Ce.codeReview_inlineComment_askLine_placeholder());Vt(de,{onkeydown:pe,get placeholder(){return e(L)},get disabled(){return W()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){I(J,he,!0)},get value(){return e(h)},set value(he){I(h,he,!0)}})}var ce=n(de,2);{let L=_(()=>!e(h).trim()||W());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(L)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),S=be(_e);{var E=me=>{it(me,{size:14})},Le=me=>{fe(me,{get icon(){return Dr},class:"h-3.5 w-3.5"})};z(S,me=>{W()?me(E):me(Le,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(L,he)=>{st();var Ne=et();M(_e=>C(Ne,_e),[()=>Ce.codeReview_inlineComment_cancel_label()]),i(L,Ne)},$$slots:{default:!0}}),s(D);var te=n(D,2),ye=O(te,!0);return M(L=>{ze(D,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),C(ye,L)},[()=>Ce.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=y(r,"annotation",7),m=y(r,"lineNumber",7),b=y(r,"fileName",7),u=y(r,"messages",23,()=>[]),W=y(r,"onSendMessage",7),P=y(r,"onClose",7),h=y(r,"isSending",7,!1),J=y(r,"isAgentResponding",7,!1),K=y(r,"timestamp",7),pe=y(r,"class",7,""),q=we(""),w=we(!1),D=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(W()?.(e(q).trim(),m(),b()),I(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?I(q,""):I(w,!1))}function te(a){switch(a){case"highlight":return Br;case"context":return Fr;case"explanation":default:return jr}}function ye(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function L(a){return a?Lr(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),k()},get lineNumber(){return m()},set lineNumber(a){m(a),k()},get fileName(){return b()},set fileName(a){b(a),k()},get messages(){return u()},set messages(a=[]){u(a),k()},get onSendMessage(){return W()},set onSendMessage(a){W(a),k()},get onClose(){return P()},set onClose(a){P(a),k()},get isSending(){return h()},set isSending(a=!1){h(a),k()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),k()},get timestamp(){return K()},set timestamp(a){K(a),k()},get class(){return pe()},set class(a=""){pe(a),k()},$set:Ue,$on:(a,T)=>Ve(r,a,T)},_e=ln(),S=o(_e),E=o(S),Le=o(E);{let a=_(()=>te(d().type)),T=_(()=>ye(d().type));fe(Le,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(T)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var Y=a=>{var T=Zr(),Z=O(T,!0);M(ee=>C(Z,ee),[()=>L(K())]),i(a,T)};z(A,a=>{K()&&a(Y)})}s(me);var ie=n(me,2);{var $e=a=>{{let T=_(()=>Ce.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(T)},children:(Z,ee)=>{fe(Z,{get icon(){return Hr}})},$$slots:{default:!0}})}};z(ie,a=>{P()&&a($e)})}s(S);var Se=n(S,2);{var ke=a=>{var T=nn(),Z=o(T);xe(Z,{type:"button",variant:"ghost",onclick:()=>I(D,!e(D)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Q,se)=>{var X=en(),c=be(X),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(D)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>C(p,ue),[()=>Ce.codeReview_commentThread_suggestedChanges_label()]),i(Q,X)},$$slots:{default:!0}});var ee=n(Z,2);{var re=Q=>{var se=rn();Ge(se,21,u,X=>X.id,(X,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Gr:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>ze(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),He(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(X,p)}),s(se),He(3,se,()=>Oe,()=>({tier:"moderate"})),i(Q,se)};z(ee,Q=>{e(D)&&Q(re)})}s(T),i(a,T)};z(Se,a=>{e(he)&&a(ke)})}var U=n(Se,2);{var j=a=>{var T=an(),Z=o(T);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(T),M(Q=>C(re,Q),[()=>Ce.codeReview_commentThread_agentResponding_label()]),i(a,T)};z(U,a=>{J()&&a(j)})}var f=n(U,2),H=o(f);{var F=a=>{var T=sn(),Z=be(T),ee=o(Z);{let c=_(()=>Ce.codeReview_commentThread_followUp_placeholder());Vt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){I(de,p,!0)},get value(){return e(q)},set value(p){I(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Tr},class:"h-3 w-3"})};z(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Q=n(re,2);xe(Q,{type:"button",variant:"ghost",onclick:()=>{I(w,!1),I(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>C(B,ue),[()=>Ce.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),X=O(se,!0);M(c=>C(X,c),[()=>Ce.codeReview_commentThread_inputHint_label()]),He(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,T)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>I(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(T,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Wr},class:"h-3 w-3"});var Q=n(re,2),se=O(Q,!0);M(X=>C(se,X),[()=>Ce.codeReview_commentThread_askQuestion_label()]),i(T,ee)},$$slots:{default:!0}})};z(H,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>ze(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),He(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function Lt($,r){if(new.target)return Ke({component:Lt,...$});Je(r,!0);let d=y(r,"fileName",7),m=y(r,"patch",7),b=y(r,"annotations",23,()=>[]),u=y(r,"initialCollapsed",7,!1),W=y(r,"contextLines",7,3),P=y(r,"onSendMessage",7),h=y(r,"isSending",7,!1),J=y(r,"additions",7,0),K=y(r,"deletions",7,0),pe=y(r,"fileDescription",7,""),q=y(r,"class",7,"");const w=_(()=>Xr(m())),D=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(D)||e(D)==="text"||e(D)==="plaintext"||!Bt.getLanguage(e(D))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",V=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:V})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
|
|
3
3
|
`),V=Bt.highlight(N,{language:e(D)}).value.split(`
|
|
4
4
|
`);g.forEach((ne,oe)=>{oe<V.length&&t.set(ne.key,V[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ye=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),L=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ye).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(L).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let V=Math.max(0,l-W());V<=Math.min(G.lines.length-1,l+W());V++){const ne=G.lines[V];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(L).has(oe))return!0}for(const V of e(ae)){const[ne,oe,ve]=V.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const V=Ne(t,G,l.lines[G]);!V&&N===null?N=G:V&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function S(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),I(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];S(t,0,l.lines.length-1)}}function Le(){I(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function Y(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){I(ce,!e(ce))}function Se(t){I(te,t,!0)}function ke(){I(te,null)}function U(t,l,g){P()?.(t,l,g),I(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),H=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const V=N.lines[G];(V.type==="addition"||V.type==="deletion")&&l.push({line:V,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function T(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(T(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),k()},get patch(){return m()},set patch(t){m(t),k()},get annotations(){return b()},set annotations(t=[]){b(t),k()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),k()},get contextLines(){return W()},set contextLines(t=3){W(t),k()},get onSendMessage(){return P()},set onSendMessage(t){P(t),k()},get isSending(){return h()},set isSending(t=!1){h(t),k()},get additions(){return J()},set additions(t=0){J(t),k()},get deletions(){return K()},set deletions(t=0){K(t),k()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),k()},get class(){return q()},set class(t=""){q(t),k()},$set:Ue,$on:(t,l)=>Ve(r,t,l)},re=wn(),Q=o(re),se=o(Q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Ie=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Ie)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),V=o(G),ne=O(V,!0),oe=n(V,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var Te=Ie=>{var Ee=dn(),Fe=O(Ee);M(()=>C(Fe,`+${J()+K()}`)),i(Ie,Ee)};z(Ae,Ie=>{(J()>0||K()>0)&&Ie(Te)})}s(Me),M((Ie,Ee)=>{C(ne,Ie),C(ve,Ee)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var X=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>C(N,pe())),i(t,l)};z(X,t=>{pe()&&t(c)})}s(Q);var p=n(Q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),Te=o(Ae),Ie=O(Te,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),We=n(Ee,2),ge=o(We);Ft(ge,()=>me(ve()),!0),s(ge),s(We),s(Me),M((Qe,Xe,Ye,tt)=>{ze(Me,1,`flex ${Qe??""}`),ze(Ae,1,`w-12 shrink-0 flex select-none ${Xe??""} border-r border-border`),C(Ie,ve().newNum??ve().oldNum??""),ze(Ee,1,`w-5 shrink-0 text-center select-none ${Ye??""}`),C(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>Y(ve())]),i(ne,Me)});var G=n(N,2);{var V=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>C(Me,Ae),[()=>Ce.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};z(G,ne=>{e(le)>e(F).length&&ne(V)})}s(g),s(l),He(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(Te,Ie)=>{st();var Ee=et();M(Fe=>C(Ee,Fe),[()=>Ce.codeReview_fileDiff_expandAll_label()]),i(Te,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=Te=>{var Ie=fn(),Ee=n(be(Ie),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Le,children:(Fe,We)=>{st();var ge=et();M(Qe=>C(ge,Qe),[()=>Ce.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(Te,Ie)};z(Me,Te=>{e(ae).size>0&&Te(Ae)})}s(oe),i(ne,oe)};z(g,ne=>{e(H)&&ne(N)})}var G=n(g,2),V=o(G);Ge(V,21,()=>e(w),It,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(We=>We.startIndex===0));var Te=xn(),Ie=be(Te);{var Ee=We=>{xe(We,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>S(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Qe)=>{var Xe=Gt(),Ye=be(Xe);fe(Ye,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Ye,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>C(xt,ut),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Xe)},$$slots:{default:!0}})};z(Ie,We=>{e(Ae)&&We(Ee)})}var Fe=n(Ie,2);Ge(Fe,19,()=>e(oe).lines,(We,ge)=>`${ve}-${ge}`,(We,ge,Qe)=>{const Xe=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Ye=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Xe)),xt=_(()=>Ne(ve,e(Qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),zt=n(bt,2),wt=o(zt),Dt=o(wt);Ft(Dt,()=>me(e(ge)),!0),s(Dt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let De=_(()=>Ce.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Se(e(Xe)),get title(){return e(De)},children:(je,Be)=>{fe(je,{get icon(){return St}})},$$slots:{default:!0}})}};z(or,Pe=>{P()&&Pe(ir)})}s(zt),s(vt);var Ht=n(vt,2);Ge(Ht,19,()=>e(Ye),(Pe,De)=>`${Pe.line}-${De}`,(Pe,De)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(De)));qt(Be,{get annotation(){return e(De)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(yt,kt,$t)=>U(yt,kt,$t),get isSending(){return h()}})}s(je),He(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Tt=n(Ht,2);{var lr=Pe=>{var De=pn(),je=o(De),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:U,onClose:ke,get isSending(){return h()}})}s(je),s(De),i(Pe,De)};z(Tt,Pe=>{e(tt)&&e(Ye).length===0&&Pe(lr)})}var dr=n(Tt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>S(ve,e(rt).startIndex,e(rt).endIndex),children:(De,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return St},class:"h-2.5 w-2.5"});var ft=n(nt,2),yt=O(ft,!0),kt=n(ft,2);fe(kt,{get icon(){return St},class:"h-2.5 w-2.5"}),M($t=>C(yt,$t),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(De,Be)},$$slots:{default:!0}})};z(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,De,je,Be)=>{ze(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),ze(gt,1,`w-20 shrink-0 flex select-none ${De??""} border-r border-border`),C(rr,e(ge).oldNum??""),C(ar,e(ge).newNum??""),ze(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),C(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>Y(e(ge))]),i(lt,At)};z(er,lt=>{e(xt)&<(tr)})}i(We,ut)}),i(ne,Te)}),s(V),s(G),s(l),He(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>ze(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var yn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),kn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=y(r,"categories",7),m=y(r,"onCategoryClick",7),b=y(r,"class",7,"");function u(w){const D=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return D[w%D.length]}function W(w){const D=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return D[w%D.length]}var P={get categories(){return d()},set categories(w){d(w),k()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),k()},get class(){return b()},set class(w=""){b(w),k()},$set:Ue,$on:(w,D)=>Ve(r,w,D)},h=kn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var q=n(J,2);return Ge(q,21,d,It,(w,D,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ye=yn(),L=o(ye),he=O(L),Ne=n(L,2),_e=o(Ne),S=O(_e,!0),E=n(_e,2),Le=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ye),M((A,Y)=>{ze(he,0,`h-5 w-5 ${A??""}`),C(S,e(D).title),C(Le,e(D).description),C(R,Y)},[()=>W(de),()=>e(D).files.length===1?Ce.codeReview_categoriesGrid_fileCount_one({count:e(D).files.length}):Ce.codeReview_categoriesGrid_fileCount_many({count:e(D).files.length})]),i(ae,ye)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{ze(h,1,`walkthrough-categories-grid ${b()??""}`),C(pe,w)},[()=>Ce.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Sn=x('<p class="text-sm text-subtle mt-2"> </p>'),Cn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=y(r,"category",7),m=y(r,"categoryIndex",7),b=y(r,"filePatchMap",7),u=y(r,"isLast",7,!1),W=y(r,"onSendMessage",7),P=y(r,"isSending",7,!1),h=y(r,"class",7,"");function J(S){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[S%E.length]}const K=_(()=>d().files.map(S=>{const E=b().get(S.path);return{...S,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(S){d(S),k()},get categoryIndex(){return m()},set categoryIndex(S){m(S),k()},get filePatchMap(){return b()},set filePatchMap(S){b(S),k()},get isLast(){return u()},set isLast(S=!1){u(S),k()},get onSendMessage(){return W()},set onSendMessage(S){W(S),k()},get isSending(){return P()},set isSending(S=!1){P(S),k()},get class(){return h()},set class(S=""){h(S),k()},$set:Ue,$on:(S,E)=>Ve(r,S,E)},q=Rn(),w=o(q),D=o(w),de=o(D),ce=n(de,2);{var ae=S=>{var E=$n();i(S,E)};z(ce,S=>{(!u()||e(K).length>0)&&S(ae)})}s(D);var te=n(D,2),ye=o(te),L=O(ye,!0),he=n(ye,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(S,E)=>`${m()}-${E}`,(S,E,Le)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),Y=o(A);{var ie=Se=>{Lt(Se,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return W()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Se=>{var ke=Cn(),U=o(ke),j=n(o(U),2),f=O(j,!0);s(U);var H=n(U,2);{var F=le=>{var a=Sn(),T=O(a,!0);M(()=>C(T,e(E).summary)),i(le,a)};z(H,le=>{e(E).summary&&le(F)})}s(ke),M(()=>C(f,e(E).path)),i(Se,ke)};z(Y,Se=>{e(E).patch?Se(ie):Se($e,-1)})}s(A),s(me),M(()=>ze(R,1,`w-0.5 flex-1 bg-border ${e(Le)===e(K).length-1&&u()?"h-1/2":""}`)),i(S,me)}),s(_e),s(q),M(S=>{ze(q,1,`walkthrough-category-section ${h()??""}`),zr(q,"id",`category-${m()??""}`),ze(de,1,`w-3 h-3 rounded-full ${S??""} ring-4 ring-background shrink-0`),C(L,d().title),C(Ne,d().description)},[()=>J(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),In=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),Ln=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),zn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),Dn=x('<div class="space-y-3 pt-2"></div>'),Hn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Tn=x('<div class="flex justify-end pt-2"><!></div>'),Wn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=y(r,"walkthrough",7),m=y(r,"status",7),b=y(r,"workspaceId",7),u=y(r,"error",7,""),W=y(r,"workspacePath",7),P=y(r,"changes",23,()=>[]),h=y(r,"onSendMessage",7),J=y(r,"isSending",7,!1),K=y(r,"onRegenerate",7),pe=y(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),D=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((Y,ie)=>Y.line-ie.line)}))}]}return[]}),ye=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((Y,ie)=>Y.line-ie.line));return v}),L=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ye).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(L).has(v.relativePath)));Ze(()=>{if(!d()||!W())return;const v=new Set([...e(L),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const Y=Ne(R,A.oldContent,A.newContent);if(Y){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:Y,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),I(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const Y=R.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as n}from"./
|
|
1
|
+
import{g as l,r as m,d as n}from"./vFmgUcY-.js";import{p}from"./Cf7gW7aB.js";import{b as t,ay as o}from"./B9uFsQO_.js";import{M as u,a as f}from"./SyqyCDjk.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,s as r}from"./
|
|
1
|
+
import{c as t,s as r}from"./BmvbrR5U.js";import{b as a}from"./B9uFsQO_.js";var s=a(e=>`${r(e)}
|
|
2
2
|
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./B9uFsQO_.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./
|
|
1
|
+
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./B9uFsQO_.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as mt,bo as k,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./BkP7iWmk.js";import{bs as gt,ca as T,aD as e,bj as vt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as S,bS as bt,aB as $t}from"./DYhIMPy1.js";import{i as A}from"./Cmsd5u03.js";import{k as q}from"./BNaYSa9e.js";import{c as L}from"./Dwtk3MUL.js";import{at as It,cO as wt}from"./Duz2cV7w.js";import{dm as ht,dL as kt}from"./COHdP7EQ.js";import{S as St,c as Ct}from"./
|
|
1
|
+
import{t as mt,bo as k,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./BkP7iWmk.js";import{bs as gt,ca as T,aD as e,bj as vt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as S,bS as bt,aB as $t}from"./DYhIMPy1.js";import{i as A}from"./Cmsd5u03.js";import{k as q}from"./BNaYSa9e.js";import{c as L}from"./Dwtk3MUL.js";import{at as It,cO as wt}from"./Duz2cV7w.js";import{dm as ht,dL as kt}from"./COHdP7EQ.js";import{S as St,c as Ct}from"./DgebLBJ3.js";import{selectScriptById as yt,selectCanDeleteScript as xt}from"./Djq26kWU.js";import"./DdeuoyZB.js";import"./C400w5jq.js";import"./CkxlqZls.js";import"./DJQD2qGi.js";import{M as P}from"./C9Gi_ykP.js";import{g as Dt}from"./DfN8_dcw.js";import{T as Tt}from"./DgMHJRTi.js";import{t as At,e as Bt}from"./Z89jOfre.js";import{II as B,CQ as Vt,u$ as Wt,gO as Ot}from"./fvC-6LgA.js";var Rt=$t("<!> <!>",1);function Ht(V,c){if(new.target)return mt({component:Ht,...V});gt(c,!0);const $=()=>_(J,"$fullContext$",u),Q=()=>_(U,"$canDeleteScript$",u),z=()=>_(K,"$scriptContext$",u),E=()=>_(N,"$script$",u),W=()=>_(X,"$homeView$",u),[u,F]=ut(),G=t=>{var r=b(),n=m(r);{var f=g=>{var w=Rt(),M=m(w);{let v=i(()=>D.workspace_shell_showInBottomBar_tooltip());L(M,()=>P,(h,x)=>{x(h,{get icon(){return It},get label(){return e(v)},onclick:Z,"data-move-to-bottom-bar":!0})})}var st=bt(M,2);{var nt=v=>{var h=b(),x=m(h);{let it=i(()=>D.scripts_delete_label()),ct=i(()=>Q()?void 0:D.scripts_delete_disabled_description());L(x,()=>P,(lt,pt)=>{pt(lt,{get icon(){return wt},get label(){return e(it)},destructive:!0,get disabledReason(){return e(ct)},onclick:Y})})}d(v,h)};A(st,v=>{e(o)&&v(nt)})}d(g,w)};A(n,g=>{$()&&g(f)})}d(t,r)};let s=k(c,"tab",7),a=k(c,"workspaceId",7),C=k(c,"layoutId",7),l=k(c,"isActive",7);const I=i(()=>s().terminalId),o=i(()=>s().scriptId),O=Dt(),p=j(""),y=j("");T(()=>p.set(a())),T(()=>y.set(e(o)??""));const J=ht(p),K=kt(p),N=yt(p,y),U=xt(p,y),X=At(p);let R=!0;vt(()=>{R=!1});function Y(){if(!e(o))return;const t=a(),r=e(o),n=s().id;return Ct(t,r,()=>R&&l()&&a()===t&&e(o)===r&&s().id===n)}function Z(){$()&&(e(o)&&B.dispatch(Vt(a(),e(o))),B.dispatch(Wt(a(),e(I))),B.dispatch(Ot(C()??a(),s().id)))}T(()=>{if(!(!O||!l()))return O.registerActions({actions:G})});var tt={get tab(){return s()},set tab(t){s(t),S()},get workspaceId(){return a()},set workspaceId(t){a(t),S()},get layoutId(){return C()},set layoutId(t){C(t),S()},get isActive(){return l()},set isActive(t){l(t),S()},$set:dt,$on:(t,r)=>ft(c,t,r)},H=b(),et=m(H);{var rt=t=>{var r=b(),n=m(r);q(n,()=>e(o),f=>{{let g=i(()=>W()?.unavailable===!0),w=i(()=>Bt(W()));St(f,{get scriptId(){return e(o)},get workspaceId(){return a()},class:"h-full",get runDisabled(){return e(g)},get runDisabledReason(){return e(w)}})}}),d(t,r)},at=t=>{var r=b(),n=m(r);q(n,()=>e(I),f=>{Tt(f,{get terminalId(){return e(I)},get workspaceId(){return a()},class:"h-full"})}),d(t,r)};A(et,t=>{e(o)&&l()&&z()&&($()||E())?t(rt):e(I)&&l()&&$()&&t(at,1)})}d(V,H);var ot=_t(tt);return F(),ot}export{Ht as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./D_wC6Fqe.js";import{s as ce}from"./5cZE-Bb1.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./B9uFsQO_.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=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),o.length-1&&(this.yylineno-=o.length-1);var f=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as st}from"./C4URXf9z.js";import{g as it}from"./wbi8geh_.js";import{s as at}from"./B3w_tv0r.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./VhDocpDM.js";import{c as kt}from"./BhB8N3fb.js";import{aP as Et}from"./Dm9nSbXn.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as st}from"./byhfHhUo.js";import{g as it}from"./D_wC6Fqe.js";import{s as at}from"./5cZE-Bb1.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./B9uFsQO_.js";import{c as kt}from"./DcNaMmNl.js";import{aP as Et}from"./DepfqAOx.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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 c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),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(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./Cf7gW7aB.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./B9uFsQO_.js";import{p as ut}from"./SyqyCDjk.js";import{o as mt}from"./C7tJ8OXj.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ql=Object.defineProperty;var Dl=(r,t,n)=>t in r?ql(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var pn=(r,t,n)=>Dl(r,typeof t!="symbol"?t+"":t,n);import{t as Ct,bo as g,bw as At,b as Mt,bm as f,bq as jn,bs as cr,br as Bl,bp as _a}from"./BkP7iWmk.js";import{ai as na,bs as Pt,ca as nr,aD as e,bH as H,ay as _e,bS as A,a7 as Tt,W as u,a5 as z,bA as O,bn as Rt,c9 as s,bV as be,aA as m,b_ as $,aj as Tr,aB as I,be as vr,b$ as zr,bO as X,bf as rr,c0 as wn,bl as oe,bj as Hn,c6 as Fl,bo as Wa,br as Jr,am as On,ax as qn,bk as ss,aw as ha,bz as os,cb as ps,c5 as Ua,aC as Ir,cd as yo,bv as zl}from"./DYhIMPy1.js";import{i as B}from"./Cmsd5u03.js";import{g as Cr,e as fn,p as vs,i as Xn,I as Wl,h as ro,X as _i,o as Hl}from"./eF4sVb1p.js";import{I as Ut,F as qa,c as Yn,j as Ul,s as yi,p as no,y as bi,t as qr,g as oa,B as ks,E as is,S as jl}from"./EFalm4kN.js";import{s as ee,f as We,g as ya,c as St,e as tr,b as ba,p as Vl,S as Kl,C as Gl}from"./DdeuoyZB.js";import{b as sn}from"./BaIAhI85.js";import{f as rt,ae as ao,a_ as Ql}from"./BTU_oKHo.js";import{J as Zl,O as Jl,Q as Is}from"./CkxlqZls.js";import"./DJpoQ2fS.js";import"./Dr53ZtPD.js";import"./D2mVOz_B.js";import{s as En}from"./C400w5jq.js";import{F as qt,a1 as Hs,bd as bn,cG as hs,ar as wi,aW as xi,aH as Xl,c5 as Yl,a3 as ls,aK as ed,cJ as td,cI as rd,a0 as _s,az as ds,at as so,I as bo,ag as nd,br as ad,aP as sd,aU as od,bG as id,al as ld,cy as dd,aM as wo,bY as Ss,aF as ja,cS as cd,c7 as ud,bk as fd,b as gd,cl as md,ad as pd,b7 as Ts,cn as xa,cB as vd}from"./Duz2cV7w.js";import{c as ki,A as hd,x as _d}from"./BPRVG6k-.js";import{b as Cs,V as xo}from"./DpolosNq.js";import{a as Ii,b5 as Rr,A as Qa,am as Si,s as yd,n as Ti,d as bd,I as wd,R as xd,av as kd,$ as Id}from"./BfC3EYEu.js";import{bX as Ci,j as Za,a6 as Us,al as cs,F as Sd,au as Ja,aN as Td,aQ as ko}from"./Dm9nSbXn.js";import{t as ia,o as Cd}from"./D52fecD7.js";import{c3 as Xa,aC as Da,cQ as Ai,cS as Un,bU as ys,j as Ad,cJ as Mi,cP as bs,cO as Pi,cM as Ri,g as Rn,aa as Md,ab as Pd,ax as Rd,s as Ed,K as Nd,W as Io,v as Ei,dP as Ld,at as $d,k as Od,u as As,a6 as qd,n as Dd,O as Bd,o as Fd,S as zd,R as Wd,a0 as Hd,q as Ni,r as Li,l as Ud,cT as jd,a4 as Vd,D as Kd,x as Gd,V as So}from"./COHdP7EQ.js";import{II as xt,oD as Qd,ti as Ya,ns as To,va as $i,vc as Oi,rw as Zd,y8 as us,ut as qi,nn as Di,bh as es,y9 as Jd,qa as Xd,sO as Yd,v3 as Bi,nm as ec,mt as tc,i as rc,yB as nc,yy as ac,yA as sc}from"./fvC-6LgA.js";import{a2 as oc,x as Ms,a0 as ic,O as Ps,V as lc,_ as dc,j as cc,o as ka,M as ga,p as uc,F as fc,u as gc,s as mc,L as Rs,J as pc,y as vc,K as hc,Z as Ma,Q as Va,N as Co,m as Ao,E as _c,c as Es,B as Mo,z as yc,v as Po,H as Pa,P as bc,G as wc,i as xc,R as kc,T as Ic,A as Sc,g as Tc,b as Cc,D as Ac,f as Mc,e as Pc,a as Rc,C as Ec,h as Nc,d as js,U as Fi,a3 as Lc,t as $c,k as Oc}from"./DTSeldrl.js";import{i as qc,e as Dc}from"./BCqeyLEa.js";import{g as Ns}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./WI2rU6Dw.js";import{C as Ro}from"./DoP1t9d2.js";import"./C2OZB732.js";import{P as Bc}from"./DvU6Xs6d.js";import"./CWfbH15T.js";import{c as zi}from"./ChTqQfQN.js";import{S as Fc}from"./TJb4C4BX.js";import{D as Eo,M as zc}from"./VhDocpDM.js";import{b as Wc,s as ra,c as fs}from"./yb3Co1vF.js";import{O as ts,y as Ls,E as $s,B as Os,N as Hc,m as Uc,l as jc,k as Vc,d as Ba,C as No,f as Kc,e as Gc,g as Qc}from"./CidDuwj5.js";import{a as Wi,s as Lo}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as an}from"./9bhdf_gz.js";import{P as Jc}from"./DJQD2qGi.js";import{w as qs,u as Ds,M as $o,i as Xc}from"./m9ZCGvto.js";import{R as Hi,C as ws,k as Yc,h as eu,g as tu,i as Oo,P as ru}from"./F6JYuVa2.js";import"./DY9qQwsB.js";import{U as qo,y as Na,o as Ui}from"./DJ2tjGUh.js";import{B as nu}from"./D05xLrNx.js";import{o as ji,r as au,e as su}from"./CevkAW-G.js";import{o as Vi}from"./B2dQCxg7.js";import{g as oo}from"./CP1rOWJf.js";import{a as ou,M as iu}from"./CeRzgChF.js";import{c as Sa}from"./Dwtk3MUL.js";import{A as lu}from"./BetmOerX.js";import{f as du,d as cu}from"./BavSfKsp.js";import{a8 as uu,N as fu,Y as gu,K as Do,X as mu,v as pu}from"./wDOMtmLO.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./BNaYSa9e.js";import{S as _u}from"./DjAk5kVg.js";import{u as yu,a as bu,c as Bo,S as wu}from"./DfxQWSVU.js";import{T as Vs}from"./CmcfBlnY.js";import"./DG3WDlq-.js";import{g as xu}from"./C9iqPxLd.js";import{a as ku}from"./Bggds_Lj.js";import{b as Iu}from"./BbN1PgGi.js";import{b as Fo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./K9ol5Tjr.js";import{n as zo,o as Wo,b as pa,s as Ta,_ as Bs,e as Au}from"./CIyUrgF0.js";import{b7 as Wn,L as Mu}from"./Zl6q5v_F.js";import{x as Pu}from"./CepTMMxo.js";import{c as Ru}from"./BztjFXg4.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:l,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const v=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:l,reason:c,...c==="output-match"&&typeof v?.matchedLine=="string"?{matchedLine:v.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!Ki(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function Ki(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Ho(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Ki(r)}const Z_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Uo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return Ct({component:Gu,...r});Pt(t,!0);const n=(P,we=rr,fe=rr)=>{var C=$u(),ge=z(C);rt(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return fe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return fe()},onclick:()=>D(we()),children:(Ae,Le)=>{Cs(Ae,{glyph:"x"})},$$slots:{default:!0}}),O(C),u(P,C)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),c=g(t,"onEdit",7),v=g(t,"onRemove",7),h=g(t,"onRetry",7),b=g(t,"onCopy",7),S=g(t,"onMenu",7);const M=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],Z=s(()=>[...a()].sort((P,we)=>M(P)-M(we)));let k=be(null),R=be(!1),ne=be(null),K=null;const N=s(()=>a().find(P=>P.id===e(ne)));nr(()=>{(!e(N)||e(N).kind==="image"&&!U(e(N)))&&H(R,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function q(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ae(P,we){if(!(i()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&c()){c()(P.id);return}K=we,H(ne,P.id,!0),H(R,!0)}}async function D(P){i()||(e(ne)===P&&H(R,!1),v()(P),await wn(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const we=a().find(fe=>fe.id===P);i()||!we||!U(we)||(H(R,!1),c()?c()(P):l()(P))}function re(P,we){P.key!=="Delete"||i()||(P.preventDefault(),P.stopPropagation(),D(we))}function T(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function Y(P,we){const fe=Zl()?P.metaKey:P.ctrlKey,C=P.key.toLowerCase();if(fe&&!P.shiftKey&&!P.altKey&&(C==="c"||C==="x")){if(!b()||!T(we)||(P.preventDefault(),P.stopPropagation(),C==="x"&&i()))return;b()(we.id,C==="x");return}re(P,we.id)}function se(P,we){!S()||!T(we)||(P.preventDefault(),S()(we.id))}var Ie={get items(){return a()},set items(P){a(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return i()},set disabled(P=!1){i(P),m()},get onMarkUp(){return l()},set onMarkUp(P){l(P),m()},get onEdit(){return c()},set onEdit(P){c(P),m()},get onRemove(){return v()},set onRemove(P){v(P),m()},get onRetry(){return h()},set onRetry(P){h(P),m()},get onCopy(){return b()},set onCopy(P){b(P),m()},get onMenu(){return S()},set onMenu(P){S(P),m()},$set:At,$on:(P,we)=>Mt(t,P,we)},ue=Ku(),Ne=_e(ue);{var Fe=P=>{var we=Wu();Cr(we,21,()=>e(Z),fe=>fe.id,(fe,C)=>{var ge=Tt(),Ae=_e(ge);{var Le=E=>{var G=Ou(),te=z(G);{let Q=s(()=>i()||e(C).status==="placing");Ii(te,{get id(){return e(C).id},get name(){return e(C).file.name},get type(){return e(C).file.imageMimeType},get imageData(){return e(C).file.imageData},get imageMimeType(){return e(C).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(Q)},get placementStatus(){return e(C).status},get placementError(){return e(C).error}})}var ie=A(te,2);{var ce=Q=>{var Re=Uo(),Be=oe(Re,!0);$(()=>{ee(Re,"data-failed",e(C).status==="failed"||void 0),ee(Re,"role",e(C).status==="failed"?"alert":"status"),ee(Re,"title",e(C).error),X(Be,e(C).status==="failed"?e(C).error??o().attachmentFailed:o().attachmentPending)}),u(Q,Re)};B(ie,Q=>{e(C).status&&Q(ce)})}var w=A(ie,2),Te=z(w);{var Se=Q=>{rt(Q,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(C).id),children:(Re,Be)=>{qt(Re,{get icon(){return Hs},size:16})},$$slots:{default:!0}})};B(Te,Q=>{e(C).status==="failed"&&h()&&Q(Se)})}var L=A(Te,2);{let Q=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(C).file.name}));n(L,()=>e(C).id,()=>e(Q))}O(w),O(G),$(()=>ee(G,"data-attachment-id",e(C).id)),Tr("keydown",G,Q=>Y(Q,e(C))),Tr("contextmenu",G,Q=>se(Q,e(C))),Ut(1,G,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Ut(2,G,()=>Yn,()=>({tier:"fast"})),u(E,G)},Me=E=>{const G=s(()=>e(C).kind==="image"&&!U(e(C))&&e(C).status!=="failed");var te=zu(),ie=z(te);{var ce=pe=>{rt(pe,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(C).name},get disabled(){return i()},onkeydown:$e=>re($e,e(C).id),children:($e,ve)=>{var Oe=qu(),de=_e(Oe);qt(de,{get icon(){return bn},size:20});var Ke=A(de),dt=oe(Ke,!0);$(()=>X(dt,e(C).name)),u($e,Oe)},$$slots:{default:!0}})},w=pe=>{{let $e=s(()=>q(e(C))),ve=s(()=>i()||e(C).kind==="clip"&&(e(C).recording||!e(C).url));rt(pe,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(ve)},onkeydown:Oe=>Y(Oe,e(C)),onclick:Oe=>{Oe.currentTarget instanceof HTMLElement&&ae(e(C),Oe.currentTarget)},children:(Oe,de)=>{var Ke=Tt(),dt=_e(Ke);{var Yt=ze=>{var ct=Du();$(()=>ee(ct,"src",e(C).url)),u(ze,ct)},vt=ze=>{var ct=Fu(),ut=A(z(ct)),it=oe(ut,!0),qe=A(ut);{var kt=j=>{var y=Bu(),ye=oe(y,!0);$(()=>X(ye,e(C).summary)),u(j,y)};B(qe,j=>{e(C).summary&&j(kt)})}O(ct),$(()=>X(it,e(C).duration)),u(ze,ct)};B(dt,ze=>{e(C).kind==="image"?ze(Yt):ze(vt,-1)})}u(Oe,Ke)},$$slots:{default:!0}})}},Te=s(()=>e(C).kind!=="image"||U(e(C)));B(ie,pe=>{e(C).kind==="file"?pe(ce):e(Te)&&pe(w,1)})}var Se=A(ie,2);{var L=pe=>{var $e=Uo(),ve=oe($e,!0);$(()=>{ee($e,"data-failed",e(C).status==="failed"||void 0),ee($e,"role",e(C).status==="failed"?"alert":"status"),ee($e,"title",e(C).error),X(ve,e(C).status==="failed"?e(C).error??o().attachmentFailed:o().attachmentPending)}),u(pe,$e)};B(Se,pe=>{(e(C).status||e(G))&&pe(L)})}var Q=A(Se,2),Re=z(Q);{var Be=pe=>{rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(C).id),children:($e,ve)=>{qt($e,{get icon(){return Hs},size:16})},$$slots:{default:!0}})},nt=pe=>{{let $e=s(()=>c()?o().edit:o().markUp),ve=s(()=>c()?o().edit:o().markUp);rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(ve)},onclick:()=>F(e(C).id),children:(Oe,de)=>{Cs(Oe,{glyph:"pencil"})},$$slots:{default:!0}})}},Qe=s(()=>U(e(C))),Ft=pe=>{{let $e=s(()=>c()?o().edit:o().play),ve=s(()=>c()?o().edit:o().play);rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(ve)},onclick:Oe=>{Oe.currentTarget instanceof HTMLElement&&ae(e(C),Oe.currentTarget)},children:(Oe,de)=>{{let Ke=s(()=>c()?"pencil":"play");Cs(Oe,{get glyph(){return e(Ke)}})}},$$slots:{default:!0}})}};B(Re,pe=>{e(C).status==="failed"&&h()?pe(Be):e(Qe)?pe(nt,1):e(C).kind==="clip"&&!e(C).recording&&e(C).url&&pe(Ft,2)})}var xe=A(Re,2);n(xe,()=>e(C).id,()=>o().remove),O(Q),O(te),$(()=>{ee(te,"data-kind",e(C).kind),ee(te,"data-attachment-id",e(C).id),ee(te,"aria-busy",e(G)||void 0)}),Tr("contextmenu",te,pe=>se(pe,e(C))),Ut(1,te,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Ut(2,te,()=>Yn,()=>({tier:"fast"})),u(E,te)};B(Ae,E=>{e(C).kind==="image"&&e(C).file?E(Le):E(Me,-1)})}u(fe,ge)}),O(we),sn(we,fe=>H(k,fe),()=>e(k)),$(()=>ee(we,"aria-label",o().attachments)),u(P,we)};B(Ne,P=>{e(Z).length&&P(Fe)})}var et=A(Ne,2);{const P=fe=>{var C=Tt(),ge=_e(C);{var Ae=Le=>{var Me=Hu(),E=_e(Me);{var G=w=>{rt(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(N)&&F(e(N).id),children:(Te,Se)=>{vr();var L=zr();$(()=>X(L,o().markUp)),u(Te,L)},$$slots:{default:!0}})},te=s(()=>U(e(N)));B(E,w=>{e(te)&&w(G)})}var ie=A(E,2);rt(ie,{variant:"secondary",get disabled(){return i()},onclick:()=>e(N)&&D(e(N).id),children:(w,Te)=>{vr();var Se=zr();$(()=>X(Se,o().remove)),u(w,Se)},$$slots:{default:!0}});var ce=A(ie,2);rt(ce,{variant:"ghost-light",onclick:()=>{H(R,!1)},children:(w,Te)=>{vr();var Se=zr();$(()=>X(Se,o().done)),u(w,Se)},$$slots:{default:!0}}),u(Le,Me)};B(ge,Le=>{e(N)&&e(N).kind!=="file"&&Le(Ae)})}u(fe,C)};let we=s(()=>e(N)?q(e(N)):o().attachments);ki(et,{get title(){return e(we)},size:"wide",showCloseButton:!1,onCloseAutoFocus:fe=>{fe.preventDefault(),K?.isConnected?K.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(R)},set open(fe){H(R,fe,!0)},footer:P,children:(fe,C)=>{var ge=Tt(),Ae=_e(ge);{var Le=Me=>{var E=Vu(),G=z(E);{var te=w=>{var Te=Uu();$(Se=>{ee(Te,"src",e(N).url),ee(Te,"alt",Se)},[()=>q(e(N))]),u(w,Te)},ie=s(()=>e(N).kind==="image"&&U(e(N))),ce=w=>{var Te=ju();$(Se=>{ee(Te,"src",e(N).url),ee(Te,"aria-label",Se)},[()=>q(e(N))]),u(w,Te)};B(G,w=>{e(ie)?w(te):e(N).kind==="clip"&&e(N).url&&w(ce,1)})}O(E),u(Me,E)};B(Ae,Me=>{e(N)&&e(N).kind!=="file"&&Me(Le)})}u(fe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,ue),Rt(Ie)}na(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Gi(r,t){if(new.target)return Ct({component:Gi,...r});Pt(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=be(!1);function c(){navigator.clipboard.writeText(o()),H(l,!0),setTimeout(()=>{H(l,!1)},2e3)}function v(){i()?.({name:n(),description:a(),content:o()})}var h={get name(){return n()},set name(T){n(T),m()},get description(){return a()},set description(T){a(T),m()},get content(){return o()},set content(T){o(T),m()},get onUseScript(){return i()},set onUseScript(T){i(T),m()},$set:At,$on:(T,Y)=>Mt(t,T,Y)},b=Zu(),S=z(b),M=z(S),Z=z(M),k=z(Z);qt(k,{get icon(){return hs},size:"sm"}),O(Z);var R=A(Z,2),ne=oe(R,!0);O(M);var K=A(M,2),N=z(K);rt(N,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(T,Y)=>{var se=Qu(),Ie=_e(se);{let Ne=s(()=>e(l)?wi:xi);qt(Ie,{get icon(){return e(Ne)},class:"mr-1"})}var ue=A(Ie);$(Ne=>X(ue,` ${Ne??""}`),[()=>e(l)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(T,se)},$$slots:{default:!0}});var U=A(N,2);{var q=T=>{rt(T,{variant:"ghost-light",size:"sm",onclick:v,class:"h-7 px-2",children:(Y,se)=>{vr();var Ie=zr();$(ue=>X(Ie,ue),[()=>f.chat_setupScriptCard_useScript_label()]),u(Y,Ie)},$$slots:{default:!0}})};B(U,T=>{i()&&T(q)})}O(K),O(S);var ae=A(S,2),D=oe(ae,!0),F=A(ae,2),re=oe(F,!0);return O(b),$(()=>{X(ne,n()),X(D,a()),X(re,o())}),u(r,b),Rt(h)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){pn(this,"buffer","");pn(this,"currentToolName",null);pn(this,"currentToolId",null);pn(this,"lastToolId",null);pn(this,"currentToolParams",[]);pn(this,"currentToolResultContent",[]);pn(this,"inToolResult",!1);pn(this,"inCodeBlock",!1);pn(this,"codeBlockLanguage","");pn(this,"codeBlockContent","");pn(this,"characterBuffer","");pn(this,"inCharacterMode",!1);pn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(h=>h.startsWith("❌")||h.startsWith("Error:")),v=this.currentToolResultContent.map(h=>h.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var ql=Object.defineProperty;var Dl=(r,t,n)=>t in r?ql(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var pn=(r,t,n)=>Dl(r,typeof t!="symbol"?t+"":t,n);import{t as Ct,bo as g,bw as At,b as Mt,bm as f,bq as jn,bs as cr,br as Bl,bp as _a}from"./BkP7iWmk.js";import{ai as na,bs as Pt,ca as nr,aD as e,bH as H,ay as _e,bS as A,a7 as Tt,W as u,a5 as z,bA as O,bn as Rt,c9 as s,bV as be,aA as m,b_ as $,aj as Tr,aB as I,be as vr,b$ as zr,bO as X,bf as rr,c0 as wn,bl as oe,bj as Hn,c6 as Fl,bo as Wa,br as Jr,am as On,ax as qn,bk as ss,aw as ha,bz as os,cb as ps,c5 as Ua,aC as Ir,cd as yo,bv as zl}from"./DYhIMPy1.js";import{i as B}from"./Cmsd5u03.js";import{g as Cr,e as fn,p as vs,i as Xn,I as Wl,h as ro,X as _i,o as Hl}from"./eF4sVb1p.js";import{I as Ut,F as qa,c as Yn,j as Ul,s as yi,p as no,y as bi,t as qr,g as oa,B as ks,E as is,S as jl}from"./EFalm4kN.js";import{s as ee,f as We,g as ya,c as St,e as tr,b as ba,p as Vl,S as Kl,C as Gl}from"./DdeuoyZB.js";import{b as sn}from"./BaIAhI85.js";import{f as rt,ae as ao,a_ as Ql}from"./BTU_oKHo.js";import{J as Zl,O as Jl,Q as Is}from"./CkxlqZls.js";import"./DJpoQ2fS.js";import"./Dr53ZtPD.js";import"./D2mVOz_B.js";import{s as En}from"./C400w5jq.js";import{F as qt,a1 as Hs,bd as bn,cG as hs,ar as wi,aW as xi,aH as Xl,c5 as Yl,a3 as ls,aK as ed,cJ as td,cI as rd,a0 as _s,az as ds,at as so,I as bo,ag as nd,br as ad,aP as sd,aU as od,bG as id,al as ld,cy as dd,aM as wo,bY as Ss,aF as ja,cS as cd,c7 as ud,bk as fd,b as gd,cl as md,ad as pd,b7 as Ts,cn as xa,cB as vd}from"./Duz2cV7w.js";import{c as ki,A as hd,x as _d}from"./BPRVG6k-.js";import{b as Cs,V as xo}from"./DpolosNq.js";import{a as Ii,b5 as Rr,A as Qa,am as Si,s as yd,n as Ti,d as bd,I as wd,R as xd,av as kd,$ as Id}from"./VWARWUyw.js";import{bX as Ci,j as Za,a6 as Us,al as cs,F as Sd,au as Ja,aN as Td,aQ as ko}from"./DepfqAOx.js";import{t as ia,o as Cd}from"./D52fecD7.js";import{c3 as Xa,aC as Da,cQ as Ai,cS as Un,bU as ys,j as Ad,cJ as Mi,cP as bs,cO as Pi,cM as Ri,g as Rn,aa as Md,ab as Pd,ax as Rd,s as Ed,K as Nd,W as Io,v as Ei,dP as Ld,at as $d,k as Od,u as As,a6 as qd,n as Dd,O as Bd,o as Fd,S as zd,R as Wd,a0 as Hd,q as Ni,r as Li,l as Ud,cT as jd,a4 as Vd,D as Kd,x as Gd,V as So}from"./COHdP7EQ.js";import{II as xt,oD as Qd,ti as Ya,ns as To,va as $i,vc as Oi,rw as Zd,y8 as us,ut as qi,nn as Di,bh as es,y9 as Jd,qa as Xd,sO as Yd,v3 as Bi,nm as ec,mt as tc,i as rc,yB as nc,yy as ac,yA as sc}from"./fvC-6LgA.js";import{a2 as oc,x as Ms,a0 as ic,O as Ps,V as lc,_ as dc,j as cc,o as ka,M as ga,p as uc,F as fc,u as gc,s as mc,L as Rs,J as pc,y as vc,K as hc,Z as Ma,Q as Va,N as Co,m as Ao,E as _c,c as Es,B as Mo,z as yc,v as Po,H as Pa,P as bc,G as wc,i as xc,R as kc,T as Ic,A as Sc,g as Tc,b as Cc,D as Ac,f as Mc,e as Pc,a as Rc,C as Ec,h as Nc,d as js,U as Fi,a3 as Lc,t as $c,k as Oc}from"./CtQODp8h.js";import{i as qc,e as Dc}from"./BCqeyLEa.js";import{g as Ns}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./DwdAFMs6.js";import{C as Ro}from"./DGx3tKbO.js";import"./DzPu3hXf.js";import{P as Bc}from"./DLfUjnGm.js";import"./CWfbH15T.js";import{c as zi}from"./ChTqQfQN.js";import{S as Fc}from"./D471hSlY.js";import{D as Eo,M as zc}from"./B9uFsQO_.js";import{b as Wc,s as ra,c as fs}from"./Czt_AdsD.js";import{O as ts,y as Ls,E as $s,B as Os,N as Hc,m as Uc,l as jc,k as Vc,d as Ba,C as No,f as Kc,e as Gc,g as Qc}from"./CB5CVvIg.js";import{a as Wi,s as Lo}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as an}from"./9bhdf_gz.js";import{P as Jc}from"./DJQD2qGi.js";import{w as qs,u as Ds,M as $o,i as Xc}from"./CMGOeDRU.js";import{R as Hi,C as ws,k as Yc,h as eu,g as tu,i as Oo,P as ru}from"./F6JYuVa2.js";import"./DY9qQwsB.js";import{U as qo,y as Na,o as Ui}from"./AZ8Xy_Xh.js";import{B as nu}from"./D05xLrNx.js";import{o as ji,r as au,e as su}from"./CWvv3NtN.js";import{o as Vi}from"./Dy7XitXS.js";import{g as oo}from"./CP1rOWJf.js";import{a as ou,M as iu}from"./CeRzgChF.js";import{c as Sa}from"./Dwtk3MUL.js";import{A as lu}from"./YglZqzQH.js";import{f as du,d as cu}from"./BiL4QTcV.js";import{a8 as uu,N as fu,Y as gu,K as Do,X as mu,v as pu}from"./doMsOb8h.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./BNaYSa9e.js";import{S as _u}from"./DjAk5kVg.js";import{u as yu,a as bu,c as Bo,S as wu}from"./DfxQWSVU.js";import{T as Vs}from"./CmcfBlnY.js";import"./DG3WDlq-.js";import{g as xu}from"./C9iqPxLd.js";import{a as ku}from"./Bggds_Lj.js";import{b as Iu}from"./BbN1PgGi.js";import{b as Fo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./K9ol5Tjr.js";import{n as zo,o as Wo,b as pa,s as Ta,_ as Bs,e as Au}from"./CIyUrgF0.js";import{b7 as Wn,L as Mu}from"./Zl6q5v_F.js";import{x as Pu}from"./CepTMMxo.js";import{c as Ru}from"./D3Rn6g6v.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:l,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const v=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:l,reason:c,...c==="output-match"&&typeof v?.matchedLine=="string"?{matchedLine:v.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!Ki(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function Ki(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Ho(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Ki(r)}const Z_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Uo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return Ct({component:Gu,...r});Pt(t,!0);const n=(P,we=rr,fe=rr)=>{var C=$u(),ge=z(C);rt(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return fe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return fe()},onclick:()=>D(we()),children:(Ae,Le)=>{Cs(Ae,{glyph:"x"})},$$slots:{default:!0}}),O(C),u(P,C)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),c=g(t,"onEdit",7),v=g(t,"onRemove",7),h=g(t,"onRetry",7),b=g(t,"onCopy",7),S=g(t,"onMenu",7);const M=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],Z=s(()=>[...a()].sort((P,we)=>M(P)-M(we)));let k=be(null),R=be(!1),ne=be(null),K=null;const N=s(()=>a().find(P=>P.id===e(ne)));nr(()=>{(!e(N)||e(N).kind==="image"&&!U(e(N)))&&H(R,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function q(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ae(P,we){if(!(i()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&c()){c()(P.id);return}K=we,H(ne,P.id,!0),H(R,!0)}}async function D(P){i()||(e(ne)===P&&H(R,!1),v()(P),await wn(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const we=a().find(fe=>fe.id===P);i()||!we||!U(we)||(H(R,!1),c()?c()(P):l()(P))}function re(P,we){P.key!=="Delete"||i()||(P.preventDefault(),P.stopPropagation(),D(we))}function T(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function Y(P,we){const fe=Zl()?P.metaKey:P.ctrlKey,C=P.key.toLowerCase();if(fe&&!P.shiftKey&&!P.altKey&&(C==="c"||C==="x")){if(!b()||!T(we)||(P.preventDefault(),P.stopPropagation(),C==="x"&&i()))return;b()(we.id,C==="x");return}re(P,we.id)}function se(P,we){!S()||!T(we)||(P.preventDefault(),S()(we.id))}var Ie={get items(){return a()},set items(P){a(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return i()},set disabled(P=!1){i(P),m()},get onMarkUp(){return l()},set onMarkUp(P){l(P),m()},get onEdit(){return c()},set onEdit(P){c(P),m()},get onRemove(){return v()},set onRemove(P){v(P),m()},get onRetry(){return h()},set onRetry(P){h(P),m()},get onCopy(){return b()},set onCopy(P){b(P),m()},get onMenu(){return S()},set onMenu(P){S(P),m()},$set:At,$on:(P,we)=>Mt(t,P,we)},ue=Ku(),Ne=_e(ue);{var Fe=P=>{var we=Wu();Cr(we,21,()=>e(Z),fe=>fe.id,(fe,C)=>{var ge=Tt(),Ae=_e(ge);{var Le=E=>{var G=Ou(),te=z(G);{let Q=s(()=>i()||e(C).status==="placing");Ii(te,{get id(){return e(C).id},get name(){return e(C).file.name},get type(){return e(C).file.imageMimeType},get imageData(){return e(C).file.imageData},get imageMimeType(){return e(C).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(Q)},get placementStatus(){return e(C).status},get placementError(){return e(C).error}})}var ie=A(te,2);{var ce=Q=>{var Re=Uo(),Be=oe(Re,!0);$(()=>{ee(Re,"data-failed",e(C).status==="failed"||void 0),ee(Re,"role",e(C).status==="failed"?"alert":"status"),ee(Re,"title",e(C).error),X(Be,e(C).status==="failed"?e(C).error??o().attachmentFailed:o().attachmentPending)}),u(Q,Re)};B(ie,Q=>{e(C).status&&Q(ce)})}var w=A(ie,2),Te=z(w);{var Se=Q=>{rt(Q,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(C).id),children:(Re,Be)=>{qt(Re,{get icon(){return Hs},size:16})},$$slots:{default:!0}})};B(Te,Q=>{e(C).status==="failed"&&h()&&Q(Se)})}var L=A(Te,2);{let Q=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(C).file.name}));n(L,()=>e(C).id,()=>e(Q))}O(w),O(G),$(()=>ee(G,"data-attachment-id",e(C).id)),Tr("keydown",G,Q=>Y(Q,e(C))),Tr("contextmenu",G,Q=>se(Q,e(C))),Ut(1,G,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Ut(2,G,()=>Yn,()=>({tier:"fast"})),u(E,G)},Me=E=>{const G=s(()=>e(C).kind==="image"&&!U(e(C))&&e(C).status!=="failed");var te=zu(),ie=z(te);{var ce=pe=>{rt(pe,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(C).name},get disabled(){return i()},onkeydown:$e=>re($e,e(C).id),children:($e,ve)=>{var Oe=qu(),de=_e(Oe);qt(de,{get icon(){return bn},size:20});var Ke=A(de),dt=oe(Ke,!0);$(()=>X(dt,e(C).name)),u($e,Oe)},$$slots:{default:!0}})},w=pe=>{{let $e=s(()=>q(e(C))),ve=s(()=>i()||e(C).kind==="clip"&&(e(C).recording||!e(C).url));rt(pe,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(ve)},onkeydown:Oe=>Y(Oe,e(C)),onclick:Oe=>{Oe.currentTarget instanceof HTMLElement&&ae(e(C),Oe.currentTarget)},children:(Oe,de)=>{var Ke=Tt(),dt=_e(Ke);{var Yt=ze=>{var ct=Du();$(()=>ee(ct,"src",e(C).url)),u(ze,ct)},vt=ze=>{var ct=Fu(),ut=A(z(ct)),it=oe(ut,!0),qe=A(ut);{var kt=j=>{var y=Bu(),ye=oe(y,!0);$(()=>X(ye,e(C).summary)),u(j,y)};B(qe,j=>{e(C).summary&&j(kt)})}O(ct),$(()=>X(it,e(C).duration)),u(ze,ct)};B(dt,ze=>{e(C).kind==="image"?ze(Yt):ze(vt,-1)})}u(Oe,Ke)},$$slots:{default:!0}})}},Te=s(()=>e(C).kind!=="image"||U(e(C)));B(ie,pe=>{e(C).kind==="file"?pe(ce):e(Te)&&pe(w,1)})}var Se=A(ie,2);{var L=pe=>{var $e=Uo(),ve=oe($e,!0);$(()=>{ee($e,"data-failed",e(C).status==="failed"||void 0),ee($e,"role",e(C).status==="failed"?"alert":"status"),ee($e,"title",e(C).error),X(ve,e(C).status==="failed"?e(C).error??o().attachmentFailed:o().attachmentPending)}),u(pe,$e)};B(Se,pe=>{(e(C).status||e(G))&&pe(L)})}var Q=A(Se,2),Re=z(Q);{var Be=pe=>{rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>h()?.(e(C).id),children:($e,ve)=>{qt($e,{get icon(){return Hs},size:16})},$$slots:{default:!0}})},nt=pe=>{{let $e=s(()=>c()?o().edit:o().markUp),ve=s(()=>c()?o().edit:o().markUp);rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(ve)},onclick:()=>F(e(C).id),children:(Oe,de)=>{Cs(Oe,{glyph:"pencil"})},$$slots:{default:!0}})}},Qe=s(()=>U(e(C))),Ft=pe=>{{let $e=s(()=>c()?o().edit:o().play),ve=s(()=>c()?o().edit:o().play);rt(pe,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(ve)},onclick:Oe=>{Oe.currentTarget instanceof HTMLElement&&ae(e(C),Oe.currentTarget)},children:(Oe,de)=>{{let Ke=s(()=>c()?"pencil":"play");Cs(Oe,{get glyph(){return e(Ke)}})}},$$slots:{default:!0}})}};B(Re,pe=>{e(C).status==="failed"&&h()?pe(Be):e(Qe)?pe(nt,1):e(C).kind==="clip"&&!e(C).recording&&e(C).url&&pe(Ft,2)})}var xe=A(Re,2);n(xe,()=>e(C).id,()=>o().remove),O(Q),O(te),$(()=>{ee(te,"data-kind",e(C).kind),ee(te,"data-attachment-id",e(C).id),ee(te,"aria-busy",e(G)||void 0)}),Tr("contextmenu",te,pe=>se(pe,e(C))),Ut(1,te,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Ut(2,te,()=>Yn,()=>({tier:"fast"})),u(E,te)};B(Ae,E=>{e(C).kind==="image"&&e(C).file?E(Le):E(Me,-1)})}u(fe,ge)}),O(we),sn(we,fe=>H(k,fe),()=>e(k)),$(()=>ee(we,"aria-label",o().attachments)),u(P,we)};B(Ne,P=>{e(Z).length&&P(Fe)})}var et=A(Ne,2);{const P=fe=>{var C=Tt(),ge=_e(C);{var Ae=Le=>{var Me=Hu(),E=_e(Me);{var G=w=>{rt(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(N)&&F(e(N).id),children:(Te,Se)=>{vr();var L=zr();$(()=>X(L,o().markUp)),u(Te,L)},$$slots:{default:!0}})},te=s(()=>U(e(N)));B(E,w=>{e(te)&&w(G)})}var ie=A(E,2);rt(ie,{variant:"secondary",get disabled(){return i()},onclick:()=>e(N)&&D(e(N).id),children:(w,Te)=>{vr();var Se=zr();$(()=>X(Se,o().remove)),u(w,Se)},$$slots:{default:!0}});var ce=A(ie,2);rt(ce,{variant:"ghost-light",onclick:()=>{H(R,!1)},children:(w,Te)=>{vr();var Se=zr();$(()=>X(Se,o().done)),u(w,Se)},$$slots:{default:!0}}),u(Le,Me)};B(ge,Le=>{e(N)&&e(N).kind!=="file"&&Le(Ae)})}u(fe,C)};let we=s(()=>e(N)?q(e(N)):o().attachments);ki(et,{get title(){return e(we)},size:"wide",showCloseButton:!1,onCloseAutoFocus:fe=>{fe.preventDefault(),K?.isConnected?K.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(R)},set open(fe){H(R,fe,!0)},footer:P,children:(fe,C)=>{var ge=Tt(),Ae=_e(ge);{var Le=Me=>{var E=Vu(),G=z(E);{var te=w=>{var Te=Uu();$(Se=>{ee(Te,"src",e(N).url),ee(Te,"alt",Se)},[()=>q(e(N))]),u(w,Te)},ie=s(()=>e(N).kind==="image"&&U(e(N))),ce=w=>{var Te=ju();$(Se=>{ee(Te,"src",e(N).url),ee(Te,"aria-label",Se)},[()=>q(e(N))]),u(w,Te)};B(G,w=>{e(ie)?w(te):e(N).kind==="clip"&&e(N).url&&w(ce,1)})}O(E),u(Me,E)};B(Ae,Me=>{e(N)&&e(N).kind!=="file"&&Me(Le)})}u(fe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,ue),Rt(Ie)}na(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Gi(r,t){if(new.target)return Ct({component:Gi,...r});Pt(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=be(!1);function c(){navigator.clipboard.writeText(o()),H(l,!0),setTimeout(()=>{H(l,!1)},2e3)}function v(){i()?.({name:n(),description:a(),content:o()})}var h={get name(){return n()},set name(T){n(T),m()},get description(){return a()},set description(T){a(T),m()},get content(){return o()},set content(T){o(T),m()},get onUseScript(){return i()},set onUseScript(T){i(T),m()},$set:At,$on:(T,Y)=>Mt(t,T,Y)},b=Zu(),S=z(b),M=z(S),Z=z(M),k=z(Z);qt(k,{get icon(){return hs},size:"sm"}),O(Z);var R=A(Z,2),ne=oe(R,!0);O(M);var K=A(M,2),N=z(K);rt(N,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(T,Y)=>{var se=Qu(),Ie=_e(se);{let Ne=s(()=>e(l)?wi:xi);qt(Ie,{get icon(){return e(Ne)},class:"mr-1"})}var ue=A(Ie);$(Ne=>X(ue,` ${Ne??""}`),[()=>e(l)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(T,se)},$$slots:{default:!0}});var U=A(N,2);{var q=T=>{rt(T,{variant:"ghost-light",size:"sm",onclick:v,class:"h-7 px-2",children:(Y,se)=>{vr();var Ie=zr();$(ue=>X(Ie,ue),[()=>f.chat_setupScriptCard_useScript_label()]),u(Y,Ie)},$$slots:{default:!0}})};B(U,T=>{i()&&T(q)})}O(K),O(S);var ae=A(S,2),D=oe(ae,!0),F=A(ae,2),re=oe(F,!0);return O(b),$(()=>{X(ne,n()),X(D,a()),X(re,o())}),u(r,b),Rt(h)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){pn(this,"buffer","");pn(this,"currentToolName",null);pn(this,"currentToolId",null);pn(this,"lastToolId",null);pn(this,"currentToolParams",[]);pn(this,"currentToolResultContent",[]);pn(this,"inToolResult",!1);pn(this,"inCodeBlock",!1);pn(this,"codeBlockLanguage","");pn(this,"codeBlockContent","");pn(this,"characterBuffer","");pn(this,"inCharacterMode",!1);pn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(h=>h.startsWith("❌")||h.startsWith("Error:")),v=this.currentToolResultContent.map(h=>h.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:v,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),l=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",l&&l.trim()&&l!==`
|
|
3
3
|
`){const c=l.replace(/^\n/,"");c&&(this.characterBuffer=c)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|