@intent-hq/web 2.346.3 → 2.346.4
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/{XuyckbH_.js → 2rbh16KP.js} +1 -1
- package/web/app/immutable/chunks/{2JP5OgdF.js → 4CzdfJpH.js} +1 -1
- package/web/app/immutable/chunks/{jSRaMDVY.js → 4UjNJakA.js} +1 -1
- package/web/app/immutable/chunks/{8LHayabj.js → 6MPt5WH3.js} +1 -1
- package/web/app/immutable/chunks/{CZmb_yca.js → 8hWYh2SV.js} +1 -1
- package/web/app/immutable/chunks/{6qKuCjdA.js → 9kj5ZfRr.js} +1 -1
- package/web/app/immutable/chunks/{o6NTBM2j.js → B-KN8Jlj.js} +1 -1
- package/web/app/immutable/chunks/{LdVrshUq.js → B2fjzJpx.js} +1 -1
- package/web/app/immutable/chunks/{BjyueHVe.js → B4ra8hfV.js} +1 -1
- package/web/app/immutable/chunks/{CnodB1ak.js → B50qxjRT.js} +12 -12
- package/web/app/immutable/chunks/{Cyc9AKzR.js → B88KZW78.js} +1 -1
- package/web/app/immutable/chunks/{CUL4Iea5.js → B8kDwCP_.js} +1 -1
- package/web/app/immutable/chunks/{Ce3hxymX.js → B9Z-QU9w.js} +2 -2
- package/web/app/immutable/chunks/{DN6EDRqv.js → B9b_K-RG.js} +1 -1
- package/web/app/immutable/chunks/{n8cz4x1y.js → BBDyE7y7.js} +1 -1
- package/web/app/immutable/chunks/{U5yX75Fv.js → BBXjSeZz.js} +1 -1
- package/web/app/immutable/chunks/{CB69UzLI.js → BI0ZZ8UO.js} +1 -1
- package/web/app/immutable/chunks/{Cf3lvx7n.js → BIqnmVRf.js} +4 -4
- package/web/app/immutable/chunks/{DKOceApm.js → BJWhwwHx.js} +1 -1
- package/web/app/immutable/chunks/{CX_kUgUI.js → BNJe789p.js} +1 -1
- package/web/app/immutable/chunks/{B4-LumaR.js → BNwYXBCy.js} +1 -1
- package/web/app/immutable/chunks/{CIKf0hiv.js → BSzY-NMz.js} +1 -1
- package/web/app/immutable/chunks/{BVKuTBgW.js → BT9wQ0Ce.js} +6 -6
- package/web/app/immutable/chunks/{Bwi3H4EE.js → Ba-QPC0I.js} +1 -1
- package/web/app/immutable/chunks/{DTT_rauc.js → BepEnAFk.js} +1 -1
- package/web/app/immutable/chunks/{baJQH4o5.js → BfUFKHC3.js} +1 -1
- package/web/app/immutable/chunks/{l8NmpVqL.js → BhXOnc6x.js} +1 -1
- package/web/app/immutable/chunks/{C1s5hjq_.js → Bj5SxeMr.js} +1 -1
- package/web/app/immutable/chunks/{BoCkK5Wk.js → BksE-BZ5.js} +1 -1
- package/web/app/immutable/chunks/{905ViLyg.js → BkwxWGIh.js} +1 -1
- package/web/app/immutable/chunks/{DjbBeQRM.js → By29T7f9.js} +1 -1
- package/web/app/immutable/chunks/{Bf-2W8ee.js → ByDHRaj1.js} +1 -1
- package/web/app/immutable/chunks/{DEQYPNCO.js → C-G83LXE.js} +1 -1
- package/web/app/immutable/chunks/{COZ71ZSJ.js → C0BifgcV.js} +3 -3
- package/web/app/immutable/chunks/{mdG_8hzH.js → C0CqY7Yc.js} +1 -1
- package/web/app/immutable/chunks/{BhwQ3RpS.js → C0WVBwZy.js} +1 -1
- package/web/app/immutable/chunks/{DKRbyLvF.js → C18Lu2A8.js} +1 -1
- package/web/app/immutable/chunks/{Coi6oyYv.js → C1waf3iu.js} +1 -1
- package/web/app/immutable/chunks/{D4wRJWJo.js → C2EstpWq.js} +1 -1
- package/web/app/immutable/chunks/{ByhhTiqD.js → C8MPntD9.js} +1 -1
- package/web/app/immutable/chunks/{D4_mjoiz.js → C9pKpUIK.js} +1 -1
- package/web/app/immutable/chunks/{C2UUXRHQ.js → C9yvm97z.js} +3 -3
- package/web/app/immutable/chunks/{D4gGvbme.js → CBc9tLFK.js} +4 -4
- package/web/app/immutable/chunks/{CwT6KWlV.js → CBq6DlIt.js} +4 -4
- package/web/app/immutable/chunks/{BIuKjPZF.js → CEr-aDm8.js} +1 -1
- package/web/app/immutable/chunks/{SWyKEy91.js → CFj0DasV.js} +1 -1
- package/web/app/immutable/chunks/{_dg-9BeG.js → CG_uU7t2.js} +1 -1
- package/web/app/immutable/chunks/{DvFUmkR8.js → CHr6G3cY.js} +1 -1
- package/web/app/immutable/chunks/{CgthA8iG.js → CK_Ox9jk.js} +1 -1
- package/web/app/immutable/chunks/{CAZtkTon.js → CM4TK2R4.js} +1 -1
- package/web/app/immutable/chunks/{D2X9xdX0.js → CO5MrM9v.js} +1 -1
- package/web/app/immutable/chunks/{CqZy0zQ2.js → CPCmJFz3.js} +1 -1
- package/web/app/immutable/chunks/{CPB4vP4H.js → CVM42XXi.js} +3 -3
- package/web/app/immutable/chunks/{B3GLZuHB.js → CVXxjkW7.js} +1 -1
- package/web/app/immutable/chunks/{Bs4SchIj.js → CY04lbSN.js} +1 -1
- package/web/app/immutable/chunks/{DhUKwJna.js → CZytbhGb.js} +1 -1
- package/web/app/immutable/chunks/{DhWxuzTb.js → CapiHpD_.js} +1 -1
- package/web/app/immutable/chunks/{Bndg0x8W.js → Cc25YYnU.js} +1 -1
- package/web/app/immutable/chunks/{C6WcTrxv.js → CfvmLdft.js} +2 -2
- package/web/app/immutable/chunks/{DtL2rtM8.js → Ch69Gx78.js} +1 -1
- package/web/app/immutable/chunks/{DvTOURZI.js → CjUvLS5U.js} +1 -1
- package/web/app/immutable/chunks/{Dn2BQOth.js → CkOW2_R1.js} +1 -1
- package/web/app/immutable/chunks/{CHDzcbuO.js → CkbCPRkQ.js} +1 -1
- package/web/app/immutable/chunks/{D9u2PK-L.js → CkuIoWee.js} +1 -1
- package/web/app/immutable/chunks/{BWqWCv74.js → ClG9H6Ln.js} +1 -1
- package/web/app/immutable/chunks/{BcTzrLaX.js → CoMnnGKT.js} +1 -1
- package/web/app/immutable/chunks/{DklZSLh2.js → CpCtdYM3.js} +1 -1
- package/web/app/immutable/chunks/{B_E_i0pj.js → Cs3L-D2A.js} +1 -1
- package/web/app/immutable/chunks/{DI8xYaVc.js → CtZBPGmK.js} +1 -1
- package/web/app/immutable/chunks/{wz6AT1mX.js → Cu1u-4wq.js} +1 -1
- package/web/app/immutable/chunks/{DUOZnHQ0.js → CugnkL_9.js} +4 -4
- package/web/app/immutable/chunks/{CABbtsx1.js → Cy8JcjH6.js} +1 -1
- package/web/app/immutable/chunks/{DpUWgmrg.js → D-ZcbI-Y.js} +1 -1
- package/web/app/immutable/chunks/{LxLcg7tj.js → D-uBGxZi.js} +1 -1
- package/web/app/immutable/chunks/{BjQLXdCG.js → D0s1SVt5.js} +1 -1
- package/web/app/immutable/chunks/{D6HxW8tD.js → D0wPN4-P.js} +1 -1
- package/web/app/immutable/chunks/{D6VwVF_C.js → D32HMlYT.js} +1 -1
- package/web/app/immutable/chunks/{CFvWMGvD.js → D8tPfa9K.js} +2 -2
- package/web/app/immutable/chunks/{D3BzyAjt.js → DDjhSDXW.js} +1 -1
- package/web/app/immutable/chunks/{D4iUNFJq.js → DJhhNZ7M.js} +1 -1
- package/web/app/immutable/chunks/{D1PKFqe0.js → DOzvQ0Rd.js} +1 -1
- package/web/app/immutable/chunks/{DVlQV8vI.js → DPpH6C1S.js} +1 -1
- package/web/app/immutable/chunks/{DLH4F1ED.js → DU-RLEFB.js} +1 -1
- package/web/app/immutable/chunks/{D9kdbyS6.js → DVDOk-ql.js} +1 -1
- package/web/app/immutable/chunks/{BVxykti4.js → DaWQpSHZ.js} +1 -1
- package/web/app/immutable/chunks/{2cCVtmIg.js → Dc5gEXVa.js} +1 -1
- package/web/app/immutable/chunks/{jdYPqvvP.js → DhoGdCQi.js} +1 -1
- package/web/app/immutable/chunks/{DKzgMUBy.js → DjLQeEnc.js} +2 -2
- package/web/app/immutable/chunks/{C2aqDEXl.js → DjakyUlc.js} +1 -1
- package/web/app/immutable/chunks/{BAo6IWBv.js → Dk7aFMZs.js} +1 -1
- package/web/app/immutable/chunks/{CekmJHGy.js → DnahZard.js} +3 -3
- package/web/app/immutable/chunks/{CMb8WXOk.js → DpFPjrHa.js} +2 -2
- package/web/app/immutable/chunks/{DKs0uFks.js → DqgXv99N.js} +1 -1
- package/web/app/immutable/chunks/{Bfufmy9h.js → DrHq7-l3.js} +1 -1
- package/web/app/immutable/chunks/{urgjvk31.js → DuP0kN9u.js} +1 -1
- package/web/app/immutable/chunks/{VpmaCPqv.js → DzHxtEmT.js} +3 -3
- package/web/app/immutable/chunks/{Coq4Q49X.js → GgJbmGSc.js} +1 -1
- package/web/app/immutable/chunks/{BsCcl9ES.js → Ik_OLFJv.js} +1 -1
- package/web/app/immutable/chunks/{cw0Fy9sQ.js → JM_PKnGS.js} +1 -1
- package/web/app/immutable/chunks/{BjQQ-QAR.js → McA_XHBx.js} +1 -1
- package/web/app/immutable/chunks/{D3UJod5R.js → Mg8H3Ad_.js} +2 -2
- package/web/app/immutable/chunks/{B2Nx9i4m.js → PRcE3ypK.js} +1 -1
- package/web/app/immutable/chunks/{AhLUcdeh.js → PTikn3lb.js} +1 -1
- package/web/app/immutable/chunks/{DP4V6iDW.js → R-YEJgRO.js} +1 -1
- package/web/app/immutable/chunks/{M1o9ycAe.js → S3oleArH.js} +2 -2
- package/web/app/immutable/chunks/{CjxlVYMT.js → SVOpkWQp.js} +2 -2
- package/web/app/immutable/chunks/{BgO7_9-9.js → WVba34Wr.js} +1 -1
- package/web/app/immutable/chunks/{B3Z7v7rH.js → _q-KbJHf.js} +1 -1
- package/web/app/immutable/chunks/{B6lORqss.js → aK5j3GUe.js} +1 -1
- package/web/app/immutable/chunks/{3kodm_f4.js → b30yTgwC.js} +1 -1
- package/web/app/immutable/chunks/{CK8WOQOm.js → b_tEJldq.js} +1 -1
- package/web/app/immutable/chunks/{CyYhxGJX.js → cQMohqSY.js} +1 -1
- package/web/app/immutable/chunks/{CD1fj6ns.js → d7GMXNij.js} +1 -1
- package/web/app/immutable/chunks/{CHKJ-bXh.js → dWKHnuAl.js} +1 -1
- package/web/app/immutable/chunks/{B7J_zYsA.js → e3tI_GeB.js} +1 -1
- package/web/app/immutable/chunks/{DcwiOhhA.js → g9XYCabR.js} +1 -1
- package/web/app/immutable/chunks/{B5jn8aKG.js → jX7_8poo.js} +1 -1
- package/web/app/immutable/chunks/{D2hrkGhh.js → khtpv5vo.js} +1 -1
- package/web/app/immutable/chunks/{Q9dh-ELL.js → mP3jvNc-.js} +1 -1
- package/web/app/immutable/chunks/{CcUMYD8T.js → ryfL7_qm.js} +1 -1
- package/web/app/immutable/chunks/{DHbLiTwn.js → s464WHxX.js} +1 -1
- package/web/app/immutable/chunks/{BXVSJTKx.js → tgq3aX1k.js} +1 -1
- package/web/app/immutable/chunks/{mli93Dcp.js → yhs5mgcb.js} +1 -1
- package/web/app/immutable/chunks/{2FIlKX-3.js → z8H4OcR3.js} +1 -1
- package/web/app/immutable/entry/{app.BTU46CGQ.js → app.DnRD5eKq.js} +2 -2
- package/web/app/immutable/entry/start.CbqkOfEp.js +1 -0
- package/web/app/immutable/nodes/{0.Ci7PVT_k.js → 0.CmJ43u1e.js} +1 -1
- package/web/app/immutable/nodes/{1.BR59lUe8.js → 1.CqfYJXsK.js} +1 -1
- package/web/app/immutable/nodes/{10.DgX_PEe_.js → 10.Bl5RgWV9.js} +1 -1
- package/web/app/immutable/nodes/{14.C7X_5Bue.js → 14.lB98JO4-.js} +1 -1
- package/web/app/immutable/nodes/{18.B3AoO6j9.js → 18.C1RSVrDA.js} +2 -2
- package/web/app/immutable/nodes/{2.DlWTJs6C.js → 2.CALBXNAI.js} +4 -4
- package/web/app/immutable/nodes/{3.DTgoPy4s.js → 3.Cbim6IQ0.js} +1 -1
- package/web/app/immutable/nodes/{4.DSkknvUk.js → 4.CLMy68qv.js} +1 -1
- package/web/app/immutable/nodes/{5.pRTuZIBK.js → 5.DTKqXK_K.js} +1 -1
- package/web/app/immutable/nodes/{6.IXz7usII.js → 6.COrZ368S.js} +1 -1
- package/web/app/immutable/nodes/{7.-QsdIQf6.js → 7.BOwmWuI7.js} +1 -1
- package/web/app/immutable/nodes/{8.s2ERF-BG.js → 8.DVUc29Ay.js} +4 -4
- package/web/app/immutable/nodes/{9.CzyfEfdP.js → 9.Bf5-_PNq.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.VeHGe5l7.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as z,bq as a,by as q,br as O,b as N,bu as D,bs as V}from"./Y9-4hTF9.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as I,bS as Y,bf as P,bA as R,W as S,bn as E,c9 as B,aA as n,aB as K,ca as G,a7 as Z,ay as $}from"./DYhIMPy1.js";import{i as H}from"./BL2lJmRT.js";import{s as W}from"./CrWhihJ_.js";import{b as L,e as w}from"./cFbB-5Cu.js";import{b as U}from"./BaIAhI85.js";import{u as ee,c as M,s as te,b as re,a as se}from"./DfxQWSVU.js";import{C as ae}from"./BS8Oxiwq.js";import{Iz as ne,so as oe,bf as ie}from"./tU_ZJtMw.js";import{b7 as de}from"./
|
|
1
|
+
import{t as z,bq as a,by as q,br as O,b as N,bu as D,bs as V}from"./Y9-4hTF9.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as I,bS as Y,bf as P,bA as R,W as S,bn as E,c9 as B,aA as n,aB as K,ca as G,a7 as Z,ay as $}from"./DYhIMPy1.js";import{i as H}from"./BL2lJmRT.js";import{s as W}from"./CrWhihJ_.js";import{b as L,e as w}from"./cFbB-5Cu.js";import{b as U}from"./BaIAhI85.js";import{u as ee,c as M,s as te,b as re,a as se}from"./DfxQWSVU.js";import{C as ae}from"./BS8Oxiwq.js";import{Iz as ne,so as oe,bf as ie}from"./tU_ZJtMw.js";import{b7 as de}from"./CBq6DlIt.js";import{m as ce}from"./-DqWFMjY.js";import{bU as le}from"./aos1n-nT.js";import{c as ue}from"./Bv2KudWv.js";const fe=Symbol("card-group"),ve=()=>X(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=K('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=K("<div><!> <!></div>");function he(o,e){if(new.target)return z({component:he,...o});A(e,!0);let i=a(e,"ref",15,null),c=a(e,"class",7),s=a(e,"inert",7,!1),u=a(e,"interactive",7,!1),v=a(e,"level",7),f=a(e,"border",7),l=a(e,"selected",7,!1),b=a(e,"media",7),r=a(e,"children",7),g=O(e,me);const m=ve(),k=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=M(p(()=>v()??y+1));te(d);const C=M(d+1);var j={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return s()},set inert(t=!1){s(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:q,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":s()||void 0,"data-interactive":u()||void 0,inert:s(),class:t,...g}),[()=>w("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(k)?m?"border border-border bg-transparent":se(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?w("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var T=I(h);{var F=t=>{var _=be(),Q=I(_);W(Q,b),R(_),S(t,_)};H(T,t=>{b()&&t(F)})}var J=Y(T,2);return W(J,()=>r()??P),R(h),U(h,t=>i(t),()=>i()),S(o,h),E(j)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=K("<div><!></div>");function Se(o,e){if(new.target)return z({component:Se,...o});A(e,!0);let i=a(e,"ref",15,null),c=a(e,"class",7),s=a(e,"flush",7,!1),u=a(e,"children",7),v=O(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return s()},set flush(r=!1){s(r),n()},get children(){return u()},set children(r){u(r),n()},$set:q,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":s()||void 0,class:r,...v}),[()=>w("type-body min-w-0",s()?"p-0":w(ae,"py-4 first:pt-4"),c())]);var b=I(l);return W(b,()=>u()??P),R(l),U(l,r=>i(r),()=>i()),S(o,l),E(f)}function Te(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));G(()=>{o.key?.(),o.active()&&p(e)});const i=B(()=>o.workspaces().some(s=>s.status===ie.Retired));let c=p(()=>x(i));G(()=>{const s=x(i);p(()=>{c&&!s&&o.active()&&e(),c=s})})}function we(o,e){if(new.target)return z({component:we,...o});A(e,!0);const i=()=>D(l,"$connected$",s),c=()=>D(b,"$slot$",s),[s,u]=V();let v=a(e,"workspaceId",7),f=a(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:q,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var k=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};H(m,d=>{i()&&c()!==null&&d(k)})}S(o,g);var y=E(r);return u(),y}export{he as C,we as W,Se as a,Te as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,aW as o}from"./
|
|
1
|
+
import{b as a,aW as o}from"./CBc9tLFK.js";var g=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as fe}from"./
|
|
1
|
+
import{g as fe}from"./9kj5ZfRr.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./CBc9tLFK.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p}from"./DLIkH-mx.js";import{J as s,H as l}from"./
|
|
1
|
+
import{d as p}from"./DLIkH-mx.js";import{J as s,H as l}from"./DhoGdCQi.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./CkOW2_R1.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as B,bq as f,by as T,bs as W,b as j,bo as q,bu as z}from"./Y9-4hTF9.js";import{bs as D,cd as L,ca as O,a7 as E,ay as F,W as d,bn as G,aA as h,aD as t,c9 as r,a5 as H,bl as J,bA as K,b_ as M,bO as N,aB as Q}from"./DYhIMPy1.js";import{i as R}from"./BL2lJmRT.js";import{C as U}from"./
|
|
1
|
+
import{t as B,bq as f,by as T,bs as W,b as j,bo as q,bu as z}from"./Y9-4hTF9.js";import{bs as D,cd as L,ca as O,a7 as E,ay as F,W as d,bn as G,aA as h,aD as t,c9 as r,a5 as H,bl as J,bA as K,b_ as M,bO as N,aB as Q}from"./DYhIMPy1.js";import{i as R}from"./BL2lJmRT.js";import{C as U}from"./z8H4OcR3.js";import{dr as V}from"./ClH0Gega.js";import{i as X}from"./H2jLkRRS.js";var Y=Q('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});D(o,!0);const l=()=>z(b,"$workspace",u),[u,m]=W();let s=f(o,"tab",7),n=f(o,"workspaceId",7);const i=L(n());O(()=>{i.set(n())});const b=V(i),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),g=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(g).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:T,$on:(e,a)=>j(o,e,a)},p=E(),y=F(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=H(a),$=J(A,!0);K(a),M(S=>N($,S),[()=>q.layout_chatChanges_noChanges_label()]),d(e,a)};R(y,e=>{t(g).length>0?e(P):e(I,-1)})}d(c,p);var x=G(C);return m(),x}export{Z as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Iz as l,rn as u,Ic as b}from"./tU_ZJtMw.js";import{W as v,bl as S}from"./aos1n-nT.js";import{bv as m}from"./ClH0Gega.js";import{bQ as M,bM as P}from"./
|
|
1
|
+
import{Iz as l,rn as u,Ic as b}from"./tU_ZJtMw.js";import{W as v,bl as S}from"./aos1n-nT.js";import{bv as m}from"./ClH0Gega.js";import{bQ as M,bM as P}from"./d7GMXNij.js";import{bo as s}from"./Y9-4hTF9.js";import{t as E}from"./BLgIfeYS.js";const B=l.createSelector(t=>t.backgroundAgentSettings.defaultModel),D=l.createSelector(t=>t.backgroundAgentSettings.typeOverrides),O=l.createSelector(t=>t.backgroundAgentSettings.defaultReasoningEffort),j=l.createSelector(t=>t.backgroundAgentSettings.typeReasoningEffortOverrides),H=l.createSelector(t=>t.backgroundAgentSettings),A=l.createSelector(t=>{const a=new Map,o=(e,i)=>{const n=a.get(e)??new Set;n.add(i),a.set(e,n)},_=m.select(t),d=v.select(t),g=S.select(t)[d];g&&d&&o(d,s.settings_providers_inUseDefaultModel_label({model:g})),u(d)&&!g&&o(d,s.settings_providers_inUseDefaultProvider_label());const p=t.backgroundAgentSettings?.providerId;p&&u(p)&&o(p,s.settings_providers_inUseQuickActions_label());for(const e of M.select(t)){const i=P.select(t,e.id),n=e.source?{project:s.settings_providers_pinSourceProject_label(),user:s.settings_providers_pinSourceUser_label(),bundled:s.settings_providers_pinSourceBundled_label(),builtin:s.settings_providers_pinSourceBuiltin_label(),"electron-store":s.settings_providers_pinSourceLegacy_label()}[e.source]:void 0,c=r=>n&&i?s.settings_providers_inUseSourcePath_label({reason:r,source:n,path:i}):n?s.settings_providers_inUseSource_label({reason:r,source:n}):i?s.settings_providers_inUsePath_label({reason:r,path:i}):r;if(e.codingAgent&&o(e.codingAgent,c(s.settings_providers_inUseSpecialistAgent_label({name:e.name}))),e.modelOptions?.forEach((r,f)=>{r.provider&&u(r.provider)&&o(r.provider,c(s.settings_providers_inUseSpecialistModelOption_label({name:e.name,position:E(f+1)})))}),e.defaultModel)if(e.defaultModel.includes(":")){const r=b(e.defaultModel).providerId??_;o(r,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}else e.codingAgent||o(_,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}return Object.fromEntries([...a].map(([e,i])=>[e,[...i].join(`
|
|
2
2
|
`)]))});l.createSelector((t,a)=>A.select(t)[a]??null);const I=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],w=I.map(({id:t})=>t);export{w as T,I as a,O as b,H as c,D as d,j as e,A as f,B as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Fe,bq as X,bo as M,by as je,b as qe,bu as ze,bs as at,bt as xt}from"./Y9-4hTF9.js";import{bs as Ne,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Be,ca as yt,bk as st,bH as Pe,bV as Oe,a7 as fe,be as $e,b$ as ke,bO as O,bl as Ae}from"./DYhIMPy1.js";import{i as U}from"./BL2lJmRT.js";import{k as ot}from"./C6vwP-ay.js";import{g as Ie}from"./BZQDFgmp.js";import{c as P}from"./CPKMQWOs.js";import{s as Ee,f as Je,c as Qe,b as Ye}from"./cFbB-5Cu.js";import{P as He,h as Me,i as Se,g as We}from"./Bv2KudWv.js";import{B as At,t as T,E as Ze,d as Pt}from"./BS8Oxiwq.js";import"./DOH10_LL.js";import{C as Tt}from"./B3Z7v7rH.js";import"./-CHLoCv2.js";import{Iz as xe,fh as Rt,Ev as nt,CV as it,pw as It}from"./tU_ZJtMw.js";import{aO as lt,aL as zt,aM as Dt,dt as Lt}from"./ClH0Gega.js";import{d as Et,r as Ht}from"./DZHzDies.js";import{M as Mt}from"./COZ71ZSJ.js";import{k as St}from"./CwT6KWlV.js";import{e as et}from"./M1o9ycAe.js";import{T as Wt,e as Ct}from"./jdYPqvvP.js";import{o as Bt}from"./B3GLZuHB.js";import{f as Ce}from"./q6hitSEG.js";import{S as De}from"./DqcBqbDI.js";import{F as Le,_ as Ot,c_ as Ft,as as jt,bj as qt}from"./Mc93eSxl.js";var Nt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Fe({component:dt,...b});Ne(l,!0);const Q=At();bt(Q.cleanup);let D=X(l,"detail",7,!1),F=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var L={get detail(){return D()},set detail(i=!1){D(i),J()},get count(){return F()},set count(i=5){F(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:je,$on:(i,I)=>qe(l,i,I)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var I=Gt(),g=R(I),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);Ie(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Nt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,I)},Te=i=>{var I=Ut();Ie(I,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);Ie(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(S),r(g,S)}),c(I),r(i,I)},_e=i=>{var I=Qt(),g=R(I);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};U(g,d=>{Z()&&d(ee)})}var S=n(g,2);Ie(S,16,()=>Array.from({length:F()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,I)};U(be,i=>{D()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Ee(y,"aria-label",i),Ee(y,"data-reduced",Q.current),Je(ie,1,Qe(D()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),r(b,y),Ge(L)}function ct(b){return b.filter(Et)}function Zt(){let b=null;return(l,Q)=>{const D=b?l.find(Y=>Y.id===b):void 0;if(D)return D;const F=Ht(l);return b=Q&&F?String(F.id):null,F}}function er(b,l,Q){return l&&b.find(D=>D.id===l)||Q}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Fe({component:vt,...b});Ne(l,!0);const Q=()=>ze(ie,"$agents$",F),D=()=>ze(be,"$loaded$",F),[F,Y]=at();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),L=X(l,"agent",7);const y=Be(()=>Z().id),ie=lt(y),be=zt(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:L()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Oe(void 0),i=0;function I(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Oe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(It(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:I,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return L()},set agent(t){L(t),J()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>O(q,ae),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>L().id,q=>{{let ae=$(()=>e(_e)?.agentId===L().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return L().id},get agentName(){return L().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.home_detail_unavailable()]),r(q,ae)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(k):L()?t(te,1):!D()&&!e(g)?t(j,2):D()?t(re,-1):t(de,3)})}c(h),x(()=>Ee(h,"data-workspace-link-target",Z().id)),r(b,h);var ce=Ge(d);return Y(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Fe({component:ur,...b});Ne(l,!0);const Q=()=>ze(_e,"$readRevision$",Y),D=()=>ze(Te,"$agents$",Y),F=()=>ze(I,"$pickedId$",Y),[Y,Z]=at();let s=X(l,"workspace",7),L=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Be(()=>s().id),Te=lt(le),_e=Dt(le),i=Be(()=>Q()),I=Wt(le),g=$(()=>ct(D())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>er(e(g),F(),e(S)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Oe(!1);async function te(){Pe(k,!1);try{await Ct(s().id),Pe(k,!Lt.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Bt(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),J()},get onclose(){return L()},set onclose(a){L(a),J()},get preview(){return y()},set preview(a=!1){y(a),J()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),J()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>He,(a,f)=>{f(a,{children:(N,oe)=>{var G=fe(),W=R(G);P(W,()=>Me,(ve,E)=>{E(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const C=(H,B)=>{let z=()=>(B?.()).props;{let v=$(()=>M.home_open_workspace());Ce(H,xt(z,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);Le(we,{get icon(){return Ot},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>O(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(H,B)=>{B(H,{child:C,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(C,H)=>{H(C,{children:(B,z)=>{$e();var v=ke();x(()=>O(v,e(be))),r(B,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(N,G)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),N=u(f);{let oe=$(()=>M.home_close_preview()),G=$(()=>M.home_close_preview());Ce(N,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return L()},children:(W,ve)=>{Le(W,{get icon(){return Ft}})},$$slots:{default:!0}})}c(f),r(a,f)};U(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),N=R(f);P(N,()=>He,(oe,G)=>{G(oe,{children:(W,ve)=>{var E=fe(),V=R(E);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),H=R(C);{const z=(v,p)=>{let K=()=>(p?.()).props;var _=or();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Le(pe,{get icon(){return qt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),x(()=>O(Re,e(A))),r(v,_)};P(H,()=>Se,(v,p)=>{p(v,{child:z,$$slots:{child:!0}})})}var B=n(H);P(B,()=>We,(z,v)=>{v(z,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(W,E)},$$slots:{default:!0}})}),r(a,f)};U(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),N=R(f);P(N,()=>He,(oe,G)=>{G(oe,{children:(W,ve)=>{var E=fe(),V=R(E);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),H=R(C);{const z=(v,p)=>{let K=()=>(p?.()).props;var _=nr();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>O(se,s().statusMessage)),r(v,_)};P(H,()=>Se,(v,p)=>{p(v,{child:z,$$slots:{child:!0}})})}var B=n(H);P(B,()=>We,(z,v)=>{v(z,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(W,E)},$$slots:{default:!0}})}),r(a,f)};U(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),N=u(f);{let oe=$(()=>e(d)?.id??"");P(N,()=>De.Root,(G,W)=>{W(G,{get value(){return e(oe)},onchange:ve=>{const E=e(g).find(V=>V.id===ve);E&&h(E.id)},children:(ve,E)=>{var V=tt(),ge=R(V);{let ne=$(()=>M.home_agents());P(ge,()=>De.Trigger,(he,C)=>{C(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(H,B)=>{var z=ir(),v=R(z);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);Le(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>O(_,e(d)?.name)),r(H,z)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>De.Content,(ne,he)=>{he(ne,{portal:!0,children:(C,H)=>{var B=fe(),z=R(B);Ie(z,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>De.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>O($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,K)}),r(C,B)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};U(Ve,a=>{e(g).length&&a(ft)})}var Ke=n(Ve,2);{var _t=a=>{var f=cr(),N=u(f),oe=Ae(N,!0),G=n(N,2);Ce(G,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var E=ke();x(V=>O(E,V),[()=>M.home_retry()]),r(W,E)},$$slots:{default:!0}}),c(f),x(W=>O(oe,W),[()=>M.home_detail_unavailable()]),r(a,f)};U(Ke,a=>{e(k)&&a(_t)})}var Ue=n(Ke,2),gt=u(Ue);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(re),x(a=>Ee(re,"aria-label",a),[()=>M.home_workspace_details()]),r(b,re);var ht=Ge(de);return Z(),ht}export{dt as H,ur as a};
|
|
1
|
+
import{t as Fe,bq as X,bo as M,by as je,b as qe,bu as ze,bs as at,bt as xt}from"./Y9-4hTF9.js";import{bs as Ne,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Be,ca as yt,bk as st,bH as Pe,bV as Oe,a7 as fe,be as $e,b$ as ke,bO as O,bl as Ae}from"./DYhIMPy1.js";import{i as U}from"./BL2lJmRT.js";import{k as ot}from"./C6vwP-ay.js";import{g as Ie}from"./BZQDFgmp.js";import{c as P}from"./CPKMQWOs.js";import{s as Ee,f as Je,c as Qe,b as Ye}from"./cFbB-5Cu.js";import{P as He,h as Me,i as Se,g as We}from"./Bv2KudWv.js";import{B as At,t as T,E as Ze,d as Pt}from"./BS8Oxiwq.js";import"./DOH10_LL.js";import{C as Tt}from"./_q-KbJHf.js";import"./-CHLoCv2.js";import{Iz as xe,fh as Rt,Ev as nt,CV as it,pw as It}from"./tU_ZJtMw.js";import{aO as lt,aL as zt,aM as Dt,dt as Lt}from"./ClH0Gega.js";import{d as Et,r as Ht}from"./DZHzDies.js";import{M as Mt}from"./C0BifgcV.js";import{k as St}from"./CBq6DlIt.js";import{e as et}from"./S3oleArH.js";import{T as Wt,e as Ct}from"./DhoGdCQi.js";import{o as Bt}from"./CVXxjkW7.js";import{f as Ce}from"./q6hitSEG.js";import{S as De}from"./DqcBqbDI.js";import{F as Le,_ as Ot,c_ as Ft,as as jt,bj as qt}from"./Mc93eSxl.js";var Nt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Fe({component:dt,...b});Ne(l,!0);const Q=At();bt(Q.cleanup);let D=X(l,"detail",7,!1),F=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var L={get detail(){return D()},set detail(i=!1){D(i),J()},get count(){return F()},set count(i=5){F(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:je,$on:(i,I)=>qe(l,i,I)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var I=Gt(),g=R(I),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);Ie(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Nt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,I)},Te=i=>{var I=Ut();Ie(I,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);Ie(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(S),r(g,S)}),c(I),r(i,I)},_e=i=>{var I=Qt(),g=R(I);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};U(g,d=>{Z()&&d(ee)})}var S=n(g,2);Ie(S,16,()=>Array.from({length:F()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,I)};U(be,i=>{D()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Ee(y,"aria-label",i),Ee(y,"data-reduced",Q.current),Je(ie,1,Qe(D()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),r(b,y),Ge(L)}function ct(b){return b.filter(Et)}function Zt(){let b=null;return(l,Q)=>{const D=b?l.find(Y=>Y.id===b):void 0;if(D)return D;const F=Ht(l);return b=Q&&F?String(F.id):null,F}}function er(b,l,Q){return l&&b.find(D=>D.id===l)||Q}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Fe({component:vt,...b});Ne(l,!0);const Q=()=>ze(ie,"$agents$",F),D=()=>ze(be,"$loaded$",F),[F,Y]=at();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),L=X(l,"agent",7);const y=Be(()=>Z().id),ie=lt(y),be=zt(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:L()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Oe(void 0),i=0;function I(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Oe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(It(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:I,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return L()},set agent(t){L(t),J()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>O(q,ae),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>L().id,q=>{{let ae=$(()=>e(_e)?.agentId===L().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return L().id},get agentName(){return L().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.home_detail_unavailable()]),r(q,ae)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>O(ae,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(k):L()?t(te,1):!D()&&!e(g)?t(j,2):D()?t(re,-1):t(de,3)})}c(h),x(()=>Ee(h,"data-workspace-link-target",Z().id)),r(b,h);var ce=Ge(d);return Y(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Fe({component:ur,...b});Ne(l,!0);const Q=()=>ze(_e,"$readRevision$",Y),D=()=>ze(Te,"$agents$",Y),F=()=>ze(I,"$pickedId$",Y),[Y,Z]=at();let s=X(l,"workspace",7),L=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Be(()=>s().id),Te=lt(le),_e=Dt(le),i=Be(()=>Q()),I=Wt(le),g=$(()=>ct(D())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>er(e(g),F(),e(S)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Oe(!1);async function te(){Pe(k,!1);try{await Ct(s().id),Pe(k,!Lt.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Bt(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),J()},get onclose(){return L()},set onclose(a){L(a),J()},get preview(){return y()},set preview(a=!1){y(a),J()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),J()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>He,(a,f)=>{f(a,{children:(N,oe)=>{var G=fe(),W=R(G);P(W,()=>Me,(ve,E)=>{E(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const C=(H,B)=>{let z=()=>(B?.()).props;{let v=$(()=>M.home_open_workspace());Ce(H,xt(z,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);Le(we,{get icon(){return Ot},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>O(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(H,B)=>{B(H,{child:C,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(C,H)=>{H(C,{children:(B,z)=>{$e();var v=ke();x(()=>O(v,e(be))),r(B,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(N,G)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),N=u(f);{let oe=$(()=>M.home_close_preview()),G=$(()=>M.home_close_preview());Ce(N,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return L()},children:(W,ve)=>{Le(W,{get icon(){return Ft}})},$$slots:{default:!0}})}c(f),r(a,f)};U(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),N=R(f);P(N,()=>He,(oe,G)=>{G(oe,{children:(W,ve)=>{var E=fe(),V=R(E);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),H=R(C);{const z=(v,p)=>{let K=()=>(p?.()).props;var _=or();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Le(pe,{get icon(){return qt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),x(()=>O(Re,e(A))),r(v,_)};P(H,()=>Se,(v,p)=>{p(v,{child:z,$$slots:{child:!0}})})}var B=n(H);P(B,()=>We,(z,v)=>{v(z,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(W,E)},$$slots:{default:!0}})}),r(a,f)};U(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),N=R(f);P(N,()=>He,(oe,G)=>{G(oe,{children:(W,ve)=>{var E=fe(),V=R(E);P(V,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),H=R(C);{const z=(v,p)=>{let K=()=>(p?.()).props;var _=nr();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>O(se,s().statusMessage)),r(v,_)};P(H,()=>Se,(v,p)=>{p(v,{child:z,$$slots:{child:!0}})})}var B=n(H);P(B,()=>We,(z,v)=>{v(z,{children:(p,K)=>{$e();var _=ke();x(()=>O(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(W,E)},$$slots:{default:!0}})}),r(a,f)};U(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),N=u(f);{let oe=$(()=>e(d)?.id??"");P(N,()=>De.Root,(G,W)=>{W(G,{get value(){return e(oe)},onchange:ve=>{const E=e(g).find(V=>V.id===ve);E&&h(E.id)},children:(ve,E)=>{var V=tt(),ge=R(V);{let ne=$(()=>M.home_agents());P(ge,()=>De.Trigger,(he,C)=>{C(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(H,B)=>{var z=ir(),v=R(z);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);Le(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>O(_,e(d)?.name)),r(H,z)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>De.Content,(ne,he)=>{he(ne,{portal:!0,children:(C,H)=>{var B=fe(),z=R(B);Ie(z,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>De.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>O($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,K)}),r(C,B)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};U(Ve,a=>{e(g).length&&a(ft)})}var Ke=n(Ve,2);{var _t=a=>{var f=cr(),N=u(f),oe=Ae(N,!0),G=n(N,2);Ce(G,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var E=ke();x(V=>O(E,V),[()=>M.home_retry()]),r(W,E)},$$slots:{default:!0}}),c(f),x(W=>O(oe,W),[()=>M.home_detail_unavailable()]),r(a,f)};U(Ke,a=>{e(k)&&a(_t)})}var Ue=n(Ke,2),gt=u(Ue);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(re),x(a=>Ee(re,"aria-label",a),[()=>M.home_workspace_details()]),r(b,re);var ht=Ge(de);return Z(),ht}export{dt as H,ur as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./
|
|
1
|
+
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./CBc9tLFK.js";import{l as ie}from"./DJhhNZ7M.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),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(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as je}from"./Y9-4hTF9.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./BL2lJmRT.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./BZQDFgmp.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./BLgIfeYS.js";import{f as En,s as Ve,g as lr}from"./cFbB-5Cu.js";import{b as on}from"./BaIAhI85.js";import{Iz as Me,eC as Vs,et as Ks,eu as js,oz as qs,nn as Vt,nr as cr,nq as In,ew as Gs,u_ as Qs,u$ as Xs,v1 as Ys,GD as Zs,IE as Js,ri as eo,eB as to}from"./tU_ZJtMw.js";import{c as no}from"./BgsoTwBt.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./Mc93eSxl.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./ClH0Gega.js";import{L as pr}from"./D1TT2-Xo.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./AhLUcdeh.js";import{q as $e,d as go,g as fo}from"./BhwQ3RpS.js";import"./CrWhihJ_.js";import"./DOH10_LL.js";import{e as mo}from"./M1o9ycAe.js";import{T as Pr}from"./B6lORqss.js";import{g as Nn}from"./C_Lje1cd.js";import{f as ke}from"./q6hitSEG.js";import{C as po}from"./BTrGu4V2.js";import{C as vo}from"./Bv2KudWv.js";import{s as vr}from"./905ViLyg.js";import{t as Dt}from"./BS8Oxiwq.js";import{P as _o,k as _r}from"./CwT6KWlV.js";import{g as wo}from"./Ch-DGnj6.js";import{af as bo,a3 as yo}from"./jdYPqvvP.js";import{ap as Co}from"./VpmaCPqv.js";import{L as wr}from"./COZ71ZSJ.js";import{ad as So,ac as xo,ae as ko}from"./CnodB1ak.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return Ke==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
1
|
+
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as je}from"./Y9-4hTF9.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./BL2lJmRT.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./BZQDFgmp.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./BLgIfeYS.js";import{f as En,s as Ve,g as lr}from"./cFbB-5Cu.js";import{b as on}from"./BaIAhI85.js";import{Iz as Me,eC as Vs,et as Ks,eu as js,oz as qs,nn as Vt,nr as cr,nq as In,ew as Gs,u_ as Qs,u$ as Xs,v1 as Ys,GD as Zs,IE as Js,ri as eo,eB as to}from"./tU_ZJtMw.js";import{c as no}from"./BgsoTwBt.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./Mc93eSxl.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./ClH0Gega.js";import{L as pr}from"./D1TT2-Xo.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./PTikn3lb.js";import{q as $e,d as go,g as fo}from"./C0WVBwZy.js";import"./CrWhihJ_.js";import"./DOH10_LL.js";import{e as mo}from"./S3oleArH.js";import{T as Pr}from"./aK5j3GUe.js";import{g as Nn}from"./C_Lje1cd.js";import{f as ke}from"./q6hitSEG.js";import{C as po}from"./BTrGu4V2.js";import{C as vo}from"./Bv2KudWv.js";import{s as vr}from"./BkwxWGIh.js";import{t as Dt}from"./BS8Oxiwq.js";import{P as _o,k as _r}from"./CBq6DlIt.js";import{g as wo}from"./Ch-DGnj6.js";import{af as bo,a3 as yo}from"./DhoGdCQi.js";import{ap as Co}from"./DzHxtEmT.js";import{L as wr}from"./C0BifgcV.js";import{ad as So,ac as xo,ae as ko}from"./B50qxjRT.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return Ke==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
2
2
|
`):[],a=r?r.split(`
|
|
3
3
|
`):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const y=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:y,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(yr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=yr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),y=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:y,headLines:F-y,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,y,A)=>{let F=y;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const y of b.lines)y.type==="Context"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),r.push(y.content),l.push(y.content),a++,c++):y.type==="Deletion"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),r.push(y.content),a++):y.type==="Addition"&&(y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),l.push(y.content),c++)}return{oldContent:r.join(`
|
|
4
4
|
`),newContent:l.join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/EOsEsFiT.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/EOsEsFiT.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/nodes/0.CmJ43u1e.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/C5SissXF.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CqzfYhYr.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DQlH_Wce.js","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/DjLQeEnc.js","/app/immutable/assets/0.C6uvaa87.css","/app/immutable/nodes/1.CqfYJXsK.js","/app/immutable/chunks/BT9wQ0Ce.js","/app/immutable/chunks/C9pKpUIK.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CALBXNAI.js","/app/immutable/chunks/hUKBOWr5.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CVXxjkW7.js","/app/immutable/chunks/2rbh16KP.js","/app/immutable/chunks/CK_Ox9jk.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/B50qxjRT.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DLIkH-mx.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/PTikn3lb.js","/app/immutable/chunks/d7GMXNij.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/DzHxtEmT.js","/app/immutable/chunks/MA6Nl0OX.js","/app/immutable/chunks/DhoGdCQi.js","/app/immutable/chunks/Dih9qRTv.js","/app/immutable/chunks/C0BifgcV.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/CEbGQG52.js","/app/immutable/chunks/BhpN5y2w.js","/app/immutable/chunks/C9yvm97z.js","/app/immutable/chunks/s464WHxX.js","/app/immutable/chunks/TPdIgwsT.js","/app/immutable/chunks/CkOW2_R1.js","/app/immutable/chunks/DZHzDies.js","/app/immutable/chunks/DpFPjrHa.js","/app/immutable/chunks/CaUG7pKp.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/pBUZ5yOz.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/BYu-G7r_.js","/app/immutable/chunks/Ch-DGnj6.js","/app/immutable/chunks/CkkCr6dG.js","/app/immutable/chunks/C59or46M.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/8hWYh2SV.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/C55nGHPT.js","/app/immutable/chunks/DhO5FJJI.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/Dr9VLQ7a.js","/app/immutable/chunks/C2XebNhA.js","/app/immutable/chunks/GXoNce_4.js","/app/immutable/chunks/BPY8OTRz.js","/app/immutable/chunks/B7myJZdQ.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/S3oleArH.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/B-mfoYJY.js","/app/immutable/chunks/DfqK8haP.js","/app/immutable/chunks/DEApyfNP.js","/app/immutable/chunks/B1Bex3N_.js","/app/immutable/chunks/Cs3L-D2A.js","/app/immutable/chunks/Db6-PdUB.js","/app/immutable/chunks/CBq6DlIt.js","/app/immutable/chunks/BTrGu4V2.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DVDOk-ql.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/DwrUEXuQ.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/g9XYCabR.js","/app/immutable/chunks/-DqWFMjY.js","/app/immutable/chunks/CugnkL_9.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/fqYOWiI-.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/Br0L4BrM.js","/app/immutable/chunks/BIqnmVRf.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/poVs4JlU.js","/app/immutable/chunks/DbdK0wtE.js","/app/immutable/chunks/p7znhYIU.js","/app/immutable/chunks/Ddqq3yIK.js","/app/immutable/chunks/B2lO9JOz.js","/app/immutable/chunks/DU-RLEFB.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.joZv8R-g.css","/app/immutable/nodes/3.Cbim6IQ0.js","/app/immutable/nodes/4.CLMy68qv.js","/app/immutable/nodes/5.DTKqXK_K.js","/app/immutable/chunks/D8tPfa9K.js","/app/immutable/chunks/CzPYlOCC.js","/app/immutable/chunks/C8MPntD9.js","/app/immutable/chunks/CkuIoWee.js","/app/immutable/chunks/DfN8_dcw.js","/app/immutable/chunks/CHr6G3cY.js","/app/immutable/chunks/C-G83LXE.js","/app/immutable/chunks/BkwxWGIh.js","/app/immutable/chunks/Mg8H3Ad_.js","/app/immutable/chunks/R-YEJgRO.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/Bii5NwwM.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/cQMohqSY.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.DF8NAXK-.css","/app/immutable/chunks/8ksyQzxS.js","/app/immutable/chunks/tgq3aX1k.js","/app/immutable/chunks/_q-KbJHf.js","/app/immutable/chunks/DnahZard.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/C0WVBwZy.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BksE-BZ5.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CBc9tLFK.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/BgsoTwBt.js","/app/immutable/chunks/CfvmLdft.js","/app/immutable/chunks/B9Z-QU9w.js","/app/immutable/chunks/ZKiqJWPE.js","/app/immutable/chunks/DPpH6C1S.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/CZytbhGb.js","/app/immutable/chunks/BtFbwSdu.js","/app/immutable/chunks/C2EstpWq.js","/app/immutable/chunks/D0wPN4-P.js","/app/immutable/chunks/rt8UAcU5.js","/app/immutable/assets/conversation-turns.BHHyRLdd.css","/app/immutable/chunks/Cwvr2VA7.js","/app/immutable/chunks/DaWQpSHZ.js","/app/immutable/chunks/CW-YFngS.js","/app/immutable/chunks/GRe-AQYA.js","/app/immutable/chunks/CApIfgsx.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/chunks/DkjTOoF5.js","/app/immutable/assets/DockRecordingEditor.Cpd07eyT.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.COrZ368S.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.BOwmWuI7.js","/app/immutable/chunks/D32HMlYT.js","/app/immutable/nodes/8.DVUc29Ay.js","/app/immutable/chunks/B9b_K-RG.js","/app/immutable/chunks/4xlJdO9z.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/BzUmccFe.js","/app/immutable/chunks/BN2mg-Hu.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/nodes/9.Bf5-_PNq.js","/app/immutable/chunks/CwUHwo2Y.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/B2fjzJpx.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CCk7G8nC.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/D1TT2-Xo.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/DxBGs1BP.js","/app/immutable/chunks/D6rAyjoF.js","/app/immutable/chunks/CO5MrM9v.js","/app/immutable/assets/9.QLJOd4KT.css","/app/immutable/nodes/10.Bl5RgWV9.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.CtUvalit.js","/app/immutable/nodes/12.BEzNSZ5P.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.sp2ZZVeV.js","/app/immutable/chunks/DVJxiIYn.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.lB98JO4-.js","/app/immutable/assets/14.CU62PBbE.css","/app/immutable/nodes/15.DxqMZDdK.js","/app/immutable/assets/15.DBFWhlfB.css","/app/immutable/nodes/16.C_vshDQR.js","/app/immutable/assets/16.DdJIHg9f.css","/app/immutable/nodes/17.BtrKoac8.js","/app/immutable/nodes/18.C1RSVrDA.js","/app/immutable/assets/18.Cznk2DRv.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as o,bo as X,t as lt,bq as f,by as dt,b as pt,c as ft}from"../chunks/Y9-4hTF9.js";import{l as k}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as c,bH as F,c0 as ht,ay as T,bS as It,W as m,bn as At,bV as U,aA as g,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as Z,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/DYhIMPy1.js";import{i as w}from"../chunks/BL2lJmRT.js";import{c as S}from"../chunks/CPKMQWOs.js";import{b as V}from"../chunks/BaIAhI85.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/EOsEsFiT.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const q=500,xt=8,kt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,wt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=wt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(kt,Ct);return e.length>q?`${e.slice(0,q)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
|
|
3
3
|
`).slice(0,xt).map(x).join(`
|
|
4
|
-
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?x(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),u=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),u(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return u()},set form(r){u(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=T(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=T(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var b=Pt();Dt(()=>yt(b,c(B))),m(v,b)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.Ci7PVT_k.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22]),import.meta.url),()=>o(()=>import("../nodes/1.BR59lUe8.js"),__vite__mapDeps([23,4,5,8,24,25,26,27,7,28,3,29,30,31,32,33,11,1,2,34,9]),import.meta.url),()=>o(()=>import("../nodes/2.DlWTJs6C.js"),__vite__mapDeps([35,4,5,7,36,12,13,14,15,3,16,2,11,26,27,8,28,29,30,37,9,32,38,39,33,1,34,20,24,40,21,41,42,43,44,45,46,47,48,49,50,51,52,53,31,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,19,92,93,94,10,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,18,125,126,127,128,129,130,131,132,133,134,135,136,137,25,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),()=>o(()=>import("../nodes/3.DTgoPy4s.js"),__vite__mapDeps([149,4,5,8,37,30,7,28,3,29,24,25,26,27,31,32,33,11,1,2,34,9,42,43,41,44,38,12,13,14,15,16,39,20,45,21,40]),import.meta.url),()=>o(()=>import("../nodes/4.DSkknvUk.js"),__vite__mapDeps([150,4,5,7,10,11,3,46,12,13,14,15,16,2,38,26,27,8,28,29,30,39,33,1,34,20,37,47,43,48,49,50,45,51,52,53,31,32,9,54,55,56,57,58,59,60,61,21,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,40,44,83,84,85,86,87,88,89,90,91,19,92,93,94,42,24,41,95,96,97,98,99]),import.meta.url),()=>o(()=>import("../nodes/5.pRTuZIBK.js"),__vite__mapDeps([151,4,5,56,152,8,31,7,28,3,29,32,30,33,11,1,2,34,27,9,26,36,12,13,14,15,16,37,105,103,77,106,107,55,80,81,108,109,104,110,111,78,57,79,112,113,54,102,114,59,47,43,53,58,101,115,116,88,52,38,39,20,60,61,45,50,21,42,24,41,44,40,117,124,51,49,48,18,100,125,126,64,72,93,153,154,155,84,156,157,158,159,87,160,161,162,85,163,137,164,165,135,166,167,74,138,70,71,139,132,83,168,169,170,143,171,172,173,174,94,175,176,177,178,179,180,181,182,183,25,184,185,186,187,66,67,68,69,188,189,190,121,191,146,147,192,193,194,195,196,197,198,199,200,201,202,131,127,82,203,204,141,205]),import.meta.url),()=>o(()=>import("../nodes/6.IXz7usII.js"),__vite__mapDeps([206,4,5,8,30,7,28,3,29,32,38,2,12,13,14,15,16,11,26,27,39,33,1,34,20,37,43,25,24,49,50,47,48,45,171,9,172,53,31,54,55,56,57,58,124,51,52,59,60,61,21,104,105,103,77,106,107,80,81,108,109,110,111,78,79,112,113,102,114,88,101,115,116,42,41,44,40,117,18,100,125,126,70,71,159,87,153,158,160,161,162,72,85,163,137,164,173,143,174,94,175,176,177,178,179,138,139,180,181,182,183,74,132,83,184,185,186,187,190,89,90,207]),import.meta.url),()=>o(()=>import("../nodes/7.-QsdIQf6.js"),__vite__mapDeps([208,4,5,56,112,209,21,14,40,13,12,15,3,7,16,2,11,53,8,28,29,31,32,30,33,1,34,27,9,37,54,55,26,57,58,113,168]),import.meta.url),()=>o(()=>import("../nodes/8.s2ERF-BG.js"),__vite__mapDeps([210,4,5,8,9,30,7,28,3,29,27,32,31,33,11,1,2,34,77,105,103,37,26,106,107,55,80,81,108,109,104,110,111,78,57,79,56,112,113,54,12,13,14,15,16,102,114,142,120,60,61,45,38,39,20,50,101,115,116,88,53,58,43,52,59,47,21,42,24,41,44,40,117,25,63,211,75,65,49,48,71,212,163,161,184,165,135,93,121,73,82,209,195,196,125,91,96,213,83,214,199,215,216,202]),import.meta.url),()=>o(()=>import("../nodes/9.CzyfEfdP.js"),__vite__mapDeps([217,4,5,152,8,31,7,28,3,29,32,30,33,11,1,2,34,27,9,26,36,12,13,14,15,16,37,105,103,77,106,107,55,80,81,108,109,104,110,111,78,57,79,56,112,113,54,102,114,59,47,43,53,58,101,115,116,88,52,38,39,20,60,61,45,50,21,42,24,41,44,40,117,124,51,49,48,18,100,125,126,64,72,93,153,154,155,84,156,157,158,159,87,160,161,162,85,163,137,164,165,135,166,167,25,133,134,62,63,129,95,96,97,98,99,130,136,194,90,143,140,74,73,218,145,219,220,212,86,221,123,211,121,91,222,223,92,224,225,226,191,227,228,127,196,141,229]),import.meta.url),()=>o(()=>import("../nodes/10.DgX_PEe_.js"),__vite__mapDeps([230,4,5,8,41,24,30,7,28,3,29,27,12,13,14,15,16,2,11,26,32,140,108,31,33,1,34,9,115,37,103,77,53,54,55,56,57,58,100,88,192,141,110,222,223,92,38,39,20,218,145,98,99,97,59,47,43,44,102,219,94,226,93,231]),import.meta.url),()=>o(()=>import("../nodes/11.CtUvalit.js"),__vite__mapDeps([232,4,5,56,112,26,27,8,7,28,3,29,30]),import.meta.url),()=>o(()=>import("../nodes/12.BEzNSZ5P.js"),__vite__mapDeps([233,4,5,8,9,31,7,28,3,29,32,30,33,11,1,2,34,27,26,113,168,234]),import.meta.url),()=>o(()=>import("../nodes/13.sp2ZZVeV.js"),__vite__mapDeps([235,4,5,8,28,3,7,29,33,11,1,2,34,113,168,32,30,31,27,9,236,13,128,143,103,37,77,105,26,106,107,55,80,81,108,109,125,56,112,237]),import.meta.url),()=>o(()=>import("../nodes/14.C7X_5Bue.js"),__vite__mapDeps([238,4,5,8,60,12,13,14,15,3,7,16,2,11,61,45,38,26,27,28,29,30,39,33,1,34,20,37,50,113,168,32,46,47,43,48,49,51,52,53,31,9,54,55,56,57,58,59,21,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,40,44,83,84,85,86,87,88,89,90,91,19,92,93,94,42,24,41,10,95,96,97,98,99,179,101,102,103,104,105,106,107,108,109,110,111,112,114,115,116,117,124,18,100,125,126,138,139,180,118,215,188,189,171,172,159,153,158,160,161,162,163,137,164,173,143,174,175,176,177,178,181,182,183,25,132,184,185,186,187,190,121,191,146,147,192,193,236,239,202]),import.meta.url),()=>o(()=>import("../nodes/15.DxqMZDdK.js"),__vite__mapDeps([240,4,5,28,3,7,29,33,11,1,2,34,113,168,32,8,30,37,67,200,16,143,31,27,9,189,69,59,47,43,241,202]),import.meta.url),()=>o(()=>import("../nodes/16.C_vshDQR.js"),__vite__mapDeps([242,4,5,8,9,28,3,7,29,33,11,1,2,34,113,168,32,198,30,88,189,27,31,77,78,57,79,116,110,103,37,111,55,106,107,80,81,26,15,16,199,143,200,67,68,201,202,59,47,43,48,163,243]),import.meta.url),()=>o(()=>import("../nodes/17.BtrKoac8.js"),__vite__mapDeps([244,4,5,28,3,7,29,33,11,1,2,34,113,168,32]),import.meta.url),()=>o(()=>import("../nodes/18.B3AoO6j9.js"),__vite__mapDeps([245,4,5,8,59,11,3,47,43,26,27,7,28,29,30,31,32,33,1,2,34,9,12,13,14,15,16,37,137,72,38,39,20,60,61,45,50,132,83,54,76,104,105,103,77,106,107,55,80,81,108,109,110,111,78,57,79,56,112,113,102,114,119,120,65,91,42,24,41,44,21,40,246]),import.meta.url)],re=[],oe={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock-capture-editor":[16],"/dock":[14],"/frame":[17],"/hud":[18,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
|
|
4
|
+
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?x(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),u=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),u(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return u()},set form(r){u(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=T(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=T(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=T(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=T(E);S(R,()=>c(_),(v,b)=>{V(b(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var b=Pt();Dt(()=>yt(b,c(B))),m(v,b)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.CmJ43u1e.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22]),import.meta.url),()=>o(()=>import("../nodes/1.CqfYJXsK.js"),__vite__mapDeps([23,4,5,8,24,25,26,27,7,28,3,29,30,31,32,33,11,1,2,34,9]),import.meta.url),()=>o(()=>import("../nodes/2.CALBXNAI.js"),__vite__mapDeps([35,4,5,7,36,12,13,14,15,3,16,2,11,26,27,8,28,29,30,37,9,32,38,39,33,1,34,20,24,40,21,41,42,43,44,45,46,47,48,49,50,51,52,53,31,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,19,92,93,94,10,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,18,125,126,127,128,129,130,131,132,133,134,135,136,137,25,138,139,140,141,142,143,144,145,146,147,148]),import.meta.url),()=>o(()=>import("../nodes/3.Cbim6IQ0.js"),__vite__mapDeps([149,4,5,8,37,30,7,28,3,29,24,25,26,27,31,32,33,11,1,2,34,9,42,43,41,44,38,12,13,14,15,16,39,20,45,21,40]),import.meta.url),()=>o(()=>import("../nodes/4.CLMy68qv.js"),__vite__mapDeps([150,4,5,7,10,11,3,46,12,13,14,15,16,2,38,26,27,8,28,29,30,39,33,1,34,20,37,47,43,48,49,50,45,51,52,53,31,32,9,54,55,56,57,58,59,60,61,21,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,40,44,83,84,85,86,87,88,89,90,91,19,92,93,94,42,24,41,95,96,97,98,99]),import.meta.url),()=>o(()=>import("../nodes/5.DTKqXK_K.js"),__vite__mapDeps([151,4,5,56,152,8,31,7,28,3,29,32,30,33,11,1,2,34,27,9,26,36,12,13,14,15,16,37,105,103,77,106,107,55,80,81,108,109,104,110,111,78,57,79,112,113,54,102,114,59,47,43,53,58,101,115,116,88,52,38,39,20,60,61,45,50,21,42,24,41,44,40,117,124,51,49,48,18,100,125,126,64,72,93,153,154,155,84,156,157,158,159,87,160,161,162,85,163,137,164,165,135,166,167,74,138,70,71,139,132,83,168,169,170,143,171,172,173,174,94,175,176,177,178,179,180,181,182,183,25,184,185,186,187,66,67,68,69,188,189,190,121,191,146,147,192,193,194,195,196,197,198,199,200,201,202,131,127,82,203,204,141,205]),import.meta.url),()=>o(()=>import("../nodes/6.COrZ368S.js"),__vite__mapDeps([206,4,5,8,30,7,28,3,29,32,38,2,12,13,14,15,16,11,26,27,39,33,1,34,20,37,43,25,24,49,50,47,48,45,171,9,172,53,31,54,55,56,57,58,124,51,52,59,60,61,21,104,105,103,77,106,107,80,81,108,109,110,111,78,79,112,113,102,114,88,101,115,116,42,41,44,40,117,18,100,125,126,70,71,159,87,153,158,160,161,162,72,85,163,137,164,173,143,174,94,175,176,177,178,179,138,139,180,181,182,183,74,132,83,184,185,186,187,190,89,90,207]),import.meta.url),()=>o(()=>import("../nodes/7.BOwmWuI7.js"),__vite__mapDeps([208,4,5,56,112,209,21,14,40,13,12,15,3,7,16,2,11,53,8,28,29,31,32,30,33,1,34,27,9,37,54,55,26,57,58,113,168]),import.meta.url),()=>o(()=>import("../nodes/8.DVUc29Ay.js"),__vite__mapDeps([210,4,5,8,9,30,7,28,3,29,27,32,31,33,11,1,2,34,77,105,103,37,26,106,107,55,80,81,108,109,104,110,111,78,57,79,56,112,113,54,12,13,14,15,16,102,114,142,120,60,61,45,38,39,20,50,101,115,116,88,53,58,43,52,59,47,21,42,24,41,44,40,117,25,63,211,75,65,49,48,71,212,163,161,184,165,135,93,121,73,82,209,195,196,125,91,96,213,83,214,199,215,216,202]),import.meta.url),()=>o(()=>import("../nodes/9.Bf5-_PNq.js"),__vite__mapDeps([217,4,5,152,8,31,7,28,3,29,32,30,33,11,1,2,34,27,9,26,36,12,13,14,15,16,37,105,103,77,106,107,55,80,81,108,109,104,110,111,78,57,79,56,112,113,54,102,114,59,47,43,53,58,101,115,116,88,52,38,39,20,60,61,45,50,21,42,24,41,44,40,117,124,51,49,48,18,100,125,126,64,72,93,153,154,155,84,156,157,158,159,87,160,161,162,85,163,137,164,165,135,166,167,25,133,134,62,63,129,95,96,97,98,99,130,136,194,90,143,140,74,73,218,145,219,220,212,86,221,123,211,121,91,222,223,92,224,225,226,191,227,228,127,196,141,229]),import.meta.url),()=>o(()=>import("../nodes/10.Bl5RgWV9.js"),__vite__mapDeps([230,4,5,8,41,24,30,7,28,3,29,27,12,13,14,15,16,2,11,26,32,140,108,31,33,1,34,9,115,37,103,77,53,54,55,56,57,58,100,88,192,141,110,222,223,92,38,39,20,218,145,98,99,97,59,47,43,44,102,219,94,226,93,231]),import.meta.url),()=>o(()=>import("../nodes/11.CtUvalit.js"),__vite__mapDeps([232,4,5,56,112,26,27,8,7,28,3,29,30]),import.meta.url),()=>o(()=>import("../nodes/12.BEzNSZ5P.js"),__vite__mapDeps([233,4,5,8,9,31,7,28,3,29,32,30,33,11,1,2,34,27,26,113,168,234]),import.meta.url),()=>o(()=>import("../nodes/13.sp2ZZVeV.js"),__vite__mapDeps([235,4,5,8,28,3,7,29,33,11,1,2,34,113,168,32,30,31,27,9,236,13,128,143,103,37,77,105,26,106,107,55,80,81,108,109,125,56,112,237]),import.meta.url),()=>o(()=>import("../nodes/14.lB98JO4-.js"),__vite__mapDeps([238,4,5,8,60,12,13,14,15,3,7,16,2,11,61,45,38,26,27,28,29,30,39,33,1,34,20,37,50,113,168,32,46,47,43,48,49,51,52,53,31,9,54,55,56,57,58,59,21,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,40,44,83,84,85,86,87,88,89,90,91,19,92,93,94,42,24,41,10,95,96,97,98,99,179,101,102,103,104,105,106,107,108,109,110,111,112,114,115,116,117,124,18,100,125,126,138,139,180,118,215,188,189,171,172,159,153,158,160,161,162,163,137,164,173,143,174,175,176,177,178,181,182,183,25,132,184,185,186,187,190,121,191,146,147,192,193,236,239,202]),import.meta.url),()=>o(()=>import("../nodes/15.DxqMZDdK.js"),__vite__mapDeps([240,4,5,28,3,7,29,33,11,1,2,34,113,168,32,8,30,37,67,200,16,143,31,27,9,189,69,59,47,43,241,202]),import.meta.url),()=>o(()=>import("../nodes/16.C_vshDQR.js"),__vite__mapDeps([242,4,5,8,9,28,3,7,29,33,11,1,2,34,113,168,32,198,30,88,189,27,31,77,78,57,79,116,110,103,37,111,55,106,107,80,81,26,15,16,199,143,200,67,68,201,202,59,47,43,48,163,243]),import.meta.url),()=>o(()=>import("../nodes/17.BtrKoac8.js"),__vite__mapDeps([244,4,5,28,3,7,29,33,11,1,2,34,113,168,32]),import.meta.url),()=>o(()=>import("../nodes/18.C1RSVrDA.js"),__vite__mapDeps([245,4,5,8,59,11,3,47,43,26,27,7,28,29,30,31,32,33,1,2,34,9,12,13,14,15,16,37,137,72,38,39,20,60,61,45,50,132,83,54,76,104,105,103,77,106,107,55,80,81,108,109,110,111,78,57,79,56,112,113,102,114,119,120,65,91,42,24,41,44,21,40,246]),import.meta.url)],re=[],oe={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock-capture-editor":[16],"/dock":[14],"/frame":[17],"/hud":[18,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/BT9wQ0Ce.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as L,bq as O,by as I,bu as ee,bs as te,b as N,bt as ne,br as oe}from"../chunks/Y9-4hTF9.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/DYhIMPy1.js";import{s as $}from"../chunks/CrWhihJ_.js";import{i as ie}from"../chunks/BL2lJmRT.js";import{k as ae}from"../chunks/C6vwP-ay.js";import{w as ce}from"../chunks/C5SissXF.js";import{Iz as ue}from"../chunks/tU_ZJtMw.js";import{z as de,I as C}from"../chunks/CEsW1euQ.js";import{initAppStore as le}from"../chunks/CqzfYhYr.js";import{L as fe,J as me}from"../chunks/5GYSXevc.js";import{i as pe}from"../chunks/
|
|
1
|
+
import{t as L,bq as O,by as I,bu as ee,bs as te,b as N,bt as ne,br as oe}from"../chunks/Y9-4hTF9.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/DYhIMPy1.js";import{s as $}from"../chunks/CrWhihJ_.js";import{i as ie}from"../chunks/BL2lJmRT.js";import{k as ae}from"../chunks/C6vwP-ay.js";import{w as ce}from"../chunks/C5SissXF.js";import{Iz as ue}from"../chunks/tU_ZJtMw.js";import{z as de,I as C}from"../chunks/CEsW1euQ.js";import{initAppStore as le}from"../chunks/CqzfYhYr.js";import{L as fe,J as me}from"../chunks/5GYSXevc.js";import{i as pe}from"../chunks/DjLQeEnc.js";const we=!1,ve=!1,ge=!0,He=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,z=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function H(e){Y(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===z&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===j||e.button===z)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",H,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",H,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),J=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,U=de();let y;a(),n&&(U?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,Ae);return()=>{J(),Q.destroy(),y?D.offById("window:focus",y):n&&!U&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{q(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,He as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as W,by as A,b as D,bo as u,bt as R,br as U}from"../chunks/Y9-4hTF9.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/DYhIMPy1.js";import{i as P}from"../chunks/BL2lJmRT.js";import{g as re}from"../chunks/
|
|
1
|
+
import{t as W,by as A,b as D,bo as u,bt as R,br as U}from"../chunks/Y9-4hTF9.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/DYhIMPy1.js";import{i as P}from"../chunks/BL2lJmRT.js";import{g as re}from"../chunks/BT9wQ0Ce.js";import{p as b}from"../chunks/C9pKpUIK.js";import{F as te,cO as ae}from"../chunks/Mc93eSxl.js";import{f as se}from"../chunks/q6hitSEG.js";import"../chunks/DOH10_LL.js";var oe=T('<p class="text-sm text-subtle"> </p>'),ie=T('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(y=>m(p,y),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};P(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var O=f(w,2),Q=a(O);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var p=ee();k(y=>m(p,y),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(O),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};P(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};
|