@kilocode/cli-darwin-arm64 7.7.1 → 7.7.3
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/bin/console/assets/{AgentsRoute-s5Zmb8_f.js → AgentsRoute-DAzMkP_0.js} +1 -1
- package/bin/console/assets/{CliNotificationsRoute-D7syYW9r.js → CliNotificationsRoute-Cb-UQJhm.js} +1 -1
- package/bin/console/assets/{CliUiRoute-DQDoZhR4.js → CliUiRoute-3tQMODs_.js} +1 -1
- package/bin/console/assets/{ConfigLayout-B-W_U5_n.js → ConfigLayout-EQuNhrf2.js} +1 -1
- package/bin/console/assets/{ConfigPage-DtURVeMn.js → ConfigPage-VhJ7Ha-R.js} +1 -1
- package/bin/console/assets/{ConfirmDialog-BrE9m66T.js → ConfirmDialog-iPw0ZuT9.js} +1 -1
- package/bin/console/assets/{ConsoleUiRoute-Df63saGj.js → ConsoleUiRoute-D_evleuB.js} +1 -1
- package/bin/console/assets/{CustomSelect-czj_skWa.js → CustomSelect-D2cuqzID.js} +1 -1
- package/bin/console/assets/{FormattersRoute-BvdoFz5w.js → FormattersRoute-DBLZ396h.js} +1 -1
- package/bin/console/assets/{GhosttyTerminal-B0hEn18p.js → GhosttyTerminal-hlJkIAe9.js} +1 -1
- package/bin/console/assets/{IndexingRoute-Dx9yph6P.js → IndexingRoute-BiLifWbJ.js} +1 -1
- package/bin/console/assets/{KeybindsRoute-CurHjYjB.js → KeybindsRoute-Cxx0SjQg.js} +1 -1
- package/bin/console/assets/{LoginRoute-C0OltPuR.js → LoginRoute-DMJEF9aX.js} +1 -1
- package/bin/console/assets/{McpRoute-WHL8Rq4S.js → McpRoute-_2JtmcIn.js} +1 -1
- package/bin/console/assets/{ModelsRoute-C5j0Bvt5.js → ModelsRoute-CxDvqqyc.js} +1 -1
- package/bin/console/assets/{OverviewRoute-Xk5yd_yq.js → OverviewRoute-chXJJQOX.js} +1 -1
- package/bin/console/assets/{PermissionsRoute-DTtSlCTu.js → PermissionsRoute-C8lD0SkX.js} +1 -1
- package/bin/console/assets/{ProfileRoute-ClpV2KwX.js → ProfileRoute-Dw64b7WI.js} +1 -1
- package/bin/console/assets/{ProjectConsoleRoute-CIGkV4IQ.js → ProjectConsoleRoute-DulDq6dJ.js} +2 -2
- package/bin/console/assets/{ProvidersRoute-DaMZgS0o.js → ProvidersRoute-DCHCvhT6.js} +1 -1
- package/bin/console/assets/{ServersRoute-eYvfSICa.js → ServersRoute-CjvMDv1R.js} +1 -1
- package/bin/console/assets/{SourcesRoute-BDoPNd6a.js → SourcesRoute-DcjMOp__.js} +1 -1
- package/bin/console/assets/{ToolsRoute-DKOh-taA.js → ToolsRoute-C2R5p7JN.js} +1 -1
- package/bin/console/assets/{button-CNdAtveL.js → button-UKKe67oz.js} +1 -1
- package/bin/console/assets/{config-DIw6fJPo.js → config-CimtrkSH.js} +1 -1
- package/bin/console/assets/{console-OXr3D7MT.js → console-DSzYpHWl.js} +1 -1
- package/bin/console/assets/{file-BvnMZRpl.js → file-B4MVwc15.js} +1 -1
- package/bin/console/assets/{index-B-RNivcl.css → index-C88aBCe7.css} +1 -1
- package/bin/console/assets/{index-X5hIER2r.js → index-CLShAvaZ.js} +6 -6
- package/bin/console/assets/{models-tNZGjp5R.js → models-HY33jH13.js} +1 -1
- package/bin/console/assets/{profile-DGmMABfc.js → profile-8URA_5fo.js} +1 -1
- package/bin/console/assets/{session-review-BOPcPNPH.js → session-review-Dv758EvQ.js} +1 -1
- package/bin/console/assets/{tag-B8vI7DNP.js → tag-DEfKi7PK.js} +1 -1
- package/bin/console/assets/{ui-FJXi5_Mc.js → ui-C1h8hZeT.js} +1 -1
- package/bin/console/index.html +2 -2
- package/bin/kilo +2 -2
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentsRoute-
|
|
2
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=t(a);fetch(a.href,s)}})();const va="modulepreload",xa=function(r){return"/console/"+r},Tr={},X=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){let c=function(f){return Promise.all(f.map(y=>Promise.resolve(y).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");a=c(t.map(f=>{if(f=xa(f),f in Tr)return;Tr[f]=!0;const y=f.endsWith(".css"),u=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${u}`))return;const p=document.createElement("link");if(p.rel=y?"stylesheet":va,y||(p.as="script"),p.crossOrigin="",p.href=f,i&&p.setAttribute("nonce",i),document.head.appendChild(p),y)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return a.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return e().catch(s)})},I={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Sr(this.context.count)},getNextContextId(){return Sr(this.context.count++)}};function Sr(r){const e=String(r),t=e.length-1;return I.context.id+(t?String.fromCharCode(96+t):"")+e}function Ce(r){I.context=r}const kn=!1,Ca=(r,e)=>r===e,ge=Symbol("solid-proxy"),gn=typeof Proxy=="function",rr=Symbol("solid-track"),kt={equals:Ca};let bn=Ln;const be=1,Qe=2,wn={owned:null,cleanups:null,context:null,owner:null},Bt={};var B=null;let L=null,La=null,z=null,oe=null,se=null,qt=0;function Ae(r,e){const t=z,n=B,a=r.length===0,s=e===void 0?n:e,o=a?wn:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=a?r:()=>r(()=>te(()=>_e(o)));B=o,z=null;try{return ue(i,!0)}finally{z=t,B=n}}function U(r,e){e=e?Object.assign({},kt,e):kt;const t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},n=a=>(typeof a=="function"&&(L&&L.running&&L.sources.has(t)?a=a(t.tValue):a=a(t.value)),Cn(t,a));return[xn.bind(t),n]}function Pr(r,e,t){const n=_t(r,e,!0,be);ze(n)}function ne(r,e,t){const n=_t(r,e,!1,be);ze(n)}function ee(r,e,t){bn=_a;const n=_t(r,e,!1,be),a=Te&&Se(Te);a&&(n.suspense=a),(!t||!t.render)&&(n.user=!0),se?se.push(n):ze(n)}function D(r,e,t){t=t?Object.assign({},kt,t):kt;const n=_t(r,e,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,ze(n),xn.bind(n)}function qa(r){return r&&typeof r=="object"&&"then"in r}function Mt(r,e,t){let n,a,s;typeof e=="function"?(n=r,a=e,s={}):(n=!0,a=r,s=e||{});let o=null,i=Bt,c=null,f=!1,y=!1,u="initialValue"in s,p=typeof n=="function"&&D(n);const g=new Set,[m,h]=(s.storage||U)(s.initialValue),[w,H]=U(void 0),[_,A]=U(void 0,{equals:!1}),[T,q]=U(u?"ready":"unresolved");I.context&&(c=I.getNextContextId(),s.ssrLoadFrom==="initial"?i=s.initialValue:I.load&&I.has(c)&&(i=I.load(c)));function x(v,M,V,C){return o===v&&(o=null,C!==void 0&&(u=!0),(v===i||M===i)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(C,{value:M})),i=Bt,L&&v&&f?(L.promises.delete(v),f=!1,ue(()=>{L.running=!0,F(M,V)},!1)):F(M,V)),M}function F(v,M){ue(()=>{M===void 0&&h(()=>v),q(M!==void 0?"errored":u?"ready":"unresolved"),H(M);for(const V of g.keys())V.decrement();g.clear()},!1)}function j(){const v=Te&&Se(Te),M=m(),V=w();if(V!==void 0&&!o)throw V;return z&&!z.user&&v&&Pr(()=>{_(),o&&(v.resolved&&L&&f?L.promises.add(o):g.has(v)||(v.increment(),g.add(v)))}),M}function b(v=!0){if(v!==!1&&y)return;y=!1;const M=p?p():n;if(f=L&&L.running,M==null||M===!1){x(o,te(m));return}L&&o&&L.promises.delete(o);let V;const C=i!==Bt?i:te(()=>{try{return a(M,{value:m(),refetching:v})}catch(E){V=E}});if(V!==void 0){x(o,void 0,ht(V),M);return}else if(!qa(C))return x(o,C,void 0,M),C;return o=C,"v"in C?(C.s===1?x(o,C.v,void 0,M):x(o,void 0,ht(C.v),M),C):(y=!0,queueMicrotask(()=>y=!1),ue(()=>{q(u?"refreshing":"pending"),A()},!1),C.then(E=>x(C,E,void 0,M),E=>x(C,void 0,ht(E),M)))}Object.defineProperties(j,{state:{get:()=>T()},error:{get:()=>w()},loading:{get(){const v=T();return v==="pending"||v==="refreshing"}},latest:{get(){if(!u)return j();const v=w();if(v&&!o)throw v;return m()}}});let S=B;return p?Pr(()=>(S=B,b(!1))):b(!1),[j,{refetch:v=>Ht(S,()=>b(v)),mutate:h}]}function vn(r){return ue(r,!1)}function te(r){if(z===null)return r();const e=z;z=null;try{return r()}finally{z=e}}function kr(r,e,t){const n=Array.isArray(r);let a,s=t&&t.defer;return o=>{let i;if(n){i=Array(r.length);for(let f=0;f<r.length;f++)i[f]=r[f]()}else i=r();if(s)return s=!1,o;const c=te(()=>e(i,a,o));return a=i,c}}function $t(r){ee(()=>te(r))}function fe(r){return B===null||(B.cleanups===null?B.cleanups=[r]:B.cleanups.push(r)),r}function nr(){return z}function et(){return B}function Ht(r,e){const t=B,n=z;B=r,z=null;try{return ue(e,!0)}catch(a){gr(a)}finally{B=t,z=n}}function Ma(r){if(L&&L.running)return r(),L.done;const e=z,t=B;return Promise.resolve().then(()=>{z=e,B=t;let n;return Te&&(n=L||(L={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),n.done||(n.done=new Promise(a=>n.resolve=a)),n.running=!0),ue(r,!1),z=B=null,n?n.done:void 0})}const[qy,Fr]=U(!1);function $a(r){se.push.apply(se,r),r.length=0}function st(r,e){const t=Symbol("context");return{id:t,Provider:Ia(t),defaultValue:r}}function Se(r){let e;return B&&B.context&&(e=B.context[r.id])!==void 0?e:r.defaultValue}function Vt(r){const e=D(r),t=D(()=>ar(e()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}let Te;function Ha(){return Te||(Te=st())}function xn(){const r=L&&L.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===be)ze(this);else{const e=oe;oe=null,ue(()=>bt(this),!1),oe=e}if(z){const e=this.observers?this.observers.length:0;z.sources?(z.sources.push(this),z.sourceSlots.push(e)):(z.sources=[this],z.sourceSlots=[e]),this.observers?(this.observers.push(z),this.observerSlots.push(z.sources.length-1)):(this.observers=[z],this.observerSlots=[z.sources.length-1])}return r&&L.sources.has(this)?this.tValue:this.value}function Cn(r,e,t){let n=L&&L.running&&L.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(n,e)){if(L){const a=L.running;(a||!t&&L.sources.has(r))&&(L.sources.add(r),r.tValue=e),a||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&ue(()=>{for(let a=0;a<r.observers.length;a+=1){const s=r.observers[a],o=L&&L.running;o&&L.disposed.has(s)||((o?!s.tState:!s.state)&&(s.pure?oe.push(s):se.push(s),s.observers&&qn(s)),o?s.tState=be:s.state=be)}if(oe.length>1e6)throw oe=[],new Error},!1)}return e}function ze(r){if(!r.fn)return;_e(r);const e=qt;Zr(r,L&&L.running&&L.sources.has(r)?r.tValue:r.value,e),L&&!L.running&&L.sources.has(r)&&queueMicrotask(()=>{ue(()=>{L&&(L.running=!0),z=B=r,Zr(r,r.tValue,e),z=B=null},!1)})}function Zr(r,e,t){let n;const a=B,s=z;z=B=r;try{n=r.fn(e)}catch(o){return r.pure&&(L&&L.running?(r.tState=be,r.tOwned&&r.tOwned.forEach(_e),r.tOwned=void 0):(r.state=be,r.owned&&r.owned.forEach(_e),r.owned=null)),r.updatedAt=t+1,gr(o)}finally{z=s,B=a}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?Cn(r,n,!0):L&&L.running&&r.pure?(L.sources.has(r)||(r.value=n),L.sources.add(r),r.tValue=n):r.value=n,r.updatedAt=t)}function _t(r,e,t,n=be,a){const s={fn:r,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:B,context:B?B.context:null,pure:t};return L&&L.running&&(s.state=0,s.tState=n),B===null||B!==wn&&(L&&L.running&&B.pure?B.tOwned?B.tOwned.push(s):B.tOwned=[s]:B.owned?B.owned.push(s):B.owned=[s]),s}function gt(r){const e=L&&L.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Qe)return bt(r);if(r.suspense&&te(r.suspense.inFallback))return r.suspense.effects.push(r);const t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt<qt);){if(e&&L.disposed.has(r))return;(e?r.tState:r.state)&&t.push(r)}for(let n=t.length-1;n>=0;n--){if(r=t[n],e){let a=r,s=t[n+1];for(;(a=a.owner)&&a!==s;)if(L.disposed.has(a))return}if((e?r.tState:r.state)===be)ze(r);else if((e?r.tState:r.state)===Qe){const a=oe;oe=null,ue(()=>bt(r,t[0]),!1),oe=a}}}function ue(r,e){if(oe)return r();let t=!1;e||(oe=[]),se?t=!0:se=[],qt++;try{const n=r();return Va(t),n}catch(n){t||(se=null),oe=null,gr(n)}}function Va(r){if(oe&&(Ln(oe),oe=null),r)return;let e;if(L){if(!L.promises.size&&!L.queue.size){const n=L.sources,a=L.disposed;se.push.apply(se,L.effects),e=L.resolve;for(const s of se)"tState"in s&&(s.state=s.tState),delete s.tState;L=null,ue(()=>{for(const s of a)_e(s);for(const s of n){if(s.value=s.tValue,s.owned)for(let o=0,i=s.owned.length;o<i;o++)_e(s.owned[o]);s.tOwned&&(s.owned=s.tOwned),delete s.tValue,delete s.tOwned,s.tState=0}Fr(!1)},!1)}else if(L.running){L.running=!1,L.effects.push.apply(L.effects,se),se=null,Fr(!0);return}}const t=se;se=null,t.length&&ue(()=>bn(t),!1),e&&e()}function Ln(r){for(let e=0;e<r.length;e++)gt(r[e])}function _a(r){let e,t=0;for(e=0;e<r.length;e++){const n=r[e];n.user?r[t++]=n:gt(n)}if(I.context){if(I.count){I.effects||(I.effects=[]),I.effects.push(...r.slice(0,t));return}Ce()}for(I.effects&&(I.done||!I.count)&&(r=[...I.effects,...r],t+=I.effects.length,delete I.effects),e=0;e<t;e++)gt(r[e])}function bt(r,e){const t=L&&L.running;t?r.tState=0:r.state=0;for(let n=0;n<r.sources.length;n+=1){const a=r.sources[n];if(a.sources){const s=t?a.tState:a.state;s===be?a!==e&&(!a.updatedAt||a.updatedAt<qt)&>(a):s===Qe&&bt(a,e)}}}function qn(r){const e=L&&L.running;for(let t=0;t<r.observers.length;t+=1){const n=r.observers[t];(e?!n.tState:!n.state)&&(e?n.tState=Qe:n.state=Qe,n.pure?oe.push(n):se.push(n),n.observers&&qn(n))}}function _e(r){let e;if(r.sources)for(;r.sources.length;){const t=r.sources.pop(),n=r.sourceSlots.pop(),a=t.observers;if(a&&a.length){const s=a.pop(),o=t.observerSlots.pop();n<a.length&&(s.sourceSlots[o]=n,a[n]=s,t.observerSlots[n]=o)}}if(r.tOwned){const t=r.tOwned;for(delete r.tOwned,e=t.length-1;e>=0;e--)_e(t[e])}if(L&&L.running&&r.pure)Mn(r,!0);else if(r.owned){const t=r.owned;for(r.owned=null,e=t.length-1;e>=0;e--)_e(t[e])}if(r.cleanups){const t=r.cleanups;for(r.cleanups=null,e=t.length-1;e>=0;e--)t[e]()}L&&L.running?r.tState=0:r.state=0}function Mn(r,e){if(e||(r.tState=0,L.disposed.add(r)),r.owned)for(let t=0;t<r.owned.length;t++)Mn(r.owned[t])}function ht(r){return r instanceof Error?r:new Error(typeof r=="string"?r:"Unknown error",{cause:r})}function gr(r,e=B){throw ht(r)}function ar(r){if(typeof r=="function"&&!r.length)return ar(r());if(Array.isArray(r)){const e=[];for(let t=0;t<r.length;t++){const n=ar(r[t]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return e}return r}function Ia(r,e){return function(n){let a;return ne(()=>a=te(()=>(B.context={...B.context,[r]:n.value},Vt(()=>n.children))),void 0),a}}const ja=Symbol("fallback");function Br(r){for(let e=0;e<r.length;e++)r[e]()}function Ea(r,e,t={}){let n=[],a=[],s=[],o=0,i=e.length>1?[]:null;return fe(()=>Br(s)),()=>{let c=r()||[],f=c.length,y,u;return c[rr],te(()=>{let g,m,h,w,H,_,A,T,q;if(f===0)o!==0&&(Br(s),s=[],n=[],a=[],o=0,i&&(i=[])),t.fallback&&(n=[ja],a[0]=Ae(x=>(s[0]=x,t.fallback())),o=1);else if(o===0){for(a=new Array(f),u=0;u<f;u++)n[u]=c[u],a[u]=Ae(p);o=f}else{for(h=new Array(f),w=new Array(f),i&&(H=new Array(f)),_=0,A=Math.min(o,f);_<A&&n[_]===c[_];_++);for(A=o-1,T=f-1;A>=_&&T>=_&&n[A]===c[T];A--,T--)h[T]=a[A],w[T]=s[A],i&&(H[T]=i[A]);for(g=new Map,m=new Array(T+1),u=T;u>=_;u--)q=c[u],y=g.get(q),m[u]=y===void 0?-1:y,g.set(q,u);for(y=_;y<=A;y++)q=n[y],u=g.get(q),u!==void 0&&u!==-1?(h[u]=a[y],w[u]=s[y],i&&(H[u]=i[y]),u=m[u],g.set(q,u)):s[y]();for(u=_;u<f;u++)u in h?(a[u]=h[u],s[u]=w[u],i&&(i[u]=H[u],i[u](u))):a[u]=Ae(p);a=a.slice(0,o=f),n=c.slice(0)}return a});function p(g){if(s[u]=g,i){const[m,h]=U(u);return i[u]=h,e(c[u],m)}return e(c[u])}}}function $(r,e){return te(()=>r(e||{}))}function ut(){return!0}const sr={get(r,e,t){return e===ge?t:r.get(e)},has(r,e){return e===ge?!0:r.has(e)},set:ut,deleteProperty:ut,getOwnPropertyDescriptor(r,e){return{configurable:!0,enumerable:!0,get(){return r.get(e)},set:ut,deleteProperty:ut}},ownKeys(r){return r.keys()}};function Ot(r){return(r=typeof r=="function"?r():r)?r:{}}function Aa(){for(let r=0,e=this.length;r<e;++r){const t=this[r]();if(t!==void 0)return t}}function pe(...r){let e=!1;for(let o=0;o<r.length;o++){const i=r[o];e=e||!!i&&ge in i,r[o]=typeof i=="function"?(e=!0,D(i)):i}if(gn&&e)return new Proxy({get(o){for(let i=r.length-1;i>=0;i--){const c=Ot(r[i])[o];if(c!==void 0)return c}},has(o){for(let i=r.length-1;i>=0;i--)if(o in Ot(r[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<r.length;i++)o.push(...Object.keys(Ot(r[i])));return[...new Set(o)]}},sr);const t={},n=Object.create(null);for(let o=r.length-1;o>=0;o--){const i=r[o];if(!i)continue;const c=Object.getOwnPropertyNames(i);for(let f=c.length-1;f>=0;f--){const y=c[f];if(y==="__proto__"||y==="constructor")continue;const u=Object.getOwnPropertyDescriptor(i,y);if(!n[y])n[y]=u.get?{enumerable:!0,configurable:!0,get:Aa.bind(t[y]=[u.get.bind(i)])}:u.value!==void 0?u:void 0;else{const p=t[y];p&&(u.get?p.push(u.get.bind(i)):u.value!==void 0&&p.push(()=>u.value))}}}const a={},s=Object.keys(n);for(let o=s.length-1;o>=0;o--){const i=s[o],c=n[i];c&&c.get?Object.defineProperty(a,i,c):a[i]=c?c.value:void 0}return a}function Me(r,...e){const t=e.length;if(gn&&ge in r){const a=t>1?e.flat():e[0],s=e.map(o=>new Proxy({get(i){return o.includes(i)?r[i]:void 0},has(i){return o.includes(i)&&i in r},keys(){return o.filter(i=>i in r)}},sr));return s.push(new Proxy({get(o){return a.includes(o)?void 0:r[o]},has(o){return a.includes(o)?!1:o in r},keys(){return Object.keys(r).filter(o=>!a.includes(o))}},sr)),s}const n=[];for(let a=0;a<=t;a++)n[a]={};for(const a of Object.getOwnPropertyNames(r)){let s=t;for(let c=0;c<e.length;c++)if(e[c].includes(a)){s=c;break}const o=Object.getOwnPropertyDescriptor(r,a);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?n[s][a]=o.value:Object.defineProperty(n[s],a,o)}return n}function Q(r){let e,t;const n=a=>{const s=I.context;if(s){const[i,c]=U();I.count||(I.count=0),I.count++,(t||(t=r())).then(f=>{!I.done&&Ce(s),I.count--,c(()=>f.default),Ce()}),e=i}else if(!e){const[i]=Mt(()=>(t||(t=r())).then(c=>c.default));e=i}let o;return D(()=>(o=e())?te(()=>{if(!s||I.done)return o(a);const i=I.context;Ce(s);const c=o(a);return Ce(i),c}):"")};return n.preload=()=>t||((t=r()).then(a=>e=()=>a.default),t),n}let Da=0;function My(){return I.context?I.getNextContextId():`cl-${Da++}`}const $n=r=>`Stale read from <${r}>.`;function Ye(r){const e="fallback"in r&&{fallback:()=>r.fallback};return D(Ea(()=>r.each,r.children,e||void 0))}function ie(r){const e=r.keyed,t=D(()=>r.when,void 0,void 0),n=e?t:D(t,void 0,{equals:(a,s)=>!a==!s});return D(()=>{const a=n();if(a){const s=r.children;return typeof s=="function"&&s.length>0?te(()=>s(e?a:()=>{if(!te(n))throw $n("Show");return t()})):s}return r.fallback},void 0,void 0)}function $y(r){const e=Vt(()=>r.children),t=D(()=>{const n=e(),a=Array.isArray(n)?n:[n];let s=()=>{};for(let o=0;o<a.length;o++){const i=o,c=a[o],f=s,y=D(()=>f()?void 0:c.when,void 0,void 0),u=c.keyed?y:D(y,void 0,{equals:(p,g)=>!p==!g});s=()=>f()||(u()?[i,y,c]:void 0)}return s});return D(()=>{const n=t()();if(!n)return r.fallback;const[a,s,o]=n,i=o.children;return typeof i=="function"&&i.length>0?te(()=>i(o.keyed?s():()=>{if(te(t)()?.[0]!==a)throw $n("Match");return s()})):i},void 0,void 0)}function Hy(r){return r}const Ta=st();function Sa(r){let e=0,t,n,a,s,o;const[i,c]=U(!1),f=Ha(),y={increment:()=>{++e===1&&c(!0)},decrement:()=>{--e===0&&c(!1)},inFallback:i,effects:[],resolved:!1},u=et();if(I.context&&I.load){const m=I.getContextId();let h=I.load(m);if(h&&(typeof h!="object"||h.s!==1?a=h:I.gather(m)),a&&a!=="$$f"){const[w,H]=U(void 0,{equals:!1});s=w,a.then(()=>{if(I.done)return H();I.gather(m),Ce(n),H(),Ce()},_=>{o=_,H()})}}const p=Se(Ta);p&&(t=p.register(y.inFallback));let g;return fe(()=>g&&g()),$(f.Provider,{value:y,get children(){return D(()=>{if(o)throw o;if(n=I.context,s)return s(),s=void 0;n&&a==="$$f"&&Ce();const m=D(()=>r.children);return D(h=>{const w=y.inFallback(),{showContent:H=!0,showFallback:_=!0}=t?t():{};if((!w||a&&a!=="$$f")&&H)return y.resolved=!0,g&&g(),g=n=a=void 0,$a(y.effects),m();if(_)return g?h:Ae(A=>(g=A,n&&(Ce({id:n.id+"F",count:0}),n=void 0),r.fallback),u)})})}})}const Pa=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Fa=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Pa]),Za=new Set(["innerHTML","textContent","innerText","children"]),Ba=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Oa=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Ra(r,e){const t=Oa[r];return typeof t=="object"?t[e]?t.$:void 0:t}const za=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Na=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ua={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Le=r=>D(()=>r());function Wa(r,e,t){let n=t.length,a=e.length,s=n,o=0,i=0,c=e[a-1].nextSibling,f=null;for(;o<a||i<s;){if(e[o]===t[i]){o++,i++;continue}for(;e[a-1]===t[s-1];)a--,s--;if(a===o){const y=s<n?i?t[i-1].nextSibling:t[s-i]:c;for(;i<s;)r.insertBefore(t[i++],y)}else if(s===i)for(;o<a;)(!f||!f.has(e[o]))&&e[o].remove(),o++;else if(e[o]===t[s-1]&&t[i]===e[a-1]){const y=e[--a].nextSibling;r.insertBefore(t[i++],e[o++].nextSibling),r.insertBefore(t[--s],y),e[a]=t[s]}else{if(!f){f=new Map;let u=i;for(;u<s;)f.set(t[u],u++)}const y=f.get(e[o]);if(y!=null)if(i<y&&y<s){let u=o,p=1,g;for(;++u<a&&u<s&&!((g=f.get(e[u]))==null||g!==y+p);)p++;if(p>y-i){const m=e[o];for(;i<y;)r.insertBefore(t[i++],m)}else r.replaceChild(t[i++],e[o++])}else o++;else e[o++].remove()}}}const Or="_$DX_DELEGATE";function Ja(r,e,t,n={}){let a;return Ae(s=>{a=s,e===document?r():Z(e,r(),e.firstChild?null:void 0,t)},n.owner),()=>{a(),e.textContent=""}}function W(r,e,t,n){let a;const s=()=>{const i=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=r,t?i.content.firstChild.firstChild:n?i.firstChild:i.content.firstChild},o=e?()=>te(()=>document.importNode(a||(a=s()),!0)):()=>(a||(a=s())).cloneNode(!0);return o.cloneNode=o,o}function br(r,e=window.document){const t=e[Or]||(e[Or]=new Set);for(let n=0,a=r.length;n<a;n++){const s=r[n];t.has(s)||(t.add(s),e.addEventListener(s,rs))}}function ce(r,e,t){Pe(r)||(t==null?r.removeAttribute(e):r.setAttribute(e,t))}function Ka(r,e,t,n){Pe(r)||(n==null?r.removeAttributeNS(e,t):r.setAttributeNS(e,t,n))}function Ga(r,e,t){Pe(r)||(t?r.setAttribute(e,""):r.removeAttribute(e))}function Hn(r,e){Pe(r)||(e==null?r.removeAttribute("class"):r.className=e)}function Ya(r,e,t,n){if(n)Array.isArray(t)?(r[`$$${e}`]=t[0],r[`$$${e}Data`]=t[1]):r[`$$${e}`]=t;else if(Array.isArray(t)){const a=t[0];r.addEventListener(e,t[0]=s=>a.call(r,t[1],s))}else r.addEventListener(e,t,typeof t!="function"&&t)}function Vn(r,e,t={}){const n=Object.keys(e||{}),a=Object.keys(t);let s,o;for(s=0,o=a.length;s<o;s++){const i=a[s];!i||i==="undefined"||e[i]||(Rr(r,i,!1),delete t[i])}for(s=0,o=n.length;s<o;s++){const i=n[s],c=!!e[i];!i||i==="undefined"||t[i]===c||!c||(Rr(r,i,!0),t[i]=c)}return t}function Xa(r,e,t){if(!e)return t?ce(r,"style"):e;const n=r.style;if(typeof e=="string")return n.cssText=e;typeof t=="string"&&(n.cssText=t=void 0),t||(t={}),e||(e={});let a,s;for(s in t)e[s]==null&&n.removeProperty(s),delete t[s];for(s in e)a=e[s],a!==t[s]&&(n.setProperty(s,a),t[s]=a);return t}function Vy(r,e,t){t!=null?r.style.setProperty(e,t):r.style.removeProperty(e)}function Ne(r,e={},t,n){const a={};return n||ne(()=>a.children=tt(r,e.children,a.children)),ne(()=>typeof e.ref=="function"&&or(e.ref,r)),ne(()=>Qa(r,e,t,!0,a,!0)),a}function or(r,e,t){return te(()=>r(e,t))}function Z(r,e,t,n){if(t!==void 0&&!n&&(n=[]),typeof e!="function")return tt(r,e,n,t);ne(a=>tt(r,e(),a,t),n)}function Qa(r,e,t,n,a={},s=!1){e||(e={});for(const o in a)if(!(o in e)){if(o==="children")continue;a[o]=zr(r,o,null,a[o],t,s,e)}for(const o in e){if(o==="children")continue;const i=e[o];a[o]=zr(r,o,i,a[o],t,s,e)}}function es(r){let e,t;return!Pe()||!(e=I.registry.get(t=ns()))?r():(I.completed&&I.completed.add(e),I.registry.delete(t),e)}function Pe(r){return!!I.context&&!I.done&&(!r||r.isConnected)}function ts(r){return r.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Rr(r,e,t){const n=e.trim().split(/\s+/);for(let a=0,s=n.length;a<s;a++)r.classList.toggle(n[a],t)}function zr(r,e,t,n,a,s,o){let i,c,f,y,u;if(e==="style")return Xa(r,t,n);if(e==="classList")return Vn(r,t,n);if(t===n)return n;if(e==="ref")s||t(r);else if(e.slice(0,3)==="on:"){const p=e.slice(3);n&&r.removeEventListener(p,n,typeof n!="function"&&n),t&&r.addEventListener(p,t,typeof t!="function"&&t)}else if(e.slice(0,10)==="oncapture:"){const p=e.slice(10);n&&r.removeEventListener(p,n,!0),t&&r.addEventListener(p,t,!0)}else if(e.slice(0,2)==="on"){const p=e.slice(2).toLowerCase(),g=za.has(p);if(!g&&n){const m=Array.isArray(n)?n[0]:n;r.removeEventListener(p,m)}(g||t)&&(Ya(r,p,t,g),g&&br([p]))}else if(e.slice(0,5)==="attr:")ce(r,e.slice(5),t);else if(e.slice(0,5)==="bool:")Ga(r,e.slice(5),t);else if((u=e.slice(0,5)==="prop:")||(f=Za.has(e))||!a&&((y=Ra(e,r.tagName))||(c=Fa.has(e)))||(i=r.nodeName.includes("-")||"is"in o)){if(u)e=e.slice(5),c=!0;else if(Pe(r))return t;e==="class"||e==="className"?Hn(r,t):i&&!c&&!f?r[ts(e)]=t:r[y||e]=t}else{const p=a&&e.indexOf(":")>-1&&Ua[e.split(":")[0]];p?Ka(r,p,e,t):ce(r,Ba[e]||e,t)}return t}function rs(r){if(I.registry&&I.events&&I.events.find(([c,f])=>f===r))return;let e=r.target;const t=`$$${r.type}`,n=r.target,a=r.currentTarget,s=c=>Object.defineProperty(r,"target",{configurable:!0,value:c}),o=()=>{const c=e[t];if(c&&!e.disabled){const f=e[`${t}Data`];if(f!==void 0?c.call(e,f,r):c.call(e,r),r.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(r.target)&&s(e.host),!0},i=()=>{for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(r,"currentTarget",{configurable:!0,get(){return e||document}}),I.registry&&!I.done&&(I.done=_$HY.done=!0),r.composedPath){const c=r.composedPath();s(c[0]);for(let f=0;f<c.length-2&&(e=c[f],!!o());f++){if(e._$host){e=e._$host,i();break}if(e.parentNode===a)break}}else i();s(n)}function tt(r,e,t,n,a){const s=Pe(r);if(s){!t&&(t=[...r.childNodes]);let c=[];for(let f=0;f<t.length;f++){const y=t[f];y.nodeType===8&&y.data.slice(0,2)==="!$"?y.remove():c.push(y)}t=c}for(;typeof t=="function";)t=t();if(e===t)return t;const o=typeof e,i=n!==void 0;if(r=i&&t[0]&&t[0].parentNode||r,o==="string"||o==="number"){if(s||o==="number"&&(e=e.toString(),e===t))return t;if(i){let c=t[0];c&&c.nodeType===3?c.data!==e&&(c.data=e):c=document.createTextNode(e),t=Ze(r,t,n,c)}else t!==""&&typeof t=="string"?t=r.firstChild.data=e:t=r.textContent=e}else if(e==null||o==="boolean"){if(s)return t;t=Ze(r,t,n)}else{if(o==="function")return ne(()=>{let c=e();for(;typeof c=="function";)c=c();t=tt(r,c,t,n)}),()=>t;if(Array.isArray(e)){const c=[],f=t&&Array.isArray(t);if(ir(c,e,t,a))return ne(()=>t=tt(r,c,t,n,!0)),()=>t;if(s){if(!c.length)return t;if(n===void 0)return t=[...r.childNodes];let y=c[0];if(y.parentNode!==r)return t;const u=[y];for(;(y=y.nextSibling)!==n;)u.push(y);return t=u}if(c.length===0){if(t=Ze(r,t,n),i)return t}else f?t.length===0?Nr(r,c,n):Wa(r,t,c):(t&&Ze(r),Nr(r,c));t=c}else if(e.nodeType){if(s&&e.parentNode)return t=i?[e]:e;if(Array.isArray(t)){if(i)return t=Ze(r,t,n,e);Ze(r,t,null,e)}else t==null||t===""||!r.firstChild?r.appendChild(e):r.replaceChild(e,r.firstChild);t=e}}return t}function ir(r,e,t,n){let a=!1;for(let s=0,o=e.length;s<o;s++){let i=e[s],c=t&&t[r.length],f;if(!(i==null||i===!0||i===!1))if((f=typeof i)=="object"&&i.nodeType)r.push(i);else if(Array.isArray(i))a=ir(r,i,c)||a;else if(f==="function")if(n){for(;typeof i=="function";)i=i();a=ir(r,Array.isArray(i)?i:[i],Array.isArray(c)?c:[c])||a}else r.push(i),a=!0;else{const y=String(i);c&&c.nodeType===3&&c.data===y?r.push(c):r.push(document.createTextNode(y))}}return a}function Nr(r,e,t=null){for(let n=0,a=e.length;n<a;n++)r.insertBefore(e[n],t)}function Ze(r,e,t,n){if(t===void 0)return r.textContent="";const a=n||document.createTextNode("");if(e.length){let s=!1;for(let o=e.length-1;o>=0;o--){const i=e[o];if(a!==i){const c=i.parentNode===r;!s&&!o?c?r.replaceChild(a,i):r.insertBefore(a,t):c&&i.remove()}else s=!0}}else r.insertBefore(a,t);return[a]}function ns(){return I.getNextContextId()}const as=!1,ss="http://www.w3.org/2000/svg";function _n(r,e=!1,t=void 0){return e?document.createElementNS(ss,r):document.createElement(r,{is:t})}function _y(r){const{useShadow:e}=r,t=document.createTextNode(""),n=()=>r.mount||document.body,a=et();let s,o=!!I.context;return ee(()=>{o&&(et().user=o=!1),s||(s=Ht(a,()=>D(()=>r.children)));const i=n();if(i instanceof HTMLHeadElement){const[c,f]=U(!1),y=()=>f(!0);Ae(u=>Z(i,()=>c()?u():s(),null)),fe(y)}else{const c=_n(r.isSVG?"g":"div",r.isSVG),f=e&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return t.parentNode},configurable:!0}),Z(f,s),i.appendChild(c),r.ref&&r.ref(c),fe(()=>i.removeChild(c))}},void 0,{render:!o}),t}function os(r,e){const t=D(r);return D(()=>{const n=t();switch(typeof n){case"function":return te(()=>n(e));case"string":const a=Na.has(n),s=I.context?es():_n(n,a,te(()=>e.is));return Ne(s,e,a),s}})}function is(r){const[,e]=Me(r,["component"]);return os(()=>r.component,e)}function In(){let r=new Set;function e(a){return r.add(a),()=>r.delete(a)}let t=!1;function n(a,s){if(t)return!(t=!1);const o={to:a,options:s,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const i of r)i.listener({...o,from:i.location,retry:c=>{c&&(t=!0),i.navigate(a,{...s,resolve:!1})}});return!o.defaultPrevented}return{subscribe:e,confirm:n}}let cr;function wr(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),cr=window.history.state._depth}wr();function cs(r){return{...r,_depth:window.history.state&&window.history.state._depth}}function ls(r,e){let t=!1;return()=>{const n=cr;wr();const a=n==null?null:cr-n;if(t){t=!1;return}a&&e(a)?(t=!0,window.history.go(-a)):r()}}const ds=/^(?:[a-z0-9]+:)?\/\//i,fs=/^\/+|(\/)\/+$/g,jn="http://sr";function De(r,e=!1){const t=r.replace(fs,"$1");return t?e||/^[?#]/.test(t)?t:"/"+t:""}function mt(r,e,t){if(ds.test(e))return;const n=De(r),a=t&&De(t);let s="";return!a||e.startsWith("/")?s=n:a.toLowerCase().indexOf(n.toLowerCase())!==0?s=n+a:s=a,(s||"/")+De(e,!s)}function us(r,e){if(r==null)throw new Error(e);return r}function ys(r,e){return De(r).replace(/\/*(\*.*)?$/g,"")+De(e)}function En(r){const e={};return r.searchParams.forEach((t,n)=>{n in e?Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]:e[n]=t}),e}function ps(r,e,t){const[n,a]=r.split("/*",2),s=n.split("/").filter(Boolean),o=s.length;return i=>{const c=i.split("/").filter(Boolean),f=c.length-o;if(f<0||f>0&&a===void 0&&!e)return null;const y={path:o?"":"/",params:{}},u=p=>t===void 0?void 0:t[p];for(let p=0;p<o;p++){const g=s[p],m=g[0]===":",h=m?c[p]:c[p].toLowerCase(),w=m?g.slice(1):g.toLowerCase();if(m&&Rt(h,u(w)))y.params[w]=h;else if(m||!Rt(h,w))return null;y.path+=`/${h}`}if(a){const p=f?c.slice(-f).join("/"):"";if(Rt(p,u(a)))y.params[a]=p;else return null}return y}}function Rt(r,e){const t=n=>n===r;return e===void 0?!0:typeof e=="string"?t(e):typeof e=="function"?e(r):Array.isArray(e)?e.some(t):e instanceof RegExp?e.test(r):!1}function hs(r){const[e,t]=r.pattern.split("/*",2),n=e.split("/").filter(Boolean);return n.reduce((a,s)=>a+(s.startsWith(":")?2:3),n.length-(t===void 0?0:1))}function An(r){const e=new Map,t=et();return new Proxy({},{get(n,a){return e.has(a)||Ht(t,()=>e.set(a,D(()=>r()[a]))),e.get(a)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(r())},has(n,a){return a in r()}})}function Dn(r){let e=/(\/?\:[^\/]+)\?/.exec(r);if(!e)return[r];let t=r.slice(0,e.index),n=r.slice(e.index+e[0].length);const a=[t,t+=e[1]];for(;e=/^(\/\:[^\/]+)\?/.exec(n);)a.push(t+=e[1]),n=n.slice(e[0].length);return Dn(n).reduce((s,o)=>[...s,...a.map(i=>i+o)],[])}const ms=100,Tn=st(),vr=st(),ot=()=>us(Se(Tn),"<A> and 'use' router primitives can be only used inside a Route."),ks=()=>Se(vr)||ot().base,gs=r=>{const e=ks();return D(()=>e.resolvePath(r()))},bs=r=>{const e=ot();return D(()=>{const t=r();return t!==void 0?e.renderPath(t):t})},ws=()=>ot().navigatorFactory(),It=()=>ot().location,Iy=()=>ot().params;function vs(r,e=""){const{component:t,preload:n,load:a,children:s,info:o}=r,i=!s||Array.isArray(s)&&!s.length,c={key:r,component:t,preload:n||a,info:o};return Sn(r.path).reduce((f,y)=>{for(const u of Dn(y)){const p=ys(e,u);let g=i?p:p.split("/*",1)[0];g=g.split("/").map(m=>m.startsWith(":")||m.startsWith("*")?m:encodeURIComponent(m)).join("/"),f.push({...c,originalPath:y,pattern:g,matcher:ps(g,!i,r.matchFilters)})}return f},[])}function xs(r,e=0){return{routes:r,score:hs(r[r.length-1])*1e4-e,matcher(t){const n=[];for(let a=r.length-1;a>=0;a--){const s=r[a],o=s.matcher(t);if(!o)return null;n.unshift({...o,route:s})}return n}}}function Sn(r){return Array.isArray(r)?r:[r]}function Pn(r,e="",t=[],n=[]){const a=Sn(r);for(let s=0,o=a.length;s<o;s++){const i=a[s];if(i&&typeof i=="object"){i.hasOwnProperty("path")||(i.path="");const c=vs(i,e);for(const f of c){t.push(f);const y=Array.isArray(i.children)&&i.children.length===0;if(i.children&&!y)Pn(i.children,f.pattern,t,n);else{const u=xs([...t],n.length);n.push(u)}t.pop()}}}return t.length?n:n.sort((s,o)=>o.score-s.score)}function zt(r,e){for(let t=0,n=r.length;t<n;t++){const a=r[t].matcher(e);if(a)return a}return[]}function Cs(r,e,t){const n=new URL(jn),a=D(y=>{const u=r();try{return new URL(u,n)}catch{return console.error(`Invalid path ${u}`),y}},n,{equals:(y,u)=>y.href===u.href}),s=D(()=>a().pathname),o=D(()=>a().search,!0),i=D(()=>a().hash),c=()=>"",f=kr(o,()=>En(a()));return{get pathname(){return s()},get search(){return o()},get hash(){return i()},get state(){return e()},get key(){return c()},query:t?t(f):An(f)}}let Ee;function Ls(){return Ee}function qs(r,e,t,n={}){const{signal:[a,s],utils:o={}}=r,i=o.parsePath||(C=>C),c=o.renderPath||(C=>C),f=o.beforeLeave||In(),y=mt("",n.base||"");if(y===void 0)throw new Error(`${y} is not a valid base path`);y&&!a().value&&s({value:y,replace:!0,scroll:!1});const[u,p]=U(!1);let g;const m=(C,E)=>{E.value===h()&&E.state===H()||(g===void 0&&p(!0),Ee=C,g=E,Ma(()=>{g===E&&(w(g.value),_(g.state),q[1](N=>N.filter(J=>J.pending)))}).finally(()=>{g===E&&vn(()=>{Ee=void 0,C==="navigate"&&M(g),p(!1),g=void 0})}))},[h,w]=U(a().value),[H,_]=U(a().state),A=Cs(h,H,o.queryWrapper),T=[],q=U([]),x=D(()=>typeof n.transformUrl=="function"?zt(e(),n.transformUrl(A.pathname)):zt(e(),A.pathname)),F=()=>{const C=x(),E={};for(let N=0;N<C.length;N++)Object.assign(E,C[N].params);return E},j=o.paramsWrapper?o.paramsWrapper(F,e):An(F),b={pattern:y,path:()=>y,outlet:()=>null,resolvePath(C){return mt(y,C)}};return ne(kr(a,C=>m("native",C),{defer:!0})),{base:b,location:A,params:j,isRouting:u,renderPath:c,parsePath:i,navigatorFactory:v,matches:x,beforeLeave:f,preloadRoute:V,singleFlight:n.singleFlight===void 0?!0:n.singleFlight,submissions:q};function S(C,E,N){te(()=>{if(typeof E=="number"){E&&(o.go?o.go(E):console.warn("Router integration does not support relative routing"));return}const J=!E||E[0]==="?",{replace:he,resolve:G,scroll:re,state:ae}={replace:!1,resolve:!J,scroll:!0,...N},ye=G?C.resolvePath(E):mt(J&&A.pathname||"",E);if(ye===void 0)throw new Error(`Path '${E}' is not a routable path`);if(T.length>=ms)throw new Error("Too many redirects");const Ie=h();(ye!==Ie||ae!==H())&&(as||f.confirm(ye,N)&&(T.push({value:Ie,replace:he,scroll:re,state:H()}),m("navigate",{value:ye,state:ae})))})}function v(C){return C=C||Se(vr)||b,(E,N)=>S(C,E,N)}function M(C){const E=T[0];E&&(s({...C,replace:E.replace,scroll:E.scroll}),T.length=0)}function V(C,E){const N=zt(e(),C.pathname),J=Ee;Ee="preload";for(let he in N){const{route:G,params:re}=N[he];G.component&&G.component.preload&&G.component.preload();const{preload:ae}=G;E&&ae&&Ht(t(),()=>ae({params:re,location:{pathname:C.pathname,search:C.search,hash:C.hash,query:En(C),state:null,key:""},intent:"preload"}))}Ee=J}}function Ms(r,e,t,n){const{base:a,location:s,params:o}=r,{pattern:i,component:c,preload:f}=n().route,y=D(()=>n().path);c&&c.preload&&c.preload();const u=f?f({params:o,location:s,intent:Ee||"initial"}):void 0;return{parent:e,pattern:i,path:y,outlet:()=>c?$(c,{params:o,location:s,data:u,get children(){return t()}}):t(),resolvePath(g){return mt(a.path(),g,y())}}}const $s=r=>e=>{const{base:t}=e,n=Vt(()=>e.children),a=D(()=>Pn(n(),e.base||""));let s;const o=qs(r,a,()=>s,{base:t,singleFlight:e.singleFlight,transformUrl:e.transformUrl});return r.create&&r.create(o),$(Tn.Provider,{value:o,get children(){return $(Hs,{routerState:o,get root(){return e.root},get preload(){return e.rootPreload||e.rootLoad},get children(){return[Le(()=>(s=et())&&null),$(Vs,{routerState:o,get branches(){return a()}})]}})}})};function Hs(r){const e=r.routerState.location,t=r.routerState.params,n=D(()=>r.preload&&te(()=>{r.preload({params:t,location:e,intent:Ls()||"initial"})}));return $(ie,{get when(){return r.root},keyed:!0,get fallback(){return r.children},children:a=>$(a,{params:t,location:e,get data(){return n()},get children(){return r.children}})})}function Vs(r){const e=[];let t;const n=D(kr(r.routerState.matches,(a,s,o)=>{let i=s&&a.length===s.length;const c=[];for(let f=0,y=a.length;f<y;f++){const u=s&&s[f],p=a[f];o&&u&&p.route.key===u.route.key?c[f]=o[f]:(i=!1,e[f]&&e[f](),Ae(g=>{e[f]=g,c[f]=Ms(r.routerState,c[f-1]||r.routerState.base,Ur(()=>n()[f+1]),()=>{const m=r.routerState.matches();return m[f]??m[0]})}))}return e.splice(a.length).forEach(f=>f()),o&&i?o:(t=c[0],c)}));return Ur(()=>n()&&t)()}const Ur=r=>()=>$(ie,{get when(){return r()},keyed:!0,children:e=>$(vr.Provider,{value:e,get children(){return e.outlet()}})}),ve=r=>{const e=Vt(()=>r.children);return pe(r,{get children(){return e()}})};function _s([r,e],t,n){return[r,n?a=>e(n(a)):e]}function Is(r){let e=!1;const t=a=>typeof a=="string"?{value:a}:a,n=_s(U(t(r.get()),{equals:(a,s)=>a.value===s.value&&a.state===s.state}),void 0,a=>(!e&&r.set(a),I.registry&&!I.done&&(I.done=!0),a));return r.init&&fe(r.init((a=r.get())=>{e=!0,n[1](t(a)),e=!1})),$s({signal:n,create:r.create,utils:r.utils})}function js(r,e,t){return r.addEventListener(e,t),()=>r.removeEventListener(e,t)}function Es(r,e){const t=r&&document.getElementById(r);t?t.scrollIntoView():e&&window.scrollTo(0,0)}const As=new Map;function Ds(r=!0,e=!1,t="/_server",n){return a=>{const s=a.base.path(),o=a.navigatorFactory(a.base);let i,c;function f(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function y(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const w=h.composedPath().find(x=>x instanceof Node&&x.nodeName.toUpperCase()==="A");if(!w||e&&!w.hasAttribute("link"))return;const H=f(w),_=H?w.href.baseVal:w.href;if((H?w.target.baseVal:w.target)||!_&&!w.hasAttribute("state"))return;const T=(w.getAttribute("rel")||"").split(/\s+/);if(w.hasAttribute("download")||T&&T.includes("external"))return;const q=H?new URL(_,document.baseURI):new URL(_);if(!(q.origin!==window.location.origin||s&&q.pathname&&!q.pathname.toLowerCase().startsWith(s.toLowerCase())))return[w,q]}function u(h){const w=y(h);if(!w)return;const[H,_]=w,A=a.parsePath(_.pathname+_.search+_.hash),T=H.getAttribute("state");h.preventDefault(),o(A,{resolve:!1,replace:H.hasAttribute("replace"),scroll:!H.hasAttribute("noscroll"),state:T?JSON.parse(T):void 0})}function p(h){const w=y(h);if(!w)return;const[H,_]=w;n&&(_.pathname=n(_.pathname)),a.preloadRoute(_,H.getAttribute("preload")!=="false")}function g(h){clearTimeout(i);const w=y(h);if(!w)return c=null;const[H,_]=w;c!==H&&(n&&(_.pathname=n(_.pathname)),i=setTimeout(()=>{a.preloadRoute(_,H.getAttribute("preload")!=="false"),c=H},20))}function m(h){if(h.defaultPrevented)return;let w=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!w)return;if(!w.startsWith("https://action/")){const _=new URL(w,jn);if(w=a.parsePath(_.pathname+_.search),!w.startsWith(t))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const H=As.get(w);if(H){h.preventDefault();const _=new FormData(h.target,h.submitter);H.call({r:a,f:h.target},h.target.enctype==="multipart/form-data"?_:new URLSearchParams(_))}}br(["click","submit"]),document.addEventListener("click",u),r&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",m),fe(()=>{document.removeEventListener("click",u),r&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",m)})}}function Ts(r){const e=()=>{const n=window.location.pathname.replace(/^\/+/,"/")+window.location.search,a=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:n+window.location.hash,state:a}},t=In();return Is({get:e,set({value:n,replace:a,scroll:s,state:o}){a?window.history.replaceState(cs(o),"",n):window.history.pushState(o,"",n),Es(decodeURIComponent(window.location.hash.slice(1)),s),wr()},init:n=>js(window,"popstate",ls(n,a=>{if(a)return!t.confirm(a);{const s=e();return!t.confirm(s.value,{state:s.state})}})),create:Ds(r.preload,r.explicitLinks,r.actionBase,r.transformUrl),utils:{go:n=>window.history.go(n),beforeLeave:t}})(r)}var Ss=W("<a>");function Xe(r){r=pe({inactiveClass:"inactive",activeClass:"active"},r);const[,e]=Me(r,["href","state","class","activeClass","inactiveClass","end"]),t=gs(()=>r.href),n=bs(t),a=It(),s=D(()=>{const o=t();if(o===void 0)return[!1,!1];const i=De(o.split(/[?#]/,1)[0]).toLowerCase(),c=decodeURI(De(a.pathname).toLowerCase());return[r.end?i===c:c.startsWith(i+"/")||c===i,i===c]});return(()=>{var o=Ss();return Ne(o,pe(e,{get href(){return n()||r.href},get state(){return JSON.stringify(r.state)},get classList(){return{...r.class&&{[r.class]:!0},[r.inactiveClass]:!s()[0],[r.activeClass]:s()[0],...e.classList}},link:"",get"aria-current"(){return s()[1]?"page":void 0}}),!1,!1),o})()}const lr=Symbol("store-raw"),Oe=Symbol("store-node"),xe=Symbol("store-has"),Fn=Symbol("store-self");function Zn(r){let e=r[ge];if(!e&&(Object.defineProperty(r,ge,{value:e=new Proxy(r,Zs)}),!Array.isArray(r))){const t=Object.keys(r),n=Object.getOwnPropertyDescriptors(r);for(let a=0,s=t.length;a<s;a++){const o=t[a];n[o].get&&Object.defineProperty(r,o,{enumerable:n[o].enumerable,get:n[o].get.bind(e)})}}return e}function wt(r){let e;return r!=null&&typeof r=="object"&&(r[ge]||!(e=Object.getPrototypeOf(r))||e===Object.prototype||Array.isArray(r))}function rt(r,e=new Set){let t,n,a,s;if(t=r!=null&&r[lr])return t;if(!wt(r)||e.has(r))return r;if(Array.isArray(r)){Object.isFrozen(r)?r=r.slice(0):e.add(r);for(let o=0,i=r.length;o<i;o++)a=r[o],(n=rt(a,e))!==a&&(r[o]=n)}else{Object.isFrozen(r)?r=Object.assign({},r):e.add(r);const o=Object.keys(r),i=Object.getOwnPropertyDescriptors(r);for(let c=0,f=o.length;c<f;c++)s=o[c],!i[s].get&&(a=r[s],(n=rt(a,e))!==a&&(r[s]=n))}return r}function vt(r,e){let t=r[e];return t||Object.defineProperty(r,e,{value:t=Object.create(null)}),t}function nt(r,e,t){if(r[e])return r[e];const[n,a]=U(t,{equals:!1,internal:!0});return n.$=a,r[e]=n}function Ps(r,e){const t=Reflect.getOwnPropertyDescriptor(r,e);return!t||t.get||!t.configurable||e===ge||e===Oe||(delete t.value,delete t.writable,t.get=()=>r[ge][e]),t}function Bn(r){nr()&&nt(vt(r,Oe),Fn)()}function Fs(r){return Bn(r),Reflect.ownKeys(r)}const Zs={get(r,e,t){if(e===lr)return r;if(e===ge)return t;if(e===rr)return Bn(r),t;const n=vt(r,Oe),a=n[e];let s=a?a():r[e];if(e===Oe||e===xe||e==="__proto__")return s;if(!a){const o=Object.getOwnPropertyDescriptor(r,e);nr()&&(typeof s!="function"||r.hasOwnProperty(e))&&!(o&&o.get)&&(s=nt(n,e,s)())}return wt(s)?Zn(s):s},has(r,e){return e===lr||e===ge||e===rr||e===Oe||e===xe||e==="__proto__"?!0:(nr()&&nt(vt(r,xe),e)(),e in r)},set(){return!0},deleteProperty(){return!0},ownKeys:Fs,getOwnPropertyDescriptor:Ps};function xt(r,e,t,n=!1){if(!n&&r[e]===t)return;const a=r[e],s=r.length;t===void 0?(delete r[e],r[xe]&&r[xe][e]&&a!==void 0&&r[xe][e].$()):(r[e]=t,r[xe]&&r[xe][e]&&a===void 0&&r[xe][e].$());let o=vt(r,Oe),i;if((i=nt(o,e,a))&&i.$(()=>t),Array.isArray(r)&&r.length!==s){for(let c=r.length;c<s;c++)(i=o[c])&&i.$();(i=nt(o,"length",s))&&i.$(r.length)}(i=o[Fn])&&i.$()}function On(r,e){const t=Object.keys(e);for(let n=0;n<t.length;n+=1){const a=t[n];xt(r,a,e[a])}}function Bs(r,e){if(typeof e=="function"&&(e=e(r)),e=rt(e),Array.isArray(e)){if(r===e)return;let t=0,n=e.length;for(;t<n;t++){const a=e[t];r[t]!==a&&xt(r,t,a)}xt(r,"length",n)}else On(r,e)}function Ke(r,e,t=[]){let n,a=r;if(e.length>1){n=e.shift();const o=typeof n,i=Array.isArray(r);if(Array.isArray(n)){for(let c=0;c<n.length;c++)Ke(r,[n[c]].concat(e),t);return}else if(i&&o==="function"){for(let c=0;c<r.length;c++)n(r[c],c)&&Ke(r,[c].concat(e),t);return}else if(i&&o==="object"){const{from:c=0,to:f=r.length-1,by:y=1}=n;for(let u=c;u<=f;u+=y)Ke(r,[u].concat(e),t);return}else if(e.length>1){Ke(r[n],e,[n].concat(t));return}a=r[n],t=[n].concat(t)}let s=e[0];typeof s=="function"&&(s=s(a,t),s===a)||n===void 0&&s==null||(s=rt(s),n===void 0||wt(a)&&wt(s)&&!Array.isArray(s)?On(a,s):xt(r,n,s))}function Os(...[r,e]){const t=rt(r||{}),n=Array.isArray(t),a=Zn(t);function s(...o){vn(()=>{n&&o.length===1?Bs(t,o[0]):Ke(t,o)})}return[a,s]}function Ve(r,e,t){return Math.max(e,Math.min(t,r))}function Rs(r){return(r%360+360)%360}function at(r){const e=r.replace("#",""),t=e.length===3||e.length===4?e.split("").map(s=>s+s).join(""):e,n=t.length===8?t.slice(0,6):t,a=parseInt(n,16);return{r:(a>>16&255)/255,g:(a>>8&255)/255,b:(a&255)/255}}function Rn(r,e,t){const n=a=>{const s=Ve(a,0,1);return Math.round(s*255).toString(16).padStart(2,"0")};return`#${n(r)}${n(e)}${n(t)}`}function Nt(r){return r<=.0031308?r*12.92:1.055*Math.pow(r,1/2.4)-.055}function Ut(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function zs(r,e,t){const n=Ut(r),a=Ut(e),s=Ut(t),o=.4122214708*n+.5363325363*a+.0514459929*s,i=.2119034982*n+.6806995451*a+.1073969566*s,c=.0883024619*n+.2817188376*a+.6299787005*s,f=Math.cbrt(o),y=Math.cbrt(i),u=Math.cbrt(c),p=.2104542553*f+.793617785*y-.0040720468*u,g=1.9779984951*f-2.428592205*y+.4505937099*u,m=.0259040371*f+.7827717662*y-.808675766*u,h=Math.sqrt(g*g+m*m);let w=Math.atan2(m,g)*(180/Math.PI);return w<0&&(w+=360),{l:p,c:h,h:w}}function dr(r){const{l:e,c:t,h:n}=r,a=t*Math.cos(n*Math.PI/180),s=t*Math.sin(n*Math.PI/180),o=e+.3963377774*a+.2158037573*s,i=e-.1055613458*a-.0638541728*s,c=e-.0894841775*a-1.291485548*s,f=o*o*o,y=i*i*i,u=c*c*c,p=4.0767416621*f-3.3077115913*y+.2309699292*u,g=-1.2684380046*f+2.6097574011*y-.3413193965*u,m=-.0041960863*f-.7034186147*y+1.707614701*u;return{r:Nt(p),g:Nt(g),b:Nt(m)}}function we(r){const{r:e,g:t,b:n}=at(r);return zs(e,t,n)}function Ns(r){const e={l:Ve(r.l,0,1),c:Math.max(0,r.c),h:Rs(r.h)},t=dr(e);if(t.r>=0&&t.r<=1&&t.g>=0&&t.g<=1&&t.b>=0&&t.b<=1)return e;let n=e.c;for(let a=0;a<24;a++){n*=.9;const s={...e,c:n},o=dr(s);if(o.r>=0&&o.r<=1&&o.g>=0&&o.g<=1&&o.b>=0&&o.b<=1)return s}return{...e,c:0}}function Re(r){const{r:e,g:t,b:n}=dr(Ns(r));return Rn(e,t,n)}function me(r,e){const t=we(r),n=[],a=e?[.118,.138,.167,.202,.246,.304,.378,.468,Ve(t.l*.825,.53,.705),Ve(t.l*.89,.61,.79),Ve(t.l+.033,.868,.943),.984]:[.993,.983,.962,.936,.906,.866,.811,.74,t.l,Math.max(0,t.l-.036),.49,.27],s=e?[.52,.68,.86,1.02,1.14,1.24,1.36,1.48,1.56,1.64,1.62,1.15]:[.12,.24,.46,.68,.84,.98,1.08,1.16,1.22,1.26,1.18,.98];for(let o=0;o<12;o++)n.push(Re({l:a[o],c:t.c*s[o],h:t.h}));return n}function Us(r,e,t){if(t){const i=we(r),c=p=>Re({l:i.l+(1-i.l)*p,c:i.c*Math.max(0,1-p),h:i.h}),y=e?(p=>Re({l:i.l*(1-p),c:i.c*Math.max(0,1-p*(e?.12:.3)),h:i.h}))(Ve(.19+Math.max(0,i.l-.12)*.33+i.c*1.95,.17,.27)):i.l<.82?c(.86):c(Ve(.1+i.c*3.2+Math.max(0,.95-i.l)*.35,.1,.28));return(e?[0,.018,.039,.064,.097,.143,.212,.31,.46,.649,.845,.984]:[0,.022,.042,.068,.102,.146,.208,.296,.432,.61,.81,.965]).map(p=>Ws(y,t,p))}const n=we(r),a=[],s=Math.min(n.c,e?.068:.04),o=e?[.138,.156,.178,.202,.232,.272,.326,.404,Ve(n.l*.83,.43,.55),.596,.719,.956]:[.991,.979,.964,.946,.931,.913,.891,.83,n.l,.617,.542,.205];for(let i=0;i<12;i++)a.push(Re({l:o[i],c:s,h:n.h}));return a}function Ws(r,e,t){const n=we(r),a=we(e),s=((a.h-n.h)%360+540)%360-180;return Re({l:n.l+(a.l-n.l)*t,c:n.c+(a.c-n.c)*t,h:n.h+s*t})}function de(r,e){const t=we(r);return Re({l:t.l+(e.l??0),c:t.c*(e.c??1),h:t.h+(e.h??0)})}function fr(r,e,t){const n=at(r),a=at(e);return Rn(n.r*t+a.r*(1-t),n.g*t+a.g*(1-t),n.b*t+a.b*(1-t))}function je(r,e){const{r:t,g:n,b:a}=at(r);return`rgba(${Math.round(t*255)}, ${Math.round(n*255)}, ${Math.round(a*255)}, ${e})`}function zn(r,e){const t=Js(r),{overrides:n={}}=r,a=Us(t.neutral,e,t.ink),s=me(t.primary,e),o=me(t.accent,e),i=me(t.success,e),c=me(t.warning,e),f=me(t.error,e),y=me(t.info,e),u=me(t.interactive,e),p=me(de(t.warning,e?{h:-16,l:-.058,c:1.14}:{h:-22,l:-.082,c:.94}),e),g=me(de(t.interactive,{h:-12,l:.128,c:1.12}),e),m=me(t.diffAdd??de(t.success,{c:e?.7:.55,l:e?-.18:.14}),e),h=me(t.diffDelete??de(t.error,{c:e?.82:.7,l:e?-.08:.08}),e),w=t.ink??t.neutral,H=t.compact?we(w):void 0,_=H?de(w,{l:e?Math.max(0,.88-H.l)*.4:-Math.max(0,H.l-.18)*.24,c:e?1.04:1.02}):void 0,A=n["background-base"],T=Gs(A),q=!!A&&!T,x=(K,Y)=>{const le=we(K),$e=e&&le.l>.84?de(K,{c:1.18}):Y[10];return de($e,{l:e?.034:-.024,c:e?1.3:1.18})},F=()=>{if(!t.compact)return e?"#ffba92":"#FF8C00";const K=we(t.warning).h,Y=we(t.diffDelete??t.error).h;return Math.abs(((Y-K)%360+540)%360-180)<48?e?"#ffba92":"#FF8C00":x(t.warning,c)},j=(K,Y)=>({base:S(K,Y.base),weak:S(K,Y.weak),weaker:S(K,Y.weaker),strong:S(K,Y.strong),stronger:S(K,Y.stronger)}),b=T??a[0],S=(K,Y)=>q?je(K,Y):fr(K,b,Y),v=(K,Y)=>S(w,e?Math.min(1,Y+.024+(t.compact?.08:0)):Math.min(1,K+.024)),M=j(e?de(t.interactive,{c:.55,l:0}):de(t.interactive,{c:.45,l:.08}),e?{base:.14,weak:.08,weaker:.18,strong:.26,stronger:.42}:{base:.12,weak:.08,weaker:.16,strong:.24,stronger:.36}),V=Ks(a,e),C=s[8],E=s[9],N=u[e?6:4],J=u[e?7:5],he=u[e?5:3],G=i[e?6:4],re=i[e?5:3],ae=i[10],ye=c[e?6:4],Ie=c[e?5:3],it=c[10],ct=f[e?6:4],ka=f[e?5:3],lt=f[10],dt=y[e?6:4],ga=y[e?5:3],ft=y[10],Ar=K=>{const Y=at(K),le=$e=>$e<=.04045?$e/12.92:Math.pow(($e+.055)/1.055,2.4);return .2126*le(Y.r)+.7152*le(Y.g)+.0722*le(Y.b)},Dr=(K,Y)=>{const le=Ar(K),$e=Ar(Y),ba=Math.max(le,$e),wa=Math.min(le,$e);return(ba+.05)/(wa+.05)},O=K=>{const Y="#ffffff",le="#000000";return Dr(Y,K)>Dr(le,K)?Y:le},l={};l["background-base"]=a[0],l["background-weak"]=a[2],l["background-strong"]=a[0],l["background-stronger"]=e?a[1]:"#fcfcfc",l["surface-base"]=V[1],l.base=V[1],l["surface-base-hover"]=V[2],l["surface-base-active"]=V[2],l["surface-base-interactive-active"]=je(u[2],.3),l.base2=V[1],l.base3=V[1],l["surface-inset-base"]=V[1],l["surface-inset-base-hover"]=V[2],l["surface-inset-strong"]=e?je(a[0],.5):je(a[3],.09),l["surface-inset-strong-hover"]=l["surface-inset-strong"],l["surface-raised-base"]=V[0],l["surface-float-base"]=e?a[1]:a[11],l["surface-float-base-hover"]=e?a[2]:a[10],l["surface-raised-base-hover"]=V[1],l["surface-raised-base-active"]=V[2],l["surface-raised-strong"]=e?V[3]:a[0],l["surface-raised-strong-hover"]=e?V[5]:"#ffffff",l["surface-raised-stronger"]=e?V[5]:"#ffffff",l["surface-raised-stronger-hover"]=e?V[6]:"#ffffff",l["surface-weak"]=V[2],l["surface-weaker"]=V[3],l["surface-strong"]=e?V[6]:"#ffffff",l["surface-raised-stronger-non-alpha"]=e?a[2]:"#ffffff",l["surface-brand-base"]=C,l["surface-brand-hover"]=E,l["surface-interactive-base"]=N,l["surface-interactive-hover"]=J,l["surface-interactive-weak"]=he,l["surface-interactive-weak-hover"]=N,l["surface-success-base"]=G,l["surface-success-weak"]=re,l["surface-success-strong"]=ae,l["surface-warning-base"]=ye,l["surface-warning-weak"]=Ie,l["surface-warning-strong"]=it,l["surface-critical-base"]=ct,l["surface-critical-weak"]=ka,l["surface-critical-strong"]=lt,l["surface-info-base"]=dt,l["surface-info-weak"]=ga,l["surface-info-strong"]=ft,l["surface-diff-unchanged-base"]=e?a[0]:"#ffffff00",l["surface-diff-skip-base"]=e?V[0]:a[1],l["surface-diff-hidden-base"]=M.base,l["surface-diff-hidden-weak"]=M.weak,l["surface-diff-hidden-weaker"]=M.weaker,l["surface-diff-hidden-strong"]=M.strong,l["surface-diff-hidden-stronger"]=M.stronger,l["surface-diff-add-base"]=m[2],l["surface-diff-add-weak"]=m[e?3:1],l["surface-diff-add-weaker"]=m[e?2:0],l["surface-diff-add-strong"]=m[4],l["surface-diff-add-stronger"]=m[e?10:8],l["surface-diff-delete-base"]=h[2],l["surface-diff-delete-weak"]=h[e?3:1],l["surface-diff-delete-weaker"]=h[e?2:0],l["surface-diff-delete-strong"]=h[e?4:5],l["surface-diff-delete-stronger"]=h[e?10:8],l["input-base"]=e?a[1]:a[0],l["input-hover"]=e?a[2]:a[1],l["input-active"]=e?u[6]:u[0],l["input-selected"]=e?u[7]:u[3],l["input-focus"]=e?u[6]:u[0],l["input-disabled"]=a[3],l["text-base"]=t.compact?_:a[10],l["text-weak"]=t.compact?de(_,{l:e?-.11:.11,c:.9}):a[8],l["text-weaker"]=t.compact?de(_,{l:e?-.2:.21,c:e?.78:.72}):a[7],l["text-strong"]=t.compact?e?fr("#ffffff",_,.9):de(_,{l:-.07,c:1.04}):a[11],l["text-invert-base"]=e?a[10]:a[1],l["text-invert-weak"]=e?a[8]:a[2],l["text-invert-weaker"]=e?a[7]:a[3],l["text-invert-strong"]=e?a[11]:a[0],l["text-interactive-base"]=u[e?10:9],l["text-on-brand-base"]=O(C),l["text-on-interactive-base"]=O(N),l["text-on-interactive-weak"]=O(N),l["text-on-success-base"]=O(G),l["text-on-critical-base"]=O(ct),l["text-on-critical-weak"]=O(ct),l["text-on-critical-strong"]=O(lt),l["text-on-warning-base"]=O(ye),l["text-on-info-base"]=O(dt),l["text-diff-add-base"]=m[10],l["text-diff-delete-base"]=h[9],l["text-diff-delete-strong"]=h[11],l["text-diff-add-strong"]=m[e?7:11],l["text-on-info-weak"]=O(dt),l["text-on-info-strong"]=O(ft),l["text-on-warning-weak"]=O(ye),l["text-on-warning-strong"]=O(it),l["text-on-success-weak"]=O(G),l["text-on-success-strong"]=O(ae),l["text-on-brand-weak"]=O(C),l["text-on-brand-weaker"]=O(C),l["text-on-brand-strong"]=O(E),l["button-primary-base"]=a[11],l["button-secondary-base"]=e?a[2]:a[0],l["button-secondary-hover"]=e?a[3]:a[1],l["button-ghost-hover"]=V[1],l["button-ghost-hover2"]=V[2],l["border-base"]=t.compact?v(.22,.16):V[6],l["border-hover"]=t.compact?v(.28,.2):V[7],l["border-active"]=t.compact?v(.34,.24):V[8],l["border-selected"]=je(u[8],e?.9:.99),l["border-disabled"]=t.compact?v(.18,.12):V[7],l["border-focus"]=t.compact?v(.34,.24):V[8],l["border-weak-base"]=t.compact?v(.1,.08):V[e?5:4],l["border-strong-base"]=t.compact?v(.34,.24):V[e?7:6],l["border-strong-hover"]=t.compact?v(.4,.28):V[7],l["border-strong-active"]=t.compact?v(.46,.32):V[e?7:6],l["border-strong-selected"]=je(u[5],.6),l["border-strong-disabled"]=t.compact?v(.14,.1):V[5],l["border-strong-focus"]=t.compact?v(.46,.32):V[e?7:6],l["border-weak-hover"]=t.compact?v(.16,.12):V[e?6:5],l["border-weak-active"]=t.compact?v(.22,.16):V[e?7:6],l["border-weak-selected"]=je(u[4],e?.6:.5),l["border-weak-disabled"]=t.compact?v(.08,.06):V[5],l["border-weak-focus"]=t.compact?v(.22,.16):V[e?7:6],l["border-weaker-base"]=t.compact?v(.06,.04):V[2],l["border-interactive-base"]=u[6],l["border-interactive-hover"]=u[7],l["border-interactive-active"]=u[8],l["border-interactive-selected"]=u[8],l["border-interactive-disabled"]=a[7],l["border-interactive-focus"]=u[8],l["border-success-base"]=i[6],l["border-success-hover"]=i[7],l["border-success-selected"]=i[8],l["border-warning-base"]=c[6],l["border-warning-hover"]=c[7],l["border-warning-selected"]=c[8],l["border-critical-base"]=f[6],l["border-critical-hover"]=f[7],l["border-critical-selected"]=f[8],l["border-info-base"]=y[6],l["border-info-hover"]=y[7],l["border-info-selected"]=y[8],l["border-color"]="#ffffff",l["icon-base"]=t.compact&&!e?l["text-weak"]:a[e?9:8],l["icon-hover"]=t.compact&&!e?l["text-base"]:a[10],l["icon-active"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-selected"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-disabled"]=a[e?6:7],l["icon-focus"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-invert-base"]=e?a[0]:"#ffffff",l["icon-weak-base"]=a[e?5:6],l["icon-weak-hover"]=a[e?11:7],l["icon-weak-active"]=a[8],l["icon-weak-selected"]=a[e?8:9],l["icon-weak-disabled"]=a[e?3:5],l["icon-weak-focus"]=a[8],l["icon-strong-base"]=a[11],l["icon-strong-hover"]=e?"#f6f3f3":"#151313",l["icon-strong-active"]=e?"#fcfcfc":"#020202",l["icon-strong-selected"]=e?"#fdfcfc":"#020202",l["icon-strong-disabled"]=a[7],l["icon-strong-focus"]=e?"#fdfcfc":"#020202",l["icon-brand-base"]=e?"#ffffff":a[11],l["icon-interactive-base"]=u[8],l["icon-success-base"]=i[e?8:6],l["icon-success-hover"]=i[9],l["icon-success-active"]=i[10],l["icon-warning-base"]=p[e?8:6],l["icon-warning-hover"]=p[9],l["icon-warning-active"]=p[10],l["icon-critical-base"]=f[e?8:9],l["icon-critical-hover"]=f[9],l["icon-critical-active"]=f[10],l["icon-info-base"]=y[e?8:6],l["icon-info-hover"]=y[e?9:7],l["icon-info-active"]=y[10],l["icon-on-brand-base"]=O(C),l["icon-on-brand-hover"]=O(E),l["icon-on-brand-selected"]=O(E),l["icon-on-interactive-base"]=O(N),l["icon-agent-plan-base"]=y[8],l["icon-agent-docs-base"]=p[8],l["icon-agent-ask-base"]=g[8],l["icon-agent-build-base"]=u[e?10:8],l["icon-on-success-base"]=O(G),l["icon-on-success-hover"]=O(ae),l["icon-on-success-selected"]=O(ae),l["icon-on-warning-base"]=O(ye),l["icon-on-warning-hover"]=O(it),l["icon-on-warning-selected"]=O(it),l["icon-on-critical-base"]=O(ct),l["icon-on-critical-hover"]=O(lt),l["icon-on-critical-selected"]=O(lt),l["icon-on-info-base"]=O(dt),l["icon-on-info-hover"]=O(ft),l["icon-on-info-selected"]=O(ft),l["icon-diff-add-base"]=m[10],l["icon-diff-add-hover"]=m[e?9:11],l["icon-diff-add-active"]=m[e?10:11],l["icon-diff-delete-base"]=h[9],l["icon-diff-delete-hover"]=h[10],l["icon-diff-modified-base"]=F(),t.compact&&(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=x(t.success,i),l["syntax-keyword"]=x(t.accent,o),l["syntax-primitive"]=x(t.primary,s),l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=x(t.info,y),l["syntax-type"]=x(t.warning,c),l["syntax-constant"]=x(t.accent,o),l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=x(t.info,y),l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=x(t.primary,s),l["markdown-text"]=l["text-base"],l["markdown-link"]=x(t.interactive,u),l["markdown-link-text"]=x(t.info,y),l["markdown-code"]=x(t.success,i),l["markdown-block-quote"]=x(t.warning,c),l["markdown-emph"]=x(t.warning,c),l["markdown-strong"]=x(t.accent,o),l["markdown-horizontal-rule"]=l["border-base"],l["markdown-list-item"]=x(t.interactive,u),l["markdown-list-enumeration"]=x(t.info,y),l["markdown-image"]=x(t.interactive,u),l["markdown-image-text"]=x(t.info,y),l["markdown-code-block"]=l["text-base"]),t.compact||(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=e?"#00ceb9":"#006656",l["syntax-keyword"]="var(--text-weak)",l["syntax-primitive"]=e?"#ffba92":"#fb4804",l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=e?"#ff9ae2":"#ed6dc8",l["syntax-type"]=e?"#ecf58c":"#596600",l["syntax-constant"]=e?"#93e9f6":"#007b80",l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=e?"#93e9f6":"#0092a8",l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=e?"#9d7cd8":"#d68c27",l["markdown-text"]=e?"#eeeeee":"#1a1a1a",l["markdown-link"]=e?"#fab283":"#3b7dd8",l["markdown-link-text"]=e?"#56b6c2":"#318795",l["markdown-code"]=e?"#7fd88f":"#3d9a57",l["markdown-block-quote"]=e?"#e5c07b":"#b0851f",l["markdown-emph"]=e?"#e5c07b":"#b0851f",l["markdown-strong"]=e?"#f5a742":"#d68c27",l["markdown-horizontal-rule"]=e?"#808080":"#8a8a8a",l["markdown-list-item"]=e?"#fab283":"#3b7dd8",l["markdown-list-enumeration"]=e?"#56b6c2":"#318795",l["markdown-image"]=e?"#fab283":"#3b7dd8",l["markdown-image-text"]=e?"#56b6c2":"#318795",l["markdown-code-block"]=e?"#eeeeee":"#1a1a1a"),l["avatar-background-pink"]=e?"#501b3f":"#feeef8",l["avatar-background-mint"]=e?"#033a34":"#e1fbf4",l["avatar-background-orange"]=e?"#5f2a06":"#fff1e7",l["avatar-background-purple"]=e?"#432155":"#f9f1fe",l["avatar-background-cyan"]=e?"#0f3058":"#e7f9fb",l["avatar-background-lime"]=e?"#2b3711":"#eefadc",l["avatar-text-pink"]=e?"#e34ba9":"#cd1d8d",l["avatar-text-mint"]=e?"#95f3d9":"#147d6f",l["avatar-text-orange"]=e?"#ff802b":"#ed5f00",l["avatar-text-purple"]=e?"#9d5bd2":"#8445bc",l["avatar-text-cyan"]=e?"#369eff":"#0894b3",l["avatar-text-lime"]=e?"#c4f042":"#5d770d";for(const[K,Y]of Object.entries(n))l[K]=Y;if(t.compact&&"text-weak"in n&&!("text-weaker"in n)){const K=l["text-weak"];K.startsWith("#")?l["text-weaker"]=de(K,{l:e?-.12:.12,c:.75}):l["text-weaker"]=K}return t.compact&&("markdown-text"in n||(l["markdown-text"]=l["text-base"]),"markdown-code-block"in n||(l["markdown-code-block"]=l["text-base"])),"text-stronger"in n||(l["text-stronger"]=l["text-strong"]),l}function Js(r){const e=r;if(e.palette&&e.seeds)throw new Error("Theme variant cannot define both `palette` and `seeds`");if(r.palette)return{compact:!0,neutral:r.palette.neutral,ink:r.palette.ink,primary:r.palette.primary,accent:r.palette.accent??r.palette.info,success:r.palette.success,warning:r.palette.warning,error:r.palette.error,info:r.palette.info,interactive:r.palette.interactive??r.palette.primary,diffAdd:r.palette.diffAdd,diffDelete:r.palette.diffDelete};if(r.seeds)return{compact:!1,neutral:r.seeds.neutral,ink:void 0,primary:r.seeds.primary,accent:r.seeds.info,success:r.seeds.success,warning:r.seeds.warning,error:r.seeds.error,info:r.seeds.info,interactive:r.seeds.interactive,diffAdd:r.seeds.diffAdd,diffDelete:r.seeds.diffDelete};throw new Error("Theme variant requires `palette` or `seeds`")}function Ks(r,e){return(e?[.038,.066,.1,.142,.19,.252,.334,.446,.58,.718,.854,.985]:[.03,.06,.1,.145,.2,.265,.35,.47,.61,.74,.86,.97]).map(n=>fr(r[11],r[0],n))}function Gs(r){if(r?.startsWith("#"))return r}function Nn(r){return Object.entries(r).map(([e,t])=>`--${e}: ${t};`).join(`
|
|
3
|
-
`)}const Ys="https://opencode.ai/desktop-theme.json",Xs="OC-2",Qs="oc-2",eo={palette:{neutral:"#f7f7f7",ink:"#171311",primary:"#dcde8d",success:"#12c905",warning:"#ffdc17",error:"#fc533a",info:"#a753ae",interactive:"#034cff",diffAdd:"#9ff29a",diffDelete:"#fc533a"},overrides:{"text-strong":"#171717","text-base":"#6F6F6F","text-weak":"#8F8F8F","text-weaker":"#C7C7C7","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#DBDBDB","border-weaker-base":"#E8E8E8","icon-base":"#8F8F8F","icon-weak-base":"C7C7C7","surface-raised-base":"#F3F3F3","surface-raised-base-hover":"#EDEDED","surface-base":"#F8F8F8","surface-base-hover":"#0000000A","surface-interactive-weak":"#F5FAFF","icon-success-base":"#0ABE00","surface-success-base":"#E6FFE5","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-800)","syntax-string":"var(--v2-green-800)","syntax-primitive":"var(--v2-pink-800)","syntax-property":"var(--v2-orange-800)","syntax-type":"var(--v2-purple-800)","syntax-constant":"#007b80","syntax-critical":"var(--v2-red-800)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#a753ae","surface-critical-base":"#FFF2F0"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-50)","v2-background-bg-deep":"var(--v2-grey-100)","v2-background-bg-layer-01":"var(--v2-grey-100)","v2-background-bg-layer-02":"var(--v2-grey-200)","v2-background-bg-layer-03":"var(--v2-grey-300)","v2-background-bg-layer-04":"var(--v2-grey-400)","v2-background-bg-inverse":"var(--v2-grey-1100)","v2-background-bg-contrast":"var(--v2-grey-1000)","v2-background-bg-button-neutral":"var(--v2-grey-50)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-1100)","v2-text-text-muted":"var(--v2-grey-700)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-50)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-600)","v2-text-text-accent-hover":"var(--v2-blue-700)","v2-text-text-code-accent":"var(--v2-blue-900)","v2-icon-icon-base":"var(--v2-grey-800)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-50)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-600)","v2-icon-icon-accent-hover":"var(--v2-blue-700)","v2-border-border-muted":"var(--v2-alpha-dark-8)","v2-border-border-base":"var(--v2-alpha-dark-10)","v2-border-border-strong":"var(--v2-alpha-dark-20)","v2-border-border-inverse":"var(--v2-grey-1000)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-dark-4)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-dark-8)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-light-12)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-light-24)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-40)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#fafafa00","v2-overlay-simple-tab-hover-scrim":"#eeeeee00","v2-overlay-simple-tab-scrim":"#fafafa00","v2-state-bg-success":"var(--v2-green-100)","v2-state-fg-success":"var(--v2-green-800)","v2-state-border-success":"var(--v2-green-300)","v2-state-bg-warning":"var(--v2-yellow-100)","v2-state-fg-warning":"var(--v2-yellow-800)","v2-state-border-warning":"var(--v2-yellow-300)","v2-state-bg-danger":"var(--v2-red-100)","v2-state-fg-danger":"var(--v2-red-800)","v2-state-border-danger":"var(--v2-red-300)","v2-state-bg-info":"var(--v2-blue-100)","v2-state-fg-info":"var(--v2-blue-800)","v2-state-border-info":"var(--v2-blue-300)","v2-avatar-bg-orange":"#ee7330ff","v2-avatar-border-orange":"#d16427ff","v2-avatar-bg-yellow":"#e7af36ff","v2-avatar-border-yellow":"#cb9f34ff","v2-avatar-bg-cyan":"#0096b8ff","v2-avatar-border-cyan":"#007d9bff","v2-avatar-bg-green":"#2eaf5aff","v2-avatar-border-green":"#198b43ff","v2-avatar-bg-red":"#d92e3cff","v2-avatar-border-red":"#b82d35ff","v2-avatar-bg-pink":"#e4429eff","v2-avatar-border-pink":"#c83d8bff","v2-avatar-bg-blue":"#3250dfff","v2-avatar-border-blue":"#2c47c8ff","v2-avatar-bg-purple":"#623be2ff","v2-avatar-border-purple":"#5230c2ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#3a3a3aff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-neutral":"0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-contrast":"0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)","v2-elevation-switch-on":"inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)","v2-illustration-illustration-layer-01":"var(--v2-grey-300)","v2-illustration-illustration-layer-02":"var(--v2-grey-400)","v2-illustration-illustration-layer-03":"var(--v2-grey-500)"}},to={palette:{neutral:"#1f1f1f",ink:"#f1ece8",primary:"#fab283",success:"#12c905",warning:"#fcd53a",error:"#fc533a",info:"#edb2f1",interactive:"#034cff",diffAdd:"#c8ffc4",diffDelete:"#fc533a"},overrides:{"text-strong":"#EDEDED","text-base":"#A0A0A0","text-weak":"#707070","text-weaker":"#505050","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#282828","border-weaker-base":"#232323","icon-base":"#7E7E7E","icon-weak-base":"#343434","surface-raised-base":"#232323","surface-raised-base-hover":"#282828","surface-base":"#1C1C1C","surface-base-hover":"#FFFFFF0D","surface-interactive-weak":"#0D172B","surface-success-base":"#022B00","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-400)","syntax-string":"var(--v2-green-400)","syntax-primitive":"var(--v2-pink-400)","syntax-property":"var(--v2-orange-400)","syntax-type":"var(--v2-purple-400)","syntax-constant":"#93e9f6","syntax-critical":"var(--v2-red-400)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#edb2f1","surface-critical-base":"#1F0603"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-1100)","v2-background-bg-deep":"var(--v2-grey-1200)","v2-background-bg-layer-01":"var(--v2-grey-1000)","v2-background-bg-layer-02":"var(--v2-grey-900)","v2-background-bg-layer-03":"var(--v2-grey-800)","v2-background-bg-layer-04":"var(--v2-grey-700)","v2-background-bg-inverse":"var(--v2-grey-50)","v2-background-bg-contrast":"var(--v2-grey-700)","v2-background-bg-button-neutral":"var(--v2-alpha-light-6)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-100)","v2-text-text-muted":"var(--v2-grey-500)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-1100)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-400)","v2-text-text-accent-hover":"var(--v2-blue-300)","v2-text-text-code-accent":"var(--v2-blue-400)","v2-icon-icon-base":"var(--v2-grey-400)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-1100)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-400)","v2-icon-icon-accent-hover":"var(--v2-blue-300)","v2-border-border-muted":"var(--v2-alpha-light-8)","v2-border-border-base":"var(--v2-alpha-light-10)","v2-border-border-strong":"var(--v2-alpha-light-20)","v2-border-border-inverse":"var(--v2-grey-100)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-light-6)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-light-10)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-dark-24)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-dark-40)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-60)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#24242400","v2-overlay-simple-tab-hover-scrim":"#3a3a3a00","v2-overlay-simple-tab-scrim":"#08080800","v2-state-bg-success":"var(--v2-green-1200)","v2-state-fg-success":"var(--v2-green-500)","v2-state-border-success":"var(--v2-green-900)","v2-state-bg-warning":"var(--v2-yellow-1200)","v2-state-fg-warning":"var(--v2-yellow-500)","v2-state-border-warning":"var(--v2-yellow-900)","v2-state-bg-danger":"var(--v2-red-1200)","v2-state-fg-danger":"var(--v2-red-500)","v2-state-border-danger":"var(--v2-red-900)","v2-state-bg-info":"var(--v2-blue-1200)","v2-state-fg-info":"var(--v2-blue-500)","v2-state-border-info":"var(--v2-blue-900)","v2-avatar-bg-orange":"#723d22ff","v2-avatar-border-orange":"#ff8648ff","v2-avatar-bg-yellow":"#68552bff","v2-avatar-border-yellow":"#e7af36ff","v2-avatar-bg-cyan":"#005a6eff","v2-avatar-border-cyan":"#0096b8ff","v2-avatar-bg-green":"#196130ff","v2-avatar-border-green":"#49c970ff","v2-avatar-bg-red":"#7a1f23ff","v2-avatar-border-red":"#d92e3cff","v2-avatar-bg-pink":"#8c2d61ff","v2-avatar-border-pink":"#e4429eff","v2-avatar-bg-blue":"#263fa9ff","v2-avatar-border-blue":"#7698fdff","v2-avatar-bg-purple":"#361f83ff","v2-avatar-border-purple":"#7152f4ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#aeaeaeff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-button-neutral":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)","v2-elevation-button-contrast":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-elevation-switch-on":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-illustration-illustration-layer-01":"var(--v2-grey-900)","v2-illustration-illustration-layer-02":"var(--v2-grey-800)","v2-illustration-illustration-layer-03":"var(--v2-grey-700)"}},ro={$schema:Ys,name:Xs,id:Qs,light:eo,dark:to},no="https://opencode.ai/desktop-theme.json",ao="AMOLED",so="amoled",oo={palette:{neutral:"#f0f0f0",ink:"#0a0a0a",primary:"#6200ff",accent:"#ff0080",success:"#00e676",warning:"#ffab00",error:"#ff1744",info:"#00b0ff",diffAdd:"#00e676",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#757575","syntax-keyword":"#d500f9","syntax-string":"#00e676","syntax-primitive":"#00b0ff","syntax-property":"#ff9100","syntax-constant":"#6200ff"}},io={palette:{neutral:"#000000",ink:"#ffffff",primary:"#b388ff",accent:"#ff4081",success:"#00ff88",warning:"#ffea00",error:"#ff1744",info:"#18ffff",diffAdd:"#00ff88",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#555555","syntax-keyword":"#ff00ff","syntax-string":"#00ff88","syntax-primitive":"#18ffff","syntax-property":"#ffea00","syntax-constant":"#b388ff"}},co={$schema:no,name:ao,id:so,light:oo,dark:io},lo="https://opencode.ai/desktop-theme.json",fo="Aura",uo="aura",yo={palette:{neutral:"#f5f0ff",ink:"#2d2640",primary:"#a277ff",accent:"#d94f4f",success:"#40bf7a",warning:"#d9a24a",error:"#d94f4f",info:"#5bb8d9",diffAdd:"#b3e6cc",diffDelete:"#f5b3b3"},overrides:{"syntax-comment":"#8d88a3","syntax-keyword":"#7b5ae0","syntax-string":"#2b8a57","syntax-primitive":"#2f78b8","syntax-property":"#a96a22","syntax-type":"#2b8a57","syntax-constant":"#d94f4f"}},po={palette:{neutral:"#15141b",ink:"#edecee",primary:"#a277ff",accent:"#ff6767",success:"#61ffca",warning:"#ffca85",error:"#ff6767",info:"#82e2ff",diffAdd:"#61ffca",diffDelete:"#ff6767"},overrides:{"syntax-comment":"#6d6a7e","syntax-keyword":"#a277ff","syntax-string":"#61ffca","syntax-primitive":"#82e2ff","syntax-property":"#ffca85","syntax-type":"#61ffca","syntax-constant":"#ff6767"}},ho={$schema:lo,name:fo,id:uo,light:yo,dark:po},mo="https://opencode.ai/desktop-theme.json",ko="Ayu",go="ayu",bo={palette:{neutral:"#fdfaf4",ink:"#4f5964",primary:"#4aa8c8",accent:"#ef7d71",success:"#5fb978",warning:"#ea9f41",error:"#e6656a",info:"#2f9bce",diffAdd:"#b1d780",diffDelete:"#e6656a"},overrides:{"syntax-comment":"#6e7681","syntax-keyword":"#c76a1a","syntax-string":"#6f8f00","syntax-primitive":"#b87500","syntax-property":"#2f86b7","syntax-type":"#227fc0","syntax-constant":"#a37acc"}},wo={palette:{neutral:"#0f1419",ink:"#d6dae0",primary:"#3fb7e3",accent:"#f2856f",success:"#78d05c",warning:"#e4a75c",error:"#f58572",info:"#66c6f1",diffAdd:"#59c57c",diffDelete:"#f58572"},overrides:{"syntax-comment":"#5a6673","syntax-keyword":"#ff8f40","syntax-string":"#aad94c","syntax-primitive":"#ffb454","syntax-property":"#39bae6","syntax-type":"#59c2ff","syntax-constant":"#d2a6ff"}},vo={$schema:mo,name:ko,id:go,light:bo,dark:wo},xo="https://opencode.ai/desktop-theme.json",Co="Carbonfox",Lo="carbonfox",qo={palette:{neutral:"#8e8e8e",ink:"#161616",primary:"#0072c3",accent:"#da1e28",success:"#198038",warning:"#f1c21b",error:"#da1e28",info:"#0043ce",interactive:"#0f62fe",diffAdd:"#198038",diffDelete:"#da1e28"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#8a3ffc","syntax-string":"#198038","syntax-primitive":"#0f62fe","syntax-property":"#0043ce","syntax-type":"#8a5f00","syntax-constant":"#da1e28"}},Mo={palette:{neutral:"#393939",ink:"#f2f4f8",primary:"#33b1ff",accent:"#ff8389",success:"#42be65",warning:"#f1c21b",error:"#ff8389",info:"#78a9ff",interactive:"#4589ff",diffAdd:"#42be65",diffDelete:"#ff8389"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#be95ff","syntax-string":"#42be65","syntax-primitive":"#33b1ff","syntax-property":"#78a9ff","syntax-type":"#f1c21b","syntax-constant":"#ff8389"}},$o={$schema:xo,name:Co,id:Lo,light:qo,dark:Mo},Ho="https://opencode.ai/desktop-theme.json",Vo="Catppuccin",_o="catppuccin",Io={palette:{neutral:"#f5e0dc",ink:"#4c4f69",primary:"#7287fd",accent:"#d20f39",success:"#40a02b",warning:"#df8e1d",error:"#d20f39",info:"#04a5e5",diffAdd:"#a6d189",diffDelete:"#e78284"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#8839ef","syntax-primitive":"#1e66f5","syntax-constant":"#ca6702"}},jo={palette:{neutral:"#1e1e2e",ink:"#cdd6f4",primary:"#b4befe",accent:"#f38ba8",success:"#a6d189",warning:"#f4b8e4",error:"#f38ba8",info:"#89dceb",diffAdd:"#94e2d5",diffDelete:"#f38ba8"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#cba6f7","syntax-primitive":"#89b4fa","syntax-constant":"#fab387"}},Eo={$schema:Ho,name:Vo,id:_o,light:Io,dark:jo},Ao="https://opencode.ai/desktop-theme.json",Do="Catppuccin Frappe",To="catppuccin-frappe",So={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Po={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Fo={$schema:Ao,name:Do,id:To,light:So,dark:Po},Zo="https://opencode.ai/desktop-theme.json",Bo="Catppuccin Macchiato",Oo="catppuccin-macchiato",Ro={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},zo={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},No={$schema:Zo,name:Bo,id:Oo,light:Ro,dark:zo},Uo="https://opencode.ai/desktop-theme.json",Wo="Cobalt2",Jo="cobalt2",Ko={palette:{neutral:"#ffffff",ink:"#193549",primary:"#0066cc",accent:"#00acc1",success:"#4caf50",warning:"#ff9800",error:"#e91e63",info:"#ff5722"},overrides:{"text-weak":"#5c6b7d","syntax-comment":"#5c6b7d","syntax-keyword":"#ff5722","syntax-string":"#4caf50","syntax-primitive":"#ff9800","syntax-variable":"#193549","syntax-property":"#00acc1","syntax-type":"#00acc1","syntax-constant":"#e91e63","syntax-operator":"#ff5722","syntax-punctuation":"#193549","syntax-object":"#193549","markdown-heading":"#ff9800","markdown-text":"#193549","markdown-link":"#0066cc","markdown-link-text":"#00acc1","markdown-code":"#4caf50","markdown-block-quote":"#5c6b7d","markdown-emph":"#ff5722","markdown-strong":"#e91e63","markdown-horizontal-rule":"#d3dae3","markdown-list-item":"#0066cc","markdown-list-enumeration":"#00acc1","markdown-image":"#0066cc","markdown-image-text":"#00acc1","markdown-code-block":"#193549"}},Go={palette:{neutral:"#193549",ink:"#ffffff",primary:"#0088ff",accent:"#2affdf",success:"#9eff80",warning:"#ffc600",error:"#ff0088",info:"#ff9d00",diffAdd:"#b9ff9f",diffDelete:"#ff5fb3"},overrides:{"text-weak":"#adb7c9","syntax-comment":"#0088ff","syntax-keyword":"#ff9d00","syntax-string":"#9eff80","syntax-primitive":"#ffc600","syntax-variable":"#ffffff","syntax-property":"#2affdf","syntax-type":"#2affdf","syntax-constant":"#ff628c","syntax-operator":"#ff9d00","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ffc600","markdown-text":"#ffffff","markdown-link":"#0088ff","markdown-link-text":"#2affdf","markdown-code":"#9eff80","markdown-block-quote":"#adb7c9","markdown-emph":"#ff9d00","markdown-strong":"#ff628c","markdown-horizontal-rule":"#2d5a7b","markdown-list-item":"#0088ff","markdown-list-enumeration":"#2affdf","markdown-image":"#0088ff","markdown-image-text":"#2affdf","markdown-code-block":"#ffffff"}},Yo={$schema:Uo,name:Wo,id:Jo,light:Ko,dark:Go},Xo="https://opencode.ai/desktop-theme.json",Qo="Cursor",ei="cursor",ti={palette:{neutral:"#fcfcfc",ink:"#141414",primary:"#6f9ba6",accent:"#6f9ba6",success:"#1f8a65",warning:"#db704b",error:"#cf2d56",info:"#3c7cab",interactive:"#206595",diffAdd:"#55a583",diffDelete:"#e75e78"},overrides:{"text-weak":"#141414ad","syntax-comment":"#141414ad","syntax-keyword":"#b3003f","syntax-string":"#9e94d5","syntax-primitive":"#db704b","syntax-variable":"#141414","syntax-property":"#141414ad","syntax-type":"#206595","syntax-constant":"#b8448b","syntax-operator":"#141414","syntax-punctuation":"#141414","syntax-object":"#141414","markdown-heading":"#206595","markdown-text":"#141414","markdown-link":"#206595","markdown-link-text":"#141414ad","markdown-code":"#1f8a65","markdown-block-quote":"#141414ad","markdown-emph":"#141414","markdown-strong":"#141414","markdown-horizontal-rule":"#141414ad","markdown-list-item":"#141414","markdown-list-enumeration":"#141414ad","markdown-image":"#206595","markdown-image-text":"#141414ad","markdown-code-block":"#141414"}},ri={palette:{neutral:"#181818",ink:"#e4e4e4",primary:"#88c0d0",accent:"#88c0d0",success:"#3fa266",warning:"#f1b467",error:"#e34671",info:"#81a1c1",interactive:"#82D2CE",diffAdd:"#70b489",diffDelete:"#fc6b83"},overrides:{"text-weak":"#e4e4e45e","syntax-comment":"#e4e4e45e","syntax-keyword":"#82D2CE","syntax-string":"#E394DC","syntax-primitive":"#EFB080","syntax-variable":"#e4e4e4","syntax-property":"#81a1c1","syntax-type":"#EFB080","syntax-constant":"#F8C762","syntax-operator":"#e4e4e4","syntax-punctuation":"#e4e4e4","syntax-object":"#e4e4e4","markdown-heading":"#AAA0FA","markdown-text":"#e4e4e4","markdown-link":"#82D2CE","markdown-link-text":"#81a1c1","markdown-code":"#E394DC","markdown-block-quote":"#e4e4e45e","markdown-emph":"#82D2CE","markdown-strong":"#F8C762","markdown-horizontal-rule":"#e4e4e45e","markdown-list-item":"#e4e4e4","markdown-list-enumeration":"#88c0d0","markdown-image":"#88c0d0","markdown-image-text":"#81a1c1","markdown-code-block":"#e4e4e4"}},ni={$schema:Xo,name:Qo,id:ei,light:ti,dark:ri},ai="https://opencode.ai/desktop-theme.json",si="Dracula",oi="dracula",ii={palette:{neutral:"#f8f8f2",ink:"#1f1f2f",primary:"#7c6bf5",accent:"#d16090",success:"#2fbf71",warning:"#f7a14d",error:"#d9536f",info:"#1d7fc5",diffAdd:"#9fe3b3",diffDelete:"#f8a1b8"},overrides:{"syntax-comment":"#7d7f97","syntax-keyword":"#d16090","syntax-string":"#596600","syntax-primitive":"#2f8f57","syntax-property":"#1d7fc5","syntax-constant":"#7c6bf5"}},ci={palette:{neutral:"#1d1e28",ink:"#f8f8f2",primary:"#bd93f9",accent:"#ff79c6",success:"#50fa7b",warning:"#ffb86c",error:"#ff5555",info:"#8be9fd",diffAdd:"#2fb27d",diffDelete:"#ff6b81"},overrides:{"syntax-comment":"#6272a4","syntax-keyword":"#ff79c6","syntax-string":"#f1fa8c","syntax-primitive":"#50fa7b","syntax-property":"#8be9fd","syntax-constant":"#bd93f9"}},li={$schema:ai,name:si,id:oi,light:ii,dark:ci},di="https://opencode.ai/desktop-theme.json",fi="Everforest",ui="everforest",yi={palette:{neutral:"#fdf6e3",ink:"#5c6a72",primary:"#8da101",accent:"#df69ba",success:"#8da101",warning:"#f57d26",error:"#f85552",info:"#35a77c",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#a6b0a0","syntax-comment":"#a6b0a0","syntax-keyword":"#df69ba","syntax-string":"#8da101","syntax-primitive":"#8da101","syntax-variable":"#f85552","syntax-property":"#35a77c","syntax-type":"#dfa000","syntax-constant":"#f57d26","syntax-operator":"#35a77c","syntax-punctuation":"#5c6a72","syntax-object":"#f85552","markdown-heading":"#df69ba","markdown-text":"#5c6a72","markdown-link":"#8da101","markdown-link-text":"#35a77c","markdown-code":"#8da101","markdown-block-quote":"#dfa000","markdown-emph":"#dfa000","markdown-strong":"#f57d26","markdown-horizontal-rule":"#a6b0a0","markdown-list-item":"#8da101","markdown-list-enumeration":"#35a77c","markdown-image":"#8da101","markdown-image-text":"#35a77c","markdown-code-block":"#5c6a72"}},pi={palette:{neutral:"#2d353b",ink:"#d3c6aa",primary:"#a7c080",accent:"#d699b6",success:"#a7c080",warning:"#e69875",error:"#e67e80",info:"#83c092",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#7a8478","syntax-comment":"#7a8478","syntax-keyword":"#d699b6","syntax-string":"#a7c080","syntax-primitive":"#a7c080","syntax-variable":"#e67e80","syntax-property":"#83c092","syntax-type":"#dbbc7f","syntax-constant":"#e69875","syntax-operator":"#83c092","syntax-punctuation":"#d3c6aa","syntax-object":"#e67e80","markdown-heading":"#d699b6","markdown-text":"#d3c6aa","markdown-link":"#a7c080","markdown-link-text":"#83c092","markdown-code":"#a7c080","markdown-block-quote":"#dbbc7f","markdown-emph":"#dbbc7f","markdown-strong":"#e69875","markdown-horizontal-rule":"#7a8478","markdown-list-item":"#a7c080","markdown-list-enumeration":"#83c092","markdown-image":"#a7c080","markdown-image-text":"#83c092","markdown-code-block":"#d3c6aa"}},hi={$schema:di,name:fi,id:ui,light:yi,dark:pi},mi="https://opencode.ai/desktop-theme.json",ki="Flexoki",gi="flexoki",bi={palette:{neutral:"#FFFCF0",ink:"#100F0F",primary:"#205EA6",accent:"#BC5215",success:"#66800B",warning:"#BC5215",error:"#AF3029",info:"#24837B"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#66800B","syntax-string":"#24837B","syntax-primitive":"#BC5215","syntax-variable":"#205EA6","syntax-property":"#24837B","syntax-type":"#AD8301","syntax-constant":"#5E409D","syntax-operator":"#6F6E69","syntax-punctuation":"#6F6E69","syntax-object":"#205EA6","markdown-heading":"#5E409D","markdown-text":"#100F0F","markdown-link":"#205EA6","markdown-link-text":"#24837B","markdown-code":"#24837B","markdown-block-quote":"#AD8301","markdown-emph":"#AD8301","markdown-strong":"#BC5215","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#BC5215","markdown-list-enumeration":"#24837B","markdown-image":"#A02F6F","markdown-image-text":"#24837B","markdown-code-block":"#100F0F"}},wi={palette:{neutral:"#100F0F",ink:"#CECDC3",primary:"#DA702C",accent:"#8B7EC8",success:"#879A39",warning:"#DA702C",error:"#D14D41",info:"#3AA99F",interactive:"#4385BE"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#879A39","syntax-string":"#3AA99F","syntax-primitive":"#DA702C","syntax-variable":"#4385BE","syntax-property":"#3AA99F","syntax-type":"#D0A215","syntax-constant":"#8B7EC8","syntax-operator":"#B7B5AC","syntax-punctuation":"#B7B5AC","syntax-object":"#4385BE","markdown-heading":"#8B7EC8","markdown-text":"#CECDC3","markdown-link":"#4385BE","markdown-link-text":"#3AA99F","markdown-code":"#3AA99F","markdown-block-quote":"#D0A215","markdown-emph":"#D0A215","markdown-strong":"#DA702C","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#DA702C","markdown-list-enumeration":"#3AA99F","markdown-image":"#CE5D97","markdown-image-text":"#3AA99F","markdown-code-block":"#CECDC3"}},vi={$schema:mi,name:ki,id:gi,light:bi,dark:wi},xi="https://opencode.ai/desktop-theme.json",Ci="GitHub",Li="github",qi={palette:{neutral:"#ffffff",ink:"#24292f",primary:"#0969da",accent:"#1b7c83",success:"#1a7f37",warning:"#9a6700",error:"#cf222e",info:"#bc4c00"},overrides:{"text-weak":"#57606a","syntax-comment":"#57606a","syntax-keyword":"#cf222e","syntax-string":"#0969da","syntax-primitive":"#8250df","syntax-variable":"#bc4c00","syntax-property":"#1b7c83","syntax-type":"#bc4c00","syntax-constant":"#1b7c83","syntax-operator":"#cf222e","syntax-punctuation":"#24292f","syntax-object":"#bc4c00","markdown-heading":"#0969da","markdown-text":"#24292f","markdown-link":"#0969da","markdown-link-text":"#1b7c83","markdown-code":"#bf3989","markdown-block-quote":"#57606a","markdown-emph":"#9a6700","markdown-strong":"#bc4c00","markdown-horizontal-rule":"#d0d7de","markdown-list-item":"#0969da","markdown-list-enumeration":"#1b7c83","markdown-image":"#0969da","markdown-image-text":"#1b7c83","markdown-code-block":"#24292f"}},Mi={palette:{neutral:"#0d1117",ink:"#c9d1d9",primary:"#58a6ff",accent:"#39c5cf",success:"#3fb950",warning:"#e3b341",error:"#f85149",info:"#d29922"},overrides:{"text-weak":"#8b949e","syntax-comment":"#8b949e","syntax-keyword":"#ff7b72","syntax-string":"#39c5cf","syntax-primitive":"#bc8cff","syntax-variable":"#d29922","syntax-property":"#39c5cf","syntax-type":"#d29922","syntax-constant":"#58a6ff","syntax-operator":"#ff7b72","syntax-punctuation":"#c9d1d9","syntax-object":"#d29922","markdown-heading":"#58a6ff","markdown-text":"#c9d1d9","markdown-link":"#58a6ff","markdown-link-text":"#39c5cf","markdown-code":"#ff7b72","markdown-block-quote":"#8b949e","markdown-emph":"#e3b341","markdown-strong":"#d29922","markdown-horizontal-rule":"#30363d","markdown-list-item":"#58a6ff","markdown-list-enumeration":"#39c5cf","markdown-image":"#58a6ff","markdown-image-text":"#39c5cf","markdown-code-block":"#c9d1d9"}},$i={$schema:xi,name:Ci,id:Li,light:qi,dark:Mi},Hi="https://opencode.ai/desktop-theme.json",Vi="Gruvbox",_i="gruvbox",Ii={palette:{neutral:"#fbf1c7",ink:"#3c3836",primary:"#076678",accent:"#9d0006",success:"#79740e",warning:"#b57614",error:"#9d0006",info:"#8f3f71",diffAdd:"#79740e",diffDelete:"#9d0006"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#9d0006","syntax-primitive":"#076678","syntax-constant":"#8f3f71"}},ji={palette:{neutral:"#282828",ink:"#ebdbb2",primary:"#83a598",accent:"#fb4934",success:"#b8bb26",warning:"#fabd2f",error:"#fb4934",info:"#d3869b",diffAdd:"#b8bb26",diffDelete:"#fb4934"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#fb4934","syntax-primitive":"#83a598","syntax-constant":"#d3869b"}},Ei={$schema:Hi,name:Vi,id:_i,light:Ii,dark:ji},Ai="https://opencode.ai/desktop-theme.json",Di="Kanagawa",Ti="kanagawa",Si={palette:{neutral:"#F2E9DE",ink:"#54433A",primary:"#2D4F67",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#89AF5B",diffDelete:"#D61F1F"},overrides:{"text-weak":"#9E9389","syntax-comment":"#9E9389","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#2D4F67","syntax-variable":"#54433A","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#54433A","syntax-object":"#54433A","markdown-heading":"#957FB8","markdown-text":"#54433A","markdown-link":"#2D4F67","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#9E9389","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#9E9389","markdown-list-item":"#2D4F67","markdown-list-enumeration":"#76946A","markdown-image":"#2D4F67","markdown-image-text":"#76946A","markdown-code-block":"#54433A"}},Pi={palette:{neutral:"#1F1F28",ink:"#DCD7BA",primary:"#7E9CD8",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#A9D977",diffDelete:"#F24A4A"},overrides:{"text-weak":"#727169","syntax-comment":"#727169","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#7E9CD8","syntax-variable":"#DCD7BA","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#DCD7BA","syntax-object":"#DCD7BA","markdown-heading":"#957FB8","markdown-text":"#DCD7BA","markdown-link":"#7E9CD8","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#727169","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#727169","markdown-list-item":"#7E9CD8","markdown-list-enumeration":"#76946A","markdown-image":"#7E9CD8","markdown-image-text":"#76946A","markdown-code-block":"#DCD7BA"}},Fi={$schema:Ai,name:Di,id:Ti,light:Si,dark:Pi},Zi="https://opencode.ai/desktop-theme.json",Bi="Lucent Orng",Oi="lucent-orng",Ri={palette:{neutral:"#fff5f0",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zi={palette:{neutral:"#2a1a15",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Ni={$schema:Zi,name:Bi,id:Oi,light:Ri,dark:zi},Ui="https://opencode.ai/desktop-theme.json",Wi="Material",Ji="material",Ki={palette:{neutral:"#fafafa",ink:"#263238",primary:"#6182b8",accent:"#39adb5",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e",interactive:"#39adb5"},overrides:{"text-weak":"#90a4ae","syntax-comment":"#90a4ae","syntax-keyword":"#7c4dff","syntax-string":"#91b859","syntax-primitive":"#6182b8","syntax-variable":"#263238","syntax-property":"#7c4dff","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#39adb5","syntax-punctuation":"#263238","syntax-object":"#263238","markdown-heading":"#6182b8","markdown-text":"#263238","markdown-link":"#39adb5","markdown-link-text":"#7c4dff","markdown-code":"#91b859","markdown-block-quote":"#90a4ae","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#6182b8","markdown-list-enumeration":"#39adb5","markdown-image":"#39adb5","markdown-image-text":"#7c4dff","markdown-code-block":"#263238"}},Gi={palette:{neutral:"#263238",ink:"#eeffff",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#ffcb6b",interactive:"#89ddff"},overrides:{"text-weak":"#546e7a","syntax-comment":"#546e7a","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#eeffff","syntax-property":"#c792ea","syntax-type":"#ffcb6b","syntax-constant":"#ffcb6b","syntax-operator":"#89ddff","syntax-punctuation":"#eeffff","syntax-object":"#eeffff","markdown-heading":"#82aaff","markdown-text":"#eeffff","markdown-link":"#89ddff","markdown-link-text":"#c792ea","markdown-code":"#c3e88d","markdown-block-quote":"#546e7a","markdown-emph":"#ffcb6b","markdown-strong":"#ffcb6b","markdown-horizontal-rule":"#37474f","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#89ddff","markdown-image-text":"#c792ea","markdown-code-block":"#eeffff"}},Yi={$schema:Ui,name:Wi,id:Ji,light:Ki,dark:Gi},Xi="https://opencode.ai/desktop-theme.json",Qi="Matrix",ec="matrix",tc={palette:{neutral:"#eef3ea",ink:"#203022",primary:"#1cc24b",accent:"#c770ff",success:"#1cc24b",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#5dac7e",diffDelete:"#d53a3a"},overrides:{"text-weak":"#748476","syntax-comment":"#748476","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#203022","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#203022","syntax-object":"#203022","markdown-heading":"#24f6d9","markdown-text":"#203022","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#748476","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#748476","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#203022"},v2Overrides:{"v2-text-text-base":"#353535","v2-text-text-muted":"#748476","v2-text-text-faint":"#748476","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-600)","v2-text-text-accent-hover":"var(--v2-green-700)","v2-icon-icon-accent":"var(--v2-green-600)","v2-icon-icon-accent-hover":"var(--v2-green-700)","v2-border-border-focus":"var(--v2-green-500)"}},rc={palette:{neutral:"#0a0e0a",ink:"#62ff94",primary:"#2eff6a",accent:"#c770ff",success:"#62ff94",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#77ffaf",diffDelete:"#ff7171"},overrides:{"text-weak":"#8ca391","syntax-comment":"#8ca391","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#62ff94","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#62ff94","syntax-object":"#62ff94","markdown-heading":"#00efff","markdown-text":"#62ff94","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#8ca391","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#8ca391","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#62ff94"},v2Overrides:{"v2-text-text-base":"#ececec","v2-text-text-muted":"#8ca391","v2-text-text-faint":"#8ca391","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-400)","v2-text-text-accent-hover":"var(--v2-green-300)","v2-icon-icon-accent":"var(--v2-green-400)","v2-icon-icon-accent-hover":"var(--v2-green-300)","v2-border-border-focus":"var(--v2-green-500)"}},nc={$schema:Xi,name:Qi,id:ec,light:tc,dark:rc},ac="https://opencode.ai/desktop-theme.json",sc="Mercury",oc="mercury",ic={palette:{neutral:"#ffffff",ink:"#363644",primary:"#5266eb",accent:"#8da4f5",success:"#036e43",warning:"#a44200",error:"#b0175f",info:"#007f95",interactive:"#465bd1"},overrides:{"text-weak":"#70707d","syntax-comment":"#70707d","syntax-keyword":"#465bd1","syntax-string":"#036e43","syntax-primitive":"#5266eb","syntax-variable":"#007f95","syntax-property":"#5266eb","syntax-type":"#007f95","syntax-constant":"#a44200","syntax-operator":"#465bd1","syntax-punctuation":"#363644","syntax-object":"#007f95","markdown-heading":"#1e1e2a","markdown-text":"#363644","markdown-link":"#465bd1","markdown-link-text":"#5266eb","markdown-code":"#036e43","markdown-block-quote":"#70707d","markdown-emph":"#a44200","markdown-strong":"#1e1e2a","markdown-horizontal-rule":"#7073931a","markdown-list-item":"#1e1e2a","markdown-list-enumeration":"#5266eb","markdown-image":"#465bd1","markdown-image-text":"#5266eb","markdown-code-block":"#363644"}},cc={palette:{neutral:"#171721",ink:"#dddde5",primary:"#8da4f5",accent:"#8da4f5",success:"#77c599",warning:"#fc9b6f",error:"#fc92b4",info:"#77becf"},overrides:{"text-weak":"#9d9da8","syntax-comment":"#9d9da8","syntax-keyword":"#8da4f5","syntax-string":"#77c599","syntax-primitive":"#8da4f5","syntax-variable":"#77becf","syntax-property":"#a7b6f8","syntax-type":"#77becf","syntax-constant":"#fc9b6f","syntax-operator":"#8da4f5","syntax-punctuation":"#dddde5","syntax-object":"#77becf","markdown-heading":"#ffffff","markdown-text":"#dddde5","markdown-link":"#8da4f5","markdown-link-text":"#a7b6f8","markdown-code":"#77c599","markdown-block-quote":"#9d9da8","markdown-emph":"#fc9b6f","markdown-strong":"#f4f5f9","markdown-horizontal-rule":"#b4b7c81f","markdown-list-item":"#ffffff","markdown-list-enumeration":"#8da4f5","markdown-image":"#8da4f5","markdown-image-text":"#a7b6f8","markdown-code-block":"#dddde5"}},lc={$schema:ac,name:sc,id:oc,light:ic,dark:cc},dc="https://opencode.ai/desktop-theme.json",fc="Monokai",uc="monokai",yc={palette:{neutral:"#fdf8ec",ink:"#292318",primary:"#bf7bff",accent:"#d9487c",success:"#4fb54b",warning:"#f1a948",error:"#e54b4b",info:"#2d9ad7",diffAdd:"#bfe7a3",diffDelete:"#f6a3ae"},overrides:{"syntax-comment":"#8a816f","syntax-keyword":"#d9487c","syntax-string":"#8a6500","syntax-primitive":"#3c8d2f","syntax-property":"#1f88c8","syntax-constant":"#9b5fe0"}},pc={palette:{neutral:"#272822",ink:"#f8f8f2",primary:"#ae81ff",accent:"#f92672",success:"#a6e22e",warning:"#fd971f",error:"#f92672",info:"#66d9ef",diffAdd:"#4d7f2a",diffDelete:"#f4477c"},overrides:{"syntax-comment":"#75715e","syntax-keyword":"#f92672","syntax-string":"#e6db74","syntax-primitive":"#a6e22e","syntax-property":"#66d9ef","syntax-constant":"#ae81ff"}},hc={$schema:dc,name:fc,id:uc,light:yc,dark:pc},mc="https://opencode.ai/desktop-theme.json",kc="Night Owl",gc="nightowl",bc={palette:{neutral:"#f0f0f0",ink:"#403f53",primary:"#4876d6",accent:"#aa0982",success:"#2aa298",warning:"#c96765",error:"#de3d3b",info:"#4876d6",diffAdd:"#2aa298",diffDelete:"#de3d3b"},overrides:{"syntax-comment":"#7a8181","syntax-keyword":"#994cc3","syntax-primitive":"#4876d6","syntax-constant":"#c96765"}},wc={palette:{neutral:"#011627",ink:"#d6deeb",primary:"#82aaff",accent:"#f78c6c",success:"#c5e478",warning:"#ecc48d",error:"#ef5350",info:"#82aaff",diffAdd:"#c5e478",diffDelete:"#ef5350"},overrides:{"syntax-comment":"#637777","syntax-keyword":"#c792ea","syntax-string":"#ecc48d","syntax-primitive":"#82aaff","syntax-constant":"#f78c6c"}},vc={$schema:mc,name:kc,id:gc,light:bc,dark:wc},xc="https://opencode.ai/desktop-theme.json",Cc="Nord",Lc="nord",qc={palette:{neutral:"#eceff4",ink:"#2e3440",primary:"#5e81ac",accent:"#bf616a",success:"#8fbcbb",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#a3be8c",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#6b7282","syntax-keyword":"#5e81ac","syntax-string":"#6f8758","syntax-primitive":"#5e81ac","syntax-constant":"#8d6886"}},Mc={palette:{neutral:"#2e3440",ink:"#e5e9f0",primary:"#88c0d0",accent:"#d57780",success:"#a3be8c",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#81a1c1",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#616e88","syntax-keyword":"#81a1c1","syntax-primitive":"#88c0d0","syntax-constant":"#b48ead"}},$c={$schema:xc,name:Cc,id:Lc,light:qc,dark:Mc},Hc="https://opencode.ai/desktop-theme.json",Vc="One Dark",_c="one-dark",Ic={palette:{neutral:"#fafafa",ink:"#383a42",primary:"#4078f2",accent:"#0184bc",success:"#50a14f",warning:"#c18401",error:"#e45649",info:"#986801",diffAdd:"#489447",diffDelete:"#d65145"},overrides:{"text-weak":"#a0a1a7","syntax-comment":"#a0a1a7","syntax-keyword":"#a626a4","syntax-string":"#50a14f","syntax-primitive":"#4078f2","syntax-variable":"#e45649","syntax-property":"#0184bc","syntax-type":"#c18401","syntax-constant":"#986801","syntax-operator":"#0184bc","syntax-punctuation":"#383a42","syntax-object":"#e45649","markdown-heading":"#a626a4","markdown-text":"#383a42","markdown-link":"#4078f2","markdown-link-text":"#0184bc","markdown-code":"#50a14f","markdown-block-quote":"#a0a1a7","markdown-emph":"#c18401","markdown-strong":"#986801","markdown-horizontal-rule":"#a0a1a7","markdown-list-item":"#4078f2","markdown-list-enumeration":"#0184bc","markdown-image":"#4078f2","markdown-image-text":"#0184bc","markdown-code-block":"#383a42"}},jc={palette:{neutral:"#282c34",ink:"#abb2bf",primary:"#61afef",accent:"#56b6c2",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#d19a66",diffAdd:"#aad482",diffDelete:"#e8828b"},overrides:{"text-weak":"#5c6370","syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-string":"#98c379","syntax-primitive":"#61afef","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#d19a66","syntax-operator":"#56b6c2","syntax-punctuation":"#abb2bf","syntax-object":"#e06c75","markdown-heading":"#c678dd","markdown-text":"#abb2bf","markdown-link":"#61afef","markdown-link-text":"#56b6c2","markdown-code":"#98c379","markdown-block-quote":"#5c6370","markdown-emph":"#e5c07b","markdown-strong":"#d19a66","markdown-horizontal-rule":"#5c6370","markdown-list-item":"#61afef","markdown-list-enumeration":"#56b6c2","markdown-image":"#61afef","markdown-image-text":"#56b6c2","markdown-code-block":"#abb2bf"}},Ec={$schema:Hc,name:Vc,id:_c,light:Ic,dark:jc},Ac="https://opencode.ai/desktop-theme.json",Dc="One Dark Pro",Tc="onedarkpro",Sc={palette:{neutral:"#f5f6f8",ink:"#2b303b",primary:"#528bff",accent:"#d85462",success:"#4fa66d",warning:"#d19a66",error:"#e06c75",info:"#61afef",diffAdd:"#c2ebcf",diffDelete:"#f7c1c5"},overrides:{"syntax-comment":"#6a717d","syntax-keyword":"#a626a4","syntax-primitive":"#4078f2","syntax-constant":"#986801"}},Pc={palette:{neutral:"#1e222a",ink:"#abb2bf",primary:"#61afef",accent:"#e06c75",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#56b6c2",diffAdd:"#4b815a",diffDelete:"#b2555f"},overrides:{"syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-primitive":"#61afef","syntax-constant":"#d19a66"}},Fc={$schema:Ac,name:Dc,id:Tc,light:Sc,dark:Pc},Zc="https://opencode.ai/desktop-theme.json",Bc="OpenCode",Oc="opencode",Rc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#3b7dd8",accent:"#d68c27",success:"#3d9a57",warning:"#d68c27",error:"#d1383d",info:"#318795",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#d68c27","syntax-string":"#3d9a57","syntax-primitive":"#3b7dd8","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#d68c27","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#d68c27","markdown-text":"#1a1a1a","markdown-link":"#3b7dd8","markdown-link-text":"#318795","markdown-code":"#3d9a57","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#d68c27","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#3b7dd8","markdown-list-enumeration":"#318795","markdown-image":"#3b7dd8","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#fab283",accent:"#9d7cd8",success:"#7fd88f",warning:"#f5a742",error:"#e06c75",info:"#56b6c2",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#9d7cd8","syntax-string":"#7fd88f","syntax-primitive":"#fab283","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#f5a742","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#9d7cd8","markdown-text":"#eeeeee","markdown-link":"#fab283","markdown-link-text":"#56b6c2","markdown-code":"#7fd88f","markdown-block-quote":"#e5c07b","markdown-emph":"#e5c07b","markdown-strong":"#f5a742","markdown-horizontal-rule":"#808080","markdown-list-item":"#fab283","markdown-list-enumeration":"#56b6c2","markdown-image":"#fab283","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Nc={$schema:Zc,name:Bc,id:Oc,light:Rc,dark:zc},Uc="https://opencode.ai/desktop-theme.json",Wc="Orng",Jc="orng",Kc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},Gc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Yc={$schema:Uc,name:Wc,id:Jc,light:Kc,dark:Gc},Xc="https://opencode.ai/desktop-theme.json",Qc="Osaka Jade",el="osaka-jade",tl={palette:{neutral:"#F6F5DD",ink:"#111c18",primary:"#1faa90",accent:"#3d7a52",success:"#3d7a52",warning:"#b5a020",error:"#c7392d",info:"#1faa90"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#1faa90","syntax-string":"#3d7a52","syntax-primitive":"#3d7560","syntax-variable":"#111c18","syntax-property":"#3d7a52","syntax-type":"#3d7a52","syntax-constant":"#a8527a","syntax-operator":"#b5a020","syntax-punctuation":"#111c18","syntax-object":"#111c18","markdown-heading":"#1faa90","markdown-text":"#111c18","markdown-link":"#1faa90","markdown-link-text":"#3d7a52","markdown-code":"#3d7a52","markdown-block-quote":"#53685B","markdown-emph":"#a8527a","markdown-strong":"#111c18","markdown-horizontal-rule":"#53685B","markdown-list-item":"#1faa90","markdown-list-enumeration":"#1faa90","markdown-image":"#1faa90","markdown-image-text":"#3d7a52","markdown-code-block":"#111c18"}},rl={palette:{neutral:"#111c18",ink:"#C1C497",primary:"#2DD5B7",accent:"#549e6a",success:"#549e6a",warning:"#E5C736",error:"#FF5345",info:"#2DD5B7",interactive:"#8CD3CB",diffAdd:"#63b07a",diffDelete:"#db9f9c"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#2DD5B7","syntax-string":"#63b07a","syntax-primitive":"#509475","syntax-variable":"#C1C497","syntax-property":"#549e6a","syntax-type":"#549e6a","syntax-constant":"#D2689C","syntax-operator":"#459451","syntax-punctuation":"#C1C497","syntax-object":"#C1C497","markdown-heading":"#2DD5B7","markdown-text":"#C1C497","markdown-link":"#8CD3CB","markdown-link-text":"#549e6a","markdown-code":"#63b07a","markdown-block-quote":"#53685B","markdown-emph":"#D2689C","markdown-strong":"#C1C497","markdown-horizontal-rule":"#53685B","markdown-list-item":"#2DD5B7","markdown-list-enumeration":"#8CD3CB","markdown-image":"#8CD3CB","markdown-image-text":"#549e6a","markdown-code-block":"#C1C497"}},nl={$schema:Xc,name:Qc,id:el,light:tl,dark:rl},al="https://opencode.ai/desktop-theme.json",sl="Palenight",ol="palenight",il={palette:{neutral:"#fafafa",ink:"#292d3e",primary:"#4976eb",accent:"#00acc1",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e"},overrides:{"text-weak":"#8796b0","syntax-comment":"#8796b0","syntax-keyword":"#a854f2","syntax-string":"#91b859","syntax-primitive":"#4976eb","syntax-variable":"#292d3e","syntax-property":"#00acc1","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#00acc1","syntax-punctuation":"#292d3e","syntax-object":"#292d3e","markdown-heading":"#a854f2","markdown-text":"#292d3e","markdown-link":"#4976eb","markdown-link-text":"#00acc1","markdown-code":"#91b859","markdown-block-quote":"#8796b0","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#8796b0","markdown-list-item":"#4976eb","markdown-list-enumeration":"#00acc1","markdown-image":"#4976eb","markdown-image-text":"#00acc1","markdown-code-block":"#292d3e"}},cl={palette:{neutral:"#292d3e",ink:"#a6accd",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#f78c6c"},overrides:{"text-weak":"#676e95","syntax-comment":"#676e95","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#a6accd","syntax-property":"#89ddff","syntax-type":"#ffcb6b","syntax-constant":"#f78c6c","syntax-operator":"#89ddff","syntax-punctuation":"#a6accd","syntax-object":"#a6accd","markdown-heading":"#c792ea","markdown-text":"#a6accd","markdown-link":"#82aaff","markdown-link-text":"#89ddff","markdown-code":"#c3e88d","markdown-block-quote":"#676e95","markdown-emph":"#ffcb6b","markdown-strong":"#f78c6c","markdown-horizontal-rule":"#676e95","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#82aaff","markdown-image-text":"#89ddff","markdown-code-block":"#a6accd"}},ll={$schema:al,name:sl,id:ol,light:il,dark:cl},dl="https://opencode.ai/desktop-theme.json",fl="Rose Pine",ul="rosepine",yl={palette:{neutral:"#faf4ed",ink:"#575279",primary:"#31748f",accent:"#d7827e",success:"#286983",warning:"#ea9d34",error:"#b4637a",info:"#56949f"},overrides:{"text-weak":"#9893a5","syntax-comment":"#9893a5","syntax-keyword":"#286983","syntax-string":"#ea9d34","syntax-primitive":"#d7827e","syntax-variable":"#575279","syntax-property":"#d7827e","syntax-type":"#56949f","syntax-constant":"#907aa9","syntax-operator":"#797593","syntax-punctuation":"#797593","syntax-object":"#575279","markdown-heading":"#907aa9","markdown-text":"#575279","markdown-link":"#31748f","markdown-link-text":"#d7827e","markdown-code":"#286983","markdown-block-quote":"#9893a5","markdown-emph":"#ea9d34","markdown-strong":"#b4637a","markdown-horizontal-rule":"#dfdad9","markdown-list-item":"#31748f","markdown-list-enumeration":"#d7827e","markdown-image":"#31748f","markdown-image-text":"#d7827e","markdown-code-block":"#575279"}},pl={palette:{neutral:"#191724",ink:"#e0def4",primary:"#9ccfd8",accent:"#ebbcba",success:"#31748f",warning:"#f6c177",error:"#eb6f92",info:"#9ccfd8"},overrides:{"text-weak":"#6e6a86","syntax-comment":"#6e6a86","syntax-keyword":"#31748f","syntax-string":"#f6c177","syntax-primitive":"#ebbcba","syntax-variable":"#e0def4","syntax-property":"#ebbcba","syntax-type":"#9ccfd8","syntax-constant":"#c4a7e7","syntax-operator":"#908caa","syntax-punctuation":"#908caa","syntax-object":"#e0def4","markdown-heading":"#c4a7e7","markdown-text":"#e0def4","markdown-link":"#9ccfd8","markdown-link-text":"#ebbcba","markdown-code":"#31748f","markdown-block-quote":"#6e6a86","markdown-emph":"#f6c177","markdown-strong":"#eb6f92","markdown-horizontal-rule":"#403d52","markdown-list-item":"#9ccfd8","markdown-list-enumeration":"#ebbcba","markdown-image":"#9ccfd8","markdown-image-text":"#ebbcba","markdown-code-block":"#e0def4"}},hl={$schema:dl,name:fl,id:ul,light:yl,dark:pl},ml="https://opencode.ai/desktop-theme.json",kl="Shades of Purple",gl="shadesofpurple",bl={palette:{neutral:"#f7ebff",ink:"#3b2c59",primary:"#7a5af8",accent:"#ff6bd5",success:"#3dd598",warning:"#f7c948",error:"#ff6bd5",info:"#62d4ff",diffAdd:"#c8f8da",diffDelete:"#ffc3ef"},overrides:{"syntax-comment":"#8e4be3","syntax-keyword":"#c45f00","syntax-string":"#2f8b32","syntax-primitive":"#a13bd6","syntax-property":"#008fb8","syntax-type":"#9d7a00","syntax-constant":"#e04d7a"}},wl={palette:{neutral:"#1a102b",ink:"#f5f0ff",primary:"#c792ff",accent:"#ff7ac6",success:"#7be0b0",warning:"#ffd580",error:"#ff7ac6",info:"#7dd4ff",diffAdd:"#53c39f",diffDelete:"#d85aa0"},overrides:{"syntax-comment":"#b362ff","syntax-keyword":"#ff9d00","syntax-string":"#a5ff90","syntax-primitive":"#fb94ff","syntax-property":"#9effff","syntax-type":"#fad000","syntax-constant":"#ff628c"}},vl={$schema:ml,name:kl,id:gl,light:bl,dark:wl},xl="https://opencode.ai/desktop-theme.json",Cl="Solarized",Ll="solarized",ql={palette:{neutral:"#fdf6e3",ink:"#586e75",primary:"#268bd2",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#c6dc7a",diffDelete:"#f2a1a1"},overrides:{"syntax-comment":"#657b83","syntax-keyword":"#728600","syntax-string":"#1f8f88","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},Ml={palette:{neutral:"#002b36",ink:"#93a1a1",primary:"#6c71c4",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#4c7654",diffDelete:"#c34b4b"},overrides:{"syntax-comment":"#586e75","syntax-keyword":"#859900","syntax-string":"#2aa198","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},$l={$schema:xl,name:Cl,id:Ll,light:ql,dark:Ml},Hl="https://opencode.ai/desktop-theme.json",Vl="Synthwave '84",_l="synthwave84",Il={palette:{neutral:"#fafafa",ink:"#262335",primary:"#00bcd4",accent:"#9c27b0",success:"#4caf50",warning:"#ff9800",error:"#f44336",info:"#ff5722"},overrides:{"text-weak":"#5c5c8a","syntax-comment":"#5c5c8a","syntax-keyword":"#e91e63","syntax-string":"#ff9800","syntax-primitive":"#ff5722","syntax-variable":"#262335","syntax-property":"#9c27b0","syntax-type":"#00bcd4","syntax-constant":"#9c27b0","syntax-operator":"#e91e63","syntax-punctuation":"#262335","syntax-object":"#262335","markdown-heading":"#e91e63","markdown-text":"#262335","markdown-link":"#00bcd4","markdown-link-text":"#9c27b0","markdown-code":"#4caf50","markdown-block-quote":"#5c5c8a","markdown-emph":"#ff9800","markdown-strong":"#ff5722","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#00bcd4","markdown-list-enumeration":"#9c27b0","markdown-image":"#00bcd4","markdown-image-text":"#9c27b0","markdown-code-block":"#262335"}},jl={palette:{neutral:"#262335",ink:"#ffffff",primary:"#36f9f6",accent:"#b084eb",success:"#72f1b8",warning:"#fede5d",error:"#fe4450",info:"#ff8b39",diffAdd:"#97f1d8",diffDelete:"#ff5e5b"},overrides:{"text-weak":"#848bbd","syntax-comment":"#848bbd","syntax-keyword":"#ff7edb","syntax-string":"#fede5d","syntax-primitive":"#ff8b39","syntax-variable":"#ffffff","syntax-property":"#b084eb","syntax-type":"#36f9f6","syntax-constant":"#b084eb","syntax-operator":"#ff7edb","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ff7edb","markdown-text":"#ffffff","markdown-link":"#36f9f6","markdown-link-text":"#b084eb","markdown-code":"#72f1b8","markdown-block-quote":"#848bbd","markdown-emph":"#fede5d","markdown-strong":"#ff8b39","markdown-horizontal-rule":"#495495","markdown-list-item":"#36f9f6","markdown-list-enumeration":"#b084eb","markdown-image":"#36f9f6","markdown-image-text":"#b084eb","markdown-code-block":"#ffffff"}},El={$schema:Hl,name:Vl,id:_l,light:Il,dark:jl},Al="https://opencode.ai/desktop-theme.json",Dl="Tokyonight",Tl="tokyonight",Sl={palette:{neutral:"#e1e2e7",ink:"#273153",primary:"#2e7de9",accent:"#b15c00",success:"#587539",warning:"#8c6c3e",error:"#c94060",info:"#007197",diffAdd:"#4f8f7b",diffDelete:"#d05f7c"},overrides:{"syntax-comment":"#6b6f7a","syntax-keyword":"#9854f1","syntax-primitive":"#1f6fd4","syntax-property":"#007197","syntax-constant":"#b15c00"}},Pl={palette:{neutral:"#1a1b26",ink:"#c0caf5",primary:"#7aa2f7",accent:"#ff9e64",success:"#9ece6a",warning:"#e0af68",error:"#f7768e",info:"#7dcfff",diffAdd:"#41a6b5",diffDelete:"#c34043"},overrides:{"syntax-comment":"#565f89","syntax-keyword":"#bb9af7","syntax-primitive":"#7aa2f7","syntax-property":"#7dcfff","syntax-constant":"#ff9e64"}},Fl={$schema:Al,name:Dl,id:Tl,light:Sl,dark:Pl},Zl="https://opencode.ai/desktop-theme.json",Bl="Vercel",Ol="vercel",Rl={palette:{neutral:"#FFFFFF",ink:"#171717",primary:"#0070F3",accent:"#8E4EC6",success:"#388E3C",warning:"#FF9500",error:"#DC3545",info:"#0070F3",diffAdd:"#46A758",diffDelete:"#E5484D"},overrides:{"text-weak":"#666666","syntax-comment":"#888888","syntax-keyword":"#E93D82","syntax-string":"#46A758","syntax-primitive":"#8E4EC6","syntax-variable":"#0070F3","syntax-property":"#12A594","syntax-type":"#12A594","syntax-constant":"#FFB224","syntax-operator":"#E93D82","syntax-punctuation":"#171717","syntax-object":"#0070F3","markdown-heading":"#8E4EC6","markdown-text":"#171717","markdown-link":"#0070F3","markdown-link-text":"#12A594","markdown-code":"#46A758","markdown-block-quote":"#666666","markdown-emph":"#FFB224","markdown-strong":"#E93D82","markdown-horizontal-rule":"#999999","markdown-list-item":"#171717","markdown-list-enumeration":"#0070F3","markdown-image":"#12A594","markdown-image-text":"#12A594","markdown-code-block":"#171717"}},zl={palette:{neutral:"#000000",ink:"#EDEDED",primary:"#0070F3",accent:"#8E4EC6",success:"#46A758",warning:"#FFB224",error:"#E5484D",info:"#52A8FF",interactive:"#52A8FF",diffAdd:"#63C46D",diffDelete:"#FF6166"},overrides:{"text-weak":"#878787","syntax-comment":"#878787","syntax-keyword":"#F75590","syntax-string":"#63C46D","syntax-primitive":"#BF7AF0","syntax-variable":"#52A8FF","syntax-property":"#0AC7AC","syntax-type":"#0AC7AC","syntax-constant":"#F2A700","syntax-operator":"#F75590","syntax-punctuation":"#EDEDED","syntax-object":"#52A8FF","markdown-heading":"#BF7AF0","markdown-text":"#EDEDED","markdown-link":"#52A8FF","markdown-link-text":"#0AC7AC","markdown-code":"#63C46D","markdown-block-quote":"#878787","markdown-emph":"#F2A700","markdown-strong":"#F75590","markdown-horizontal-rule":"#454545","markdown-list-item":"#EDEDED","markdown-list-enumeration":"#52A8FF","markdown-image":"#0AC7AC","markdown-image-text":"#50E3C2","markdown-code-block":"#EDEDED"}},Nl={$schema:Zl,name:Bl,id:Ol,light:Rl,dark:zl},Ul="https://opencode.ai/desktop-theme.json",Wl="Vesper",Jl="vesper",Kl={palette:{neutral:"#F0F0F0",ink:"#101010",primary:"#FFC799",accent:"#B30000",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#7a7a7a","syntax-keyword":"#6e6e6e","syntax-string":"#117e69","syntax-primitive":"#8d541c","syntax-property":"#101010","syntax-type":"#8d541c","syntax-constant":"#8d541c"}},Gl={palette:{neutral:"#101010",ink:"#FFF",primary:"#FFC799",accent:"#FF8080",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#8b8b8b","syntax-keyword":"#a0a0a0","syntax-string":"#99ffe4","syntax-primitive":"#ffc799","syntax-property":"#ffffff","syntax-type":"#ffc799","syntax-constant":"#ffc799"}},Yl={$schema:Ul,name:Wl,id:Jl,light:Kl,dark:Gl},Xl="https://opencode.ai/desktop-theme.json",Ql="Zenburn",ed="zenburn",td={palette:{neutral:"#ffffef",ink:"#3f3f3f",primary:"#5f7f8f",accent:"#5f8f8f",success:"#5f8f5f",warning:"#8f8f5f",error:"#8f5f5f",info:"#8f7f5f"},overrides:{"text-weak":"#6f6f6f","syntax-comment":"#5f7f5f","syntax-keyword":"#8f8f5f","syntax-string":"#8f5f5f","syntax-primitive":"#5f7f8f","syntax-variable":"#3f3f3f","syntax-property":"#5f8f8f","syntax-type":"#5f8f8f","syntax-constant":"#5f8f5f","syntax-operator":"#8f8f5f","syntax-punctuation":"#3f3f3f","syntax-object":"#3f3f3f","markdown-heading":"#8f8f5f","markdown-text":"#3f3f3f","markdown-link":"#5f7f8f","markdown-link-text":"#5f8f8f","markdown-code":"#5f8f5f","markdown-block-quote":"#6f6f6f","markdown-emph":"#8f8f5f","markdown-strong":"#8f7f5f","markdown-horizontal-rule":"#6f6f6f","markdown-list-item":"#5f7f8f","markdown-list-enumeration":"#5f8f8f","markdown-image":"#5f7f8f","markdown-image-text":"#5f8f8f","markdown-code-block":"#3f3f3f"}},rd={palette:{neutral:"#3f3f3f",ink:"#dcdccc",primary:"#8cd0d3",accent:"#93e0e3",success:"#7f9f7f",warning:"#f0dfaf",error:"#cc9393",info:"#dfaf8f",diffAdd:"#8fb28f",diffDelete:"#dca3a3"},overrides:{"text-weak":"#9f9f9f","syntax-comment":"#7f9f7f","syntax-keyword":"#f0dfaf","syntax-string":"#cc9393","syntax-primitive":"#8cd0d3","syntax-variable":"#dcdccc","syntax-property":"#93e0e3","syntax-type":"#93e0e3","syntax-constant":"#8fb28f","syntax-operator":"#f0dfaf","syntax-punctuation":"#dcdccc","syntax-object":"#dcdccc","markdown-heading":"#f0dfaf","markdown-text":"#dcdccc","markdown-link":"#8cd0d3","markdown-link-text":"#93e0e3","markdown-code":"#7f9f7f","markdown-block-quote":"#9f9f9f","markdown-emph":"#e0cf9f","markdown-strong":"#dfaf8f","markdown-horizontal-rule":"#9f9f9f","markdown-list-item":"#8cd0d3","markdown-list-enumeration":"#93e0e3","markdown-image":"#8cd0d3","markdown-image-text":"#93e0e3","markdown-code-block":"#dcdccc"}},nd={$schema:Xl,name:Ql,id:ed,light:td,dark:rd},ad=ro,sd=co,od=ho,id=vo,cd=$o,ld=Eo,dd=Fo,fd=No,ud=Yo,yd=ni,pd=li,hd=hi,md=vi,kd=$i,gd=Ei,bd=Fi,wd=Ni,vd=Yi,xd=nc,Cd=lc,Ld=hc,qd=vc,Md=$c,$d=Ec,Hd=Fc,Vd=Nc,_d=Yc,Id=nl,jd=ll,Ed=hl,Ad=vl,Dd=$l,Td=El,Sd=Fl,Pd=Nl,Fd=Yl,Zd=nd,Bd={"oc-2":ad,amoled:sd,aura:od,ayu:id,carbonfox:cd,catppuccin:ld,"catppuccin-frappe":dd,"catppuccin-macchiato":fd,cobalt2:ud,cursor:yd,dracula:pd,everforest:hd,flexoki:md,github:kd,gruvbox:gd,kanagawa:bd,"lucent-orng":wd,material:vd,matrix:xd,mercury:Cd,monokai:Ld,nightowl:qd,nord:Md,"one-dark":$d,onedarkpro:Hd,opencode:Vd,orng:_d,"osaka-jade":Id,palenight:jd,rosepine:Ed,shadesofpurple:Ad,solarized:Dd,synthwave84:Td,tokyonight:Sd,vercel:Pd,vesper:Fd,zenburn:Zd},Od="https://opencode.ai/desktop-theme.json",Rd="Kilo",zd="kilo",Nd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-interactive-weak":"#f0f0f0","surface-success-base":"#dff6dd","surface-success-weak":"#edfaec","surface-success-strong":"#388a34","surface-warning-base":"#fff4ce","surface-warning-weak":"#fffae5","surface-warning-strong":"#bf8803","surface-critical-base":"#fde7e9","surface-critical-weak":"#fef1f2","surface-critical-strong":"#e51400","surface-info-base":"#e7f3ff","surface-info-weak":"#f0f8ff","surface-info-strong":"#1a85ff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-raised-stronger":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","input-active":"#f0f8ff","border-base":"#cecece","border-hover":"#c8c8c8","border-active":"#b0b0b0","border-weak-base":"#e7e7e7","border-weak-hover":"#dddddd","border-strong-base":"#c8c8c8","border-strong-hover":"#b0b0b0","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","border-interactive-hover":"#006ab1","border-success-base":"#388a34","border-warning-base":"#bf8803","border-critical-base":"#e51400","border-info-base":"#1a85ff","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-hover":"#333333","icon-active":"#1e1e1e","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-invert-base":"#ffffff","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","surface-diff-add-base":"#dff6dd","surface-diff-add-weak":"#edfaec","surface-diff-delete-base":"#fde7e9","surface-diff-delete-weak":"#fef1f2","syntax-string":"#a31515","syntax-keyword":"#0000ff","syntax-primitive":"#098658","syntax-property":"#001080","syntax-type":"#267f99","syntax-constant":"#0070c1","syntax-comment":"#008000","syntax-variable":"#001080","syntax-operator":"#000000","syntax-punctuation":"#000000","syntax-object":"#001080","syntax-info":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000","avatar-background-pink":"#feeef8","avatar-background-mint":"#e1fbf4","avatar-background-orange":"#fff1e7","avatar-background-purple":"#f9f1fe","avatar-background-cyan":"#e7f9fb","avatar-background-lime":"#eefadc","avatar-text-pink":"#b51e78","avatar-text-mint":"#107c10","avatar-text-orange":"#df6100","avatar-text-purple":"#652d90","avatar-text-cyan":"#0598bc","avatar-text-lime":"#587c0c"}},Ud={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","text-on-critical-base":"#f14c4c","text-on-critical-weak":"#c53e3e","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-success-base":"#1b3a1b","surface-warning-base":"#3a3000","surface-critical-base":"#3a1515","surface-critical-weak":"#210908","surface-critical-strong":"#f14c4c","surface-base":"#080808","surface-info-base":"#0a2a4a","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","input-active":"#1e1e1e","border-base":"#454545","border-hover":"#505050","border-active":"#606060","border-weak-base":"#303031","border-weak-hover":"#3c3c3c","border-strong-base":"#505050","border-strong-hover":"#606060","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","border-interactive-hover":"#3794ff","border-success-base":"#487e02","border-warning-base":"#cca700","border-critical-base":"#f14c4c","border-info-base":"#3794ff","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-hover":"#d4d4d4","icon-active":"#e7e7e7","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-invert-base":"#1e1e1e","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-critical-hover":"#ff7872","icon-critical-active":"#ffc8bf","icon-info-base":"#3794ff","surface-diff-add-base":"#2a3a2a","surface-diff-add-weak":"#1e2e1e","surface-diff-delete-base":"#3a2020","surface-diff-delete-weak":"#2e1818","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Wd={$schema:Od,name:Rd,id:zd,light:Nd,dark:Ud},Jd="https://opencode.ai/desktop-theme.json",Kd="Kilo VS Code",Gd="kilo-vscode",Yd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","border-base":"#cecece","border-hover":"#c8c8c8","border-weak-base":"#e7e7e7","border-strong-base":"#c8c8c8","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000"}},Xd={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","border-base":"#454545","border-hover":"#505050","border-weak-base":"#303031","border-strong-base":"#505050","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-info-base":"#3794ff","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Qd={$schema:Jd,name:Kd,id:Gd,light:Yd,dark:Xd},e1=Wd,t1=Qd,r1={kilo:e1,"kilo-vscode":t1},n1={...r1,...Bd};function a1(r){const e=st();return{provider:t=>{const n=r.init(t);if(!(r.gate??!0))return $(e.Provider,{value:n,get children(){return t.children}});const s=D(()=>{const o=n.ready;return o===void 0||(typeof o=="function"?o():o)});return $(ie,{get when(){return s()},get children(){return $(e.Provider,{value:n,get children(){return t.children}})}})},use(){const t=Se(e);if(!t)throw new Error(`${r.name} context must be used within a context provider`);return t}}}const xr="kilo",He={THEME_ID:"opencode-theme-id",COLOR_SCHEME:"opencode-color-scheme",THEME_CSS_LIGHT:"opencode-theme-css-light",THEME_CSS_DARK:"opencode-theme-css-dark"},Wr="oc-theme";function s1(){const r=document.getElementById(Wr);if(r)return r;const e=document.createElement("style");return e.id=Wr,document.head.appendChild(e),e}function Ue(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yt(r,e,t){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);if(e!==xr)try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}const i=`:root {
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentsRoute-DAzMkP_0.js","assets/button-UKKe67oz.js","assets/ConfigPage-VhJ7Ha-R.js","assets/tag-DEfKi7PK.js","assets/CustomSelect-D2cuqzID.js","assets/config-CimtrkSH.js","assets/PermissionsRoute-C8lD0SkX.js","assets/PermissionsRoute-BIjHuwFU.css","assets/models-HY33jH13.js","assets/agents-tools-DXx49OgX.css","assets/CliNotificationsRoute-Cb-UQJhm.js","assets/ui-C1h8hZeT.js","assets/cli-ui-DymkjzY0.css","assets/CliUiRoute-3tQMODs_.js","assets/ConsoleUiRoute-D_evleuB.js","assets/console-DSzYpHWl.js","assets/FormattersRoute-DBLZ396h.js","assets/FormattersRoute-5K8HEXB2.css","assets/IndexingRoute-BiLifWbJ.js","assets/IndexingRoute-D0nIx9Pv.css","assets/KeybindsRoute-Cxx0SjQg.js","assets/KeybindsRoute-DPP8xngh.css","assets/McpRoute-_2JtmcIn.js","assets/ConfirmDialog-iPw0ZuT9.js","assets/McpRoute-D22Npdv0.css","assets/ModelsRoute-CxDvqqyc.js","assets/ModelsRoute-Dk1uAzWQ.css","assets/models-CkIsKFzm.css","assets/OverviewRoute-chXJJQOX.js","assets/OverviewRoute-neFLWBjP.css","assets/ProvidersRoute-DCHCvhT6.js","assets/ServersRoute-CjvMDv1R.js","assets/ServersRoute-BBRszzTY.css","assets/SourcesRoute-DcjMOp__.js","assets/SourcesRoute-DMunRt3T.css","assets/ToolsRoute-C2R5p7JN.js","assets/ProjectConsoleRoute-DulDq6dJ.js","assets/ProjectConsoleRoute-Df0w2iOW.css","assets/dialogs-BCnEWnpn.css","assets/ConfigLayout-EQuNhrf2.js","assets/ConfigLayout-DjHPFaCq.css","assets/ProfileRoute-Dw64b7WI.js","assets/profile-8URA_5fo.js","assets/profile-Do_gK9qi.css","assets/LoginRoute-DMJEF9aX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=t(a);fetch(a.href,s)}})();const va="modulepreload",xa=function(r){return"/console/"+r},Tr={},X=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){let c=function(f){return Promise.all(f.map(y=>Promise.resolve(y).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");a=c(t.map(f=>{if(f=xa(f),f in Tr)return;Tr[f]=!0;const y=f.endsWith(".css"),u=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${u}`))return;const p=document.createElement("link");if(p.rel=y?"stylesheet":va,y||(p.as="script"),p.crossOrigin="",p.href=f,i&&p.setAttribute("nonce",i),document.head.appendChild(p),y)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return a.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return e().catch(s)})},I={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Sr(this.context.count)},getNextContextId(){return Sr(this.context.count++)}};function Sr(r){const e=String(r),t=e.length-1;return I.context.id+(t?String.fromCharCode(96+t):"")+e}function Ce(r){I.context=r}const kn=!1,Ca=(r,e)=>r===e,ge=Symbol("solid-proxy"),gn=typeof Proxy=="function",rr=Symbol("solid-track"),kt={equals:Ca};let bn=qn;const be=1,Qe=2,wn={owned:null,cleanups:null,context:null,owner:null},Bt={};var B=null;let q=null,qa=null,z=null,oe=null,se=null,Lt=0;function Ae(r,e){const t=z,n=B,a=r.length===0,s=e===void 0?n:e,o=a?wn:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=a?r:()=>r(()=>te(()=>_e(o)));B=o,z=null;try{return ue(i,!0)}finally{z=t,B=n}}function U(r,e){e=e?Object.assign({},kt,e):kt;const t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},n=a=>(typeof a=="function"&&(q&&q.running&&q.sources.has(t)?a=a(t.tValue):a=a(t.value)),Cn(t,a));return[xn.bind(t),n]}function Pr(r,e,t){const n=_t(r,e,!0,be);ze(n)}function ne(r,e,t){const n=_t(r,e,!1,be);ze(n)}function ee(r,e,t){bn=_a;const n=_t(r,e,!1,be),a=Te&&Se(Te);a&&(n.suspense=a),(!t||!t.render)&&(n.user=!0),se?se.push(n):ze(n)}function D(r,e,t){t=t?Object.assign({},kt,t):kt;const n=_t(r,e,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,ze(n),xn.bind(n)}function La(r){return r&&typeof r=="object"&&"then"in r}function Mt(r,e,t){let n,a,s;typeof e=="function"?(n=r,a=e,s={}):(n=!0,a=r,s=e||{});let o=null,i=Bt,c=null,f=!1,y=!1,u="initialValue"in s,p=typeof n=="function"&&D(n);const g=new Set,[m,h]=(s.storage||U)(s.initialValue),[w,H]=U(void 0),[_,A]=U(void 0,{equals:!1}),[T,L]=U(u?"ready":"unresolved");I.context&&(c=I.getNextContextId(),s.ssrLoadFrom==="initial"?i=s.initialValue:I.load&&I.has(c)&&(i=I.load(c)));function x(v,M,V,C){return o===v&&(o=null,C!==void 0&&(u=!0),(v===i||M===i)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(C,{value:M})),i=Bt,q&&v&&f?(q.promises.delete(v),f=!1,ue(()=>{q.running=!0,F(M,V)},!1)):F(M,V)),M}function F(v,M){ue(()=>{M===void 0&&h(()=>v),L(M!==void 0?"errored":u?"ready":"unresolved"),H(M);for(const V of g.keys())V.decrement();g.clear()},!1)}function j(){const v=Te&&Se(Te),M=m(),V=w();if(V!==void 0&&!o)throw V;return z&&!z.user&&v&&Pr(()=>{_(),o&&(v.resolved&&q&&f?q.promises.add(o):g.has(v)||(v.increment(),g.add(v)))}),M}function b(v=!0){if(v!==!1&&y)return;y=!1;const M=p?p():n;if(f=q&&q.running,M==null||M===!1){x(o,te(m));return}q&&o&&q.promises.delete(o);let V;const C=i!==Bt?i:te(()=>{try{return a(M,{value:m(),refetching:v})}catch(E){V=E}});if(V!==void 0){x(o,void 0,ht(V),M);return}else if(!La(C))return x(o,C,void 0,M),C;return o=C,"v"in C?(C.s===1?x(o,C.v,void 0,M):x(o,void 0,ht(C.v),M),C):(y=!0,queueMicrotask(()=>y=!1),ue(()=>{L(u?"refreshing":"pending"),A()},!1),C.then(E=>x(C,E,void 0,M),E=>x(C,void 0,ht(E),M)))}Object.defineProperties(j,{state:{get:()=>T()},error:{get:()=>w()},loading:{get(){const v=T();return v==="pending"||v==="refreshing"}},latest:{get(){if(!u)return j();const v=w();if(v&&!o)throw v;return m()}}});let S=B;return p?Pr(()=>(S=B,b(!1))):b(!1),[j,{refetch:v=>Ht(S,()=>b(v)),mutate:h}]}function vn(r){return ue(r,!1)}function te(r){if(z===null)return r();const e=z;z=null;try{return r()}finally{z=e}}function kr(r,e,t){const n=Array.isArray(r);let a,s=t&&t.defer;return o=>{let i;if(n){i=Array(r.length);for(let f=0;f<r.length;f++)i[f]=r[f]()}else i=r();if(s)return s=!1,o;const c=te(()=>e(i,a,o));return a=i,c}}function $t(r){ee(()=>te(r))}function fe(r){return B===null||(B.cleanups===null?B.cleanups=[r]:B.cleanups.push(r)),r}function nr(){return z}function et(){return B}function Ht(r,e){const t=B,n=z;B=r,z=null;try{return ue(e,!0)}catch(a){gr(a)}finally{B=t,z=n}}function Ma(r){if(q&&q.running)return r(),q.done;const e=z,t=B;return Promise.resolve().then(()=>{z=e,B=t;let n;return Te&&(n=q||(q={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),n.done||(n.done=new Promise(a=>n.resolve=a)),n.running=!0),ue(r,!1),z=B=null,n?n.done:void 0})}const[Ly,Fr]=U(!1);function $a(r){se.push.apply(se,r),r.length=0}function st(r,e){const t=Symbol("context");return{id:t,Provider:Ia(t),defaultValue:r}}function Se(r){let e;return B&&B.context&&(e=B.context[r.id])!==void 0?e:r.defaultValue}function Vt(r){const e=D(r),t=D(()=>ar(e()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}let Te;function Ha(){return Te||(Te=st())}function xn(){const r=q&&q.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===be)ze(this);else{const e=oe;oe=null,ue(()=>bt(this),!1),oe=e}if(z){const e=this.observers?this.observers.length:0;z.sources?(z.sources.push(this),z.sourceSlots.push(e)):(z.sources=[this],z.sourceSlots=[e]),this.observers?(this.observers.push(z),this.observerSlots.push(z.sources.length-1)):(this.observers=[z],this.observerSlots=[z.sources.length-1])}return r&&q.sources.has(this)?this.tValue:this.value}function Cn(r,e,t){let n=q&&q.running&&q.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(n,e)){if(q){const a=q.running;(a||!t&&q.sources.has(r))&&(q.sources.add(r),r.tValue=e),a||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&ue(()=>{for(let a=0;a<r.observers.length;a+=1){const s=r.observers[a],o=q&&q.running;o&&q.disposed.has(s)||((o?!s.tState:!s.state)&&(s.pure?oe.push(s):se.push(s),s.observers&&Ln(s)),o?s.tState=be:s.state=be)}if(oe.length>1e6)throw oe=[],new Error},!1)}return e}function ze(r){if(!r.fn)return;_e(r);const e=Lt;Zr(r,q&&q.running&&q.sources.has(r)?r.tValue:r.value,e),q&&!q.running&&q.sources.has(r)&&queueMicrotask(()=>{ue(()=>{q&&(q.running=!0),z=B=r,Zr(r,r.tValue,e),z=B=null},!1)})}function Zr(r,e,t){let n;const a=B,s=z;z=B=r;try{n=r.fn(e)}catch(o){return r.pure&&(q&&q.running?(r.tState=be,r.tOwned&&r.tOwned.forEach(_e),r.tOwned=void 0):(r.state=be,r.owned&&r.owned.forEach(_e),r.owned=null)),r.updatedAt=t+1,gr(o)}finally{z=s,B=a}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?Cn(r,n,!0):q&&q.running&&r.pure?(q.sources.has(r)||(r.value=n),q.sources.add(r),r.tValue=n):r.value=n,r.updatedAt=t)}function _t(r,e,t,n=be,a){const s={fn:r,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:B,context:B?B.context:null,pure:t};return q&&q.running&&(s.state=0,s.tState=n),B===null||B!==wn&&(q&&q.running&&B.pure?B.tOwned?B.tOwned.push(s):B.tOwned=[s]:B.owned?B.owned.push(s):B.owned=[s]),s}function gt(r){const e=q&&q.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Qe)return bt(r);if(r.suspense&&te(r.suspense.inFallback))return r.suspense.effects.push(r);const t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt<Lt);){if(e&&q.disposed.has(r))return;(e?r.tState:r.state)&&t.push(r)}for(let n=t.length-1;n>=0;n--){if(r=t[n],e){let a=r,s=t[n+1];for(;(a=a.owner)&&a!==s;)if(q.disposed.has(a))return}if((e?r.tState:r.state)===be)ze(r);else if((e?r.tState:r.state)===Qe){const a=oe;oe=null,ue(()=>bt(r,t[0]),!1),oe=a}}}function ue(r,e){if(oe)return r();let t=!1;e||(oe=[]),se?t=!0:se=[],Lt++;try{const n=r();return Va(t),n}catch(n){t||(se=null),oe=null,gr(n)}}function Va(r){if(oe&&(qn(oe),oe=null),r)return;let e;if(q){if(!q.promises.size&&!q.queue.size){const n=q.sources,a=q.disposed;se.push.apply(se,q.effects),e=q.resolve;for(const s of se)"tState"in s&&(s.state=s.tState),delete s.tState;q=null,ue(()=>{for(const s of a)_e(s);for(const s of n){if(s.value=s.tValue,s.owned)for(let o=0,i=s.owned.length;o<i;o++)_e(s.owned[o]);s.tOwned&&(s.owned=s.tOwned),delete s.tValue,delete s.tOwned,s.tState=0}Fr(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,se),se=null,Fr(!0);return}}const t=se;se=null,t.length&&ue(()=>bn(t),!1),e&&e()}function qn(r){for(let e=0;e<r.length;e++)gt(r[e])}function _a(r){let e,t=0;for(e=0;e<r.length;e++){const n=r[e];n.user?r[t++]=n:gt(n)}if(I.context){if(I.count){I.effects||(I.effects=[]),I.effects.push(...r.slice(0,t));return}Ce()}for(I.effects&&(I.done||!I.count)&&(r=[...I.effects,...r],t+=I.effects.length,delete I.effects),e=0;e<t;e++)gt(r[e])}function bt(r,e){const t=q&&q.running;t?r.tState=0:r.state=0;for(let n=0;n<r.sources.length;n+=1){const a=r.sources[n];if(a.sources){const s=t?a.tState:a.state;s===be?a!==e&&(!a.updatedAt||a.updatedAt<Lt)&>(a):s===Qe&&bt(a,e)}}}function Ln(r){const e=q&&q.running;for(let t=0;t<r.observers.length;t+=1){const n=r.observers[t];(e?!n.tState:!n.state)&&(e?n.tState=Qe:n.state=Qe,n.pure?oe.push(n):se.push(n),n.observers&&Ln(n))}}function _e(r){let e;if(r.sources)for(;r.sources.length;){const t=r.sources.pop(),n=r.sourceSlots.pop(),a=t.observers;if(a&&a.length){const s=a.pop(),o=t.observerSlots.pop();n<a.length&&(s.sourceSlots[o]=n,a[n]=s,t.observerSlots[n]=o)}}if(r.tOwned){const t=r.tOwned;for(delete r.tOwned,e=t.length-1;e>=0;e--)_e(t[e])}if(q&&q.running&&r.pure)Mn(r,!0);else if(r.owned){const t=r.owned;for(r.owned=null,e=t.length-1;e>=0;e--)_e(t[e])}if(r.cleanups){const t=r.cleanups;for(r.cleanups=null,e=t.length-1;e>=0;e--)t[e]()}q&&q.running?r.tState=0:r.state=0}function Mn(r,e){if(e||(r.tState=0,q.disposed.add(r)),r.owned)for(let t=0;t<r.owned.length;t++)Mn(r.owned[t])}function ht(r){return r instanceof Error?r:new Error(typeof r=="string"?r:"Unknown error",{cause:r})}function gr(r,e=B){throw ht(r)}function ar(r){if(typeof r=="function"&&!r.length)return ar(r());if(Array.isArray(r)){const e=[];for(let t=0;t<r.length;t++){const n=ar(r[t]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return e}return r}function Ia(r,e){return function(n){let a;return ne(()=>a=te(()=>(B.context={...B.context,[r]:n.value},Vt(()=>n.children))),void 0),a}}const ja=Symbol("fallback");function Br(r){for(let e=0;e<r.length;e++)r[e]()}function Ea(r,e,t={}){let n=[],a=[],s=[],o=0,i=e.length>1?[]:null;return fe(()=>Br(s)),()=>{let c=r()||[],f=c.length,y,u;return c[rr],te(()=>{let g,m,h,w,H,_,A,T,L;if(f===0)o!==0&&(Br(s),s=[],n=[],a=[],o=0,i&&(i=[])),t.fallback&&(n=[ja],a[0]=Ae(x=>(s[0]=x,t.fallback())),o=1);else if(o===0){for(a=new Array(f),u=0;u<f;u++)n[u]=c[u],a[u]=Ae(p);o=f}else{for(h=new Array(f),w=new Array(f),i&&(H=new Array(f)),_=0,A=Math.min(o,f);_<A&&n[_]===c[_];_++);for(A=o-1,T=f-1;A>=_&&T>=_&&n[A]===c[T];A--,T--)h[T]=a[A],w[T]=s[A],i&&(H[T]=i[A]);for(g=new Map,m=new Array(T+1),u=T;u>=_;u--)L=c[u],y=g.get(L),m[u]=y===void 0?-1:y,g.set(L,u);for(y=_;y<=A;y++)L=n[y],u=g.get(L),u!==void 0&&u!==-1?(h[u]=a[y],w[u]=s[y],i&&(H[u]=i[y]),u=m[u],g.set(L,u)):s[y]();for(u=_;u<f;u++)u in h?(a[u]=h[u],s[u]=w[u],i&&(i[u]=H[u],i[u](u))):a[u]=Ae(p);a=a.slice(0,o=f),n=c.slice(0)}return a});function p(g){if(s[u]=g,i){const[m,h]=U(u);return i[u]=h,e(c[u],m)}return e(c[u])}}}function $(r,e){return te(()=>r(e||{}))}function ut(){return!0}const sr={get(r,e,t){return e===ge?t:r.get(e)},has(r,e){return e===ge?!0:r.has(e)},set:ut,deleteProperty:ut,getOwnPropertyDescriptor(r,e){return{configurable:!0,enumerable:!0,get(){return r.get(e)},set:ut,deleteProperty:ut}},ownKeys(r){return r.keys()}};function Ot(r){return(r=typeof r=="function"?r():r)?r:{}}function Aa(){for(let r=0,e=this.length;r<e;++r){const t=this[r]();if(t!==void 0)return t}}function pe(...r){let e=!1;for(let o=0;o<r.length;o++){const i=r[o];e=e||!!i&&ge in i,r[o]=typeof i=="function"?(e=!0,D(i)):i}if(gn&&e)return new Proxy({get(o){for(let i=r.length-1;i>=0;i--){const c=Ot(r[i])[o];if(c!==void 0)return c}},has(o){for(let i=r.length-1;i>=0;i--)if(o in Ot(r[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<r.length;i++)o.push(...Object.keys(Ot(r[i])));return[...new Set(o)]}},sr);const t={},n=Object.create(null);for(let o=r.length-1;o>=0;o--){const i=r[o];if(!i)continue;const c=Object.getOwnPropertyNames(i);for(let f=c.length-1;f>=0;f--){const y=c[f];if(y==="__proto__"||y==="constructor")continue;const u=Object.getOwnPropertyDescriptor(i,y);if(!n[y])n[y]=u.get?{enumerable:!0,configurable:!0,get:Aa.bind(t[y]=[u.get.bind(i)])}:u.value!==void 0?u:void 0;else{const p=t[y];p&&(u.get?p.push(u.get.bind(i)):u.value!==void 0&&p.push(()=>u.value))}}}const a={},s=Object.keys(n);for(let o=s.length-1;o>=0;o--){const i=s[o],c=n[i];c&&c.get?Object.defineProperty(a,i,c):a[i]=c?c.value:void 0}return a}function Me(r,...e){const t=e.length;if(gn&&ge in r){const a=t>1?e.flat():e[0],s=e.map(o=>new Proxy({get(i){return o.includes(i)?r[i]:void 0},has(i){return o.includes(i)&&i in r},keys(){return o.filter(i=>i in r)}},sr));return s.push(new Proxy({get(o){return a.includes(o)?void 0:r[o]},has(o){return a.includes(o)?!1:o in r},keys(){return Object.keys(r).filter(o=>!a.includes(o))}},sr)),s}const n=[];for(let a=0;a<=t;a++)n[a]={};for(const a of Object.getOwnPropertyNames(r)){let s=t;for(let c=0;c<e.length;c++)if(e[c].includes(a)){s=c;break}const o=Object.getOwnPropertyDescriptor(r,a);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?n[s][a]=o.value:Object.defineProperty(n[s],a,o)}return n}function Q(r){let e,t;const n=a=>{const s=I.context;if(s){const[i,c]=U();I.count||(I.count=0),I.count++,(t||(t=r())).then(f=>{!I.done&&Ce(s),I.count--,c(()=>f.default),Ce()}),e=i}else if(!e){const[i]=Mt(()=>(t||(t=r())).then(c=>c.default));e=i}let o;return D(()=>(o=e())?te(()=>{if(!s||I.done)return o(a);const i=I.context;Ce(s);const c=o(a);return Ce(i),c}):"")};return n.preload=()=>t||((t=r()).then(a=>e=()=>a.default),t),n}let Da=0;function My(){return I.context?I.getNextContextId():`cl-${Da++}`}const $n=r=>`Stale read from <${r}>.`;function Ye(r){const e="fallback"in r&&{fallback:()=>r.fallback};return D(Ea(()=>r.each,r.children,e||void 0))}function ie(r){const e=r.keyed,t=D(()=>r.when,void 0,void 0),n=e?t:D(t,void 0,{equals:(a,s)=>!a==!s});return D(()=>{const a=n();if(a){const s=r.children;return typeof s=="function"&&s.length>0?te(()=>s(e?a:()=>{if(!te(n))throw $n("Show");return t()})):s}return r.fallback},void 0,void 0)}function $y(r){const e=Vt(()=>r.children),t=D(()=>{const n=e(),a=Array.isArray(n)?n:[n];let s=()=>{};for(let o=0;o<a.length;o++){const i=o,c=a[o],f=s,y=D(()=>f()?void 0:c.when,void 0,void 0),u=c.keyed?y:D(y,void 0,{equals:(p,g)=>!p==!g});s=()=>f()||(u()?[i,y,c]:void 0)}return s});return D(()=>{const n=t()();if(!n)return r.fallback;const[a,s,o]=n,i=o.children;return typeof i=="function"&&i.length>0?te(()=>i(o.keyed?s():()=>{if(te(t)()?.[0]!==a)throw $n("Match");return s()})):i},void 0,void 0)}function Hy(r){return r}const Ta=st();function Sa(r){let e=0,t,n,a,s,o;const[i,c]=U(!1),f=Ha(),y={increment:()=>{++e===1&&c(!0)},decrement:()=>{--e===0&&c(!1)},inFallback:i,effects:[],resolved:!1},u=et();if(I.context&&I.load){const m=I.getContextId();let h=I.load(m);if(h&&(typeof h!="object"||h.s!==1?a=h:I.gather(m)),a&&a!=="$$f"){const[w,H]=U(void 0,{equals:!1});s=w,a.then(()=>{if(I.done)return H();I.gather(m),Ce(n),H(),Ce()},_=>{o=_,H()})}}const p=Se(Ta);p&&(t=p.register(y.inFallback));let g;return fe(()=>g&&g()),$(f.Provider,{value:y,get children(){return D(()=>{if(o)throw o;if(n=I.context,s)return s(),s=void 0;n&&a==="$$f"&&Ce();const m=D(()=>r.children);return D(h=>{const w=y.inFallback(),{showContent:H=!0,showFallback:_=!0}=t?t():{};if((!w||a&&a!=="$$f")&&H)return y.resolved=!0,g&&g(),g=n=a=void 0,$a(y.effects),m();if(_)return g?h:Ae(A=>(g=A,n&&(Ce({id:n.id+"F",count:0}),n=void 0),r.fallback),u)})})}})}const Pa=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Fa=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Pa]),Za=new Set(["innerHTML","textContent","innerText","children"]),Ba=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Oa=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Ra(r,e){const t=Oa[r];return typeof t=="object"?t[e]?t.$:void 0:t}const za=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Na=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ua={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},qe=r=>D(()=>r());function Wa(r,e,t){let n=t.length,a=e.length,s=n,o=0,i=0,c=e[a-1].nextSibling,f=null;for(;o<a||i<s;){if(e[o]===t[i]){o++,i++;continue}for(;e[a-1]===t[s-1];)a--,s--;if(a===o){const y=s<n?i?t[i-1].nextSibling:t[s-i]:c;for(;i<s;)r.insertBefore(t[i++],y)}else if(s===i)for(;o<a;)(!f||!f.has(e[o]))&&e[o].remove(),o++;else if(e[o]===t[s-1]&&t[i]===e[a-1]){const y=e[--a].nextSibling;r.insertBefore(t[i++],e[o++].nextSibling),r.insertBefore(t[--s],y),e[a]=t[s]}else{if(!f){f=new Map;let u=i;for(;u<s;)f.set(t[u],u++)}const y=f.get(e[o]);if(y!=null)if(i<y&&y<s){let u=o,p=1,g;for(;++u<a&&u<s&&!((g=f.get(e[u]))==null||g!==y+p);)p++;if(p>y-i){const m=e[o];for(;i<y;)r.insertBefore(t[i++],m)}else r.replaceChild(t[i++],e[o++])}else o++;else e[o++].remove()}}}const Or="_$DX_DELEGATE";function Ja(r,e,t,n={}){let a;return Ae(s=>{a=s,e===document?r():Z(e,r(),e.firstChild?null:void 0,t)},n.owner),()=>{a(),e.textContent=""}}function W(r,e,t,n){let a;const s=()=>{const i=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=r,t?i.content.firstChild.firstChild:n?i.firstChild:i.content.firstChild},o=e?()=>te(()=>document.importNode(a||(a=s()),!0)):()=>(a||(a=s())).cloneNode(!0);return o.cloneNode=o,o}function br(r,e=window.document){const t=e[Or]||(e[Or]=new Set);for(let n=0,a=r.length;n<a;n++){const s=r[n];t.has(s)||(t.add(s),e.addEventListener(s,rs))}}function ce(r,e,t){Pe(r)||(t==null?r.removeAttribute(e):r.setAttribute(e,t))}function Ka(r,e,t,n){Pe(r)||(n==null?r.removeAttributeNS(e,t):r.setAttributeNS(e,t,n))}function Ga(r,e,t){Pe(r)||(t?r.setAttribute(e,""):r.removeAttribute(e))}function Hn(r,e){Pe(r)||(e==null?r.removeAttribute("class"):r.className=e)}function Ya(r,e,t,n){if(n)Array.isArray(t)?(r[`$$${e}`]=t[0],r[`$$${e}Data`]=t[1]):r[`$$${e}`]=t;else if(Array.isArray(t)){const a=t[0];r.addEventListener(e,t[0]=s=>a.call(r,t[1],s))}else r.addEventListener(e,t,typeof t!="function"&&t)}function Vn(r,e,t={}){const n=Object.keys(e||{}),a=Object.keys(t);let s,o;for(s=0,o=a.length;s<o;s++){const i=a[s];!i||i==="undefined"||e[i]||(Rr(r,i,!1),delete t[i])}for(s=0,o=n.length;s<o;s++){const i=n[s],c=!!e[i];!i||i==="undefined"||t[i]===c||!c||(Rr(r,i,!0),t[i]=c)}return t}function Xa(r,e,t){if(!e)return t?ce(r,"style"):e;const n=r.style;if(typeof e=="string")return n.cssText=e;typeof t=="string"&&(n.cssText=t=void 0),t||(t={}),e||(e={});let a,s;for(s in t)e[s]==null&&n.removeProperty(s),delete t[s];for(s in e)a=e[s],a!==t[s]&&(n.setProperty(s,a),t[s]=a);return t}function Vy(r,e,t){t!=null?r.style.setProperty(e,t):r.style.removeProperty(e)}function Ne(r,e={},t,n){const a={};return n||ne(()=>a.children=tt(r,e.children,a.children)),ne(()=>typeof e.ref=="function"&&or(e.ref,r)),ne(()=>Qa(r,e,t,!0,a,!0)),a}function or(r,e,t){return te(()=>r(e,t))}function Z(r,e,t,n){if(t!==void 0&&!n&&(n=[]),typeof e!="function")return tt(r,e,n,t);ne(a=>tt(r,e(),a,t),n)}function Qa(r,e,t,n,a={},s=!1){e||(e={});for(const o in a)if(!(o in e)){if(o==="children")continue;a[o]=zr(r,o,null,a[o],t,s,e)}for(const o in e){if(o==="children")continue;const i=e[o];a[o]=zr(r,o,i,a[o],t,s,e)}}function es(r){let e,t;return!Pe()||!(e=I.registry.get(t=ns()))?r():(I.completed&&I.completed.add(e),I.registry.delete(t),e)}function Pe(r){return!!I.context&&!I.done&&(!r||r.isConnected)}function ts(r){return r.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Rr(r,e,t){const n=e.trim().split(/\s+/);for(let a=0,s=n.length;a<s;a++)r.classList.toggle(n[a],t)}function zr(r,e,t,n,a,s,o){let i,c,f,y,u;if(e==="style")return Xa(r,t,n);if(e==="classList")return Vn(r,t,n);if(t===n)return n;if(e==="ref")s||t(r);else if(e.slice(0,3)==="on:"){const p=e.slice(3);n&&r.removeEventListener(p,n,typeof n!="function"&&n),t&&r.addEventListener(p,t,typeof t!="function"&&t)}else if(e.slice(0,10)==="oncapture:"){const p=e.slice(10);n&&r.removeEventListener(p,n,!0),t&&r.addEventListener(p,t,!0)}else if(e.slice(0,2)==="on"){const p=e.slice(2).toLowerCase(),g=za.has(p);if(!g&&n){const m=Array.isArray(n)?n[0]:n;r.removeEventListener(p,m)}(g||t)&&(Ya(r,p,t,g),g&&br([p]))}else if(e.slice(0,5)==="attr:")ce(r,e.slice(5),t);else if(e.slice(0,5)==="bool:")Ga(r,e.slice(5),t);else if((u=e.slice(0,5)==="prop:")||(f=Za.has(e))||!a&&((y=Ra(e,r.tagName))||(c=Fa.has(e)))||(i=r.nodeName.includes("-")||"is"in o)){if(u)e=e.slice(5),c=!0;else if(Pe(r))return t;e==="class"||e==="className"?Hn(r,t):i&&!c&&!f?r[ts(e)]=t:r[y||e]=t}else{const p=a&&e.indexOf(":")>-1&&Ua[e.split(":")[0]];p?Ka(r,p,e,t):ce(r,Ba[e]||e,t)}return t}function rs(r){if(I.registry&&I.events&&I.events.find(([c,f])=>f===r))return;let e=r.target;const t=`$$${r.type}`,n=r.target,a=r.currentTarget,s=c=>Object.defineProperty(r,"target",{configurable:!0,value:c}),o=()=>{const c=e[t];if(c&&!e.disabled){const f=e[`${t}Data`];if(f!==void 0?c.call(e,f,r):c.call(e,r),r.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(r.target)&&s(e.host),!0},i=()=>{for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(r,"currentTarget",{configurable:!0,get(){return e||document}}),I.registry&&!I.done&&(I.done=_$HY.done=!0),r.composedPath){const c=r.composedPath();s(c[0]);for(let f=0;f<c.length-2&&(e=c[f],!!o());f++){if(e._$host){e=e._$host,i();break}if(e.parentNode===a)break}}else i();s(n)}function tt(r,e,t,n,a){const s=Pe(r);if(s){!t&&(t=[...r.childNodes]);let c=[];for(let f=0;f<t.length;f++){const y=t[f];y.nodeType===8&&y.data.slice(0,2)==="!$"?y.remove():c.push(y)}t=c}for(;typeof t=="function";)t=t();if(e===t)return t;const o=typeof e,i=n!==void 0;if(r=i&&t[0]&&t[0].parentNode||r,o==="string"||o==="number"){if(s||o==="number"&&(e=e.toString(),e===t))return t;if(i){let c=t[0];c&&c.nodeType===3?c.data!==e&&(c.data=e):c=document.createTextNode(e),t=Ze(r,t,n,c)}else t!==""&&typeof t=="string"?t=r.firstChild.data=e:t=r.textContent=e}else if(e==null||o==="boolean"){if(s)return t;t=Ze(r,t,n)}else{if(o==="function")return ne(()=>{let c=e();for(;typeof c=="function";)c=c();t=tt(r,c,t,n)}),()=>t;if(Array.isArray(e)){const c=[],f=t&&Array.isArray(t);if(ir(c,e,t,a))return ne(()=>t=tt(r,c,t,n,!0)),()=>t;if(s){if(!c.length)return t;if(n===void 0)return t=[...r.childNodes];let y=c[0];if(y.parentNode!==r)return t;const u=[y];for(;(y=y.nextSibling)!==n;)u.push(y);return t=u}if(c.length===0){if(t=Ze(r,t,n),i)return t}else f?t.length===0?Nr(r,c,n):Wa(r,t,c):(t&&Ze(r),Nr(r,c));t=c}else if(e.nodeType){if(s&&e.parentNode)return t=i?[e]:e;if(Array.isArray(t)){if(i)return t=Ze(r,t,n,e);Ze(r,t,null,e)}else t==null||t===""||!r.firstChild?r.appendChild(e):r.replaceChild(e,r.firstChild);t=e}}return t}function ir(r,e,t,n){let a=!1;for(let s=0,o=e.length;s<o;s++){let i=e[s],c=t&&t[r.length],f;if(!(i==null||i===!0||i===!1))if((f=typeof i)=="object"&&i.nodeType)r.push(i);else if(Array.isArray(i))a=ir(r,i,c)||a;else if(f==="function")if(n){for(;typeof i=="function";)i=i();a=ir(r,Array.isArray(i)?i:[i],Array.isArray(c)?c:[c])||a}else r.push(i),a=!0;else{const y=String(i);c&&c.nodeType===3&&c.data===y?r.push(c):r.push(document.createTextNode(y))}}return a}function Nr(r,e,t=null){for(let n=0,a=e.length;n<a;n++)r.insertBefore(e[n],t)}function Ze(r,e,t,n){if(t===void 0)return r.textContent="";const a=n||document.createTextNode("");if(e.length){let s=!1;for(let o=e.length-1;o>=0;o--){const i=e[o];if(a!==i){const c=i.parentNode===r;!s&&!o?c?r.replaceChild(a,i):r.insertBefore(a,t):c&&i.remove()}else s=!0}}else r.insertBefore(a,t);return[a]}function ns(){return I.getNextContextId()}const as=!1,ss="http://www.w3.org/2000/svg";function _n(r,e=!1,t=void 0){return e?document.createElementNS(ss,r):document.createElement(r,{is:t})}function _y(r){const{useShadow:e}=r,t=document.createTextNode(""),n=()=>r.mount||document.body,a=et();let s,o=!!I.context;return ee(()=>{o&&(et().user=o=!1),s||(s=Ht(a,()=>D(()=>r.children)));const i=n();if(i instanceof HTMLHeadElement){const[c,f]=U(!1),y=()=>f(!0);Ae(u=>Z(i,()=>c()?u():s(),null)),fe(y)}else{const c=_n(r.isSVG?"g":"div",r.isSVG),f=e&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return t.parentNode},configurable:!0}),Z(f,s),i.appendChild(c),r.ref&&r.ref(c),fe(()=>i.removeChild(c))}},void 0,{render:!o}),t}function os(r,e){const t=D(r);return D(()=>{const n=t();switch(typeof n){case"function":return te(()=>n(e));case"string":const a=Na.has(n),s=I.context?es():_n(n,a,te(()=>e.is));return Ne(s,e,a),s}})}function is(r){const[,e]=Me(r,["component"]);return os(()=>r.component,e)}function In(){let r=new Set;function e(a){return r.add(a),()=>r.delete(a)}let t=!1;function n(a,s){if(t)return!(t=!1);const o={to:a,options:s,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const i of r)i.listener({...o,from:i.location,retry:c=>{c&&(t=!0),i.navigate(a,{...s,resolve:!1})}});return!o.defaultPrevented}return{subscribe:e,confirm:n}}let cr;function wr(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),cr=window.history.state._depth}wr();function cs(r){return{...r,_depth:window.history.state&&window.history.state._depth}}function ls(r,e){let t=!1;return()=>{const n=cr;wr();const a=n==null?null:cr-n;if(t){t=!1;return}a&&e(a)?(t=!0,window.history.go(-a)):r()}}const ds=/^(?:[a-z0-9]+:)?\/\//i,fs=/^\/+|(\/)\/+$/g,jn="http://sr";function De(r,e=!1){const t=r.replace(fs,"$1");return t?e||/^[?#]/.test(t)?t:"/"+t:""}function mt(r,e,t){if(ds.test(e))return;const n=De(r),a=t&&De(t);let s="";return!a||e.startsWith("/")?s=n:a.toLowerCase().indexOf(n.toLowerCase())!==0?s=n+a:s=a,(s||"/")+De(e,!s)}function us(r,e){if(r==null)throw new Error(e);return r}function ys(r,e){return De(r).replace(/\/*(\*.*)?$/g,"")+De(e)}function En(r){const e={};return r.searchParams.forEach((t,n)=>{n in e?Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]:e[n]=t}),e}function ps(r,e,t){const[n,a]=r.split("/*",2),s=n.split("/").filter(Boolean),o=s.length;return i=>{const c=i.split("/").filter(Boolean),f=c.length-o;if(f<0||f>0&&a===void 0&&!e)return null;const y={path:o?"":"/",params:{}},u=p=>t===void 0?void 0:t[p];for(let p=0;p<o;p++){const g=s[p],m=g[0]===":",h=m?c[p]:c[p].toLowerCase(),w=m?g.slice(1):g.toLowerCase();if(m&&Rt(h,u(w)))y.params[w]=h;else if(m||!Rt(h,w))return null;y.path+=`/${h}`}if(a){const p=f?c.slice(-f).join("/"):"";if(Rt(p,u(a)))y.params[a]=p;else return null}return y}}function Rt(r,e){const t=n=>n===r;return e===void 0?!0:typeof e=="string"?t(e):typeof e=="function"?e(r):Array.isArray(e)?e.some(t):e instanceof RegExp?e.test(r):!1}function hs(r){const[e,t]=r.pattern.split("/*",2),n=e.split("/").filter(Boolean);return n.reduce((a,s)=>a+(s.startsWith(":")?2:3),n.length-(t===void 0?0:1))}function An(r){const e=new Map,t=et();return new Proxy({},{get(n,a){return e.has(a)||Ht(t,()=>e.set(a,D(()=>r()[a]))),e.get(a)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(r())},has(n,a){return a in r()}})}function Dn(r){let e=/(\/?\:[^\/]+)\?/.exec(r);if(!e)return[r];let t=r.slice(0,e.index),n=r.slice(e.index+e[0].length);const a=[t,t+=e[1]];for(;e=/^(\/\:[^\/]+)\?/.exec(n);)a.push(t+=e[1]),n=n.slice(e[0].length);return Dn(n).reduce((s,o)=>[...s,...a.map(i=>i+o)],[])}const ms=100,Tn=st(),vr=st(),ot=()=>us(Se(Tn),"<A> and 'use' router primitives can be only used inside a Route."),ks=()=>Se(vr)||ot().base,gs=r=>{const e=ks();return D(()=>e.resolvePath(r()))},bs=r=>{const e=ot();return D(()=>{const t=r();return t!==void 0?e.renderPath(t):t})},ws=()=>ot().navigatorFactory(),It=()=>ot().location,Iy=()=>ot().params;function vs(r,e=""){const{component:t,preload:n,load:a,children:s,info:o}=r,i=!s||Array.isArray(s)&&!s.length,c={key:r,component:t,preload:n||a,info:o};return Sn(r.path).reduce((f,y)=>{for(const u of Dn(y)){const p=ys(e,u);let g=i?p:p.split("/*",1)[0];g=g.split("/").map(m=>m.startsWith(":")||m.startsWith("*")?m:encodeURIComponent(m)).join("/"),f.push({...c,originalPath:y,pattern:g,matcher:ps(g,!i,r.matchFilters)})}return f},[])}function xs(r,e=0){return{routes:r,score:hs(r[r.length-1])*1e4-e,matcher(t){const n=[];for(let a=r.length-1;a>=0;a--){const s=r[a],o=s.matcher(t);if(!o)return null;n.unshift({...o,route:s})}return n}}}function Sn(r){return Array.isArray(r)?r:[r]}function Pn(r,e="",t=[],n=[]){const a=Sn(r);for(let s=0,o=a.length;s<o;s++){const i=a[s];if(i&&typeof i=="object"){i.hasOwnProperty("path")||(i.path="");const c=vs(i,e);for(const f of c){t.push(f);const y=Array.isArray(i.children)&&i.children.length===0;if(i.children&&!y)Pn(i.children,f.pattern,t,n);else{const u=xs([...t],n.length);n.push(u)}t.pop()}}}return t.length?n:n.sort((s,o)=>o.score-s.score)}function zt(r,e){for(let t=0,n=r.length;t<n;t++){const a=r[t].matcher(e);if(a)return a}return[]}function Cs(r,e,t){const n=new URL(jn),a=D(y=>{const u=r();try{return new URL(u,n)}catch{return console.error(`Invalid path ${u}`),y}},n,{equals:(y,u)=>y.href===u.href}),s=D(()=>a().pathname),o=D(()=>a().search,!0),i=D(()=>a().hash),c=()=>"",f=kr(o,()=>En(a()));return{get pathname(){return s()},get search(){return o()},get hash(){return i()},get state(){return e()},get key(){return c()},query:t?t(f):An(f)}}let Ee;function qs(){return Ee}function Ls(r,e,t,n={}){const{signal:[a,s],utils:o={}}=r,i=o.parsePath||(C=>C),c=o.renderPath||(C=>C),f=o.beforeLeave||In(),y=mt("",n.base||"");if(y===void 0)throw new Error(`${y} is not a valid base path`);y&&!a().value&&s({value:y,replace:!0,scroll:!1});const[u,p]=U(!1);let g;const m=(C,E)=>{E.value===h()&&E.state===H()||(g===void 0&&p(!0),Ee=C,g=E,Ma(()=>{g===E&&(w(g.value),_(g.state),L[1](N=>N.filter(J=>J.pending)))}).finally(()=>{g===E&&vn(()=>{Ee=void 0,C==="navigate"&&M(g),p(!1),g=void 0})}))},[h,w]=U(a().value),[H,_]=U(a().state),A=Cs(h,H,o.queryWrapper),T=[],L=U([]),x=D(()=>typeof n.transformUrl=="function"?zt(e(),n.transformUrl(A.pathname)):zt(e(),A.pathname)),F=()=>{const C=x(),E={};for(let N=0;N<C.length;N++)Object.assign(E,C[N].params);return E},j=o.paramsWrapper?o.paramsWrapper(F,e):An(F),b={pattern:y,path:()=>y,outlet:()=>null,resolvePath(C){return mt(y,C)}};return ne(kr(a,C=>m("native",C),{defer:!0})),{base:b,location:A,params:j,isRouting:u,renderPath:c,parsePath:i,navigatorFactory:v,matches:x,beforeLeave:f,preloadRoute:V,singleFlight:n.singleFlight===void 0?!0:n.singleFlight,submissions:L};function S(C,E,N){te(()=>{if(typeof E=="number"){E&&(o.go?o.go(E):console.warn("Router integration does not support relative routing"));return}const J=!E||E[0]==="?",{replace:he,resolve:G,scroll:re,state:ae}={replace:!1,resolve:!J,scroll:!0,...N},ye=G?C.resolvePath(E):mt(J&&A.pathname||"",E);if(ye===void 0)throw new Error(`Path '${E}' is not a routable path`);if(T.length>=ms)throw new Error("Too many redirects");const Ie=h();(ye!==Ie||ae!==H())&&(as||f.confirm(ye,N)&&(T.push({value:Ie,replace:he,scroll:re,state:H()}),m("navigate",{value:ye,state:ae})))})}function v(C){return C=C||Se(vr)||b,(E,N)=>S(C,E,N)}function M(C){const E=T[0];E&&(s({...C,replace:E.replace,scroll:E.scroll}),T.length=0)}function V(C,E){const N=zt(e(),C.pathname),J=Ee;Ee="preload";for(let he in N){const{route:G,params:re}=N[he];G.component&&G.component.preload&&G.component.preload();const{preload:ae}=G;E&&ae&&Ht(t(),()=>ae({params:re,location:{pathname:C.pathname,search:C.search,hash:C.hash,query:En(C),state:null,key:""},intent:"preload"}))}Ee=J}}function Ms(r,e,t,n){const{base:a,location:s,params:o}=r,{pattern:i,component:c,preload:f}=n().route,y=D(()=>n().path);c&&c.preload&&c.preload();const u=f?f({params:o,location:s,intent:Ee||"initial"}):void 0;return{parent:e,pattern:i,path:y,outlet:()=>c?$(c,{params:o,location:s,data:u,get children(){return t()}}):t(),resolvePath(g){return mt(a.path(),g,y())}}}const $s=r=>e=>{const{base:t}=e,n=Vt(()=>e.children),a=D(()=>Pn(n(),e.base||""));let s;const o=Ls(r,a,()=>s,{base:t,singleFlight:e.singleFlight,transformUrl:e.transformUrl});return r.create&&r.create(o),$(Tn.Provider,{value:o,get children(){return $(Hs,{routerState:o,get root(){return e.root},get preload(){return e.rootPreload||e.rootLoad},get children(){return[qe(()=>(s=et())&&null),$(Vs,{routerState:o,get branches(){return a()}})]}})}})};function Hs(r){const e=r.routerState.location,t=r.routerState.params,n=D(()=>r.preload&&te(()=>{r.preload({params:t,location:e,intent:qs()||"initial"})}));return $(ie,{get when(){return r.root},keyed:!0,get fallback(){return r.children},children:a=>$(a,{params:t,location:e,get data(){return n()},get children(){return r.children}})})}function Vs(r){const e=[];let t;const n=D(kr(r.routerState.matches,(a,s,o)=>{let i=s&&a.length===s.length;const c=[];for(let f=0,y=a.length;f<y;f++){const u=s&&s[f],p=a[f];o&&u&&p.route.key===u.route.key?c[f]=o[f]:(i=!1,e[f]&&e[f](),Ae(g=>{e[f]=g,c[f]=Ms(r.routerState,c[f-1]||r.routerState.base,Ur(()=>n()[f+1]),()=>{const m=r.routerState.matches();return m[f]??m[0]})}))}return e.splice(a.length).forEach(f=>f()),o&&i?o:(t=c[0],c)}));return Ur(()=>n()&&t)()}const Ur=r=>()=>$(ie,{get when(){return r()},keyed:!0,children:e=>$(vr.Provider,{value:e,get children(){return e.outlet()}})}),ve=r=>{const e=Vt(()=>r.children);return pe(r,{get children(){return e()}})};function _s([r,e],t,n){return[r,n?a=>e(n(a)):e]}function Is(r){let e=!1;const t=a=>typeof a=="string"?{value:a}:a,n=_s(U(t(r.get()),{equals:(a,s)=>a.value===s.value&&a.state===s.state}),void 0,a=>(!e&&r.set(a),I.registry&&!I.done&&(I.done=!0),a));return r.init&&fe(r.init((a=r.get())=>{e=!0,n[1](t(a)),e=!1})),$s({signal:n,create:r.create,utils:r.utils})}function js(r,e,t){return r.addEventListener(e,t),()=>r.removeEventListener(e,t)}function Es(r,e){const t=r&&document.getElementById(r);t?t.scrollIntoView():e&&window.scrollTo(0,0)}const As=new Map;function Ds(r=!0,e=!1,t="/_server",n){return a=>{const s=a.base.path(),o=a.navigatorFactory(a.base);let i,c;function f(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function y(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const w=h.composedPath().find(x=>x instanceof Node&&x.nodeName.toUpperCase()==="A");if(!w||e&&!w.hasAttribute("link"))return;const H=f(w),_=H?w.href.baseVal:w.href;if((H?w.target.baseVal:w.target)||!_&&!w.hasAttribute("state"))return;const T=(w.getAttribute("rel")||"").split(/\s+/);if(w.hasAttribute("download")||T&&T.includes("external"))return;const L=H?new URL(_,document.baseURI):new URL(_);if(!(L.origin!==window.location.origin||s&&L.pathname&&!L.pathname.toLowerCase().startsWith(s.toLowerCase())))return[w,L]}function u(h){const w=y(h);if(!w)return;const[H,_]=w,A=a.parsePath(_.pathname+_.search+_.hash),T=H.getAttribute("state");h.preventDefault(),o(A,{resolve:!1,replace:H.hasAttribute("replace"),scroll:!H.hasAttribute("noscroll"),state:T?JSON.parse(T):void 0})}function p(h){const w=y(h);if(!w)return;const[H,_]=w;n&&(_.pathname=n(_.pathname)),a.preloadRoute(_,H.getAttribute("preload")!=="false")}function g(h){clearTimeout(i);const w=y(h);if(!w)return c=null;const[H,_]=w;c!==H&&(n&&(_.pathname=n(_.pathname)),i=setTimeout(()=>{a.preloadRoute(_,H.getAttribute("preload")!=="false"),c=H},20))}function m(h){if(h.defaultPrevented)return;let w=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!w)return;if(!w.startsWith("https://action/")){const _=new URL(w,jn);if(w=a.parsePath(_.pathname+_.search),!w.startsWith(t))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const H=As.get(w);if(H){h.preventDefault();const _=new FormData(h.target,h.submitter);H.call({r:a,f:h.target},h.target.enctype==="multipart/form-data"?_:new URLSearchParams(_))}}br(["click","submit"]),document.addEventListener("click",u),r&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",m),fe(()=>{document.removeEventListener("click",u),r&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",m)})}}function Ts(r){const e=()=>{const n=window.location.pathname.replace(/^\/+/,"/")+window.location.search,a=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:n+window.location.hash,state:a}},t=In();return Is({get:e,set({value:n,replace:a,scroll:s,state:o}){a?window.history.replaceState(cs(o),"",n):window.history.pushState(o,"",n),Es(decodeURIComponent(window.location.hash.slice(1)),s),wr()},init:n=>js(window,"popstate",ls(n,a=>{if(a)return!t.confirm(a);{const s=e();return!t.confirm(s.value,{state:s.state})}})),create:Ds(r.preload,r.explicitLinks,r.actionBase,r.transformUrl),utils:{go:n=>window.history.go(n),beforeLeave:t}})(r)}var Ss=W("<a>");function Xe(r){r=pe({inactiveClass:"inactive",activeClass:"active"},r);const[,e]=Me(r,["href","state","class","activeClass","inactiveClass","end"]),t=gs(()=>r.href),n=bs(t),a=It(),s=D(()=>{const o=t();if(o===void 0)return[!1,!1];const i=De(o.split(/[?#]/,1)[0]).toLowerCase(),c=decodeURI(De(a.pathname).toLowerCase());return[r.end?i===c:c.startsWith(i+"/")||c===i,i===c]});return(()=>{var o=Ss();return Ne(o,pe(e,{get href(){return n()||r.href},get state(){return JSON.stringify(r.state)},get classList(){return{...r.class&&{[r.class]:!0},[r.inactiveClass]:!s()[0],[r.activeClass]:s()[0],...e.classList}},link:"",get"aria-current"(){return s()[1]?"page":void 0}}),!1,!1),o})()}const lr=Symbol("store-raw"),Oe=Symbol("store-node"),xe=Symbol("store-has"),Fn=Symbol("store-self");function Zn(r){let e=r[ge];if(!e&&(Object.defineProperty(r,ge,{value:e=new Proxy(r,Zs)}),!Array.isArray(r))){const t=Object.keys(r),n=Object.getOwnPropertyDescriptors(r);for(let a=0,s=t.length;a<s;a++){const o=t[a];n[o].get&&Object.defineProperty(r,o,{enumerable:n[o].enumerable,get:n[o].get.bind(e)})}}return e}function wt(r){let e;return r!=null&&typeof r=="object"&&(r[ge]||!(e=Object.getPrototypeOf(r))||e===Object.prototype||Array.isArray(r))}function rt(r,e=new Set){let t,n,a,s;if(t=r!=null&&r[lr])return t;if(!wt(r)||e.has(r))return r;if(Array.isArray(r)){Object.isFrozen(r)?r=r.slice(0):e.add(r);for(let o=0,i=r.length;o<i;o++)a=r[o],(n=rt(a,e))!==a&&(r[o]=n)}else{Object.isFrozen(r)?r=Object.assign({},r):e.add(r);const o=Object.keys(r),i=Object.getOwnPropertyDescriptors(r);for(let c=0,f=o.length;c<f;c++)s=o[c],!i[s].get&&(a=r[s],(n=rt(a,e))!==a&&(r[s]=n))}return r}function vt(r,e){let t=r[e];return t||Object.defineProperty(r,e,{value:t=Object.create(null)}),t}function nt(r,e,t){if(r[e])return r[e];const[n,a]=U(t,{equals:!1,internal:!0});return n.$=a,r[e]=n}function Ps(r,e){const t=Reflect.getOwnPropertyDescriptor(r,e);return!t||t.get||!t.configurable||e===ge||e===Oe||(delete t.value,delete t.writable,t.get=()=>r[ge][e]),t}function Bn(r){nr()&&nt(vt(r,Oe),Fn)()}function Fs(r){return Bn(r),Reflect.ownKeys(r)}const Zs={get(r,e,t){if(e===lr)return r;if(e===ge)return t;if(e===rr)return Bn(r),t;const n=vt(r,Oe),a=n[e];let s=a?a():r[e];if(e===Oe||e===xe||e==="__proto__")return s;if(!a){const o=Object.getOwnPropertyDescriptor(r,e);nr()&&(typeof s!="function"||r.hasOwnProperty(e))&&!(o&&o.get)&&(s=nt(n,e,s)())}return wt(s)?Zn(s):s},has(r,e){return e===lr||e===ge||e===rr||e===Oe||e===xe||e==="__proto__"?!0:(nr()&&nt(vt(r,xe),e)(),e in r)},set(){return!0},deleteProperty(){return!0},ownKeys:Fs,getOwnPropertyDescriptor:Ps};function xt(r,e,t,n=!1){if(!n&&r[e]===t)return;const a=r[e],s=r.length;t===void 0?(delete r[e],r[xe]&&r[xe][e]&&a!==void 0&&r[xe][e].$()):(r[e]=t,r[xe]&&r[xe][e]&&a===void 0&&r[xe][e].$());let o=vt(r,Oe),i;if((i=nt(o,e,a))&&i.$(()=>t),Array.isArray(r)&&r.length!==s){for(let c=r.length;c<s;c++)(i=o[c])&&i.$();(i=nt(o,"length",s))&&i.$(r.length)}(i=o[Fn])&&i.$()}function On(r,e){const t=Object.keys(e);for(let n=0;n<t.length;n+=1){const a=t[n];xt(r,a,e[a])}}function Bs(r,e){if(typeof e=="function"&&(e=e(r)),e=rt(e),Array.isArray(e)){if(r===e)return;let t=0,n=e.length;for(;t<n;t++){const a=e[t];r[t]!==a&&xt(r,t,a)}xt(r,"length",n)}else On(r,e)}function Ke(r,e,t=[]){let n,a=r;if(e.length>1){n=e.shift();const o=typeof n,i=Array.isArray(r);if(Array.isArray(n)){for(let c=0;c<n.length;c++)Ke(r,[n[c]].concat(e),t);return}else if(i&&o==="function"){for(let c=0;c<r.length;c++)n(r[c],c)&&Ke(r,[c].concat(e),t);return}else if(i&&o==="object"){const{from:c=0,to:f=r.length-1,by:y=1}=n;for(let u=c;u<=f;u+=y)Ke(r,[u].concat(e),t);return}else if(e.length>1){Ke(r[n],e,[n].concat(t));return}a=r[n],t=[n].concat(t)}let s=e[0];typeof s=="function"&&(s=s(a,t),s===a)||n===void 0&&s==null||(s=rt(s),n===void 0||wt(a)&&wt(s)&&!Array.isArray(s)?On(a,s):xt(r,n,s))}function Os(...[r,e]){const t=rt(r||{}),n=Array.isArray(t),a=Zn(t);function s(...o){vn(()=>{n&&o.length===1?Bs(t,o[0]):Ke(t,o)})}return[a,s]}function Ve(r,e,t){return Math.max(e,Math.min(t,r))}function Rs(r){return(r%360+360)%360}function at(r){const e=r.replace("#",""),t=e.length===3||e.length===4?e.split("").map(s=>s+s).join(""):e,n=t.length===8?t.slice(0,6):t,a=parseInt(n,16);return{r:(a>>16&255)/255,g:(a>>8&255)/255,b:(a&255)/255}}function Rn(r,e,t){const n=a=>{const s=Ve(a,0,1);return Math.round(s*255).toString(16).padStart(2,"0")};return`#${n(r)}${n(e)}${n(t)}`}function Nt(r){return r<=.0031308?r*12.92:1.055*Math.pow(r,1/2.4)-.055}function Ut(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function zs(r,e,t){const n=Ut(r),a=Ut(e),s=Ut(t),o=.4122214708*n+.5363325363*a+.0514459929*s,i=.2119034982*n+.6806995451*a+.1073969566*s,c=.0883024619*n+.2817188376*a+.6299787005*s,f=Math.cbrt(o),y=Math.cbrt(i),u=Math.cbrt(c),p=.2104542553*f+.793617785*y-.0040720468*u,g=1.9779984951*f-2.428592205*y+.4505937099*u,m=.0259040371*f+.7827717662*y-.808675766*u,h=Math.sqrt(g*g+m*m);let w=Math.atan2(m,g)*(180/Math.PI);return w<0&&(w+=360),{l:p,c:h,h:w}}function dr(r){const{l:e,c:t,h:n}=r,a=t*Math.cos(n*Math.PI/180),s=t*Math.sin(n*Math.PI/180),o=e+.3963377774*a+.2158037573*s,i=e-.1055613458*a-.0638541728*s,c=e-.0894841775*a-1.291485548*s,f=o*o*o,y=i*i*i,u=c*c*c,p=4.0767416621*f-3.3077115913*y+.2309699292*u,g=-1.2684380046*f+2.6097574011*y-.3413193965*u,m=-.0041960863*f-.7034186147*y+1.707614701*u;return{r:Nt(p),g:Nt(g),b:Nt(m)}}function we(r){const{r:e,g:t,b:n}=at(r);return zs(e,t,n)}function Ns(r){const e={l:Ve(r.l,0,1),c:Math.max(0,r.c),h:Rs(r.h)},t=dr(e);if(t.r>=0&&t.r<=1&&t.g>=0&&t.g<=1&&t.b>=0&&t.b<=1)return e;let n=e.c;for(let a=0;a<24;a++){n*=.9;const s={...e,c:n},o=dr(s);if(o.r>=0&&o.r<=1&&o.g>=0&&o.g<=1&&o.b>=0&&o.b<=1)return s}return{...e,c:0}}function Re(r){const{r:e,g:t,b:n}=dr(Ns(r));return Rn(e,t,n)}function me(r,e){const t=we(r),n=[],a=e?[.118,.138,.167,.202,.246,.304,.378,.468,Ve(t.l*.825,.53,.705),Ve(t.l*.89,.61,.79),Ve(t.l+.033,.868,.943),.984]:[.993,.983,.962,.936,.906,.866,.811,.74,t.l,Math.max(0,t.l-.036),.49,.27],s=e?[.52,.68,.86,1.02,1.14,1.24,1.36,1.48,1.56,1.64,1.62,1.15]:[.12,.24,.46,.68,.84,.98,1.08,1.16,1.22,1.26,1.18,.98];for(let o=0;o<12;o++)n.push(Re({l:a[o],c:t.c*s[o],h:t.h}));return n}function Us(r,e,t){if(t){const i=we(r),c=p=>Re({l:i.l+(1-i.l)*p,c:i.c*Math.max(0,1-p),h:i.h}),y=e?(p=>Re({l:i.l*(1-p),c:i.c*Math.max(0,1-p*(e?.12:.3)),h:i.h}))(Ve(.19+Math.max(0,i.l-.12)*.33+i.c*1.95,.17,.27)):i.l<.82?c(.86):c(Ve(.1+i.c*3.2+Math.max(0,.95-i.l)*.35,.1,.28));return(e?[0,.018,.039,.064,.097,.143,.212,.31,.46,.649,.845,.984]:[0,.022,.042,.068,.102,.146,.208,.296,.432,.61,.81,.965]).map(p=>Ws(y,t,p))}const n=we(r),a=[],s=Math.min(n.c,e?.068:.04),o=e?[.138,.156,.178,.202,.232,.272,.326,.404,Ve(n.l*.83,.43,.55),.596,.719,.956]:[.991,.979,.964,.946,.931,.913,.891,.83,n.l,.617,.542,.205];for(let i=0;i<12;i++)a.push(Re({l:o[i],c:s,h:n.h}));return a}function Ws(r,e,t){const n=we(r),a=we(e),s=((a.h-n.h)%360+540)%360-180;return Re({l:n.l+(a.l-n.l)*t,c:n.c+(a.c-n.c)*t,h:n.h+s*t})}function de(r,e){const t=we(r);return Re({l:t.l+(e.l??0),c:t.c*(e.c??1),h:t.h+(e.h??0)})}function fr(r,e,t){const n=at(r),a=at(e);return Rn(n.r*t+a.r*(1-t),n.g*t+a.g*(1-t),n.b*t+a.b*(1-t))}function je(r,e){const{r:t,g:n,b:a}=at(r);return`rgba(${Math.round(t*255)}, ${Math.round(n*255)}, ${Math.round(a*255)}, ${e})`}function zn(r,e){const t=Js(r),{overrides:n={}}=r,a=Us(t.neutral,e,t.ink),s=me(t.primary,e),o=me(t.accent,e),i=me(t.success,e),c=me(t.warning,e),f=me(t.error,e),y=me(t.info,e),u=me(t.interactive,e),p=me(de(t.warning,e?{h:-16,l:-.058,c:1.14}:{h:-22,l:-.082,c:.94}),e),g=me(de(t.interactive,{h:-12,l:.128,c:1.12}),e),m=me(t.diffAdd??de(t.success,{c:e?.7:.55,l:e?-.18:.14}),e),h=me(t.diffDelete??de(t.error,{c:e?.82:.7,l:e?-.08:.08}),e),w=t.ink??t.neutral,H=t.compact?we(w):void 0,_=H?de(w,{l:e?Math.max(0,.88-H.l)*.4:-Math.max(0,H.l-.18)*.24,c:e?1.04:1.02}):void 0,A=n["background-base"],T=Gs(A),L=!!A&&!T,x=(K,Y)=>{const le=we(K),$e=e&&le.l>.84?de(K,{c:1.18}):Y[10];return de($e,{l:e?.034:-.024,c:e?1.3:1.18})},F=()=>{if(!t.compact)return e?"#ffba92":"#FF8C00";const K=we(t.warning).h,Y=we(t.diffDelete??t.error).h;return Math.abs(((Y-K)%360+540)%360-180)<48?e?"#ffba92":"#FF8C00":x(t.warning,c)},j=(K,Y)=>({base:S(K,Y.base),weak:S(K,Y.weak),weaker:S(K,Y.weaker),strong:S(K,Y.strong),stronger:S(K,Y.stronger)}),b=T??a[0],S=(K,Y)=>L?je(K,Y):fr(K,b,Y),v=(K,Y)=>S(w,e?Math.min(1,Y+.024+(t.compact?.08:0)):Math.min(1,K+.024)),M=j(e?de(t.interactive,{c:.55,l:0}):de(t.interactive,{c:.45,l:.08}),e?{base:.14,weak:.08,weaker:.18,strong:.26,stronger:.42}:{base:.12,weak:.08,weaker:.16,strong:.24,stronger:.36}),V=Ks(a,e),C=s[8],E=s[9],N=u[e?6:4],J=u[e?7:5],he=u[e?5:3],G=i[e?6:4],re=i[e?5:3],ae=i[10],ye=c[e?6:4],Ie=c[e?5:3],it=c[10],ct=f[e?6:4],ka=f[e?5:3],lt=f[10],dt=y[e?6:4],ga=y[e?5:3],ft=y[10],Ar=K=>{const Y=at(K),le=$e=>$e<=.04045?$e/12.92:Math.pow(($e+.055)/1.055,2.4);return .2126*le(Y.r)+.7152*le(Y.g)+.0722*le(Y.b)},Dr=(K,Y)=>{const le=Ar(K),$e=Ar(Y),ba=Math.max(le,$e),wa=Math.min(le,$e);return(ba+.05)/(wa+.05)},O=K=>{const Y="#ffffff",le="#000000";return Dr(Y,K)>Dr(le,K)?Y:le},l={};l["background-base"]=a[0],l["background-weak"]=a[2],l["background-strong"]=a[0],l["background-stronger"]=e?a[1]:"#fcfcfc",l["surface-base"]=V[1],l.base=V[1],l["surface-base-hover"]=V[2],l["surface-base-active"]=V[2],l["surface-base-interactive-active"]=je(u[2],.3),l.base2=V[1],l.base3=V[1],l["surface-inset-base"]=V[1],l["surface-inset-base-hover"]=V[2],l["surface-inset-strong"]=e?je(a[0],.5):je(a[3],.09),l["surface-inset-strong-hover"]=l["surface-inset-strong"],l["surface-raised-base"]=V[0],l["surface-float-base"]=e?a[1]:a[11],l["surface-float-base-hover"]=e?a[2]:a[10],l["surface-raised-base-hover"]=V[1],l["surface-raised-base-active"]=V[2],l["surface-raised-strong"]=e?V[3]:a[0],l["surface-raised-strong-hover"]=e?V[5]:"#ffffff",l["surface-raised-stronger"]=e?V[5]:"#ffffff",l["surface-raised-stronger-hover"]=e?V[6]:"#ffffff",l["surface-weak"]=V[2],l["surface-weaker"]=V[3],l["surface-strong"]=e?V[6]:"#ffffff",l["surface-raised-stronger-non-alpha"]=e?a[2]:"#ffffff",l["surface-brand-base"]=C,l["surface-brand-hover"]=E,l["surface-interactive-base"]=N,l["surface-interactive-hover"]=J,l["surface-interactive-weak"]=he,l["surface-interactive-weak-hover"]=N,l["surface-success-base"]=G,l["surface-success-weak"]=re,l["surface-success-strong"]=ae,l["surface-warning-base"]=ye,l["surface-warning-weak"]=Ie,l["surface-warning-strong"]=it,l["surface-critical-base"]=ct,l["surface-critical-weak"]=ka,l["surface-critical-strong"]=lt,l["surface-info-base"]=dt,l["surface-info-weak"]=ga,l["surface-info-strong"]=ft,l["surface-diff-unchanged-base"]=e?a[0]:"#ffffff00",l["surface-diff-skip-base"]=e?V[0]:a[1],l["surface-diff-hidden-base"]=M.base,l["surface-diff-hidden-weak"]=M.weak,l["surface-diff-hidden-weaker"]=M.weaker,l["surface-diff-hidden-strong"]=M.strong,l["surface-diff-hidden-stronger"]=M.stronger,l["surface-diff-add-base"]=m[2],l["surface-diff-add-weak"]=m[e?3:1],l["surface-diff-add-weaker"]=m[e?2:0],l["surface-diff-add-strong"]=m[4],l["surface-diff-add-stronger"]=m[e?10:8],l["surface-diff-delete-base"]=h[2],l["surface-diff-delete-weak"]=h[e?3:1],l["surface-diff-delete-weaker"]=h[e?2:0],l["surface-diff-delete-strong"]=h[e?4:5],l["surface-diff-delete-stronger"]=h[e?10:8],l["input-base"]=e?a[1]:a[0],l["input-hover"]=e?a[2]:a[1],l["input-active"]=e?u[6]:u[0],l["input-selected"]=e?u[7]:u[3],l["input-focus"]=e?u[6]:u[0],l["input-disabled"]=a[3],l["text-base"]=t.compact?_:a[10],l["text-weak"]=t.compact?de(_,{l:e?-.11:.11,c:.9}):a[8],l["text-weaker"]=t.compact?de(_,{l:e?-.2:.21,c:e?.78:.72}):a[7],l["text-strong"]=t.compact?e?fr("#ffffff",_,.9):de(_,{l:-.07,c:1.04}):a[11],l["text-invert-base"]=e?a[10]:a[1],l["text-invert-weak"]=e?a[8]:a[2],l["text-invert-weaker"]=e?a[7]:a[3],l["text-invert-strong"]=e?a[11]:a[0],l["text-interactive-base"]=u[e?10:9],l["text-on-brand-base"]=O(C),l["text-on-interactive-base"]=O(N),l["text-on-interactive-weak"]=O(N),l["text-on-success-base"]=O(G),l["text-on-critical-base"]=O(ct),l["text-on-critical-weak"]=O(ct),l["text-on-critical-strong"]=O(lt),l["text-on-warning-base"]=O(ye),l["text-on-info-base"]=O(dt),l["text-diff-add-base"]=m[10],l["text-diff-delete-base"]=h[9],l["text-diff-delete-strong"]=h[11],l["text-diff-add-strong"]=m[e?7:11],l["text-on-info-weak"]=O(dt),l["text-on-info-strong"]=O(ft),l["text-on-warning-weak"]=O(ye),l["text-on-warning-strong"]=O(it),l["text-on-success-weak"]=O(G),l["text-on-success-strong"]=O(ae),l["text-on-brand-weak"]=O(C),l["text-on-brand-weaker"]=O(C),l["text-on-brand-strong"]=O(E),l["button-primary-base"]=a[11],l["button-secondary-base"]=e?a[2]:a[0],l["button-secondary-hover"]=e?a[3]:a[1],l["button-ghost-hover"]=V[1],l["button-ghost-hover2"]=V[2],l["border-base"]=t.compact?v(.22,.16):V[6],l["border-hover"]=t.compact?v(.28,.2):V[7],l["border-active"]=t.compact?v(.34,.24):V[8],l["border-selected"]=je(u[8],e?.9:.99),l["border-disabled"]=t.compact?v(.18,.12):V[7],l["border-focus"]=t.compact?v(.34,.24):V[8],l["border-weak-base"]=t.compact?v(.1,.08):V[e?5:4],l["border-strong-base"]=t.compact?v(.34,.24):V[e?7:6],l["border-strong-hover"]=t.compact?v(.4,.28):V[7],l["border-strong-active"]=t.compact?v(.46,.32):V[e?7:6],l["border-strong-selected"]=je(u[5],.6),l["border-strong-disabled"]=t.compact?v(.14,.1):V[5],l["border-strong-focus"]=t.compact?v(.46,.32):V[e?7:6],l["border-weak-hover"]=t.compact?v(.16,.12):V[e?6:5],l["border-weak-active"]=t.compact?v(.22,.16):V[e?7:6],l["border-weak-selected"]=je(u[4],e?.6:.5),l["border-weak-disabled"]=t.compact?v(.08,.06):V[5],l["border-weak-focus"]=t.compact?v(.22,.16):V[e?7:6],l["border-weaker-base"]=t.compact?v(.06,.04):V[2],l["border-interactive-base"]=u[6],l["border-interactive-hover"]=u[7],l["border-interactive-active"]=u[8],l["border-interactive-selected"]=u[8],l["border-interactive-disabled"]=a[7],l["border-interactive-focus"]=u[8],l["border-success-base"]=i[6],l["border-success-hover"]=i[7],l["border-success-selected"]=i[8],l["border-warning-base"]=c[6],l["border-warning-hover"]=c[7],l["border-warning-selected"]=c[8],l["border-critical-base"]=f[6],l["border-critical-hover"]=f[7],l["border-critical-selected"]=f[8],l["border-info-base"]=y[6],l["border-info-hover"]=y[7],l["border-info-selected"]=y[8],l["border-color"]="#ffffff",l["icon-base"]=t.compact&&!e?l["text-weak"]:a[e?9:8],l["icon-hover"]=t.compact&&!e?l["text-base"]:a[10],l["icon-active"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-selected"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-disabled"]=a[e?6:7],l["icon-focus"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-invert-base"]=e?a[0]:"#ffffff",l["icon-weak-base"]=a[e?5:6],l["icon-weak-hover"]=a[e?11:7],l["icon-weak-active"]=a[8],l["icon-weak-selected"]=a[e?8:9],l["icon-weak-disabled"]=a[e?3:5],l["icon-weak-focus"]=a[8],l["icon-strong-base"]=a[11],l["icon-strong-hover"]=e?"#f6f3f3":"#151313",l["icon-strong-active"]=e?"#fcfcfc":"#020202",l["icon-strong-selected"]=e?"#fdfcfc":"#020202",l["icon-strong-disabled"]=a[7],l["icon-strong-focus"]=e?"#fdfcfc":"#020202",l["icon-brand-base"]=e?"#ffffff":a[11],l["icon-interactive-base"]=u[8],l["icon-success-base"]=i[e?8:6],l["icon-success-hover"]=i[9],l["icon-success-active"]=i[10],l["icon-warning-base"]=p[e?8:6],l["icon-warning-hover"]=p[9],l["icon-warning-active"]=p[10],l["icon-critical-base"]=f[e?8:9],l["icon-critical-hover"]=f[9],l["icon-critical-active"]=f[10],l["icon-info-base"]=y[e?8:6],l["icon-info-hover"]=y[e?9:7],l["icon-info-active"]=y[10],l["icon-on-brand-base"]=O(C),l["icon-on-brand-hover"]=O(E),l["icon-on-brand-selected"]=O(E),l["icon-on-interactive-base"]=O(N),l["icon-agent-plan-base"]=y[8],l["icon-agent-docs-base"]=p[8],l["icon-agent-ask-base"]=g[8],l["icon-agent-build-base"]=u[e?10:8],l["icon-on-success-base"]=O(G),l["icon-on-success-hover"]=O(ae),l["icon-on-success-selected"]=O(ae),l["icon-on-warning-base"]=O(ye),l["icon-on-warning-hover"]=O(it),l["icon-on-warning-selected"]=O(it),l["icon-on-critical-base"]=O(ct),l["icon-on-critical-hover"]=O(lt),l["icon-on-critical-selected"]=O(lt),l["icon-on-info-base"]=O(dt),l["icon-on-info-hover"]=O(ft),l["icon-on-info-selected"]=O(ft),l["icon-diff-add-base"]=m[10],l["icon-diff-add-hover"]=m[e?9:11],l["icon-diff-add-active"]=m[e?10:11],l["icon-diff-delete-base"]=h[9],l["icon-diff-delete-hover"]=h[10],l["icon-diff-modified-base"]=F(),t.compact&&(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=x(t.success,i),l["syntax-keyword"]=x(t.accent,o),l["syntax-primitive"]=x(t.primary,s),l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=x(t.info,y),l["syntax-type"]=x(t.warning,c),l["syntax-constant"]=x(t.accent,o),l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=x(t.info,y),l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=x(t.primary,s),l["markdown-text"]=l["text-base"],l["markdown-link"]=x(t.interactive,u),l["markdown-link-text"]=x(t.info,y),l["markdown-code"]=x(t.success,i),l["markdown-block-quote"]=x(t.warning,c),l["markdown-emph"]=x(t.warning,c),l["markdown-strong"]=x(t.accent,o),l["markdown-horizontal-rule"]=l["border-base"],l["markdown-list-item"]=x(t.interactive,u),l["markdown-list-enumeration"]=x(t.info,y),l["markdown-image"]=x(t.interactive,u),l["markdown-image-text"]=x(t.info,y),l["markdown-code-block"]=l["text-base"]),t.compact||(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=e?"#00ceb9":"#006656",l["syntax-keyword"]="var(--text-weak)",l["syntax-primitive"]=e?"#ffba92":"#fb4804",l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=e?"#ff9ae2":"#ed6dc8",l["syntax-type"]=e?"#ecf58c":"#596600",l["syntax-constant"]=e?"#93e9f6":"#007b80",l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=e?"#93e9f6":"#0092a8",l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=e?"#9d7cd8":"#d68c27",l["markdown-text"]=e?"#eeeeee":"#1a1a1a",l["markdown-link"]=e?"#fab283":"#3b7dd8",l["markdown-link-text"]=e?"#56b6c2":"#318795",l["markdown-code"]=e?"#7fd88f":"#3d9a57",l["markdown-block-quote"]=e?"#e5c07b":"#b0851f",l["markdown-emph"]=e?"#e5c07b":"#b0851f",l["markdown-strong"]=e?"#f5a742":"#d68c27",l["markdown-horizontal-rule"]=e?"#808080":"#8a8a8a",l["markdown-list-item"]=e?"#fab283":"#3b7dd8",l["markdown-list-enumeration"]=e?"#56b6c2":"#318795",l["markdown-image"]=e?"#fab283":"#3b7dd8",l["markdown-image-text"]=e?"#56b6c2":"#318795",l["markdown-code-block"]=e?"#eeeeee":"#1a1a1a"),l["avatar-background-pink"]=e?"#501b3f":"#feeef8",l["avatar-background-mint"]=e?"#033a34":"#e1fbf4",l["avatar-background-orange"]=e?"#5f2a06":"#fff1e7",l["avatar-background-purple"]=e?"#432155":"#f9f1fe",l["avatar-background-cyan"]=e?"#0f3058":"#e7f9fb",l["avatar-background-lime"]=e?"#2b3711":"#eefadc",l["avatar-text-pink"]=e?"#e34ba9":"#cd1d8d",l["avatar-text-mint"]=e?"#95f3d9":"#147d6f",l["avatar-text-orange"]=e?"#ff802b":"#ed5f00",l["avatar-text-purple"]=e?"#9d5bd2":"#8445bc",l["avatar-text-cyan"]=e?"#369eff":"#0894b3",l["avatar-text-lime"]=e?"#c4f042":"#5d770d";for(const[K,Y]of Object.entries(n))l[K]=Y;if(t.compact&&"text-weak"in n&&!("text-weaker"in n)){const K=l["text-weak"];K.startsWith("#")?l["text-weaker"]=de(K,{l:e?-.12:.12,c:.75}):l["text-weaker"]=K}return t.compact&&("markdown-text"in n||(l["markdown-text"]=l["text-base"]),"markdown-code-block"in n||(l["markdown-code-block"]=l["text-base"])),"text-stronger"in n||(l["text-stronger"]=l["text-strong"]),l}function Js(r){const e=r;if(e.palette&&e.seeds)throw new Error("Theme variant cannot define both `palette` and `seeds`");if(r.palette)return{compact:!0,neutral:r.palette.neutral,ink:r.palette.ink,primary:r.palette.primary,accent:r.palette.accent??r.palette.info,success:r.palette.success,warning:r.palette.warning,error:r.palette.error,info:r.palette.info,interactive:r.palette.interactive??r.palette.primary,diffAdd:r.palette.diffAdd,diffDelete:r.palette.diffDelete};if(r.seeds)return{compact:!1,neutral:r.seeds.neutral,ink:void 0,primary:r.seeds.primary,accent:r.seeds.info,success:r.seeds.success,warning:r.seeds.warning,error:r.seeds.error,info:r.seeds.info,interactive:r.seeds.interactive,diffAdd:r.seeds.diffAdd,diffDelete:r.seeds.diffDelete};throw new Error("Theme variant requires `palette` or `seeds`")}function Ks(r,e){return(e?[.038,.066,.1,.142,.19,.252,.334,.446,.58,.718,.854,.985]:[.03,.06,.1,.145,.2,.265,.35,.47,.61,.74,.86,.97]).map(n=>fr(r[11],r[0],n))}function Gs(r){if(r?.startsWith("#"))return r}function Nn(r){return Object.entries(r).map(([e,t])=>`--${e}: ${t};`).join(`
|
|
3
|
+
`)}const Ys="https://opencode.ai/desktop-theme.json",Xs="OC-2",Qs="oc-2",eo={palette:{neutral:"#f7f7f7",ink:"#171311",primary:"#dcde8d",success:"#12c905",warning:"#ffdc17",error:"#fc533a",info:"#a753ae",interactive:"#034cff",diffAdd:"#9ff29a",diffDelete:"#fc533a"},overrides:{"text-strong":"#171717","text-base":"#6F6F6F","text-weak":"#8F8F8F","text-weaker":"#C7C7C7","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#DBDBDB","border-weaker-base":"#E8E8E8","icon-base":"#8F8F8F","icon-weak-base":"C7C7C7","surface-raised-base":"#F3F3F3","surface-raised-base-hover":"#EDEDED","surface-base":"#F8F8F8","surface-base-hover":"#0000000A","surface-interactive-weak":"#F5FAFF","icon-success-base":"#0ABE00","surface-success-base":"#E6FFE5","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-800)","syntax-string":"var(--v2-green-800)","syntax-primitive":"var(--v2-pink-800)","syntax-property":"var(--v2-orange-800)","syntax-type":"var(--v2-purple-800)","syntax-constant":"#007b80","syntax-critical":"var(--v2-red-800)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#a753ae","surface-critical-base":"#FFF2F0"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-50)","v2-background-bg-deep":"var(--v2-grey-100)","v2-background-bg-layer-01":"var(--v2-grey-100)","v2-background-bg-layer-02":"var(--v2-grey-200)","v2-background-bg-layer-03":"var(--v2-grey-300)","v2-background-bg-layer-04":"var(--v2-grey-400)","v2-background-bg-inverse":"var(--v2-grey-1100)","v2-background-bg-contrast":"var(--v2-grey-1000)","v2-background-bg-button-neutral":"var(--v2-grey-50)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-1100)","v2-text-text-muted":"var(--v2-grey-700)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-50)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-600)","v2-text-text-accent-hover":"var(--v2-blue-700)","v2-text-text-code-accent":"var(--v2-blue-900)","v2-icon-icon-base":"var(--v2-grey-800)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-50)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-600)","v2-icon-icon-accent-hover":"var(--v2-blue-700)","v2-border-border-muted":"var(--v2-alpha-dark-8)","v2-border-border-base":"var(--v2-alpha-dark-10)","v2-border-border-strong":"var(--v2-alpha-dark-20)","v2-border-border-inverse":"var(--v2-grey-1000)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-dark-4)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-dark-8)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-light-12)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-light-24)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-40)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#fafafa00","v2-overlay-simple-tab-hover-scrim":"#eeeeee00","v2-overlay-simple-tab-scrim":"#fafafa00","v2-state-bg-success":"var(--v2-green-100)","v2-state-fg-success":"var(--v2-green-800)","v2-state-border-success":"var(--v2-green-300)","v2-state-bg-warning":"var(--v2-yellow-100)","v2-state-fg-warning":"var(--v2-yellow-800)","v2-state-border-warning":"var(--v2-yellow-300)","v2-state-bg-danger":"var(--v2-red-100)","v2-state-fg-danger":"var(--v2-red-800)","v2-state-border-danger":"var(--v2-red-300)","v2-state-bg-info":"var(--v2-blue-100)","v2-state-fg-info":"var(--v2-blue-800)","v2-state-border-info":"var(--v2-blue-300)","v2-avatar-bg-orange":"#ee7330ff","v2-avatar-border-orange":"#d16427ff","v2-avatar-bg-yellow":"#e7af36ff","v2-avatar-border-yellow":"#cb9f34ff","v2-avatar-bg-cyan":"#0096b8ff","v2-avatar-border-cyan":"#007d9bff","v2-avatar-bg-green":"#2eaf5aff","v2-avatar-border-green":"#198b43ff","v2-avatar-bg-red":"#d92e3cff","v2-avatar-border-red":"#b82d35ff","v2-avatar-bg-pink":"#e4429eff","v2-avatar-border-pink":"#c83d8bff","v2-avatar-bg-blue":"#3250dfff","v2-avatar-border-blue":"#2c47c8ff","v2-avatar-bg-purple":"#623be2ff","v2-avatar-border-purple":"#5230c2ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#3a3a3aff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-neutral":"0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-contrast":"0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)","v2-elevation-switch-on":"inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)","v2-illustration-illustration-layer-01":"var(--v2-grey-300)","v2-illustration-illustration-layer-02":"var(--v2-grey-400)","v2-illustration-illustration-layer-03":"var(--v2-grey-500)"}},to={palette:{neutral:"#1f1f1f",ink:"#f1ece8",primary:"#fab283",success:"#12c905",warning:"#fcd53a",error:"#fc533a",info:"#edb2f1",interactive:"#034cff",diffAdd:"#c8ffc4",diffDelete:"#fc533a"},overrides:{"text-strong":"#EDEDED","text-base":"#A0A0A0","text-weak":"#707070","text-weaker":"#505050","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#282828","border-weaker-base":"#232323","icon-base":"#7E7E7E","icon-weak-base":"#343434","surface-raised-base":"#232323","surface-raised-base-hover":"#282828","surface-base":"#1C1C1C","surface-base-hover":"#FFFFFF0D","surface-interactive-weak":"#0D172B","surface-success-base":"#022B00","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-400)","syntax-string":"var(--v2-green-400)","syntax-primitive":"var(--v2-pink-400)","syntax-property":"var(--v2-orange-400)","syntax-type":"var(--v2-purple-400)","syntax-constant":"#93e9f6","syntax-critical":"var(--v2-red-400)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#edb2f1","surface-critical-base":"#1F0603"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-1100)","v2-background-bg-deep":"var(--v2-grey-1200)","v2-background-bg-layer-01":"var(--v2-grey-1000)","v2-background-bg-layer-02":"var(--v2-grey-900)","v2-background-bg-layer-03":"var(--v2-grey-800)","v2-background-bg-layer-04":"var(--v2-grey-700)","v2-background-bg-inverse":"var(--v2-grey-50)","v2-background-bg-contrast":"var(--v2-grey-700)","v2-background-bg-button-neutral":"var(--v2-alpha-light-6)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-100)","v2-text-text-muted":"var(--v2-grey-500)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-1100)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-400)","v2-text-text-accent-hover":"var(--v2-blue-300)","v2-text-text-code-accent":"var(--v2-blue-400)","v2-icon-icon-base":"var(--v2-grey-400)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-1100)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-400)","v2-icon-icon-accent-hover":"var(--v2-blue-300)","v2-border-border-muted":"var(--v2-alpha-light-8)","v2-border-border-base":"var(--v2-alpha-light-10)","v2-border-border-strong":"var(--v2-alpha-light-20)","v2-border-border-inverse":"var(--v2-grey-100)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-light-6)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-light-10)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-dark-24)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-dark-40)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-60)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#24242400","v2-overlay-simple-tab-hover-scrim":"#3a3a3a00","v2-overlay-simple-tab-scrim":"#08080800","v2-state-bg-success":"var(--v2-green-1200)","v2-state-fg-success":"var(--v2-green-500)","v2-state-border-success":"var(--v2-green-900)","v2-state-bg-warning":"var(--v2-yellow-1200)","v2-state-fg-warning":"var(--v2-yellow-500)","v2-state-border-warning":"var(--v2-yellow-900)","v2-state-bg-danger":"var(--v2-red-1200)","v2-state-fg-danger":"var(--v2-red-500)","v2-state-border-danger":"var(--v2-red-900)","v2-state-bg-info":"var(--v2-blue-1200)","v2-state-fg-info":"var(--v2-blue-500)","v2-state-border-info":"var(--v2-blue-900)","v2-avatar-bg-orange":"#723d22ff","v2-avatar-border-orange":"#ff8648ff","v2-avatar-bg-yellow":"#68552bff","v2-avatar-border-yellow":"#e7af36ff","v2-avatar-bg-cyan":"#005a6eff","v2-avatar-border-cyan":"#0096b8ff","v2-avatar-bg-green":"#196130ff","v2-avatar-border-green":"#49c970ff","v2-avatar-bg-red":"#7a1f23ff","v2-avatar-border-red":"#d92e3cff","v2-avatar-bg-pink":"#8c2d61ff","v2-avatar-border-pink":"#e4429eff","v2-avatar-bg-blue":"#263fa9ff","v2-avatar-border-blue":"#7698fdff","v2-avatar-bg-purple":"#361f83ff","v2-avatar-border-purple":"#7152f4ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#aeaeaeff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-button-neutral":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)","v2-elevation-button-contrast":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-elevation-switch-on":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-illustration-illustration-layer-01":"var(--v2-grey-900)","v2-illustration-illustration-layer-02":"var(--v2-grey-800)","v2-illustration-illustration-layer-03":"var(--v2-grey-700)"}},ro={$schema:Ys,name:Xs,id:Qs,light:eo,dark:to},no="https://opencode.ai/desktop-theme.json",ao="AMOLED",so="amoled",oo={palette:{neutral:"#f0f0f0",ink:"#0a0a0a",primary:"#6200ff",accent:"#ff0080",success:"#00e676",warning:"#ffab00",error:"#ff1744",info:"#00b0ff",diffAdd:"#00e676",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#757575","syntax-keyword":"#d500f9","syntax-string":"#00e676","syntax-primitive":"#00b0ff","syntax-property":"#ff9100","syntax-constant":"#6200ff"}},io={palette:{neutral:"#000000",ink:"#ffffff",primary:"#b388ff",accent:"#ff4081",success:"#00ff88",warning:"#ffea00",error:"#ff1744",info:"#18ffff",diffAdd:"#00ff88",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#555555","syntax-keyword":"#ff00ff","syntax-string":"#00ff88","syntax-primitive":"#18ffff","syntax-property":"#ffea00","syntax-constant":"#b388ff"}},co={$schema:no,name:ao,id:so,light:oo,dark:io},lo="https://opencode.ai/desktop-theme.json",fo="Aura",uo="aura",yo={palette:{neutral:"#f5f0ff",ink:"#2d2640",primary:"#a277ff",accent:"#d94f4f",success:"#40bf7a",warning:"#d9a24a",error:"#d94f4f",info:"#5bb8d9",diffAdd:"#b3e6cc",diffDelete:"#f5b3b3"},overrides:{"syntax-comment":"#8d88a3","syntax-keyword":"#7b5ae0","syntax-string":"#2b8a57","syntax-primitive":"#2f78b8","syntax-property":"#a96a22","syntax-type":"#2b8a57","syntax-constant":"#d94f4f"}},po={palette:{neutral:"#15141b",ink:"#edecee",primary:"#a277ff",accent:"#ff6767",success:"#61ffca",warning:"#ffca85",error:"#ff6767",info:"#82e2ff",diffAdd:"#61ffca",diffDelete:"#ff6767"},overrides:{"syntax-comment":"#6d6a7e","syntax-keyword":"#a277ff","syntax-string":"#61ffca","syntax-primitive":"#82e2ff","syntax-property":"#ffca85","syntax-type":"#61ffca","syntax-constant":"#ff6767"}},ho={$schema:lo,name:fo,id:uo,light:yo,dark:po},mo="https://opencode.ai/desktop-theme.json",ko="Ayu",go="ayu",bo={palette:{neutral:"#fdfaf4",ink:"#4f5964",primary:"#4aa8c8",accent:"#ef7d71",success:"#5fb978",warning:"#ea9f41",error:"#e6656a",info:"#2f9bce",diffAdd:"#b1d780",diffDelete:"#e6656a"},overrides:{"syntax-comment":"#6e7681","syntax-keyword":"#c76a1a","syntax-string":"#6f8f00","syntax-primitive":"#b87500","syntax-property":"#2f86b7","syntax-type":"#227fc0","syntax-constant":"#a37acc"}},wo={palette:{neutral:"#0f1419",ink:"#d6dae0",primary:"#3fb7e3",accent:"#f2856f",success:"#78d05c",warning:"#e4a75c",error:"#f58572",info:"#66c6f1",diffAdd:"#59c57c",diffDelete:"#f58572"},overrides:{"syntax-comment":"#5a6673","syntax-keyword":"#ff8f40","syntax-string":"#aad94c","syntax-primitive":"#ffb454","syntax-property":"#39bae6","syntax-type":"#59c2ff","syntax-constant":"#d2a6ff"}},vo={$schema:mo,name:ko,id:go,light:bo,dark:wo},xo="https://opencode.ai/desktop-theme.json",Co="Carbonfox",qo="carbonfox",Lo={palette:{neutral:"#8e8e8e",ink:"#161616",primary:"#0072c3",accent:"#da1e28",success:"#198038",warning:"#f1c21b",error:"#da1e28",info:"#0043ce",interactive:"#0f62fe",diffAdd:"#198038",diffDelete:"#da1e28"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#8a3ffc","syntax-string":"#198038","syntax-primitive":"#0f62fe","syntax-property":"#0043ce","syntax-type":"#8a5f00","syntax-constant":"#da1e28"}},Mo={palette:{neutral:"#393939",ink:"#f2f4f8",primary:"#33b1ff",accent:"#ff8389",success:"#42be65",warning:"#f1c21b",error:"#ff8389",info:"#78a9ff",interactive:"#4589ff",diffAdd:"#42be65",diffDelete:"#ff8389"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#be95ff","syntax-string":"#42be65","syntax-primitive":"#33b1ff","syntax-property":"#78a9ff","syntax-type":"#f1c21b","syntax-constant":"#ff8389"}},$o={$schema:xo,name:Co,id:qo,light:Lo,dark:Mo},Ho="https://opencode.ai/desktop-theme.json",Vo="Catppuccin",_o="catppuccin",Io={palette:{neutral:"#f5e0dc",ink:"#4c4f69",primary:"#7287fd",accent:"#d20f39",success:"#40a02b",warning:"#df8e1d",error:"#d20f39",info:"#04a5e5",diffAdd:"#a6d189",diffDelete:"#e78284"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#8839ef","syntax-primitive":"#1e66f5","syntax-constant":"#ca6702"}},jo={palette:{neutral:"#1e1e2e",ink:"#cdd6f4",primary:"#b4befe",accent:"#f38ba8",success:"#a6d189",warning:"#f4b8e4",error:"#f38ba8",info:"#89dceb",diffAdd:"#94e2d5",diffDelete:"#f38ba8"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#cba6f7","syntax-primitive":"#89b4fa","syntax-constant":"#fab387"}},Eo={$schema:Ho,name:Vo,id:_o,light:Io,dark:jo},Ao="https://opencode.ai/desktop-theme.json",Do="Catppuccin Frappe",To="catppuccin-frappe",So={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Po={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Fo={$schema:Ao,name:Do,id:To,light:So,dark:Po},Zo="https://opencode.ai/desktop-theme.json",Bo="Catppuccin Macchiato",Oo="catppuccin-macchiato",Ro={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},zo={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},No={$schema:Zo,name:Bo,id:Oo,light:Ro,dark:zo},Uo="https://opencode.ai/desktop-theme.json",Wo="Cobalt2",Jo="cobalt2",Ko={palette:{neutral:"#ffffff",ink:"#193549",primary:"#0066cc",accent:"#00acc1",success:"#4caf50",warning:"#ff9800",error:"#e91e63",info:"#ff5722"},overrides:{"text-weak":"#5c6b7d","syntax-comment":"#5c6b7d","syntax-keyword":"#ff5722","syntax-string":"#4caf50","syntax-primitive":"#ff9800","syntax-variable":"#193549","syntax-property":"#00acc1","syntax-type":"#00acc1","syntax-constant":"#e91e63","syntax-operator":"#ff5722","syntax-punctuation":"#193549","syntax-object":"#193549","markdown-heading":"#ff9800","markdown-text":"#193549","markdown-link":"#0066cc","markdown-link-text":"#00acc1","markdown-code":"#4caf50","markdown-block-quote":"#5c6b7d","markdown-emph":"#ff5722","markdown-strong":"#e91e63","markdown-horizontal-rule":"#d3dae3","markdown-list-item":"#0066cc","markdown-list-enumeration":"#00acc1","markdown-image":"#0066cc","markdown-image-text":"#00acc1","markdown-code-block":"#193549"}},Go={palette:{neutral:"#193549",ink:"#ffffff",primary:"#0088ff",accent:"#2affdf",success:"#9eff80",warning:"#ffc600",error:"#ff0088",info:"#ff9d00",diffAdd:"#b9ff9f",diffDelete:"#ff5fb3"},overrides:{"text-weak":"#adb7c9","syntax-comment":"#0088ff","syntax-keyword":"#ff9d00","syntax-string":"#9eff80","syntax-primitive":"#ffc600","syntax-variable":"#ffffff","syntax-property":"#2affdf","syntax-type":"#2affdf","syntax-constant":"#ff628c","syntax-operator":"#ff9d00","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ffc600","markdown-text":"#ffffff","markdown-link":"#0088ff","markdown-link-text":"#2affdf","markdown-code":"#9eff80","markdown-block-quote":"#adb7c9","markdown-emph":"#ff9d00","markdown-strong":"#ff628c","markdown-horizontal-rule":"#2d5a7b","markdown-list-item":"#0088ff","markdown-list-enumeration":"#2affdf","markdown-image":"#0088ff","markdown-image-text":"#2affdf","markdown-code-block":"#ffffff"}},Yo={$schema:Uo,name:Wo,id:Jo,light:Ko,dark:Go},Xo="https://opencode.ai/desktop-theme.json",Qo="Cursor",ei="cursor",ti={palette:{neutral:"#fcfcfc",ink:"#141414",primary:"#6f9ba6",accent:"#6f9ba6",success:"#1f8a65",warning:"#db704b",error:"#cf2d56",info:"#3c7cab",interactive:"#206595",diffAdd:"#55a583",diffDelete:"#e75e78"},overrides:{"text-weak":"#141414ad","syntax-comment":"#141414ad","syntax-keyword":"#b3003f","syntax-string":"#9e94d5","syntax-primitive":"#db704b","syntax-variable":"#141414","syntax-property":"#141414ad","syntax-type":"#206595","syntax-constant":"#b8448b","syntax-operator":"#141414","syntax-punctuation":"#141414","syntax-object":"#141414","markdown-heading":"#206595","markdown-text":"#141414","markdown-link":"#206595","markdown-link-text":"#141414ad","markdown-code":"#1f8a65","markdown-block-quote":"#141414ad","markdown-emph":"#141414","markdown-strong":"#141414","markdown-horizontal-rule":"#141414ad","markdown-list-item":"#141414","markdown-list-enumeration":"#141414ad","markdown-image":"#206595","markdown-image-text":"#141414ad","markdown-code-block":"#141414"}},ri={palette:{neutral:"#181818",ink:"#e4e4e4",primary:"#88c0d0",accent:"#88c0d0",success:"#3fa266",warning:"#f1b467",error:"#e34671",info:"#81a1c1",interactive:"#82D2CE",diffAdd:"#70b489",diffDelete:"#fc6b83"},overrides:{"text-weak":"#e4e4e45e","syntax-comment":"#e4e4e45e","syntax-keyword":"#82D2CE","syntax-string":"#E394DC","syntax-primitive":"#EFB080","syntax-variable":"#e4e4e4","syntax-property":"#81a1c1","syntax-type":"#EFB080","syntax-constant":"#F8C762","syntax-operator":"#e4e4e4","syntax-punctuation":"#e4e4e4","syntax-object":"#e4e4e4","markdown-heading":"#AAA0FA","markdown-text":"#e4e4e4","markdown-link":"#82D2CE","markdown-link-text":"#81a1c1","markdown-code":"#E394DC","markdown-block-quote":"#e4e4e45e","markdown-emph":"#82D2CE","markdown-strong":"#F8C762","markdown-horizontal-rule":"#e4e4e45e","markdown-list-item":"#e4e4e4","markdown-list-enumeration":"#88c0d0","markdown-image":"#88c0d0","markdown-image-text":"#81a1c1","markdown-code-block":"#e4e4e4"}},ni={$schema:Xo,name:Qo,id:ei,light:ti,dark:ri},ai="https://opencode.ai/desktop-theme.json",si="Dracula",oi="dracula",ii={palette:{neutral:"#f8f8f2",ink:"#1f1f2f",primary:"#7c6bf5",accent:"#d16090",success:"#2fbf71",warning:"#f7a14d",error:"#d9536f",info:"#1d7fc5",diffAdd:"#9fe3b3",diffDelete:"#f8a1b8"},overrides:{"syntax-comment":"#7d7f97","syntax-keyword":"#d16090","syntax-string":"#596600","syntax-primitive":"#2f8f57","syntax-property":"#1d7fc5","syntax-constant":"#7c6bf5"}},ci={palette:{neutral:"#1d1e28",ink:"#f8f8f2",primary:"#bd93f9",accent:"#ff79c6",success:"#50fa7b",warning:"#ffb86c",error:"#ff5555",info:"#8be9fd",diffAdd:"#2fb27d",diffDelete:"#ff6b81"},overrides:{"syntax-comment":"#6272a4","syntax-keyword":"#ff79c6","syntax-string":"#f1fa8c","syntax-primitive":"#50fa7b","syntax-property":"#8be9fd","syntax-constant":"#bd93f9"}},li={$schema:ai,name:si,id:oi,light:ii,dark:ci},di="https://opencode.ai/desktop-theme.json",fi="Everforest",ui="everforest",yi={palette:{neutral:"#fdf6e3",ink:"#5c6a72",primary:"#8da101",accent:"#df69ba",success:"#8da101",warning:"#f57d26",error:"#f85552",info:"#35a77c",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#a6b0a0","syntax-comment":"#a6b0a0","syntax-keyword":"#df69ba","syntax-string":"#8da101","syntax-primitive":"#8da101","syntax-variable":"#f85552","syntax-property":"#35a77c","syntax-type":"#dfa000","syntax-constant":"#f57d26","syntax-operator":"#35a77c","syntax-punctuation":"#5c6a72","syntax-object":"#f85552","markdown-heading":"#df69ba","markdown-text":"#5c6a72","markdown-link":"#8da101","markdown-link-text":"#35a77c","markdown-code":"#8da101","markdown-block-quote":"#dfa000","markdown-emph":"#dfa000","markdown-strong":"#f57d26","markdown-horizontal-rule":"#a6b0a0","markdown-list-item":"#8da101","markdown-list-enumeration":"#35a77c","markdown-image":"#8da101","markdown-image-text":"#35a77c","markdown-code-block":"#5c6a72"}},pi={palette:{neutral:"#2d353b",ink:"#d3c6aa",primary:"#a7c080",accent:"#d699b6",success:"#a7c080",warning:"#e69875",error:"#e67e80",info:"#83c092",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#7a8478","syntax-comment":"#7a8478","syntax-keyword":"#d699b6","syntax-string":"#a7c080","syntax-primitive":"#a7c080","syntax-variable":"#e67e80","syntax-property":"#83c092","syntax-type":"#dbbc7f","syntax-constant":"#e69875","syntax-operator":"#83c092","syntax-punctuation":"#d3c6aa","syntax-object":"#e67e80","markdown-heading":"#d699b6","markdown-text":"#d3c6aa","markdown-link":"#a7c080","markdown-link-text":"#83c092","markdown-code":"#a7c080","markdown-block-quote":"#dbbc7f","markdown-emph":"#dbbc7f","markdown-strong":"#e69875","markdown-horizontal-rule":"#7a8478","markdown-list-item":"#a7c080","markdown-list-enumeration":"#83c092","markdown-image":"#a7c080","markdown-image-text":"#83c092","markdown-code-block":"#d3c6aa"}},hi={$schema:di,name:fi,id:ui,light:yi,dark:pi},mi="https://opencode.ai/desktop-theme.json",ki="Flexoki",gi="flexoki",bi={palette:{neutral:"#FFFCF0",ink:"#100F0F",primary:"#205EA6",accent:"#BC5215",success:"#66800B",warning:"#BC5215",error:"#AF3029",info:"#24837B"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#66800B","syntax-string":"#24837B","syntax-primitive":"#BC5215","syntax-variable":"#205EA6","syntax-property":"#24837B","syntax-type":"#AD8301","syntax-constant":"#5E409D","syntax-operator":"#6F6E69","syntax-punctuation":"#6F6E69","syntax-object":"#205EA6","markdown-heading":"#5E409D","markdown-text":"#100F0F","markdown-link":"#205EA6","markdown-link-text":"#24837B","markdown-code":"#24837B","markdown-block-quote":"#AD8301","markdown-emph":"#AD8301","markdown-strong":"#BC5215","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#BC5215","markdown-list-enumeration":"#24837B","markdown-image":"#A02F6F","markdown-image-text":"#24837B","markdown-code-block":"#100F0F"}},wi={palette:{neutral:"#100F0F",ink:"#CECDC3",primary:"#DA702C",accent:"#8B7EC8",success:"#879A39",warning:"#DA702C",error:"#D14D41",info:"#3AA99F",interactive:"#4385BE"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#879A39","syntax-string":"#3AA99F","syntax-primitive":"#DA702C","syntax-variable":"#4385BE","syntax-property":"#3AA99F","syntax-type":"#D0A215","syntax-constant":"#8B7EC8","syntax-operator":"#B7B5AC","syntax-punctuation":"#B7B5AC","syntax-object":"#4385BE","markdown-heading":"#8B7EC8","markdown-text":"#CECDC3","markdown-link":"#4385BE","markdown-link-text":"#3AA99F","markdown-code":"#3AA99F","markdown-block-quote":"#D0A215","markdown-emph":"#D0A215","markdown-strong":"#DA702C","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#DA702C","markdown-list-enumeration":"#3AA99F","markdown-image":"#CE5D97","markdown-image-text":"#3AA99F","markdown-code-block":"#CECDC3"}},vi={$schema:mi,name:ki,id:gi,light:bi,dark:wi},xi="https://opencode.ai/desktop-theme.json",Ci="GitHub",qi="github",Li={palette:{neutral:"#ffffff",ink:"#24292f",primary:"#0969da",accent:"#1b7c83",success:"#1a7f37",warning:"#9a6700",error:"#cf222e",info:"#bc4c00"},overrides:{"text-weak":"#57606a","syntax-comment":"#57606a","syntax-keyword":"#cf222e","syntax-string":"#0969da","syntax-primitive":"#8250df","syntax-variable":"#bc4c00","syntax-property":"#1b7c83","syntax-type":"#bc4c00","syntax-constant":"#1b7c83","syntax-operator":"#cf222e","syntax-punctuation":"#24292f","syntax-object":"#bc4c00","markdown-heading":"#0969da","markdown-text":"#24292f","markdown-link":"#0969da","markdown-link-text":"#1b7c83","markdown-code":"#bf3989","markdown-block-quote":"#57606a","markdown-emph":"#9a6700","markdown-strong":"#bc4c00","markdown-horizontal-rule":"#d0d7de","markdown-list-item":"#0969da","markdown-list-enumeration":"#1b7c83","markdown-image":"#0969da","markdown-image-text":"#1b7c83","markdown-code-block":"#24292f"}},Mi={palette:{neutral:"#0d1117",ink:"#c9d1d9",primary:"#58a6ff",accent:"#39c5cf",success:"#3fb950",warning:"#e3b341",error:"#f85149",info:"#d29922"},overrides:{"text-weak":"#8b949e","syntax-comment":"#8b949e","syntax-keyword":"#ff7b72","syntax-string":"#39c5cf","syntax-primitive":"#bc8cff","syntax-variable":"#d29922","syntax-property":"#39c5cf","syntax-type":"#d29922","syntax-constant":"#58a6ff","syntax-operator":"#ff7b72","syntax-punctuation":"#c9d1d9","syntax-object":"#d29922","markdown-heading":"#58a6ff","markdown-text":"#c9d1d9","markdown-link":"#58a6ff","markdown-link-text":"#39c5cf","markdown-code":"#ff7b72","markdown-block-quote":"#8b949e","markdown-emph":"#e3b341","markdown-strong":"#d29922","markdown-horizontal-rule":"#30363d","markdown-list-item":"#58a6ff","markdown-list-enumeration":"#39c5cf","markdown-image":"#58a6ff","markdown-image-text":"#39c5cf","markdown-code-block":"#c9d1d9"}},$i={$schema:xi,name:Ci,id:qi,light:Li,dark:Mi},Hi="https://opencode.ai/desktop-theme.json",Vi="Gruvbox",_i="gruvbox",Ii={palette:{neutral:"#fbf1c7",ink:"#3c3836",primary:"#076678",accent:"#9d0006",success:"#79740e",warning:"#b57614",error:"#9d0006",info:"#8f3f71",diffAdd:"#79740e",diffDelete:"#9d0006"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#9d0006","syntax-primitive":"#076678","syntax-constant":"#8f3f71"}},ji={palette:{neutral:"#282828",ink:"#ebdbb2",primary:"#83a598",accent:"#fb4934",success:"#b8bb26",warning:"#fabd2f",error:"#fb4934",info:"#d3869b",diffAdd:"#b8bb26",diffDelete:"#fb4934"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#fb4934","syntax-primitive":"#83a598","syntax-constant":"#d3869b"}},Ei={$schema:Hi,name:Vi,id:_i,light:Ii,dark:ji},Ai="https://opencode.ai/desktop-theme.json",Di="Kanagawa",Ti="kanagawa",Si={palette:{neutral:"#F2E9DE",ink:"#54433A",primary:"#2D4F67",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#89AF5B",diffDelete:"#D61F1F"},overrides:{"text-weak":"#9E9389","syntax-comment":"#9E9389","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#2D4F67","syntax-variable":"#54433A","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#54433A","syntax-object":"#54433A","markdown-heading":"#957FB8","markdown-text":"#54433A","markdown-link":"#2D4F67","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#9E9389","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#9E9389","markdown-list-item":"#2D4F67","markdown-list-enumeration":"#76946A","markdown-image":"#2D4F67","markdown-image-text":"#76946A","markdown-code-block":"#54433A"}},Pi={palette:{neutral:"#1F1F28",ink:"#DCD7BA",primary:"#7E9CD8",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#A9D977",diffDelete:"#F24A4A"},overrides:{"text-weak":"#727169","syntax-comment":"#727169","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#7E9CD8","syntax-variable":"#DCD7BA","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#DCD7BA","syntax-object":"#DCD7BA","markdown-heading":"#957FB8","markdown-text":"#DCD7BA","markdown-link":"#7E9CD8","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#727169","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#727169","markdown-list-item":"#7E9CD8","markdown-list-enumeration":"#76946A","markdown-image":"#7E9CD8","markdown-image-text":"#76946A","markdown-code-block":"#DCD7BA"}},Fi={$schema:Ai,name:Di,id:Ti,light:Si,dark:Pi},Zi="https://opencode.ai/desktop-theme.json",Bi="Lucent Orng",Oi="lucent-orng",Ri={palette:{neutral:"#fff5f0",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zi={palette:{neutral:"#2a1a15",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Ni={$schema:Zi,name:Bi,id:Oi,light:Ri,dark:zi},Ui="https://opencode.ai/desktop-theme.json",Wi="Material",Ji="material",Ki={palette:{neutral:"#fafafa",ink:"#263238",primary:"#6182b8",accent:"#39adb5",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e",interactive:"#39adb5"},overrides:{"text-weak":"#90a4ae","syntax-comment":"#90a4ae","syntax-keyword":"#7c4dff","syntax-string":"#91b859","syntax-primitive":"#6182b8","syntax-variable":"#263238","syntax-property":"#7c4dff","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#39adb5","syntax-punctuation":"#263238","syntax-object":"#263238","markdown-heading":"#6182b8","markdown-text":"#263238","markdown-link":"#39adb5","markdown-link-text":"#7c4dff","markdown-code":"#91b859","markdown-block-quote":"#90a4ae","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#6182b8","markdown-list-enumeration":"#39adb5","markdown-image":"#39adb5","markdown-image-text":"#7c4dff","markdown-code-block":"#263238"}},Gi={palette:{neutral:"#263238",ink:"#eeffff",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#ffcb6b",interactive:"#89ddff"},overrides:{"text-weak":"#546e7a","syntax-comment":"#546e7a","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#eeffff","syntax-property":"#c792ea","syntax-type":"#ffcb6b","syntax-constant":"#ffcb6b","syntax-operator":"#89ddff","syntax-punctuation":"#eeffff","syntax-object":"#eeffff","markdown-heading":"#82aaff","markdown-text":"#eeffff","markdown-link":"#89ddff","markdown-link-text":"#c792ea","markdown-code":"#c3e88d","markdown-block-quote":"#546e7a","markdown-emph":"#ffcb6b","markdown-strong":"#ffcb6b","markdown-horizontal-rule":"#37474f","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#89ddff","markdown-image-text":"#c792ea","markdown-code-block":"#eeffff"}},Yi={$schema:Ui,name:Wi,id:Ji,light:Ki,dark:Gi},Xi="https://opencode.ai/desktop-theme.json",Qi="Matrix",ec="matrix",tc={palette:{neutral:"#eef3ea",ink:"#203022",primary:"#1cc24b",accent:"#c770ff",success:"#1cc24b",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#5dac7e",diffDelete:"#d53a3a"},overrides:{"text-weak":"#748476","syntax-comment":"#748476","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#203022","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#203022","syntax-object":"#203022","markdown-heading":"#24f6d9","markdown-text":"#203022","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#748476","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#748476","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#203022"},v2Overrides:{"v2-text-text-base":"#353535","v2-text-text-muted":"#748476","v2-text-text-faint":"#748476","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-600)","v2-text-text-accent-hover":"var(--v2-green-700)","v2-icon-icon-accent":"var(--v2-green-600)","v2-icon-icon-accent-hover":"var(--v2-green-700)","v2-border-border-focus":"var(--v2-green-500)"}},rc={palette:{neutral:"#0a0e0a",ink:"#62ff94",primary:"#2eff6a",accent:"#c770ff",success:"#62ff94",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#77ffaf",diffDelete:"#ff7171"},overrides:{"text-weak":"#8ca391","syntax-comment":"#8ca391","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#62ff94","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#62ff94","syntax-object":"#62ff94","markdown-heading":"#00efff","markdown-text":"#62ff94","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#8ca391","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#8ca391","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#62ff94"},v2Overrides:{"v2-text-text-base":"#ececec","v2-text-text-muted":"#8ca391","v2-text-text-faint":"#8ca391","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-400)","v2-text-text-accent-hover":"var(--v2-green-300)","v2-icon-icon-accent":"var(--v2-green-400)","v2-icon-icon-accent-hover":"var(--v2-green-300)","v2-border-border-focus":"var(--v2-green-500)"}},nc={$schema:Xi,name:Qi,id:ec,light:tc,dark:rc},ac="https://opencode.ai/desktop-theme.json",sc="Mercury",oc="mercury",ic={palette:{neutral:"#ffffff",ink:"#363644",primary:"#5266eb",accent:"#8da4f5",success:"#036e43",warning:"#a44200",error:"#b0175f",info:"#007f95",interactive:"#465bd1"},overrides:{"text-weak":"#70707d","syntax-comment":"#70707d","syntax-keyword":"#465bd1","syntax-string":"#036e43","syntax-primitive":"#5266eb","syntax-variable":"#007f95","syntax-property":"#5266eb","syntax-type":"#007f95","syntax-constant":"#a44200","syntax-operator":"#465bd1","syntax-punctuation":"#363644","syntax-object":"#007f95","markdown-heading":"#1e1e2a","markdown-text":"#363644","markdown-link":"#465bd1","markdown-link-text":"#5266eb","markdown-code":"#036e43","markdown-block-quote":"#70707d","markdown-emph":"#a44200","markdown-strong":"#1e1e2a","markdown-horizontal-rule":"#7073931a","markdown-list-item":"#1e1e2a","markdown-list-enumeration":"#5266eb","markdown-image":"#465bd1","markdown-image-text":"#5266eb","markdown-code-block":"#363644"}},cc={palette:{neutral:"#171721",ink:"#dddde5",primary:"#8da4f5",accent:"#8da4f5",success:"#77c599",warning:"#fc9b6f",error:"#fc92b4",info:"#77becf"},overrides:{"text-weak":"#9d9da8","syntax-comment":"#9d9da8","syntax-keyword":"#8da4f5","syntax-string":"#77c599","syntax-primitive":"#8da4f5","syntax-variable":"#77becf","syntax-property":"#a7b6f8","syntax-type":"#77becf","syntax-constant":"#fc9b6f","syntax-operator":"#8da4f5","syntax-punctuation":"#dddde5","syntax-object":"#77becf","markdown-heading":"#ffffff","markdown-text":"#dddde5","markdown-link":"#8da4f5","markdown-link-text":"#a7b6f8","markdown-code":"#77c599","markdown-block-quote":"#9d9da8","markdown-emph":"#fc9b6f","markdown-strong":"#f4f5f9","markdown-horizontal-rule":"#b4b7c81f","markdown-list-item":"#ffffff","markdown-list-enumeration":"#8da4f5","markdown-image":"#8da4f5","markdown-image-text":"#a7b6f8","markdown-code-block":"#dddde5"}},lc={$schema:ac,name:sc,id:oc,light:ic,dark:cc},dc="https://opencode.ai/desktop-theme.json",fc="Monokai",uc="monokai",yc={palette:{neutral:"#fdf8ec",ink:"#292318",primary:"#bf7bff",accent:"#d9487c",success:"#4fb54b",warning:"#f1a948",error:"#e54b4b",info:"#2d9ad7",diffAdd:"#bfe7a3",diffDelete:"#f6a3ae"},overrides:{"syntax-comment":"#8a816f","syntax-keyword":"#d9487c","syntax-string":"#8a6500","syntax-primitive":"#3c8d2f","syntax-property":"#1f88c8","syntax-constant":"#9b5fe0"}},pc={palette:{neutral:"#272822",ink:"#f8f8f2",primary:"#ae81ff",accent:"#f92672",success:"#a6e22e",warning:"#fd971f",error:"#f92672",info:"#66d9ef",diffAdd:"#4d7f2a",diffDelete:"#f4477c"},overrides:{"syntax-comment":"#75715e","syntax-keyword":"#f92672","syntax-string":"#e6db74","syntax-primitive":"#a6e22e","syntax-property":"#66d9ef","syntax-constant":"#ae81ff"}},hc={$schema:dc,name:fc,id:uc,light:yc,dark:pc},mc="https://opencode.ai/desktop-theme.json",kc="Night Owl",gc="nightowl",bc={palette:{neutral:"#f0f0f0",ink:"#403f53",primary:"#4876d6",accent:"#aa0982",success:"#2aa298",warning:"#c96765",error:"#de3d3b",info:"#4876d6",diffAdd:"#2aa298",diffDelete:"#de3d3b"},overrides:{"syntax-comment":"#7a8181","syntax-keyword":"#994cc3","syntax-primitive":"#4876d6","syntax-constant":"#c96765"}},wc={palette:{neutral:"#011627",ink:"#d6deeb",primary:"#82aaff",accent:"#f78c6c",success:"#c5e478",warning:"#ecc48d",error:"#ef5350",info:"#82aaff",diffAdd:"#c5e478",diffDelete:"#ef5350"},overrides:{"syntax-comment":"#637777","syntax-keyword":"#c792ea","syntax-string":"#ecc48d","syntax-primitive":"#82aaff","syntax-constant":"#f78c6c"}},vc={$schema:mc,name:kc,id:gc,light:bc,dark:wc},xc="https://opencode.ai/desktop-theme.json",Cc="Nord",qc="nord",Lc={palette:{neutral:"#eceff4",ink:"#2e3440",primary:"#5e81ac",accent:"#bf616a",success:"#8fbcbb",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#a3be8c",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#6b7282","syntax-keyword":"#5e81ac","syntax-string":"#6f8758","syntax-primitive":"#5e81ac","syntax-constant":"#8d6886"}},Mc={palette:{neutral:"#2e3440",ink:"#e5e9f0",primary:"#88c0d0",accent:"#d57780",success:"#a3be8c",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#81a1c1",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#616e88","syntax-keyword":"#81a1c1","syntax-primitive":"#88c0d0","syntax-constant":"#b48ead"}},$c={$schema:xc,name:Cc,id:qc,light:Lc,dark:Mc},Hc="https://opencode.ai/desktop-theme.json",Vc="One Dark",_c="one-dark",Ic={palette:{neutral:"#fafafa",ink:"#383a42",primary:"#4078f2",accent:"#0184bc",success:"#50a14f",warning:"#c18401",error:"#e45649",info:"#986801",diffAdd:"#489447",diffDelete:"#d65145"},overrides:{"text-weak":"#a0a1a7","syntax-comment":"#a0a1a7","syntax-keyword":"#a626a4","syntax-string":"#50a14f","syntax-primitive":"#4078f2","syntax-variable":"#e45649","syntax-property":"#0184bc","syntax-type":"#c18401","syntax-constant":"#986801","syntax-operator":"#0184bc","syntax-punctuation":"#383a42","syntax-object":"#e45649","markdown-heading":"#a626a4","markdown-text":"#383a42","markdown-link":"#4078f2","markdown-link-text":"#0184bc","markdown-code":"#50a14f","markdown-block-quote":"#a0a1a7","markdown-emph":"#c18401","markdown-strong":"#986801","markdown-horizontal-rule":"#a0a1a7","markdown-list-item":"#4078f2","markdown-list-enumeration":"#0184bc","markdown-image":"#4078f2","markdown-image-text":"#0184bc","markdown-code-block":"#383a42"}},jc={palette:{neutral:"#282c34",ink:"#abb2bf",primary:"#61afef",accent:"#56b6c2",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#d19a66",diffAdd:"#aad482",diffDelete:"#e8828b"},overrides:{"text-weak":"#5c6370","syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-string":"#98c379","syntax-primitive":"#61afef","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#d19a66","syntax-operator":"#56b6c2","syntax-punctuation":"#abb2bf","syntax-object":"#e06c75","markdown-heading":"#c678dd","markdown-text":"#abb2bf","markdown-link":"#61afef","markdown-link-text":"#56b6c2","markdown-code":"#98c379","markdown-block-quote":"#5c6370","markdown-emph":"#e5c07b","markdown-strong":"#d19a66","markdown-horizontal-rule":"#5c6370","markdown-list-item":"#61afef","markdown-list-enumeration":"#56b6c2","markdown-image":"#61afef","markdown-image-text":"#56b6c2","markdown-code-block":"#abb2bf"}},Ec={$schema:Hc,name:Vc,id:_c,light:Ic,dark:jc},Ac="https://opencode.ai/desktop-theme.json",Dc="One Dark Pro",Tc="onedarkpro",Sc={palette:{neutral:"#f5f6f8",ink:"#2b303b",primary:"#528bff",accent:"#d85462",success:"#4fa66d",warning:"#d19a66",error:"#e06c75",info:"#61afef",diffAdd:"#c2ebcf",diffDelete:"#f7c1c5"},overrides:{"syntax-comment":"#6a717d","syntax-keyword":"#a626a4","syntax-primitive":"#4078f2","syntax-constant":"#986801"}},Pc={palette:{neutral:"#1e222a",ink:"#abb2bf",primary:"#61afef",accent:"#e06c75",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#56b6c2",diffAdd:"#4b815a",diffDelete:"#b2555f"},overrides:{"syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-primitive":"#61afef","syntax-constant":"#d19a66"}},Fc={$schema:Ac,name:Dc,id:Tc,light:Sc,dark:Pc},Zc="https://opencode.ai/desktop-theme.json",Bc="OpenCode",Oc="opencode",Rc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#3b7dd8",accent:"#d68c27",success:"#3d9a57",warning:"#d68c27",error:"#d1383d",info:"#318795",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#d68c27","syntax-string":"#3d9a57","syntax-primitive":"#3b7dd8","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#d68c27","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#d68c27","markdown-text":"#1a1a1a","markdown-link":"#3b7dd8","markdown-link-text":"#318795","markdown-code":"#3d9a57","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#d68c27","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#3b7dd8","markdown-list-enumeration":"#318795","markdown-image":"#3b7dd8","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#fab283",accent:"#9d7cd8",success:"#7fd88f",warning:"#f5a742",error:"#e06c75",info:"#56b6c2",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#9d7cd8","syntax-string":"#7fd88f","syntax-primitive":"#fab283","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#f5a742","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#9d7cd8","markdown-text":"#eeeeee","markdown-link":"#fab283","markdown-link-text":"#56b6c2","markdown-code":"#7fd88f","markdown-block-quote":"#e5c07b","markdown-emph":"#e5c07b","markdown-strong":"#f5a742","markdown-horizontal-rule":"#808080","markdown-list-item":"#fab283","markdown-list-enumeration":"#56b6c2","markdown-image":"#fab283","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Nc={$schema:Zc,name:Bc,id:Oc,light:Rc,dark:zc},Uc="https://opencode.ai/desktop-theme.json",Wc="Orng",Jc="orng",Kc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},Gc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Yc={$schema:Uc,name:Wc,id:Jc,light:Kc,dark:Gc},Xc="https://opencode.ai/desktop-theme.json",Qc="Osaka Jade",el="osaka-jade",tl={palette:{neutral:"#F6F5DD",ink:"#111c18",primary:"#1faa90",accent:"#3d7a52",success:"#3d7a52",warning:"#b5a020",error:"#c7392d",info:"#1faa90"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#1faa90","syntax-string":"#3d7a52","syntax-primitive":"#3d7560","syntax-variable":"#111c18","syntax-property":"#3d7a52","syntax-type":"#3d7a52","syntax-constant":"#a8527a","syntax-operator":"#b5a020","syntax-punctuation":"#111c18","syntax-object":"#111c18","markdown-heading":"#1faa90","markdown-text":"#111c18","markdown-link":"#1faa90","markdown-link-text":"#3d7a52","markdown-code":"#3d7a52","markdown-block-quote":"#53685B","markdown-emph":"#a8527a","markdown-strong":"#111c18","markdown-horizontal-rule":"#53685B","markdown-list-item":"#1faa90","markdown-list-enumeration":"#1faa90","markdown-image":"#1faa90","markdown-image-text":"#3d7a52","markdown-code-block":"#111c18"}},rl={palette:{neutral:"#111c18",ink:"#C1C497",primary:"#2DD5B7",accent:"#549e6a",success:"#549e6a",warning:"#E5C736",error:"#FF5345",info:"#2DD5B7",interactive:"#8CD3CB",diffAdd:"#63b07a",diffDelete:"#db9f9c"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#2DD5B7","syntax-string":"#63b07a","syntax-primitive":"#509475","syntax-variable":"#C1C497","syntax-property":"#549e6a","syntax-type":"#549e6a","syntax-constant":"#D2689C","syntax-operator":"#459451","syntax-punctuation":"#C1C497","syntax-object":"#C1C497","markdown-heading":"#2DD5B7","markdown-text":"#C1C497","markdown-link":"#8CD3CB","markdown-link-text":"#549e6a","markdown-code":"#63b07a","markdown-block-quote":"#53685B","markdown-emph":"#D2689C","markdown-strong":"#C1C497","markdown-horizontal-rule":"#53685B","markdown-list-item":"#2DD5B7","markdown-list-enumeration":"#8CD3CB","markdown-image":"#8CD3CB","markdown-image-text":"#549e6a","markdown-code-block":"#C1C497"}},nl={$schema:Xc,name:Qc,id:el,light:tl,dark:rl},al="https://opencode.ai/desktop-theme.json",sl="Palenight",ol="palenight",il={palette:{neutral:"#fafafa",ink:"#292d3e",primary:"#4976eb",accent:"#00acc1",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e"},overrides:{"text-weak":"#8796b0","syntax-comment":"#8796b0","syntax-keyword":"#a854f2","syntax-string":"#91b859","syntax-primitive":"#4976eb","syntax-variable":"#292d3e","syntax-property":"#00acc1","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#00acc1","syntax-punctuation":"#292d3e","syntax-object":"#292d3e","markdown-heading":"#a854f2","markdown-text":"#292d3e","markdown-link":"#4976eb","markdown-link-text":"#00acc1","markdown-code":"#91b859","markdown-block-quote":"#8796b0","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#8796b0","markdown-list-item":"#4976eb","markdown-list-enumeration":"#00acc1","markdown-image":"#4976eb","markdown-image-text":"#00acc1","markdown-code-block":"#292d3e"}},cl={palette:{neutral:"#292d3e",ink:"#a6accd",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#f78c6c"},overrides:{"text-weak":"#676e95","syntax-comment":"#676e95","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#a6accd","syntax-property":"#89ddff","syntax-type":"#ffcb6b","syntax-constant":"#f78c6c","syntax-operator":"#89ddff","syntax-punctuation":"#a6accd","syntax-object":"#a6accd","markdown-heading":"#c792ea","markdown-text":"#a6accd","markdown-link":"#82aaff","markdown-link-text":"#89ddff","markdown-code":"#c3e88d","markdown-block-quote":"#676e95","markdown-emph":"#ffcb6b","markdown-strong":"#f78c6c","markdown-horizontal-rule":"#676e95","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#82aaff","markdown-image-text":"#89ddff","markdown-code-block":"#a6accd"}},ll={$schema:al,name:sl,id:ol,light:il,dark:cl},dl="https://opencode.ai/desktop-theme.json",fl="Rose Pine",ul="rosepine",yl={palette:{neutral:"#faf4ed",ink:"#575279",primary:"#31748f",accent:"#d7827e",success:"#286983",warning:"#ea9d34",error:"#b4637a",info:"#56949f"},overrides:{"text-weak":"#9893a5","syntax-comment":"#9893a5","syntax-keyword":"#286983","syntax-string":"#ea9d34","syntax-primitive":"#d7827e","syntax-variable":"#575279","syntax-property":"#d7827e","syntax-type":"#56949f","syntax-constant":"#907aa9","syntax-operator":"#797593","syntax-punctuation":"#797593","syntax-object":"#575279","markdown-heading":"#907aa9","markdown-text":"#575279","markdown-link":"#31748f","markdown-link-text":"#d7827e","markdown-code":"#286983","markdown-block-quote":"#9893a5","markdown-emph":"#ea9d34","markdown-strong":"#b4637a","markdown-horizontal-rule":"#dfdad9","markdown-list-item":"#31748f","markdown-list-enumeration":"#d7827e","markdown-image":"#31748f","markdown-image-text":"#d7827e","markdown-code-block":"#575279"}},pl={palette:{neutral:"#191724",ink:"#e0def4",primary:"#9ccfd8",accent:"#ebbcba",success:"#31748f",warning:"#f6c177",error:"#eb6f92",info:"#9ccfd8"},overrides:{"text-weak":"#6e6a86","syntax-comment":"#6e6a86","syntax-keyword":"#31748f","syntax-string":"#f6c177","syntax-primitive":"#ebbcba","syntax-variable":"#e0def4","syntax-property":"#ebbcba","syntax-type":"#9ccfd8","syntax-constant":"#c4a7e7","syntax-operator":"#908caa","syntax-punctuation":"#908caa","syntax-object":"#e0def4","markdown-heading":"#c4a7e7","markdown-text":"#e0def4","markdown-link":"#9ccfd8","markdown-link-text":"#ebbcba","markdown-code":"#31748f","markdown-block-quote":"#6e6a86","markdown-emph":"#f6c177","markdown-strong":"#eb6f92","markdown-horizontal-rule":"#403d52","markdown-list-item":"#9ccfd8","markdown-list-enumeration":"#ebbcba","markdown-image":"#9ccfd8","markdown-image-text":"#ebbcba","markdown-code-block":"#e0def4"}},hl={$schema:dl,name:fl,id:ul,light:yl,dark:pl},ml="https://opencode.ai/desktop-theme.json",kl="Shades of Purple",gl="shadesofpurple",bl={palette:{neutral:"#f7ebff",ink:"#3b2c59",primary:"#7a5af8",accent:"#ff6bd5",success:"#3dd598",warning:"#f7c948",error:"#ff6bd5",info:"#62d4ff",diffAdd:"#c8f8da",diffDelete:"#ffc3ef"},overrides:{"syntax-comment":"#8e4be3","syntax-keyword":"#c45f00","syntax-string":"#2f8b32","syntax-primitive":"#a13bd6","syntax-property":"#008fb8","syntax-type":"#9d7a00","syntax-constant":"#e04d7a"}},wl={palette:{neutral:"#1a102b",ink:"#f5f0ff",primary:"#c792ff",accent:"#ff7ac6",success:"#7be0b0",warning:"#ffd580",error:"#ff7ac6",info:"#7dd4ff",diffAdd:"#53c39f",diffDelete:"#d85aa0"},overrides:{"syntax-comment":"#b362ff","syntax-keyword":"#ff9d00","syntax-string":"#a5ff90","syntax-primitive":"#fb94ff","syntax-property":"#9effff","syntax-type":"#fad000","syntax-constant":"#ff628c"}},vl={$schema:ml,name:kl,id:gl,light:bl,dark:wl},xl="https://opencode.ai/desktop-theme.json",Cl="Solarized",ql="solarized",Ll={palette:{neutral:"#fdf6e3",ink:"#586e75",primary:"#268bd2",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#c6dc7a",diffDelete:"#f2a1a1"},overrides:{"syntax-comment":"#657b83","syntax-keyword":"#728600","syntax-string":"#1f8f88","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},Ml={palette:{neutral:"#002b36",ink:"#93a1a1",primary:"#6c71c4",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#4c7654",diffDelete:"#c34b4b"},overrides:{"syntax-comment":"#586e75","syntax-keyword":"#859900","syntax-string":"#2aa198","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},$l={$schema:xl,name:Cl,id:ql,light:Ll,dark:Ml},Hl="https://opencode.ai/desktop-theme.json",Vl="Synthwave '84",_l="synthwave84",Il={palette:{neutral:"#fafafa",ink:"#262335",primary:"#00bcd4",accent:"#9c27b0",success:"#4caf50",warning:"#ff9800",error:"#f44336",info:"#ff5722"},overrides:{"text-weak":"#5c5c8a","syntax-comment":"#5c5c8a","syntax-keyword":"#e91e63","syntax-string":"#ff9800","syntax-primitive":"#ff5722","syntax-variable":"#262335","syntax-property":"#9c27b0","syntax-type":"#00bcd4","syntax-constant":"#9c27b0","syntax-operator":"#e91e63","syntax-punctuation":"#262335","syntax-object":"#262335","markdown-heading":"#e91e63","markdown-text":"#262335","markdown-link":"#00bcd4","markdown-link-text":"#9c27b0","markdown-code":"#4caf50","markdown-block-quote":"#5c5c8a","markdown-emph":"#ff9800","markdown-strong":"#ff5722","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#00bcd4","markdown-list-enumeration":"#9c27b0","markdown-image":"#00bcd4","markdown-image-text":"#9c27b0","markdown-code-block":"#262335"}},jl={palette:{neutral:"#262335",ink:"#ffffff",primary:"#36f9f6",accent:"#b084eb",success:"#72f1b8",warning:"#fede5d",error:"#fe4450",info:"#ff8b39",diffAdd:"#97f1d8",diffDelete:"#ff5e5b"},overrides:{"text-weak":"#848bbd","syntax-comment":"#848bbd","syntax-keyword":"#ff7edb","syntax-string":"#fede5d","syntax-primitive":"#ff8b39","syntax-variable":"#ffffff","syntax-property":"#b084eb","syntax-type":"#36f9f6","syntax-constant":"#b084eb","syntax-operator":"#ff7edb","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ff7edb","markdown-text":"#ffffff","markdown-link":"#36f9f6","markdown-link-text":"#b084eb","markdown-code":"#72f1b8","markdown-block-quote":"#848bbd","markdown-emph":"#fede5d","markdown-strong":"#ff8b39","markdown-horizontal-rule":"#495495","markdown-list-item":"#36f9f6","markdown-list-enumeration":"#b084eb","markdown-image":"#36f9f6","markdown-image-text":"#b084eb","markdown-code-block":"#ffffff"}},El={$schema:Hl,name:Vl,id:_l,light:Il,dark:jl},Al="https://opencode.ai/desktop-theme.json",Dl="Tokyonight",Tl="tokyonight",Sl={palette:{neutral:"#e1e2e7",ink:"#273153",primary:"#2e7de9",accent:"#b15c00",success:"#587539",warning:"#8c6c3e",error:"#c94060",info:"#007197",diffAdd:"#4f8f7b",diffDelete:"#d05f7c"},overrides:{"syntax-comment":"#6b6f7a","syntax-keyword":"#9854f1","syntax-primitive":"#1f6fd4","syntax-property":"#007197","syntax-constant":"#b15c00"}},Pl={palette:{neutral:"#1a1b26",ink:"#c0caf5",primary:"#7aa2f7",accent:"#ff9e64",success:"#9ece6a",warning:"#e0af68",error:"#f7768e",info:"#7dcfff",diffAdd:"#41a6b5",diffDelete:"#c34043"},overrides:{"syntax-comment":"#565f89","syntax-keyword":"#bb9af7","syntax-primitive":"#7aa2f7","syntax-property":"#7dcfff","syntax-constant":"#ff9e64"}},Fl={$schema:Al,name:Dl,id:Tl,light:Sl,dark:Pl},Zl="https://opencode.ai/desktop-theme.json",Bl="Vercel",Ol="vercel",Rl={palette:{neutral:"#FFFFFF",ink:"#171717",primary:"#0070F3",accent:"#8E4EC6",success:"#388E3C",warning:"#FF9500",error:"#DC3545",info:"#0070F3",diffAdd:"#46A758",diffDelete:"#E5484D"},overrides:{"text-weak":"#666666","syntax-comment":"#888888","syntax-keyword":"#E93D82","syntax-string":"#46A758","syntax-primitive":"#8E4EC6","syntax-variable":"#0070F3","syntax-property":"#12A594","syntax-type":"#12A594","syntax-constant":"#FFB224","syntax-operator":"#E93D82","syntax-punctuation":"#171717","syntax-object":"#0070F3","markdown-heading":"#8E4EC6","markdown-text":"#171717","markdown-link":"#0070F3","markdown-link-text":"#12A594","markdown-code":"#46A758","markdown-block-quote":"#666666","markdown-emph":"#FFB224","markdown-strong":"#E93D82","markdown-horizontal-rule":"#999999","markdown-list-item":"#171717","markdown-list-enumeration":"#0070F3","markdown-image":"#12A594","markdown-image-text":"#12A594","markdown-code-block":"#171717"}},zl={palette:{neutral:"#000000",ink:"#EDEDED",primary:"#0070F3",accent:"#8E4EC6",success:"#46A758",warning:"#FFB224",error:"#E5484D",info:"#52A8FF",interactive:"#52A8FF",diffAdd:"#63C46D",diffDelete:"#FF6166"},overrides:{"text-weak":"#878787","syntax-comment":"#878787","syntax-keyword":"#F75590","syntax-string":"#63C46D","syntax-primitive":"#BF7AF0","syntax-variable":"#52A8FF","syntax-property":"#0AC7AC","syntax-type":"#0AC7AC","syntax-constant":"#F2A700","syntax-operator":"#F75590","syntax-punctuation":"#EDEDED","syntax-object":"#52A8FF","markdown-heading":"#BF7AF0","markdown-text":"#EDEDED","markdown-link":"#52A8FF","markdown-link-text":"#0AC7AC","markdown-code":"#63C46D","markdown-block-quote":"#878787","markdown-emph":"#F2A700","markdown-strong":"#F75590","markdown-horizontal-rule":"#454545","markdown-list-item":"#EDEDED","markdown-list-enumeration":"#52A8FF","markdown-image":"#0AC7AC","markdown-image-text":"#50E3C2","markdown-code-block":"#EDEDED"}},Nl={$schema:Zl,name:Bl,id:Ol,light:Rl,dark:zl},Ul="https://opencode.ai/desktop-theme.json",Wl="Vesper",Jl="vesper",Kl={palette:{neutral:"#F0F0F0",ink:"#101010",primary:"#FFC799",accent:"#B30000",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#7a7a7a","syntax-keyword":"#6e6e6e","syntax-string":"#117e69","syntax-primitive":"#8d541c","syntax-property":"#101010","syntax-type":"#8d541c","syntax-constant":"#8d541c"}},Gl={palette:{neutral:"#101010",ink:"#FFF",primary:"#FFC799",accent:"#FF8080",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#8b8b8b","syntax-keyword":"#a0a0a0","syntax-string":"#99ffe4","syntax-primitive":"#ffc799","syntax-property":"#ffffff","syntax-type":"#ffc799","syntax-constant":"#ffc799"}},Yl={$schema:Ul,name:Wl,id:Jl,light:Kl,dark:Gl},Xl="https://opencode.ai/desktop-theme.json",Ql="Zenburn",ed="zenburn",td={palette:{neutral:"#ffffef",ink:"#3f3f3f",primary:"#5f7f8f",accent:"#5f8f8f",success:"#5f8f5f",warning:"#8f8f5f",error:"#8f5f5f",info:"#8f7f5f"},overrides:{"text-weak":"#6f6f6f","syntax-comment":"#5f7f5f","syntax-keyword":"#8f8f5f","syntax-string":"#8f5f5f","syntax-primitive":"#5f7f8f","syntax-variable":"#3f3f3f","syntax-property":"#5f8f8f","syntax-type":"#5f8f8f","syntax-constant":"#5f8f5f","syntax-operator":"#8f8f5f","syntax-punctuation":"#3f3f3f","syntax-object":"#3f3f3f","markdown-heading":"#8f8f5f","markdown-text":"#3f3f3f","markdown-link":"#5f7f8f","markdown-link-text":"#5f8f8f","markdown-code":"#5f8f5f","markdown-block-quote":"#6f6f6f","markdown-emph":"#8f8f5f","markdown-strong":"#8f7f5f","markdown-horizontal-rule":"#6f6f6f","markdown-list-item":"#5f7f8f","markdown-list-enumeration":"#5f8f8f","markdown-image":"#5f7f8f","markdown-image-text":"#5f8f8f","markdown-code-block":"#3f3f3f"}},rd={palette:{neutral:"#3f3f3f",ink:"#dcdccc",primary:"#8cd0d3",accent:"#93e0e3",success:"#7f9f7f",warning:"#f0dfaf",error:"#cc9393",info:"#dfaf8f",diffAdd:"#8fb28f",diffDelete:"#dca3a3"},overrides:{"text-weak":"#9f9f9f","syntax-comment":"#7f9f7f","syntax-keyword":"#f0dfaf","syntax-string":"#cc9393","syntax-primitive":"#8cd0d3","syntax-variable":"#dcdccc","syntax-property":"#93e0e3","syntax-type":"#93e0e3","syntax-constant":"#8fb28f","syntax-operator":"#f0dfaf","syntax-punctuation":"#dcdccc","syntax-object":"#dcdccc","markdown-heading":"#f0dfaf","markdown-text":"#dcdccc","markdown-link":"#8cd0d3","markdown-link-text":"#93e0e3","markdown-code":"#7f9f7f","markdown-block-quote":"#9f9f9f","markdown-emph":"#e0cf9f","markdown-strong":"#dfaf8f","markdown-horizontal-rule":"#9f9f9f","markdown-list-item":"#8cd0d3","markdown-list-enumeration":"#93e0e3","markdown-image":"#8cd0d3","markdown-image-text":"#93e0e3","markdown-code-block":"#dcdccc"}},nd={$schema:Xl,name:Ql,id:ed,light:td,dark:rd},ad=ro,sd=co,od=ho,id=vo,cd=$o,ld=Eo,dd=Fo,fd=No,ud=Yo,yd=ni,pd=li,hd=hi,md=vi,kd=$i,gd=Ei,bd=Fi,wd=Ni,vd=Yi,xd=nc,Cd=lc,qd=hc,Ld=vc,Md=$c,$d=Ec,Hd=Fc,Vd=Nc,_d=Yc,Id=nl,jd=ll,Ed=hl,Ad=vl,Dd=$l,Td=El,Sd=Fl,Pd=Nl,Fd=Yl,Zd=nd,Bd={"oc-2":ad,amoled:sd,aura:od,ayu:id,carbonfox:cd,catppuccin:ld,"catppuccin-frappe":dd,"catppuccin-macchiato":fd,cobalt2:ud,cursor:yd,dracula:pd,everforest:hd,flexoki:md,github:kd,gruvbox:gd,kanagawa:bd,"lucent-orng":wd,material:vd,matrix:xd,mercury:Cd,monokai:qd,nightowl:Ld,nord:Md,"one-dark":$d,onedarkpro:Hd,opencode:Vd,orng:_d,"osaka-jade":Id,palenight:jd,rosepine:Ed,shadesofpurple:Ad,solarized:Dd,synthwave84:Td,tokyonight:Sd,vercel:Pd,vesper:Fd,zenburn:Zd},Od="https://opencode.ai/desktop-theme.json",Rd="Kilo",zd="kilo",Nd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-interactive-weak":"#f0f0f0","surface-success-base":"#dff6dd","surface-success-weak":"#edfaec","surface-success-strong":"#388a34","surface-warning-base":"#fff4ce","surface-warning-weak":"#fffae5","surface-warning-strong":"#bf8803","surface-critical-base":"#fde7e9","surface-critical-weak":"#fef1f2","surface-critical-strong":"#e51400","surface-info-base":"#e7f3ff","surface-info-weak":"#f0f8ff","surface-info-strong":"#1a85ff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-raised-stronger":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","input-active":"#f0f8ff","border-base":"#cecece","border-hover":"#c8c8c8","border-active":"#b0b0b0","border-weak-base":"#e7e7e7","border-weak-hover":"#dddddd","border-strong-base":"#c8c8c8","border-strong-hover":"#b0b0b0","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","border-interactive-hover":"#006ab1","border-success-base":"#388a34","border-warning-base":"#bf8803","border-critical-base":"#e51400","border-info-base":"#1a85ff","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-hover":"#333333","icon-active":"#1e1e1e","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-invert-base":"#ffffff","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","surface-diff-add-base":"#dff6dd","surface-diff-add-weak":"#edfaec","surface-diff-delete-base":"#fde7e9","surface-diff-delete-weak":"#fef1f2","syntax-string":"#a31515","syntax-keyword":"#0000ff","syntax-primitive":"#098658","syntax-property":"#001080","syntax-type":"#267f99","syntax-constant":"#0070c1","syntax-comment":"#008000","syntax-variable":"#001080","syntax-operator":"#000000","syntax-punctuation":"#000000","syntax-object":"#001080","syntax-info":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000","avatar-background-pink":"#feeef8","avatar-background-mint":"#e1fbf4","avatar-background-orange":"#fff1e7","avatar-background-purple":"#f9f1fe","avatar-background-cyan":"#e7f9fb","avatar-background-lime":"#eefadc","avatar-text-pink":"#b51e78","avatar-text-mint":"#107c10","avatar-text-orange":"#df6100","avatar-text-purple":"#652d90","avatar-text-cyan":"#0598bc","avatar-text-lime":"#587c0c"}},Ud={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","text-on-critical-base":"#f14c4c","text-on-critical-weak":"#c53e3e","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-success-base":"#1b3a1b","surface-warning-base":"#3a3000","surface-critical-base":"#3a1515","surface-critical-weak":"#210908","surface-critical-strong":"#f14c4c","surface-base":"#080808","surface-info-base":"#0a2a4a","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","input-active":"#1e1e1e","border-base":"#454545","border-hover":"#505050","border-active":"#606060","border-weak-base":"#303031","border-weak-hover":"#3c3c3c","border-strong-base":"#505050","border-strong-hover":"#606060","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","border-interactive-hover":"#3794ff","border-success-base":"#487e02","border-warning-base":"#cca700","border-critical-base":"#f14c4c","border-info-base":"#3794ff","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-hover":"#d4d4d4","icon-active":"#e7e7e7","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-invert-base":"#1e1e1e","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-critical-hover":"#ff7872","icon-critical-active":"#ffc8bf","icon-info-base":"#3794ff","surface-diff-add-base":"#2a3a2a","surface-diff-add-weak":"#1e2e1e","surface-diff-delete-base":"#3a2020","surface-diff-delete-weak":"#2e1818","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Wd={$schema:Od,name:Rd,id:zd,light:Nd,dark:Ud},Jd="https://opencode.ai/desktop-theme.json",Kd="Kilo VS Code",Gd="kilo-vscode",Yd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","border-base":"#cecece","border-hover":"#c8c8c8","border-weak-base":"#e7e7e7","border-strong-base":"#c8c8c8","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000"}},Xd={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","border-base":"#454545","border-hover":"#505050","border-weak-base":"#303031","border-strong-base":"#505050","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-info-base":"#3794ff","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Qd={$schema:Jd,name:Kd,id:Gd,light:Yd,dark:Xd},e1=Wd,t1=Qd,r1={kilo:e1,"kilo-vscode":t1},n1={...r1,...Bd};function a1(r){const e=st();return{provider:t=>{const n=r.init(t);if(!(r.gate??!0))return $(e.Provider,{value:n,get children(){return t.children}});const s=D(()=>{const o=n.ready;return o===void 0||(typeof o=="function"?o():o)});return $(ie,{get when(){return s()},get children(){return $(e.Provider,{value:n,get children(){return t.children}})}})},use(){const t=Se(e);if(!t)throw new Error(`${r.name} context must be used within a context provider`);return t}}}const xr="kilo",He={THEME_ID:"opencode-theme-id",COLOR_SCHEME:"opencode-color-scheme",THEME_CSS_LIGHT:"opencode-theme-css-light",THEME_CSS_DARK:"opencode-theme-css-dark"},Wr="oc-theme";function s1(){const r=document.getElementById(Wr);if(r)return r;const e=document.createElement("style");return e.id=Wr,document.head.appendChild(e),e}function Ue(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yt(r,e,t){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);if(e!==xr)try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}const i=`:root {
|
|
4
4
|
color-scheme: ${t};
|
|
5
5
|
--text-mix-blend-mode: ${n?"plus-lighter":"multiply"};
|
|
6
6
|
${o}
|
|
7
|
-
}`;document.getElementById("oc-theme-preload")?.remove(),s1().textContent=i,document.documentElement.dataset.theme=e,document.documentElement.dataset.colorScheme=t}function Jr(r,e){if(e!==xr)for(const t of["light","dark"]){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}}}const{provider:o1}=a1({name:"Theme",init:r=>{const[e,t]=Os({themes:n1,themeId:r.defaultTheme??xr,colorScheme:"system",mode:Ue(),previewThemeId:null,previewScheme:null});$t(()=>{const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{e.colorScheme==="system"&&t("mode",Ue())};s.addEventListener("change",o),fe(()=>s.removeEventListener("change",o));const i=localStorage.getItem(He.THEME_ID),c=localStorage.getItem(He.COLOR_SCHEME);i&&e.themes[i]&&t("themeId",i),c&&(t("colorScheme",c),c!=="system"&&t("mode",c));const f=e.themes[e.themeId];f&&Jr(f,e.themeId)}),ee(()=>{const s=e.themes[e.themeId];s&&yt(s,e.themeId,e.mode)});const n=s=>{const o=e.themes[s];if(!o){console.warn(`Theme "${s}" not found`);return}t("themeId",s),localStorage.setItem(He.THEME_ID,s),Jr(o,s)},a=s=>{t("colorScheme",s),localStorage.setItem(He.COLOR_SCHEME,s),t("mode",s==="system"?Ue():s)};return{themeId:()=>e.themeId,colorScheme:()=>e.colorScheme,mode:()=>e.mode,themes:()=>e.themes,setTheme:n,setColorScheme:a,registerTheme:s=>t("themes",s.id,s),previewTheme:s=>{const o=e.themes[s];if(!o)return;t("previewThemeId",s);const i=e.previewScheme?e.previewScheme==="system"?Ue():e.previewScheme:e.mode;yt(o,s,i)},previewColorScheme:s=>{t("previewScheme",s);const o=s==="system"?Ue():s,i=e.previewThemeId??e.themeId,c=e.themes[i];c&&yt(c,i,o)},commitPreview:()=>{e.previewThemeId&&n(e.previewThemeId),e.previewScheme&&a(e.previewScheme),t("previewThemeId",null),t("previewScheme",null)},cancelPreview:()=>{t("previewThemeId",null),t("previewScheme",null);const s=e.themes[e.themeId];s&&yt(s,e.themeId,e.mode)}}}});var i1=W('<img alt="Kilo loading">');const c1="/console/kilo-logo.svg";function l1(r){return(()=>{var e=i1();return ce(e,"src",c1),ne(()=>Hn(e,`console-loading-logo${r.class?` ${r.class}`:""}`)),e})()}var d1=W('<section class=console-loading role=status aria-live=polite aria-label="Loading Kilo Console">');function ur(r){return(()=>{var e=d1();return Z(e,$(l1,{})),ne(t=>{var n=r.variant==="fullscreen",a=r.variant==="content";return n!==t.e&&e.classList.toggle("console-loading-fullscreen",t.e=n),a!==t.t&&e.classList.toggle("console-loading-content",t.t=a),t},{e:void 0,t:void 0}),e})()}const f1=r=>r!=null,jy=r=>r.filter(f1);function u1(r){return(...e)=>{for(const t of r)t&&t(...e)}}const Ey=r=>typeof r=="function"&&!r.length?r():r,Ay=r=>Array.isArray(r)?r:r?[r]:[];function Dy(r,...e){return typeof r=="function"?r(...e):r}const Ty=fe;function Sy(r,e,t){if(I.context){const[n,a]=U(r,t);return $t(()=>a(()=>e())),[n,a]}return U(e(),t)}function Py(r,e,t,n){const a=r.length,s=e.length;let o=0;if(!s){for(;o<a;o++)t(r[o]);return}if(!a){for(;o<s;o++)n(e[o]);return}for(;o<s&&e[o]===r[o];o++);let i,c;e=e.slice(o),r=r.slice(o);for(i of e)r.includes(i)||n(i);for(c of r)e.includes(c)||t(c)}function y1(...r){return u1(r)}function Fy(r,e,t=-1){return t in r?[...r.slice(0,t),e,...r.slice(t)]:[...r,e]}function Zy(r){return typeof r=="number"}function p1(r){return Object.prototype.toString.call(r)==="[object String]"}function h1(r){return typeof r=="function"}function By(r){return e=>`${r()}-${e}`}function Oy(r){return r?r.ownerDocument||r:document}var m1=(r=>(r.Escape="Escape",r.Enter="Enter",r.Tab="Tab",r.Space=" ",r.ArrowDown="ArrowDown",r.ArrowLeft="ArrowLeft",r.ArrowRight="ArrowRight",r.ArrowUp="ArrowUp",r.End="End",r.Home="Home",r.PageDown="PageDown",r.PageUp="PageUp",r))(m1||{});function Cr(r){return typeof window<"u"&&window.navigator!=null?r.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Un(){return Cr(/^Mac/i)}function k1(){return Cr(/^iPhone/i)}function g1(){return Cr(/^iPad/i)||Un()&&navigator.maxTouchPoints>1}function b1(){return k1()||g1()}function Ry(){return Un()||b1()}function w1(r,e){return e&&(h1(e)?e(r):e[0](e[1],r)),r?.defaultPrevented}function zy(r){return e=>{for(const t of r)w1(e,t)}}function Ny(r){if(r)if(v1())r.focus({preventScroll:!0});else{const e=x1(r);r.focus(),C1(e)}}var pt=null;function v1(){if(pt==null){pt=!1;try{document.createElement("div").focus({get preventScroll(){return pt=!0,!0}})}catch{}}return pt}function x1(r){let e=r.parentNode;const t=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),t}function C1(r){for(const{element:e,scrollTop:t,scrollLeft:n}of r)e.scrollTop=t,e.scrollLeft=n}var Wn=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],L1=[...Wn,'[tabindex]:not([tabindex="-1"]):not([disabled])'],q1=`${Wn.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`,M1=L1.join(':not([hidden]):not([tabindex="-1"]),');function Jn(r,e){return r.nodeName!=="#comment"&&$1(r)&&H1(r,e)&&(!r.parentElement||Jn(r.parentElement,r))}function $1(r){if(!(r instanceof HTMLElement)&&!(r instanceof SVGElement))return!1;const{display:e,visibility:t}=r.style;let n=e!=="none"&&t!=="hidden"&&t!=="collapse";if(n){if(!r.ownerDocument.defaultView)return n;const{getComputedStyle:a}=r.ownerDocument.defaultView,{display:s,visibility:o}=a(r);n=s!=="none"&&o!=="hidden"&&o!=="collapse"}return n}function H1(r,e){return!r.hasAttribute("hidden")&&(r.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?r.hasAttribute("open"):!0)}function Uy(r,e,t){const n=e?.tabbable?M1:q1,a=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return e?.from?.contains(s)?NodeFilter.FILTER_REJECT:s.matches(n)&&Jn(s)&&(!e?.accept||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(a.currentNode=e.from),a}function V1(r,e){return pe(r,e)}var We=new Map,Kr=new Set;function Gr(){if(typeof window>"u"||document.body===null)return;const r=t=>{if(!t.target)return;let n=We.get(t.target);n||(n=new Set,We.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)},e=t=>{if(!t.target)return;const n=We.get(t.target);if(n&&(n.delete(t.propertyName),n.size===0&&(t.target.removeEventListener("transitioncancel",e),We.delete(t.target)),We.size===0)){for(const a of Kr)a();Kr.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Gr():document.addEventListener("DOMContentLoaded",Gr));function Wy(r,e){const t=Yr(r,e,"left"),n=Yr(r,e,"top"),a=e.offsetWidth,s=e.offsetHeight;let o=r.scrollLeft,i=r.scrollTop;const c=o+r.offsetWidth,f=i+r.offsetHeight;t<=o?o=t:t+a>c&&(o+=t+a-c),n<=i?i=n:n+s>f&&(i+=n+s-f),r.scrollLeft=o,r.scrollTop=i}function Yr(r,e,t){const n=t==="left"?"offsetLeft":"offsetTop";let a=0;for(;e.offsetParent&&(a+=e[n],e.offsetParent!==r);){if(e.offsetParent.contains(r)){a-=r[n];break}e=e.offsetParent}return a}var Jy={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function _1(r,e){const[t,n]=U(Xr(e?.()));return ee(()=>{n(r()?.tagName.toLowerCase()||Xr(e?.()))}),t}function Xr(r){return p1(r)?r:void 0}function I1(r){const[e,t]=Me(r,["as"]);if(!e.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return $(is,pe(t,{get component(){return e.as}}))}var j1=Object.defineProperty,E1=(r,e)=>{for(var t in e)j1(r,t,{get:e[t],enumerable:!0})},A1={};E1(A1,{Button:()=>Gn,Root:()=>Kn});var D1=["button","color","file","image","reset","submit"];function T1(r){const e=r.tagName.toLowerCase();return e==="button"?!0:e==="input"&&r.type?D1.indexOf(r.type)!==-1:!1}function Kn(r){let e;const t=V1({type:"button"},r),[n,a]=Me(t,["ref","type","disabled"]),s=_1(()=>e,()=>"button"),o=D(()=>{const f=s();return f==null?!1:T1({tagName:f,type:n.type})}),i=D(()=>s()==="input"),c=D(()=>s()==="a"&&e?.getAttribute("href")!=null);return $(I1,pe({as:"button",ref(f){var y=y1(u=>e=u,n.ref);typeof y=="function"&&y(f)},get type(){return Le(()=>!!(o()||i()))()?n.type:void 0},get role(){return!o()&&!c()?"button":void 0},get tabIndex(){return!o()&&!c()&&!n.disabled?0:void 0},get disabled(){return Le(()=>!!(o()||i()))()?n.disabled:void 0},get"aria-disabled"(){return!o()&&!i()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?"":void 0}},a))}var Gn=Kn,S1=W("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true><use>");const P1={"align-right":'<path d="M12.292 6.04167L16.2503 9.99998L12.292 13.9583M2.91699 9.99998H15.6253M17.0837 3.75V16.25" stroke="currentColor" stroke-linecap="square"/>',"arrow-up":'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.24121L16.0921 8.33343L15.2083 9.21731L10.6249 4.63397V17.5001H9.37492V4.63398L4.7916 9.21731L3.90771 8.33343L9.99991 2.24121Z" fill="currentColor"/>',"arrow-left":'<path d="M8.33464 4.58398L2.91797 10.0007L8.33464 15.4173M3.33464 10.0007H17.0846" stroke="currentColor" stroke-linecap="square"/>',"arrow-right":'<path d="M11.6654 4.58398L17.082 10.0007L11.6654 15.4173M16.6654 10.0007H2.91536" stroke="currentColor" stroke-linecap="square"/>',archive:'<path d="M16.8747 6.24935H17.3747V5.74935H16.8747V6.24935ZM16.8747 16.8743V17.3743H17.3747V16.8743H16.8747ZM3.12467 16.8743H2.62467V17.3743H3.12467V16.8743ZM3.12467 6.24935V5.74935H2.62467V6.24935H3.12467ZM2.08301 2.91602V2.41602H1.58301V2.91602H2.08301ZM17.9163 2.91602H18.4163V2.41602H17.9163V2.91602ZM17.9163 6.24935V6.74935H18.4163V6.24935H17.9163ZM2.08301 6.24935H1.58301V6.74935H2.08301V6.24935ZM8.33301 9.08268H7.83301V10.0827H8.33301V9.58268V9.08268ZM11.6663 10.0827H12.1663V9.08268H11.6663V9.58268V10.0827ZM16.8747 6.24935H16.3747V16.8743H16.8747H17.3747V6.24935H16.8747ZM16.8747 16.8743V16.3743H3.12467V16.8743V17.3743H16.8747V16.8743ZM3.12467 16.8743H3.62467V6.24935H3.12467H2.62467V16.8743H3.12467ZM3.12467 6.24935V6.74935H16.8747V6.24935V5.74935H3.12467V6.24935ZM2.08301 2.91602V3.41602H17.9163V2.91602V2.41602H2.08301V2.91602ZM17.9163 2.91602H17.4163V6.24935H17.9163H18.4163V2.91602H17.9163ZM17.9163 6.24935V5.74935H2.08301V6.24935V6.74935H17.9163V6.24935ZM2.08301 6.24935H2.58301V2.91602H2.08301H1.58301V6.24935H2.08301ZM8.33301 9.58268V10.0827H11.6663V9.58268V9.08268H8.33301V9.58268Z" fill="currentColor"/>',"bubble-5":'<path d="M18.3327 9.99935C18.3327 5.57227 15.0919 2.91602 9.99935 2.91602C4.90676 2.91602 1.66602 5.57227 1.66602 9.99935C1.66602 11.1487 2.45505 13.1006 2.57637 13.3939C2.58707 13.4197 2.59766 13.4434 2.60729 13.4697C2.69121 13.6987 3.04209 14.9354 1.66602 16.7674C3.51787 17.6528 5.48453 16.1973 5.48453 16.1973C6.84518 16.9193 8.46417 17.0827 9.99935 17.0827C15.0919 17.0827 18.3327 14.4264 18.3327 9.99935Z" stroke="currentColor" stroke-linecap="square"/>',prompt:'<path d="M14.5841 12.0807H17.9193V2.91406H5.6276V6.2474M14.5859 6.2474H2.08594V15.4141H5.0026V17.4974L8.7526 15.4141H14.5859V6.2474Z" stroke="currentColor" stroke-linecap="square"/>',brain:'<path d="M13.332 8.7487C11.4911 8.7487 9.9987 7.25631 9.9987 5.41536M6.66536 11.2487C8.50631 11.2487 9.9987 12.7411 9.9987 14.582M9.9987 2.78209L9.9987 17.0658M16.004 15.0475C17.1255 14.5876 17.9154 13.4849 17.9154 12.1978C17.9154 11.3363 17.5615 10.5575 16.9913 9.9987C17.5615 9.43991 17.9154 8.66108 17.9154 7.79962C17.9154 6.21199 16.7136 4.90504 15.1702 4.73878C14.7858 3.21216 13.4039 2.08203 11.758 2.08203C11.1171 2.08203 10.5162 2.25337 9.9987 2.55275C9.48117 2.25337 8.88032 2.08203 8.23944 2.08203C6.59353 2.08203 5.21157 3.21216 4.82722 4.73878C3.28377 4.90504 2.08203 6.21199 2.08203 7.79962C2.08203 8.66108 2.43585 9.43991 3.00609 9.9987C2.43585 10.5575 2.08203 11.3363 2.08203 12.1978C2.08203 13.4849 2.87191 14.5876 3.99339 15.0475C4.46688 16.7033 5.9917 17.9154 7.79962 17.9154C8.61335 17.9154 9.36972 17.6698 9.9987 17.2488C10.6277 17.6698 11.384 17.9154 12.1978 17.9154C14.0057 17.9154 15.5305 16.7033 16.004 15.0475Z" stroke="currentColor"/>',fork:'<path d="M2.91602 7.91406L2.91602 2.91406H7.91602M12.0827 2.91406H17.0827L17.0827 7.91406M9.99935 9.9974L9.99935 17.0807M9.99935 9.9974L3.33268 3.33073M9.99935 9.9974L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"bullet-list":'<path d="M9.58329 13.7497H17.0833M9.58329 6.24967H17.0833M6.24996 6.24967C6.24996 7.17015 5.50377 7.91634 4.58329 7.91634C3.66282 7.91634 2.91663 7.17015 2.91663 6.24967C2.91663 5.3292 3.66282 4.58301 4.58329 4.58301C5.50377 4.58301 6.24996 5.3292 6.24996 6.24967ZM6.24996 13.7497C6.24996 14.6701 5.50377 15.4163 4.58329 15.4163C3.66282 15.4163 2.91663 14.6701 2.91663 13.7497C2.91663 12.8292 3.66282 12.083 4.58329 12.083C5.50377 12.083 6.24996 12.8292 6.24996 13.7497Z" stroke="currentColor" stroke-linecap="square"/>',"check-small":'<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>',"chevron-down":'<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>',"chevron-left":'<path d="M12 15L7 10L12 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-right":'<path d="M8 15L13 10L8 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-grabber-vertical":'<path d="M6.66675 12.4998L10.0001 15.8332L13.3334 12.4998M6.66675 7.49984L10.0001 4.1665L13.3334 7.49984" stroke="currentColor" stroke-linecap="square"/>',"chevron-double-right":'<path d="M11.6654 13.3346L14.9987 10.0013L11.6654 6.66797M5.83203 13.3346L9.16536 10.0013L5.83203 6.66797" stroke="currentColor" stroke-linecap="square"/>',"circle-x":'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003ZM7.49984 6.91107L6.91058 7.50033L9.41058 10.0003L6.91058 12.5003L7.49984 13.0896L9.99984 10.5896L12.4998 13.0896L13.0891 12.5003L10.5891 10.0003L13.0891 7.50033L12.4998 6.91107L9.99984 9.41107L7.49984 6.91107Z" fill="currentColor"/>',close:'<path d="M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25" stroke="currentColor" stroke-linecap="square"/>',"close-small":'<path d="M6 6L14 14M14 6L6 14" stroke="currentColor" stroke-linecap="square"/>',checklist:'<path d="M9.58342 13.7498H17.0834M9.58342 6.24984H17.0834M2.91675 6.6665L4.58341 7.9165L7.08341 4.1665M2.91675 14.1665L4.58341 15.4165L7.08341 11.6665" stroke="currentColor" stroke-linecap="square"/>',console:'<path d="M3.75 5.4165L8.33333 9.99984L3.75 14.5832M10.4167 14.5832H16.25" stroke="currentColor" stroke-linecap="square"/>',terminal:'<path d="M6.5 8L8.64286 10L6.5 12M10.9286 12H13.5M2 18H18V2H2V18Z" stroke="currentColor" stroke-linecap="square"/>',"terminal-active":`<path d="M2 18H18V2H2V18Z" fill="currentColor" fill-opacity="0.1"/>
|
|
7
|
+
}`;document.getElementById("oc-theme-preload")?.remove(),s1().textContent=i,document.documentElement.dataset.theme=e,document.documentElement.dataset.colorScheme=t}function Jr(r,e){if(e!==xr)for(const t of["light","dark"]){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}}}const{provider:o1}=a1({name:"Theme",init:r=>{const[e,t]=Os({themes:n1,themeId:r.defaultTheme??xr,colorScheme:"system",mode:Ue(),previewThemeId:null,previewScheme:null});$t(()=>{const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{e.colorScheme==="system"&&t("mode",Ue())};s.addEventListener("change",o),fe(()=>s.removeEventListener("change",o));const i=localStorage.getItem(He.THEME_ID),c=localStorage.getItem(He.COLOR_SCHEME);i&&e.themes[i]&&t("themeId",i),c&&(t("colorScheme",c),c!=="system"&&t("mode",c));const f=e.themes[e.themeId];f&&Jr(f,e.themeId)}),ee(()=>{const s=e.themes[e.themeId];s&&yt(s,e.themeId,e.mode)});const n=s=>{const o=e.themes[s];if(!o){console.warn(`Theme "${s}" not found`);return}t("themeId",s),localStorage.setItem(He.THEME_ID,s),Jr(o,s)},a=s=>{t("colorScheme",s),localStorage.setItem(He.COLOR_SCHEME,s),t("mode",s==="system"?Ue():s)};return{themeId:()=>e.themeId,colorScheme:()=>e.colorScheme,mode:()=>e.mode,themes:()=>e.themes,setTheme:n,setColorScheme:a,registerTheme:s=>t("themes",s.id,s),previewTheme:s=>{const o=e.themes[s];if(!o)return;t("previewThemeId",s);const i=e.previewScheme?e.previewScheme==="system"?Ue():e.previewScheme:e.mode;yt(o,s,i)},previewColorScheme:s=>{t("previewScheme",s);const o=s==="system"?Ue():s,i=e.previewThemeId??e.themeId,c=e.themes[i];c&&yt(c,i,o)},commitPreview:()=>{e.previewThemeId&&n(e.previewThemeId),e.previewScheme&&a(e.previewScheme),t("previewThemeId",null),t("previewScheme",null)},cancelPreview:()=>{t("previewThemeId",null),t("previewScheme",null);const s=e.themes[e.themeId];s&&yt(s,e.themeId,e.mode)}}}});var i1=W('<img alt="Kilo loading">');const c1="/console/kilo-logo.svg";function l1(r){return(()=>{var e=i1();return ce(e,"src",c1),ne(()=>Hn(e,`console-loading-logo${r.class?` ${r.class}`:""}`)),e})()}var d1=W('<section class=console-loading role=status aria-live=polite aria-label="Loading Kilo Console">');function ur(r){return(()=>{var e=d1();return Z(e,$(l1,{})),ne(t=>{var n=r.variant==="fullscreen",a=r.variant==="content";return n!==t.e&&e.classList.toggle("console-loading-fullscreen",t.e=n),a!==t.t&&e.classList.toggle("console-loading-content",t.t=a),t},{e:void 0,t:void 0}),e})()}const f1=r=>r!=null,jy=r=>r.filter(f1);function u1(r){return(...e)=>{for(const t of r)t&&t(...e)}}const Ey=r=>typeof r=="function"&&!r.length?r():r,Ay=r=>Array.isArray(r)?r:r?[r]:[];function Dy(r,...e){return typeof r=="function"?r(...e):r}const Ty=fe;function Sy(r,e,t){if(I.context){const[n,a]=U(r,t);return $t(()=>a(()=>e())),[n,a]}return U(e(),t)}function Py(r,e,t,n){const a=r.length,s=e.length;let o=0;if(!s){for(;o<a;o++)t(r[o]);return}if(!a){for(;o<s;o++)n(e[o]);return}for(;o<s&&e[o]===r[o];o++);let i,c;e=e.slice(o),r=r.slice(o);for(i of e)r.includes(i)||n(i);for(c of r)e.includes(c)||t(c)}function y1(...r){return u1(r)}function Fy(r,e,t=-1){return t in r?[...r.slice(0,t),e,...r.slice(t)]:[...r,e]}function Zy(r){return typeof r=="number"}function p1(r){return Object.prototype.toString.call(r)==="[object String]"}function h1(r){return typeof r=="function"}function By(r){return e=>`${r()}-${e}`}function Oy(r){return r?r.ownerDocument||r:document}var m1=(r=>(r.Escape="Escape",r.Enter="Enter",r.Tab="Tab",r.Space=" ",r.ArrowDown="ArrowDown",r.ArrowLeft="ArrowLeft",r.ArrowRight="ArrowRight",r.ArrowUp="ArrowUp",r.End="End",r.Home="Home",r.PageDown="PageDown",r.PageUp="PageUp",r))(m1||{});function Cr(r){return typeof window<"u"&&window.navigator!=null?r.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Un(){return Cr(/^Mac/i)}function k1(){return Cr(/^iPhone/i)}function g1(){return Cr(/^iPad/i)||Un()&&navigator.maxTouchPoints>1}function b1(){return k1()||g1()}function Ry(){return Un()||b1()}function w1(r,e){return e&&(h1(e)?e(r):e[0](e[1],r)),r?.defaultPrevented}function zy(r){return e=>{for(const t of r)w1(e,t)}}function Ny(r){if(r)if(v1())r.focus({preventScroll:!0});else{const e=x1(r);r.focus(),C1(e)}}var pt=null;function v1(){if(pt==null){pt=!1;try{document.createElement("div").focus({get preventScroll(){return pt=!0,!0}})}catch{}}return pt}function x1(r){let e=r.parentNode;const t=[],n=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==n;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return n instanceof HTMLElement&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),t}function C1(r){for(const{element:e,scrollTop:t,scrollLeft:n}of r)e.scrollTop=t,e.scrollLeft=n}var Wn=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],q1=[...Wn,'[tabindex]:not([tabindex="-1"]):not([disabled])'],L1=`${Wn.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`,M1=q1.join(':not([hidden]):not([tabindex="-1"]),');function Jn(r,e){return r.nodeName!=="#comment"&&$1(r)&&H1(r,e)&&(!r.parentElement||Jn(r.parentElement,r))}function $1(r){if(!(r instanceof HTMLElement)&&!(r instanceof SVGElement))return!1;const{display:e,visibility:t}=r.style;let n=e!=="none"&&t!=="hidden"&&t!=="collapse";if(n){if(!r.ownerDocument.defaultView)return n;const{getComputedStyle:a}=r.ownerDocument.defaultView,{display:s,visibility:o}=a(r);n=s!=="none"&&o!=="hidden"&&o!=="collapse"}return n}function H1(r,e){return!r.hasAttribute("hidden")&&(r.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?r.hasAttribute("open"):!0)}function Uy(r,e,t){const n=e?.tabbable?M1:L1,a=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return e?.from?.contains(s)?NodeFilter.FILTER_REJECT:s.matches(n)&&Jn(s)&&(!e?.accept||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(a.currentNode=e.from),a}function V1(r,e){return pe(r,e)}var We=new Map,Kr=new Set;function Gr(){if(typeof window>"u"||document.body===null)return;const r=t=>{if(!t.target)return;let n=We.get(t.target);n||(n=new Set,We.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)},e=t=>{if(!t.target)return;const n=We.get(t.target);if(n&&(n.delete(t.propertyName),n.size===0&&(t.target.removeEventListener("transitioncancel",e),We.delete(t.target)),We.size===0)){for(const a of Kr)a();Kr.clear()}};document.body.addEventListener("transitionrun",r),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Gr():document.addEventListener("DOMContentLoaded",Gr));function Wy(r,e){const t=Yr(r,e,"left"),n=Yr(r,e,"top"),a=e.offsetWidth,s=e.offsetHeight;let o=r.scrollLeft,i=r.scrollTop;const c=o+r.offsetWidth,f=i+r.offsetHeight;t<=o?o=t:t+a>c&&(o+=t+a-c),n<=i?i=n:n+s>f&&(i+=n+s-f),r.scrollLeft=o,r.scrollTop=i}function Yr(r,e,t){const n=t==="left"?"offsetLeft":"offsetTop";let a=0;for(;e.offsetParent&&(a+=e[n],e.offsetParent!==r);){if(e.offsetParent.contains(r)){a-=r[n];break}e=e.offsetParent}return a}var Jy={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function _1(r,e){const[t,n]=U(Xr(e?.()));return ee(()=>{n(r()?.tagName.toLowerCase()||Xr(e?.()))}),t}function Xr(r){return p1(r)?r:void 0}function I1(r){const[e,t]=Me(r,["as"]);if(!e.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return $(is,pe(t,{get component(){return e.as}}))}var j1=Object.defineProperty,E1=(r,e)=>{for(var t in e)j1(r,t,{get:e[t],enumerable:!0})},A1={};E1(A1,{Button:()=>Gn,Root:()=>Kn});var D1=["button","color","file","image","reset","submit"];function T1(r){const e=r.tagName.toLowerCase();return e==="button"?!0:e==="input"&&r.type?D1.indexOf(r.type)!==-1:!1}function Kn(r){let e;const t=V1({type:"button"},r),[n,a]=Me(t,["ref","type","disabled"]),s=_1(()=>e,()=>"button"),o=D(()=>{const f=s();return f==null?!1:T1({tagName:f,type:n.type})}),i=D(()=>s()==="input"),c=D(()=>s()==="a"&&e?.getAttribute("href")!=null);return $(I1,pe({as:"button",ref(f){var y=y1(u=>e=u,n.ref);typeof y=="function"&&y(f)},get type(){return qe(()=>!!(o()||i()))()?n.type:void 0},get role(){return!o()&&!c()?"button":void 0},get tabIndex(){return!o()&&!c()&&!n.disabled?0:void 0},get disabled(){return qe(()=>!!(o()||i()))()?n.disabled:void 0},get"aria-disabled"(){return!o()&&!i()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?"":void 0}},a))}var Gn=Kn,S1=W("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true><use>");const P1={"align-right":'<path d="M12.292 6.04167L16.2503 9.99998L12.292 13.9583M2.91699 9.99998H15.6253M17.0837 3.75V16.25" stroke="currentColor" stroke-linecap="square"/>',"arrow-up":'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.24121L16.0921 8.33343L15.2083 9.21731L10.6249 4.63397V17.5001H9.37492V4.63398L4.7916 9.21731L3.90771 8.33343L9.99991 2.24121Z" fill="currentColor"/>',"arrow-left":'<path d="M8.33464 4.58398L2.91797 10.0007L8.33464 15.4173M3.33464 10.0007H17.0846" stroke="currentColor" stroke-linecap="square"/>',"arrow-right":'<path d="M11.6654 4.58398L17.082 10.0007L11.6654 15.4173M16.6654 10.0007H2.91536" stroke="currentColor" stroke-linecap="square"/>',archive:'<path d="M16.8747 6.24935H17.3747V5.74935H16.8747V6.24935ZM16.8747 16.8743V17.3743H17.3747V16.8743H16.8747ZM3.12467 16.8743H2.62467V17.3743H3.12467V16.8743ZM3.12467 6.24935V5.74935H2.62467V6.24935H3.12467ZM2.08301 2.91602V2.41602H1.58301V2.91602H2.08301ZM17.9163 2.91602H18.4163V2.41602H17.9163V2.91602ZM17.9163 6.24935V6.74935H18.4163V6.24935H17.9163ZM2.08301 6.24935H1.58301V6.74935H2.08301V6.24935ZM8.33301 9.08268H7.83301V10.0827H8.33301V9.58268V9.08268ZM11.6663 10.0827H12.1663V9.08268H11.6663V9.58268V10.0827ZM16.8747 6.24935H16.3747V16.8743H16.8747H17.3747V6.24935H16.8747ZM16.8747 16.8743V16.3743H3.12467V16.8743V17.3743H16.8747V16.8743ZM3.12467 16.8743H3.62467V6.24935H3.12467H2.62467V16.8743H3.12467ZM3.12467 6.24935V6.74935H16.8747V6.24935V5.74935H3.12467V6.24935ZM2.08301 2.91602V3.41602H17.9163V2.91602V2.41602H2.08301V2.91602ZM17.9163 2.91602H17.4163V6.24935H17.9163H18.4163V2.91602H17.9163ZM17.9163 6.24935V5.74935H2.08301V6.24935V6.74935H17.9163V6.24935ZM2.08301 6.24935H2.58301V2.91602H2.08301H1.58301V6.24935H2.08301ZM8.33301 9.58268V10.0827H11.6663V9.58268V9.08268H8.33301V9.58268Z" fill="currentColor"/>',"bubble-5":'<path d="M18.3327 9.99935C18.3327 5.57227 15.0919 2.91602 9.99935 2.91602C4.90676 2.91602 1.66602 5.57227 1.66602 9.99935C1.66602 11.1487 2.45505 13.1006 2.57637 13.3939C2.58707 13.4197 2.59766 13.4434 2.60729 13.4697C2.69121 13.6987 3.04209 14.9354 1.66602 16.7674C3.51787 17.6528 5.48453 16.1973 5.48453 16.1973C6.84518 16.9193 8.46417 17.0827 9.99935 17.0827C15.0919 17.0827 18.3327 14.4264 18.3327 9.99935Z" stroke="currentColor" stroke-linecap="square"/>',prompt:'<path d="M14.5841 12.0807H17.9193V2.91406H5.6276V6.2474M14.5859 6.2474H2.08594V15.4141H5.0026V17.4974L8.7526 15.4141H14.5859V6.2474Z" stroke="currentColor" stroke-linecap="square"/>',brain:'<path d="M13.332 8.7487C11.4911 8.7487 9.9987 7.25631 9.9987 5.41536M6.66536 11.2487C8.50631 11.2487 9.9987 12.7411 9.9987 14.582M9.9987 2.78209L9.9987 17.0658M16.004 15.0475C17.1255 14.5876 17.9154 13.4849 17.9154 12.1978C17.9154 11.3363 17.5615 10.5575 16.9913 9.9987C17.5615 9.43991 17.9154 8.66108 17.9154 7.79962C17.9154 6.21199 16.7136 4.90504 15.1702 4.73878C14.7858 3.21216 13.4039 2.08203 11.758 2.08203C11.1171 2.08203 10.5162 2.25337 9.9987 2.55275C9.48117 2.25337 8.88032 2.08203 8.23944 2.08203C6.59353 2.08203 5.21157 3.21216 4.82722 4.73878C3.28377 4.90504 2.08203 6.21199 2.08203 7.79962C2.08203 8.66108 2.43585 9.43991 3.00609 9.9987C2.43585 10.5575 2.08203 11.3363 2.08203 12.1978C2.08203 13.4849 2.87191 14.5876 3.99339 15.0475C4.46688 16.7033 5.9917 17.9154 7.79962 17.9154C8.61335 17.9154 9.36972 17.6698 9.9987 17.2488C10.6277 17.6698 11.384 17.9154 12.1978 17.9154C14.0057 17.9154 15.5305 16.7033 16.004 15.0475Z" stroke="currentColor"/>',fork:'<path d="M2.91602 7.91406L2.91602 2.91406H7.91602M12.0827 2.91406H17.0827L17.0827 7.91406M9.99935 9.9974L9.99935 17.0807M9.99935 9.9974L3.33268 3.33073M9.99935 9.9974L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"bullet-list":'<path d="M9.58329 13.7497H17.0833M9.58329 6.24967H17.0833M6.24996 6.24967C6.24996 7.17015 5.50377 7.91634 4.58329 7.91634C3.66282 7.91634 2.91663 7.17015 2.91663 6.24967C2.91663 5.3292 3.66282 4.58301 4.58329 4.58301C5.50377 4.58301 6.24996 5.3292 6.24996 6.24967ZM6.24996 13.7497C6.24996 14.6701 5.50377 15.4163 4.58329 15.4163C3.66282 15.4163 2.91663 14.6701 2.91663 13.7497C2.91663 12.8292 3.66282 12.083 4.58329 12.083C5.50377 12.083 6.24996 12.8292 6.24996 13.7497Z" stroke="currentColor" stroke-linecap="square"/>',"check-small":'<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>',"chevron-down":'<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>',"chevron-left":'<path d="M12 15L7 10L12 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-right":'<path d="M8 15L13 10L8 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-grabber-vertical":'<path d="M6.66675 12.4998L10.0001 15.8332L13.3334 12.4998M6.66675 7.49984L10.0001 4.1665L13.3334 7.49984" stroke="currentColor" stroke-linecap="square"/>',"chevron-double-right":'<path d="M11.6654 13.3346L14.9987 10.0013L11.6654 6.66797M5.83203 13.3346L9.16536 10.0013L5.83203 6.66797" stroke="currentColor" stroke-linecap="square"/>',"circle-x":'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003ZM7.49984 6.91107L6.91058 7.50033L9.41058 10.0003L6.91058 12.5003L7.49984 13.0896L9.99984 10.5896L12.4998 13.0896L13.0891 12.5003L10.5891 10.0003L13.0891 7.50033L12.4998 6.91107L9.99984 9.41107L7.49984 6.91107Z" fill="currentColor"/>',close:'<path d="M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25" stroke="currentColor" stroke-linecap="square"/>',"close-small":'<path d="M6 6L14 14M14 6L6 14" stroke="currentColor" stroke-linecap="square"/>',checklist:'<path d="M9.58342 13.7498H17.0834M9.58342 6.24984H17.0834M2.91675 6.6665L4.58341 7.9165L7.08341 4.1665M2.91675 14.1665L4.58341 15.4165L7.08341 11.6665" stroke="currentColor" stroke-linecap="square"/>',console:'<path d="M3.75 5.4165L8.33333 9.99984L3.75 14.5832M10.4167 14.5832H16.25" stroke="currentColor" stroke-linecap="square"/>',terminal:'<path d="M6.5 8L8.64286 10L6.5 12M10.9286 12H13.5M2 18H18V2H2V18Z" stroke="currentColor" stroke-linecap="square"/>',"terminal-active":`<path d="M2 18H18V2H2V18Z" fill="currentColor" fill-opacity="0.1"/>
|
|
8
8
|
<path d="M6.5 8L8.64286 10L6.5 12M10.9286 12H13.5M2 18H18V2H2V18Z" stroke="currentColor" stroke-linecap="square"/>`,review:'<path d="M7 14.5H13M7 7.99512H10.0049M10.0049 7.99512H13M10.0049 7.99512V5M10.0049 7.99512V11M18 18V2L2 2L2 18H18Z" stroke="currentColor"/>',"review-active":`<path d="M18 18V2L2 2L2 18H18Z" fill="currentColor" fill-opacity="0.1"/>
|
|
9
9
|
<path d="M7 14.5H13M7 7.99512H10.0049M10.0049 7.99512H13M10.0049 7.99512V5M10.0049 7.99512V11M18 18V2L2 2L2 18H18Z" stroke="currentColor"/>`,expand:'<path d="M4.58301 10.4163V15.4163H9.58301M10.4163 4.58301H15.4163V9.58301" stroke="currentColor" stroke-linecap="square"/>',collapse:'<path d="M16.666 8.33398H11.666V3.33398" stroke="currentColor" stroke-linecap="square"/><path d="M8.33398 16.666V11.666H3.33398" stroke="currentColor" stroke-linecap="square"/>',compress:'<path d="M5 10H15M6.667 4.167L10 7.5L13.333 4.167M6.667 15.833L10 12.5L13.333 15.833" stroke="currentColor" stroke-linecap="square"/>',code:'<path d="M8.7513 7.5013L6.2513 10.0013L8.7513 12.5013M11.2513 7.5013L13.7513 10.0013L11.2513 12.5013M2.91797 2.91797H17.0846V17.0846H2.91797V2.91797Z" stroke="currentColor"/>',"code-lines":'<path d="M2.08325 3.75H11.2499M14.5833 3.75H17.9166M2.08325 10L7.08325 10M10.4166 10L17.9166 10M2.08325 16.25L8.74992 16.25M12.0833 16.25L17.9166 16.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>',"circle-ban-sign":'<path d="M15.3675 4.63087L4.55742 15.441M17.9163 9.9987C17.9163 14.371 14.3719 17.9154 9.99967 17.9154C7.81355 17.9154 5.83438 17.0293 4.40175 15.5966C2.96911 14.164 2.08301 12.1848 2.08301 9.9987C2.08301 5.62644 5.62742 2.08203 9.99967 2.08203C12.1858 2.08203 14.165 2.96813 15.5976 4.40077C17.0302 5.8334 17.9163 7.81257 17.9163 9.9987Z" stroke="currentColor" stroke-linecap="round"/>',"edit-small-2":'<path d="M17.0834 17.0833V17.5833H17.5834V17.0833H17.0834ZM2.91675 17.0833H2.41675V17.5833H2.91675V17.0833ZM2.91675 2.91659V2.41659H2.41675V2.91659H2.91675ZM9.58341 3.41659H10.0834V2.41659H9.58341V2.91659V3.41659ZM17.5834 10.4166V9.91659H16.5834V10.4166H17.0834H17.5834ZM10.4167 7.08325L10.0632 6.7297L9.91675 6.87615V7.08325H10.4167ZM10.4167 9.58325H9.91675V10.0833H10.4167V9.58325ZM12.9167 9.58325V10.0833H13.1239L13.2703 9.93681L12.9167 9.58325ZM15.4167 2.08325L15.7703 1.7297L15.4167 1.37615L15.0632 1.7297L15.4167 2.08325ZM17.9167 4.58325L18.2703 4.93681L18.6239 4.58325L18.2703 4.2297L17.9167 4.58325ZM17.0834 17.0833V16.5833H2.91675V17.0833V17.5833H17.0834V17.0833ZM2.91675 17.0833H3.41675V2.91659H2.91675H2.41675V17.0833H2.91675ZM2.91675 2.91659V3.41659H9.58341V2.91659V2.41659H2.91675V2.91659ZM17.0834 10.4166H16.5834V17.0833H17.0834H17.5834V10.4166H17.0834ZM10.4167 7.08325H9.91675V9.58325H10.4167H10.9167V7.08325H10.4167ZM10.4167 9.58325V10.0833H12.9167V9.58325V9.08325H10.4167V9.58325ZM10.4167 7.08325L10.7703 7.43681L15.7703 2.43681L15.4167 2.08325L15.0632 1.7297L10.0632 6.7297L10.4167 7.08325ZM15.4167 2.08325L15.0632 2.43681L17.5632 4.93681L17.9167 4.58325L18.2703 4.2297L15.7703 1.7297L15.4167 2.08325ZM17.9167 4.58325L17.5632 4.2297L12.5632 9.2297L12.9167 9.58325L13.2703 9.93681L18.2703 4.93681L17.9167 4.58325Z" fill="currentColor"/>',eye:'<path d="M10 4.58325C5.83333 4.58325 2.5 9.99992 2.5 9.99992C2.5 9.99992 5.83333 15.4166 10 15.4166C14.1667 15.4166 17.5 9.99992 17.5 9.99992C17.5 9.99992 14.1667 4.58325 10 4.58325Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/>',enter:'<path d="M5.83333 15.8334L2.5 12.5L5.83333 9.16671M3.33333 12.5H17.9167V4.58337H10" stroke="currentColor" stroke-linecap="square"/>',folder:'<path d="M2.08301 2.91675V16.2501H17.9163V5.41675H9.99967L8.33301 2.91675H2.08301Z" stroke="currentColor" stroke-linecap="round"/>',"file-tree":'<path d="M18 18V5H9.5L7.5 2H2L2 18H5M18 18H5M18 18V8.5H5V18" stroke="currentColor" stroke-linecap="square"/>',"file-tree-active":`<path d="M2 2L2 18H5L6.5 8.5H18V5H9.5L7.5 2H2Z" fill="currentColor" fill-opacity="0.1"/>
|
|
10
10
|
<path d="M5 18H18L19.5 8.5H18M5 18H2L2 2H7.5L9.5 5H18V8.5M5 18L6.5 8.5H18" stroke="currentColor" stroke-linecap="square"/>`,"magnifying-glass":'<path d="M13 13L10.6418 10.6418M11.9552 7.47761C11.9552 9.95053 9.95053 11.9552 7.47761 11.9552C5.0047 11.9552 3 9.95053 3 7.47761C3 5.0047 5.0047 3 7.47761 3C9.95053 3 11.9552 5.0047 11.9552 7.47761Z" stroke="currentColor" stroke-linecap="square" vector-effect="non-scaling-stroke"/>',"plus-small":'<path d="M9.99984 5.41699V10.0003M9.99984 10.0003V14.5837M9.99984 10.0003H5.4165M9.99984 10.0003H14.5832" stroke="currentColor" stroke-linecap="square"/>',plus:'<path d="M9.9987 2.20703V9.9987M9.9987 9.9987V17.7904M9.9987 9.9987H2.20703M9.9987 9.9987H17.7904" stroke="currentColor" stroke-linecap="square"/>',"new-session":'<path d="M12 2H2V18H18V8M6 11.3818V14H8.61818L18 4.61818L15.3818 2L6 11.3818Z" stroke="currentColor"/>',"new-session-active":`<path d="M6 11.3818V14H8.61818L18 4.61818L15.3818 2L6 11.3818Z" fill="currentColor" fill-opacity="0.1"/>
|
|
11
11
|
<path d="M12 2H2V18H18V8M6 11.3818V14H8.61818L18 4.61818L15.3818 2L6 11.3818Z" stroke="currentColor"/>`,"pencil-line":'<path d="M9.58301 17.9166H17.9163M17.9163 5.83325L14.1663 2.08325L2.08301 14.1666V17.9166H5.83301L17.9163 5.83325Z" stroke="currentColor" stroke-linecap="square"/>',mcp:'<g><path d="M0.972656 9.37176L9.5214 1.60019C10.7018 0.527151 12.6155 0.527151 13.7957 1.60019C14.9761 2.67321 14.9761 4.41295 13.7957 5.48599L7.3397 11.3552" stroke="currentColor" stroke-linecap="round"/><path d="M7.42871 11.2747L13.7957 5.48643C14.9761 4.41338 16.8898 4.41338 18.0702 5.48643L18.1147 5.52688C19.2951 6.59993 19.2951 8.33966 18.1147 9.4127L10.3831 16.4414C9.98966 16.7991 9.98966 17.379 10.3831 17.7366L11.9707 19.1799" stroke="currentColor" stroke-linecap="round"/><path d="M11.6587 3.54346L5.33619 9.29119C4.15584 10.3642 4.15584 12.1039 5.33619 13.177C6.51649 14.25 8.43019 14.25 9.61054 13.177L15.9331 7.42923" stroke="currentColor" stroke-linecap="round"/></g>',glasses:'<path d="M0.416626 7.91667H1.66663M19.5833 7.91667H18.3333M11.866 7.57987C11.3165 7.26398 10.6793 7.08333 9.99996 7.08333C9.32061 7.08333 8.68344 7.26398 8.13389 7.57987M8.74996 10C8.74996 12.0711 7.07103 13.75 4.99996 13.75C2.92889 13.75 1.24996 12.0711 1.24996 10C1.24996 7.92893 2.92889 6.25 4.99996 6.25C7.07103 6.25 8.74996 7.92893 8.74996 10ZM18.75 10C18.75 12.0711 17.071 13.75 15 13.75C12.9289 13.75 11.25 12.0711 11.25 10C11.25 7.92893 12.9289 6.25 15 6.25C17.071 6.25 18.75 7.92893 18.75 10Z" stroke="currentColor" stroke-linecap="square"/>',"magnifying-glass-menu":'<path d="M2.08325 10.0002H4.58325M2.08325 5.41683H5.41659M2.08325 14.5835H5.41659M16.4583 13.9585L18.7499 16.2502M17.9166 10.0002C17.9166 12.9917 15.4915 15.4168 12.4999 15.4168C9.50838 15.4168 7.08325 12.9917 7.08325 10.0002C7.08325 7.00862 9.50838 4.5835 12.4999 4.5835C15.4915 4.5835 17.9166 7.00862 17.9166 10.0002Z" stroke="currentColor" stroke-linecap="square"/>',"window-cursor":'<path d="M17.9166 10.4167V3.75H2.08325V17.0833H10.4166M17.9166 13.5897L11.6666 11.6667L13.5897 17.9167L15.032 15.0321L17.9166 13.5897Z" stroke="currentColor" stroke-width="1.07143" stroke-linecap="square"/><path d="M5.00024 6.125C5.29925 6.12518 5.54126 6.36795 5.54126 6.66699C5.54108 6.96589 5.29914 7.20783 5.00024 7.20801C4.7012 7.20801 4.45843 6.966 4.45825 6.66699C4.45825 6.36784 4.70109 6.125 5.00024 6.125ZM7.91626 6.125C8.21541 6.125 8.45825 6.36784 8.45825 6.66699C8.45808 6.966 8.21531 7.20801 7.91626 7.20801C7.61736 7.20783 7.37542 6.96589 7.37524 6.66699C7.37524 6.36795 7.61726 6.12518 7.91626 6.125ZM10.8333 6.125C11.1324 6.125 11.3752 6.36784 11.3752 6.66699C11.3751 6.966 11.1323 7.20801 10.8333 7.20801C10.5342 7.20801 10.2914 6.966 10.2913 6.66699C10.2913 6.36784 10.5341 6.125 10.8333 6.125Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="square"/>',task:'<path d="M9.99992 2.0835V17.9168M7.08325 3.75016H2.08325V16.2502H7.08325M12.9166 16.2502H17.9166V3.75016H12.9166" stroke="currentColor" stroke-linecap="square"/>',play:'<path d="M6 4L16 10L6 16V4Z" fill="currentColor"/>',subagent:'<path d="M4.5 5C4.5 4.72386 4.72386 4.5 5 4.5H11C11.2761 4.5 11.5 4.72386 11.5 5V11C11.5 11.2761 11.2761 11.5 11 11.5H5C4.72386 11.5 4.5 11.2761 4.5 11V5Z" fill="currentColor"/><path d="M13.5 2C13.7761 2 14 2.22386 14 2.5V13.5C14 13.7761 13.7761 14 13.5 14H2.5C2.22386 14 2 13.7761 2 13.5V2.5C2 2.22386 2.22386 2 2.5 2H13.5ZM3 13H13V3H3V13Z" fill="currentColor"/>',stop:'<rect x="5" y="5" width="10" height="10" fill="currentColor"/>',status:'<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>',"status-active":`<path d="M18 2H2V10H18V2Z" fill="currentColor" fill-opacity="0.1"/>
|
|
12
12
|
<path d="M2 18H18V10H2V18Z" fill="currentColor" fill-opacity="0.1"/>
|
|
13
13
|
<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`,sidebar:'<path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>',"sidebar-active":`<path d="M2 2V18H5.2H7.86667V2H5.2H2Z" fill="currentColor" fill-opacity="0.1"/>
|
|
14
|
-
<path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>`,"layout-left":'<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>',"layout-left-partial":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-left-full":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-right":'<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>',"layout-right-partial":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"layout-right-full":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"square-arrow-top-right":'<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>',"open-file":'<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"go-to-file":'<path d="M12.5 2.917H7.5V17.083H16.667V7.083L12.5 2.917ZM12.5 2.917V7.083H16.667M5 14.167V7.917M2.917 10L5 7.917L7.083 10" stroke="currentColor" stroke-linecap="square"/>',"speech-bubble":'<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>',comment:'<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>',"folder-add-left":'<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>',github:'<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>',discord:'<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>',"layout-bottom":'<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>',"layout-bottom-partial":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"layout-bottom-full":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"dot-grid":'<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>',"circle-check":'<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>',copy:'<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>',check:'<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>',photo:'<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>',share:'<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>',shield:'<path d="M7.49935 9.3737L9.16602 11.0404L12.4994 7.70703M9.99935 2.08203L17.0827 4.3737V9.92565C17.0827 14.0694 13.3327 16.2487 9.99935 18.047C6.66602 16.2487 2.91602 14.0694 2.91602 9.92565V4.3737L9.99935 2.08203Z" stroke="currentColor" stroke-linecap="square"/>',lock:'<path d="M5.833 8.33366V6.25033C5.833 3.71903 7.96805 1.66699 10.4993 1.66699C13.0307 1.66699 15.166 3.71903 15.166 6.25033V8.33366M4.16634 8.33366H16.833C17.7535 8.33366 18.4997 9.07985 18.4997 10.0003V16.667C18.4997 17.5875 17.7535 18.3337 16.833 18.3337H4.16634C3.24586 18.3337 2.49967 17.5875 2.49967 16.667V10.0003C2.49967 9.07985 3.24586 8.33366 4.16634 8.33366Z" stroke="currentColor" stroke-linecap="square"/>',download:'<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>',menu:'<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>',server:'<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>',branch:'<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>',edit:'<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>',history:'<path d="M10 3.33301C6.31811 3.33301 3.33337 6.31775 3.33337 9.99967C3.33337 13.6816 6.31811 16.6663 10 16.6663C13.682 16.6663 16.6667 13.6816 16.6667 9.99967H15.4167C15.4167 12.9912 12.9915 15.4163 10 15.4163C7.00851 15.4163 4.58337 12.9912 4.58337 9.99967C4.58337 7.00818 7.00851 4.58301 10 4.58301C11.6454 4.58301 13.1219 5.29453 14.1525 6.42634L12.0834 6.42634V7.67634H16.0417V3.74967H14.7917V5.52741C13.5128 4.15283 11.8556 3.33301 10 3.33301ZM10.625 7.08301H9.37504V10.2588L11.8413 12.7251L12.7252 11.8412L10.625 9.74106V7.08301Z" fill="currentColor"/>',help:'<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>',"settings-gear":'<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>',dash:'<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>',"cloud-upload":'<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>',trash:'<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>',sliders:'<path d="M3.625 6.25H10.9375M16.375 13.75H10.5625M3.625 13.75H4.9375M11.125 6.25C11.125 4.79969 12.2997 3.625 13.75 3.625C15.2003 3.625 16.375 4.79969 16.375 6.25C16.375 7.70031 15.2003 8.875 13.75 8.875C12.2997 8.875 11.125 7.70031 11.125 6.25ZM10.375 13.75C10.375 15.2003 9.20031 16.375 7.75 16.375C6.29969 16.375 5.125 15.2003 5.125 13.75C5.125 12.2997 6.29969 11.125 7.75 11.125C9.20031 11.125 10.375 12.2997 10.375 13.75Z" stroke="currentColor" stroke-linecap="square"/>',keyboard:'<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>',selector:'<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>',"arrow-down-to-line":'<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>',star:'<path d="M10 2.5l2.35 4.76 5.25.77-3.8 3.7.9 5.24L10 14.64l-4.7 2.47.9-5.24-3.8-3.7 5.25-.77L10 2.5z" stroke="currentColor" stroke-linejoin="round"/>',"star-filled":'<path d="M10 2.5l2.35 4.76 5.25.77-3.8 3.7.9 5.24L10 14.64l-4.7 2.47.9-5.24-3.8-3.7 5.25-.77L10 2.5z" fill="currentColor" stroke="currentColor" stroke-linejoin="round"/>',warning:'<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>',reset:'<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>',link:'<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>',providers:'<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>',layers:'<path d="M10 2.5L2.5 6.25L10 10L17.5 6.25L10 2.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.5 13.75L10 17.5L17.5 13.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.5 10L10 13.75L17.5 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',models:'<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>',discard:'<path d="M7.5 5L4.167 8.333L7.5 11.667M4.583 8.333h6.667a4.167 4.167 0 0 1 4.167 4.167" stroke="currentColor" stroke-linecap="square"/>',"arrow-undo-down":'<path d="M4.08333 11.0859L1.75 8.7526L4.08333 6.41927M2.33333 8.7526L12.5417 8.7526L12.5417 3.21094L7 3.21094" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>'},Qr="opencode-icon-sprite",Yn=r=>`opencode-icon-${r}`;let Wt=!1;function Xn(r){return r==="magnifying-glass"||r==="arrow-undo-down"||r==="subagent"?"0 0 16 16":"0 0 20 20"}function F1(){if(Wt||typeof document>"u")return;if(document.getElementById(Qr)){Wt=!0;return}const r=document.body;if(!r)return;const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.id=Qr,e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.style.overflow="hidden",e.style.display="none",e.innerHTML=Object.entries(P1).map(([t,n])=>{const a=t;return`<symbol id="${Yn(a)}" viewBox="${Xn(a)}">${n}</symbol>`}).join(""),r.insertBefore(e,r.firstChild),Wt=!0}function Z1(r){const[e,t]=Me(r,["name","size","class","classList"]);return $t(F1),(()=>{var n=S1(),a=n.firstChild,s=a.firstChild;return Ne(a,pe({get classList(){return{...e.classList,[e.class??""]:!!e.class}},get viewBox(){return Xn(e.name)}},t),!0,!0),ne(o=>{var i=e.size||"normal",c=e.name==="arrow-left"||e.name==="arrow-right"||e.name==="chevron-left"||e.name==="chevron-right"?!0:void 0,f=`#${Yn(e.name)}`;return i!==o.e&&ce(n,"data-size",o.e=i),c!==o.t&&ce(n,"data-directional",o.t=c),f!==o.a&&ce(s,"href",o.a=f),o},{e:void 0,t:void 0,a:void 0}),n})()}var B1=W("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true>");const O1={"circle-x-outline":{viewBox:"0 0 20 20",path:'<path d="M7.5 7.5L12.5 12.5M12.5 7.5L7.5 12.5M18.3333 10C18.3333 14.6024 14.6024 18.3333 10 18.3333C5.39763 18.3333 1.66667 14.6024 1.66667 10C1.66667 5.39763 5.39763 1.66667 10 1.66667C14.6024 1.66667 18.3333 5.39763 18.3333 10Z" stroke="currentColor" stroke-linecap="square"/>'},"pull-request":{viewBox:"0 0 20 20",path:'<circle cx="4.6875" cy="4.0625" r="1.875" stroke="currentColor" stroke-width="1.25"/><circle cx="4.6875" cy="15.9375" r="1.875" stroke="currentColor" stroke-width="1.25"/><circle cx="15.9375" cy="15.9375" r="1.875" stroke="currentColor" stroke-width="1.25"/><path d="M4.6875 5.9375V14.0625M15.9375 14.0625V6.25A2.5 2.5 0 0 0 13.4375 3.75H9.6875M11.5625 1.875L9.6875 3.75L11.5625 5.625" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>'},"git-commit":{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="2.5" stroke="currentColor" stroke-width="1.25"/><path d="M1.875 10H7.5M12.5 10H18.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>'},"git-merge":{viewBox:"0 0 20 20",path:'<circle cx="5" cy="5" r="2.5" stroke="currentColor" stroke-width="1.25"/><circle cx="15" cy="15" r="2.5" stroke="currentColor" stroke-width="1.25"/><path d="M5 17.5V7.5A7.5 7.5 0 0 0 12.5 15" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>'},refresh:{viewBox:"0 0 20 20",path:'<path d="M17.0837 10.0003C17.0837 13.9123 13.9123 17.0837 10.0003 17.0837C6.08833 17.0837 2.91699 13.9123 2.91699 10.0003C2.91699 6.08833 6.08833 2.91699 10.0003 2.91699C12.3717 2.91699 14.4722 4.07428 15.7698 5.83366M15.7698 5.83366V2.91699M15.7698 5.83366H12.8532" stroke="currentColor" stroke-linecap="square"/>'},memory:{viewBox:"0 0 24 24",path:'<path d="M2 7h4M2 12h4M2 17h4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><rect width="16" height="20" x="4" y="2" rx="2" stroke="currentColor" stroke-width="1.5"/>'},database:{viewBox:"0 0 24 24",path:'<ellipse cx="12" cy="5" rx="7" ry="3" stroke="currentColor" stroke-width="1.5"/><path d="M5 5v7c0 1.66 3.13 3 7 3s7-1.34 7-3V5M5 12v7c0 1.66 3.13 3 7 3s7-1.34 7-3v-7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},extensions:{viewBox:"0 0 20 20",path:'<path d="M8.5 2.5h3v3h3v3h3v3h-3v3h-3v3h-3v-3h-3v-3h-3v-3h3v-3h3v-3Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>'},"book-open-check":{viewBox:"0 0 24 24",path:'<path d="M12 21V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="m16 12 2 2 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},coffee:{viewBox:"0 0 24 24",path:'<path d="M17 8h1a4 4 0 1 1 0 8h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 2v2M10 2v2M14 2v2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},"coffee-filled":{viewBox:"0 0 24 24",path:'<path d="M17 8h1a4 4 0 1 1 0 8h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" fill="currentColor"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 2v2M10 2v2M14 2v2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},microphone:{viewBox:"0 0 24 24",path:'<rect x="9" y="3" width="6" height="11" rx="3" stroke="currentColor" stroke-width="1.5"/><path d="M5.5 10.5a6.5 6.5 0 0 0 13 0M12 17v4M8.5 21h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},"circuit-board":{viewBox:"0 0 16 16",path:'<path d="M12.5 1H3.5C2.121 1 1 2.121 1 3.5V12.5C1 13.879 2.121 15 3.5 15H12.5C13.879 15 15 13.879 15 12.5V3.5C15 2.121 13.879 1 12.5 1ZM6 6.5C6 6.775 5.775 7 5.5 7C5.225 7 5 6.775 5 6.5C5 6.225 5.225 6 5.5 6C5.775 6 6 6.225 6 6.5ZM12.5 14H6V11.5C6 11.225 6.225 11 6.5 11H9.092C9.299 11.581 9.849 12 10.5 12C11.327 12 12 11.327 12 10.5C12 9.673 11.327 9 10.5 9C9.849 9 9.299 9.419 9.092 10H6.5C5.673 10 5 10.673 5 11.5V14H3.5C2.673 14 2 13.327 2 12.5V3.5C2 2.673 2.673 2 3.5 2H5V5.092C4.419 5.299 4 5.849 4 6.5C4 7.327 4.673 8 5.5 8C6.327 8 7 7.327 7 6.5C7 5.849 6.581 5.299 6 5.092V2H12.5C13.327 2 14 2.673 14 3.5V6H10.908C10.701 5.419 10.151 5 9.5 5C8.673 5 8 5.673 8 6.5C8 7.327 8.673 8 9.5 8C10.151 8 10.701 7.581 10.908 7H14V12.5C14 13.327 13.327 14 12.5 14ZM10 10.5C10 10.225 10.225 10 10.5 10C10.775 10 11 10.225 11 10.5C11 10.775 10.775 11 10.5 11C10.225 11 10 10.775 10 10.5ZM10 6.5C10 6.775 9.775 7 9.5 7C9.225 7 9 6.775 9 6.5C9 6.225 9.225 6 9.5 6C9.775 6 10 6.225 10 6.5Z" fill="currentColor"/>'},globe:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7" stroke="currentColor" stroke-width="1.25"/><path d="M3.25 10H16.75M10 3C12 4.875 13 7.2 13 10C13 12.8 12 15.125 10 17M10 3C8 4.875 7 7.2 7 10C7 12.8 8 15.125 10 17" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'},organization:{viewBox:"0 0 16 16",path:'<path d="M6.00195 4.00002C6.00195 2.89655 6.89649 2.00201 7.99995 2.00201C9.10342 2.00201 9.99796 2.89655 9.99796 4.00002C9.99796 5.10348 9.10342 5.99802 7.99995 5.99802C6.89649 5.99802 6.00195 5.10348 6.00195 4.00002ZM7.99995 3.00201C7.44877 3.00201 7.00195 3.44883 7.00195 4.00002C7.00195 4.5512 7.44877 4.99802 7.99995 4.99802C8.55114 4.99802 8.99796 4.5512 8.99796 4.00002C8.99796 3.44883 8.55114 3.00201 7.99995 3.00201ZM11 4.5C11 3.67157 11.6716 3 12.5 3C13.3284 3 14 3.67157 14 4.5C14 5.32843 13.3284 6 12.5 6C11.6716 6 11 5.32843 11 4.5ZM12.5 4C12.2239 4 12 4.22386 12 4.5C12 4.77614 12.2239 5 12.5 5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4ZM3.5 3C2.67157 3 2 3.67157 2 4.5C2 5.32843 2.67157 6 3.5 6C4.32843 6 5 5.32843 5 4.5C5 3.67157 4.32843 3 3.5 3ZM3 4.5C3 4.22386 3.22386 4 3.5 4C3.77614 4 4 4.22386 4 4.5C4 4.77614 3.77614 5 3.5 5C3.22386 5 3 4.77614 3 4.5ZM4.26756 6.99969C4.09739 7.29387 4 7.63541 4 7.99969L2 7.99969V10.5C2 11.3285 2.67157 12 3.5 12C3.71194 12 3.91361 11.9561 4.09639 11.8768C4.1705 12.2082 4.28572 12.524 4.43643 12.8187C4.14721 12.9356 3.83112 13 3.5 13C2.11929 13 1 11.8807 1 10.5V7.99969C1 7.44741 1.44772 6.99969 2 6.99969H4.26756ZM11.5636 12.8187C11.8528 12.9356 12.1689 13 12.5 13C13.8807 13 15 11.8807 15 10.5V7.99969C15 7.44741 14.5523 6.99969 14 6.99969H11.7324C11.9026 7.29387 12 7.63541 12 7.9997L14 7.99969V10.5C14 11.3285 13.3284 12 12.5 12C12.2881 12 12.0864 11.9561 11.9036 11.8768C11.8295 12.2082 11.7143 12.524 11.5636 12.8187ZM6 6.99969C5.44772 6.99969 5 7.44741 5 7.99969V11C5 12.6569 6.34315 14 8 14C9.65685 14 11 12.6569 11 11V7.99969C11 7.44741 10.5523 6.99969 10 6.99969H6ZM6 7.99969L10 7.99969V11C10 12.1046 9.10457 13 8 13C6.89543 13 6 12.1046 6 11V7.99969Z" fill="currentColor"/>'},"thumbs-up":{viewBox:"0 0 20 20",path:'<path d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814.16-.432.248-.9.248-1.388Z" stroke="currentColor" fill="none" stroke-linejoin="round"/>'},"thumbs-down":{viewBox:"0 0 20 20",path:'<path d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 0 1 2.5 0v7.5ZM8.905 17v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826.204-.54-.166-1.174-.744-1.174h-2.52c-1.243 0-2.261-1.01-2.146-2.247a23.864 23.864 0 0 1 1.341-5.974C2.547 3.677 3.628 3 4.8 3h3.192a3 3 0 0 1 1.341.317l2.734 1.366A3 3 0 0 0 13.408 5H15v7h-.963c-.685 0-1.258.483-1.612 1.068a4.011 4.011 0 0 1-2.166 1.73c-.432.143-.853.386-1.011.814-.16.432-.248.9-.248 1.388Z" stroke="currentColor" fill="none" stroke-linejoin="round"/>'},"thumbs-up-filled":{viewBox:"0 0 20 20",path:'<path d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814.16-.432.248-.9.248-1.388Z" fill="currentColor"/>'},"thumbs-down-filled":{viewBox:"0 0 20 20",path:'<path d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 0 1 2.5 0v7.5ZM8.905 17v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826.204-.54-.166-1.174-.744-1.174h-2.52c-1.243 0-2.261-1.01-2.146-2.247a23.864 23.864 0 0 1 1.341-5.974C2.547 3.677 3.628 3 4.8 3h3.192a3 3 0 0 1 1.341.317l2.734 1.366A3 3 0 0 0 13.408 5H15v7h-.963c-.685 0-1.258.483-1.612 1.068a4.011 4.011 0 0 1-2.166 1.73c-.432.143-.853.386-1.011.814-.16.432-.248.9-.248 1.388Z" fill="currentColor"/>'},"files-expand":{viewBox:"0 0 16 16",path:'<path d="M15 6V11C15 13.21 13.21 15 11 15H6C5.26 15 4.62 14.6 4.27 14H11C12.65 14 14 12.65 14 11V4.27C14.6 4.62 15 5.26 15 6ZM11 13H4C2.897 13 2 12.103 2 11V4C2 2.897 2.897 2 4 2H11C12.103 2 13 2.897 13 4V11C13 12.103 12.103 13 11 13ZM4 12H11C11.551 12 12 11.552 12 11V4C12 3.449 11.551 3 11 3H4C3.449 3 3 3.449 3 4V11C3 11.552 3.449 12 4 12ZM9.5 7H8V5.5C8 5.224 7.776 5 7.5 5C7.224 5 7 5.224 7 5.5V7H5.5C5.224 7 5 7.224 5 7.5C5 7.776 5.224 8 5.5 8H7V9.5C7 9.776 7.224 10 7.5 10C7.776 10 8 9.776 8 9.5V8H9.5C9.776 8 10 7.776 10 7.5C10 7.224 9.776 7 9.5 7Z" fill="currentColor"/>'},"files-collapse":{viewBox:"0 0 16 16",path:'<path d="M14 4.27051C14.5999 4.62053 15 5.26009 15 6V11C15 13.21 13.21 15 11 15H6C5.26009 15 4.62053 14.5999 4.27051 14H11C12.65 14 14 12.65 14 11V4.27051Z" fill="currentColor"/><path d="M9.5 7C9.776 7 10 7.224 10 7.5C10 7.776 9.776 8 9.5 8H5.5C5.224 8 5 7.776 5 7.5C5 7.224 5.224 7 5.5 7H9.5Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11 2C12.103 2 13 2.897 13 4V11C13 12.103 12.103 13 11 13H4C2.897 13 2 12.103 2 11V4C2 2.897 2.897 2 4 2H11ZM4 3C3.449 3 3 3.449 3 4V11C3 11.552 3.449 12 4 12H11C11.551 12 12 11.552 12 11V4C12 3.449 11.551 3 11 3H4Z" fill="currentColor"/>'},reload:{viewBox:"0 0 24 24",path:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 3v5h-5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 21v-5h5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>'},gauge:{viewBox:"0 0 24 24",path:'<path d="M12 14L9 10M12 14L15 10M21 15C21 18.866 17.866 22 14 22H10C6.134 22 3 18.866 3 15V9C3 5.134 6.134 2 10 2H14C17.866 2 21 5.134 21 9V15Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},target:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7.5" stroke="currentColor"/><circle cx="10" cy="10" r="4.5" stroke="currentColor"/><circle cx="10" cy="10" r="1.5" fill="currentColor"/>'},local:{viewBox:"0 0 20 20",path:'<rect x="2.5" y="3.5" width="15" height="10" rx="1" stroke="currentColor"/><path d="M6 16.5H14" stroke="currentColor" stroke-linecap="square"/><path d="M10 13.5V16.5" stroke="currentColor"/>'},user:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="6.5" r="3" stroke="currentColor" stroke-width="1.25"/><path d="M4 17c.5-3 2.5-4.5 6-4.5s5.5 1.5 6 4.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'},"wand-sparkles":{viewBox:"0 0 24 24",path:'<path d="m15 4 1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3ZM19 13l.7 2.3L22 16l-2.3.7L19 19l-.7-2.3L16 16l2.3-.7L19 13ZM4 20 14 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},send:{viewBox:"0 0 16 16",path:'<path d="M1.5 1.5 14.5 8 1.5 14.5V9L10 8 1.5 7V1.5Z" fill="currentColor"/>'},reply:{viewBox:"0 0 20 20",path:'<path d="m9 16-5-5 5-5M4 11h10a4 4 0 0 1 4 4v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>'},smile:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7.5" stroke="currentColor" stroke-width="1.25"/><path d="M7 8h.01M13 8h.01M7 12c.9 1.2 2 1.8 3 1.8s2.1-.6 3-1.8" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'}};function R1(r){const[e,t]=Me(r,["name","size","class","classList"]),n=()=>O1[e.name];return $(ie,{get when(){return n()},get fallback(){return $(Z1,pe(t,{get name(){return e.name},get size(){return e.size},get class(){return e.class},get classList(){return e.classList}}))},children:a=>(()=>{var s=B1(),o=s.firstChild;return Ne(o,pe({get classList(){return{...e.classList,[e.class??""]:!!e.class}},get viewBox(){return a().viewBox},get innerHTML(){return a().path}},t),!0,!1),ne(()=>ce(s,"data-size",e.size||"normal")),s})()})}function z1(r){return!r||r==="normal"?"icon":r==="small"?"icon-sm":r==="large"?"icon-lg":r}function N1(r){return!r||r==="default"?"secondary":r}function Jt(r){const[e,t]=Me(r,["variant","size","icon","iconSize","active","class","classList","children"]);return $(Gn,pe(t,{"data-component":"icon-button",get"data-size"(){return z1(e.size)},get"data-variant"(){return N1(e.variant)},get"data-active"(){return e.active||void 0},get"aria-pressed"(){return e.active||void 0},get classList(){return{...e.classList,[e.class??""]:!!e.class}},get children(){return[$(ie,{get when(){return e.icon},children:n=>$(R1,{get name(){return n()},get size(){return e.iconSize??"small"}})}),Le(()=>e.children)]}}))}function U1({onRequest:r,onSseError:e,onSseEvent:t,responseTransformer:n,responseValidator:a,sseDefaultRetryDelay:s,sseMaxRetryAttempts:o,sseMaxRetryDelay:i,sseSleepFn:c,url:f,...y}){let u;const p=c??(h=>new Promise(w=>setTimeout(w,h)));return{stream:async function*(){let h=s??3e3,w=0;const H=y.signal??new AbortController().signal;for(;!H.aborted;){w++;const _=y.headers instanceof Headers?y.headers:new Headers(y.headers);u!==void 0&&_.set("Last-Event-ID",u);try{const A={redirect:"follow",...y,body:y.serializedBody,headers:_,signal:H};let T=new Request(f,A);r&&(T=await r(f,A));const x=await(y.fetch??globalThis.fetch)(T);if(!x.ok)throw new Error(`SSE failed: ${x.status} ${x.statusText}`);if(!x.body)throw new Error("No body in SSE response");const F=x.body.pipeThrough(new TextDecoderStream).getReader();let j="";const b=()=>{try{F.cancel()}catch{}};H.addEventListener("abort",b);try{for(;;){const{done:S,value:v}=await F.read();if(S)break;j+=v,j=j.replace(/\r\n?/g,`
|
|
14
|
+
<path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>`,"layout-left":'<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>',"layout-left-partial":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-left-full":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-right":'<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>',"layout-right-partial":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"layout-right-full":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"square-arrow-top-right":'<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>',"open-file":'<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"go-to-file":'<path d="M12.5 2.917H7.5V17.083H16.667V7.083L12.5 2.917ZM12.5 2.917V7.083H16.667M5 14.167V7.917M2.917 10L5 7.917L7.083 10" stroke="currentColor" stroke-linecap="square"/>',"speech-bubble":'<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>',comment:'<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>',"folder-add-left":'<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>',github:'<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>',discord:'<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>',"layout-bottom":'<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>',"layout-bottom-partial":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"layout-bottom-full":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"dot-grid":'<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>',"circle-check":'<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>',copy:'<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>',check:'<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>',photo:'<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>',share:'<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>',shield:'<path d="M7.49935 9.3737L9.16602 11.0404L12.4994 7.70703M9.99935 2.08203L17.0827 4.3737V9.92565C17.0827 14.0694 13.3327 16.2487 9.99935 18.047C6.66602 16.2487 2.91602 14.0694 2.91602 9.92565V4.3737L9.99935 2.08203Z" stroke="currentColor" stroke-linecap="square"/>',lock:'<path d="M5.833 8.33366V6.25033C5.833 3.71903 7.96805 1.66699 10.4993 1.66699C13.0307 1.66699 15.166 3.71903 15.166 6.25033V8.33366M4.16634 8.33366H16.833C17.7535 8.33366 18.4997 9.07985 18.4997 10.0003V16.667C18.4997 17.5875 17.7535 18.3337 16.833 18.3337H4.16634C3.24586 18.3337 2.49967 17.5875 2.49967 16.667V10.0003C2.49967 9.07985 3.24586 8.33366 4.16634 8.33366Z" stroke="currentColor" stroke-linecap="square"/>',download:'<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>',menu:'<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>',server:'<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>',branch:'<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>',edit:'<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>',history:'<path d="M10 3.33301C6.31811 3.33301 3.33337 6.31775 3.33337 9.99967C3.33337 13.6816 6.31811 16.6663 10 16.6663C13.682 16.6663 16.6667 13.6816 16.6667 9.99967H15.4167C15.4167 12.9912 12.9915 15.4163 10 15.4163C7.00851 15.4163 4.58337 12.9912 4.58337 9.99967C4.58337 7.00818 7.00851 4.58301 10 4.58301C11.6454 4.58301 13.1219 5.29453 14.1525 6.42634L12.0834 6.42634V7.67634H16.0417V3.74967H14.7917V5.52741C13.5128 4.15283 11.8556 3.33301 10 3.33301ZM10.625 7.08301H9.37504V10.2588L11.8413 12.7251L12.7252 11.8412L10.625 9.74106V7.08301Z" fill="currentColor"/>',help:'<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>',"settings-gear":'<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>',dash:'<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>',"cloud-upload":'<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>',trash:'<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>',sliders:'<path d="M3.625 6.25H10.9375M16.375 13.75H10.5625M3.625 13.75H4.9375M11.125 6.25C11.125 4.79969 12.2997 3.625 13.75 3.625C15.2003 3.625 16.375 4.79969 16.375 6.25C16.375 7.70031 15.2003 8.875 13.75 8.875C12.2997 8.875 11.125 7.70031 11.125 6.25ZM10.375 13.75C10.375 15.2003 9.20031 16.375 7.75 16.375C6.29969 16.375 5.125 15.2003 5.125 13.75C5.125 12.2997 6.29969 11.125 7.75 11.125C9.20031 11.125 10.375 12.2997 10.375 13.75Z" stroke="currentColor" stroke-linecap="square"/>',keyboard:'<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>',selector:'<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>',"arrow-down-to-line":'<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>',star:'<path d="M10 2.5l2.35 4.76 5.25.77-3.8 3.7.9 5.24L10 14.64l-4.7 2.47.9-5.24-3.8-3.7 5.25-.77L10 2.5z" stroke="currentColor" stroke-linejoin="round"/>',"star-filled":'<path d="M10 2.5l2.35 4.76 5.25.77-3.8 3.7.9 5.24L10 14.64l-4.7 2.47.9-5.24-3.8-3.7 5.25-.77L10 2.5z" fill="currentColor" stroke="currentColor" stroke-linejoin="round"/>',warning:'<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>',reset:'<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>',link:'<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>',providers:'<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>',layers:'<path d="M10 2.5L2.5 6.25L10 10L17.5 6.25L10 2.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.5 13.75L10 17.5L17.5 13.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.5 10L10 13.75L17.5 10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',models:'<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>',discard:'<path d="M7.5 5L4.167 8.333L7.5 11.667M4.583 8.333h6.667a4.167 4.167 0 0 1 4.167 4.167" stroke="currentColor" stroke-linecap="square"/>',"arrow-undo-down":'<path d="M4.08333 11.0859L1.75 8.7526L4.08333 6.41927M2.33333 8.7526L12.5417 8.7526L12.5417 3.21094L7 3.21094" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>'},Qr="opencode-icon-sprite",Yn=r=>`opencode-icon-${r}`;let Wt=!1;function Xn(r){return r==="magnifying-glass"||r==="arrow-undo-down"||r==="subagent"?"0 0 16 16":"0 0 20 20"}function F1(){if(Wt||typeof document>"u")return;if(document.getElementById(Qr)){Wt=!0;return}const r=document.body;if(!r)return;const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.id=Qr,e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.style.overflow="hidden",e.style.display="none",e.innerHTML=Object.entries(P1).map(([t,n])=>{const a=t;return`<symbol id="${Yn(a)}" viewBox="${Xn(a)}">${n}</symbol>`}).join(""),r.insertBefore(e,r.firstChild),Wt=!0}function Z1(r){const[e,t]=Me(r,["name","size","class","classList"]);return $t(F1),(()=>{var n=S1(),a=n.firstChild,s=a.firstChild;return Ne(a,pe({get classList(){return{...e.classList,[e.class??""]:!!e.class}},get viewBox(){return Xn(e.name)}},t),!0,!0),ne(o=>{var i=e.size||"normal",c=e.name==="arrow-left"||e.name==="arrow-right"||e.name==="chevron-left"||e.name==="chevron-right"?!0:void 0,f=`#${Yn(e.name)}`;return i!==o.e&&ce(n,"data-size",o.e=i),c!==o.t&&ce(n,"data-directional",o.t=c),f!==o.a&&ce(s,"href",o.a=f),o},{e:void 0,t:void 0,a:void 0}),n})()}var B1=W("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true>");const O1={"circle-x-outline":{viewBox:"0 0 20 20",path:'<path d="M7.5 7.5L12.5 12.5M12.5 7.5L7.5 12.5M18.3333 10C18.3333 14.6024 14.6024 18.3333 10 18.3333C5.39763 18.3333 1.66667 14.6024 1.66667 10C1.66667 5.39763 5.39763 1.66667 10 1.66667C14.6024 1.66667 18.3333 5.39763 18.3333 10Z" stroke="currentColor" stroke-linecap="square"/>'},"pull-request":{viewBox:"0 0 20 20",path:'<circle cx="4.6875" cy="4.0625" r="1.875" stroke="currentColor" stroke-width="1.25"/><circle cx="4.6875" cy="15.9375" r="1.875" stroke="currentColor" stroke-width="1.25"/><circle cx="15.9375" cy="15.9375" r="1.875" stroke="currentColor" stroke-width="1.25"/><path d="M4.6875 5.9375V14.0625M15.9375 14.0625V6.25A2.5 2.5 0 0 0 13.4375 3.75H9.6875M11.5625 1.875L9.6875 3.75L11.5625 5.625" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>'},"git-commit":{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="2.5" stroke="currentColor" stroke-width="1.25"/><path d="M1.875 10H7.5M12.5 10H18.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>'},"git-merge":{viewBox:"0 0 20 20",path:'<circle cx="5" cy="5" r="2.5" stroke="currentColor" stroke-width="1.25"/><circle cx="15" cy="15" r="2.5" stroke="currentColor" stroke-width="1.25"/><path d="M5 17.5V7.5A7.5 7.5 0 0 0 12.5 15" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>'},refresh:{viewBox:"0 0 20 20",path:'<path d="M17.0837 10.0003C17.0837 13.9123 13.9123 17.0837 10.0003 17.0837C6.08833 17.0837 2.91699 13.9123 2.91699 10.0003C2.91699 6.08833 6.08833 2.91699 10.0003 2.91699C12.3717 2.91699 14.4722 4.07428 15.7698 5.83366M15.7698 5.83366V2.91699M15.7698 5.83366H12.8532" stroke="currentColor" stroke-linecap="square"/>'},memory:{viewBox:"0 0 24 24",path:'<path d="M2 7h4M2 12h4M2 17h4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><rect width="16" height="20" x="4" y="2" rx="2" stroke="currentColor" stroke-width="1.5"/>'},database:{viewBox:"0 0 24 24",path:'<ellipse cx="12" cy="5" rx="7" ry="3" stroke="currentColor" stroke-width="1.5"/><path d="M5 5v7c0 1.66 3.13 3 7 3s7-1.34 7-3V5M5 12v7c0 1.66 3.13 3 7 3s7-1.34 7-3v-7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},extensions:{viewBox:"0 0 20 20",path:'<path d="M8.5 2.5h3v3h3v3h3v3h-3v3h-3v3h-3v-3h-3v-3h-3v-3h3v-3h3v-3Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"/>'},"book-open-check":{viewBox:"0 0 24 24",path:'<path d="M12 21V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="m16 12 2 2 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},coffee:{viewBox:"0 0 24 24",path:'<path d="M17 8h1a4 4 0 1 1 0 8h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 2v2M10 2v2M14 2v2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},"coffee-filled":{viewBox:"0 0 24 24",path:'<path d="M17 8h1a4 4 0 1 1 0 8h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" fill="currentColor"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 2v2M10 2v2M14 2v2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},microphone:{viewBox:"0 0 24 24",path:'<rect x="9" y="3" width="6" height="11" rx="3" stroke="currentColor" stroke-width="1.5"/><path d="M5.5 10.5a6.5 6.5 0 0 0 13 0M12 17v4M8.5 21h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>'},"circuit-board":{viewBox:"0 0 16 16",path:'<path d="M12.5 1H3.5C2.121 1 1 2.121 1 3.5V12.5C1 13.879 2.121 15 3.5 15H12.5C13.879 15 15 13.879 15 12.5V3.5C15 2.121 13.879 1 12.5 1ZM6 6.5C6 6.775 5.775 7 5.5 7C5.225 7 5 6.775 5 6.5C5 6.225 5.225 6 5.5 6C5.775 6 6 6.225 6 6.5ZM12.5 14H6V11.5C6 11.225 6.225 11 6.5 11H9.092C9.299 11.581 9.849 12 10.5 12C11.327 12 12 11.327 12 10.5C12 9.673 11.327 9 10.5 9C9.849 9 9.299 9.419 9.092 10H6.5C5.673 10 5 10.673 5 11.5V14H3.5C2.673 14 2 13.327 2 12.5V3.5C2 2.673 2.673 2 3.5 2H5V5.092C4.419 5.299 4 5.849 4 6.5C4 7.327 4.673 8 5.5 8C6.327 8 7 7.327 7 6.5C7 5.849 6.581 5.299 6 5.092V2H12.5C13.327 2 14 2.673 14 3.5V6H10.908C10.701 5.419 10.151 5 9.5 5C8.673 5 8 5.673 8 6.5C8 7.327 8.673 8 9.5 8C10.151 8 10.701 7.581 10.908 7H14V12.5C14 13.327 13.327 14 12.5 14ZM10 10.5C10 10.225 10.225 10 10.5 10C10.775 10 11 10.225 11 10.5C11 10.775 10.775 11 10.5 11C10.225 11 10 10.775 10 10.5ZM10 6.5C10 6.775 9.775 7 9.5 7C9.225 7 9 6.775 9 6.5C9 6.225 9.225 6 9.5 6C9.775 6 10 6.225 10 6.5Z" fill="currentColor"/>'},globe:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7" stroke="currentColor" stroke-width="1.25"/><path d="M3.25 10H16.75M10 3C12 4.875 13 7.2 13 10C13 12.8 12 15.125 10 17M10 3C8 4.875 7 7.2 7 10C7 12.8 8 15.125 10 17" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'},organization:{viewBox:"0 0 16 16",path:'<path d="M6.00195 4.00002C6.00195 2.89655 6.89649 2.00201 7.99995 2.00201C9.10342 2.00201 9.99796 2.89655 9.99796 4.00002C9.99796 5.10348 9.10342 5.99802 7.99995 5.99802C6.89649 5.99802 6.00195 5.10348 6.00195 4.00002ZM7.99995 3.00201C7.44877 3.00201 7.00195 3.44883 7.00195 4.00002C7.00195 4.5512 7.44877 4.99802 7.99995 4.99802C8.55114 4.99802 8.99796 4.5512 8.99796 4.00002C8.99796 3.44883 8.55114 3.00201 7.99995 3.00201ZM11 4.5C11 3.67157 11.6716 3 12.5 3C13.3284 3 14 3.67157 14 4.5C14 5.32843 13.3284 6 12.5 6C11.6716 6 11 5.32843 11 4.5ZM12.5 4C12.2239 4 12 4.22386 12 4.5C12 4.77614 12.2239 5 12.5 5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4ZM3.5 3C2.67157 3 2 3.67157 2 4.5C2 5.32843 2.67157 6 3.5 6C4.32843 6 5 5.32843 5 4.5C5 3.67157 4.32843 3 3.5 3ZM3 4.5C3 4.22386 3.22386 4 3.5 4C3.77614 4 4 4.22386 4 4.5C4 4.77614 3.77614 5 3.5 5C3.22386 5 3 4.77614 3 4.5ZM4.26756 6.99969C4.09739 7.29387 4 7.63541 4 7.99969L2 7.99969V10.5C2 11.3285 2.67157 12 3.5 12C3.71194 12 3.91361 11.9561 4.09639 11.8768C4.1705 12.2082 4.28572 12.524 4.43643 12.8187C4.14721 12.9356 3.83112 13 3.5 13C2.11929 13 1 11.8807 1 10.5V7.99969C1 7.44741 1.44772 6.99969 2 6.99969H4.26756ZM11.5636 12.8187C11.8528 12.9356 12.1689 13 12.5 13C13.8807 13 15 11.8807 15 10.5V7.99969C15 7.44741 14.5523 6.99969 14 6.99969H11.7324C11.9026 7.29387 12 7.63541 12 7.9997L14 7.99969V10.5C14 11.3285 13.3284 12 12.5 12C12.2881 12 12.0864 11.9561 11.9036 11.8768C11.8295 12.2082 11.7143 12.524 11.5636 12.8187ZM6 6.99969C5.44772 6.99969 5 7.44741 5 7.99969V11C5 12.6569 6.34315 14 8 14C9.65685 14 11 12.6569 11 11V7.99969C11 7.44741 10.5523 6.99969 10 6.99969H6ZM6 7.99969L10 7.99969V11C10 12.1046 9.10457 13 8 13C6.89543 13 6 12.1046 6 11V7.99969Z" fill="currentColor"/>'},"thumbs-up":{viewBox:"0 0 20 20",path:'<path d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814.16-.432.248-.9.248-1.388Z" stroke="currentColor" fill="none" stroke-linejoin="round"/>'},"thumbs-down":{viewBox:"0 0 20 20",path:'<path d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 0 1 2.5 0v7.5ZM8.905 17v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826.204-.54-.166-1.174-.744-1.174h-2.52c-1.243 0-2.261-1.01-2.146-2.247a23.864 23.864 0 0 1 1.341-5.974C2.547 3.677 3.628 3 4.8 3h3.192a3 3 0 0 1 1.341.317l2.734 1.366A3 3 0 0 0 13.408 5H15v7h-.963c-.685 0-1.258.483-1.612 1.068a4.011 4.011 0 0 1-2.166 1.73c-.432.143-.853.386-1.011.814-.16.432-.248.9-.248 1.388Z" stroke="currentColor" fill="none" stroke-linejoin="round"/>'},"thumbs-up-filled":{viewBox:"0 0 20 20",path:'<path d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814.16-.432.248-.9.248-1.388Z" fill="currentColor"/>'},"thumbs-down-filled":{viewBox:"0 0 20 20",path:'<path d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 0 1 2.5 0v7.5ZM8.905 17v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826.204-.54-.166-1.174-.744-1.174h-2.52c-1.243 0-2.261-1.01-2.146-2.247a23.864 23.864 0 0 1 1.341-5.974C2.547 3.677 3.628 3 4.8 3h3.192a3 3 0 0 1 1.341.317l2.734 1.366A3 3 0 0 0 13.408 5H15v7h-.963c-.685 0-1.258.483-1.612 1.068a4.011 4.011 0 0 1-2.166 1.73c-.432.143-.853.386-1.011.814-.16.432-.248.9-.248 1.388Z" fill="currentColor"/>'},"files-expand":{viewBox:"0 0 16 16",path:'<path d="M15 6V11C15 13.21 13.21 15 11 15H6C5.26 15 4.62 14.6 4.27 14H11C12.65 14 14 12.65 14 11V4.27C14.6 4.62 15 5.26 15 6ZM11 13H4C2.897 13 2 12.103 2 11V4C2 2.897 2.897 2 4 2H11C12.103 2 13 2.897 13 4V11C13 12.103 12.103 13 11 13ZM4 12H11C11.551 12 12 11.552 12 11V4C12 3.449 11.551 3 11 3H4C3.449 3 3 3.449 3 4V11C3 11.552 3.449 12 4 12ZM9.5 7H8V5.5C8 5.224 7.776 5 7.5 5C7.224 5 7 5.224 7 5.5V7H5.5C5.224 7 5 7.224 5 7.5C5 7.776 5.224 8 5.5 8H7V9.5C7 9.776 7.224 10 7.5 10C7.776 10 8 9.776 8 9.5V8H9.5C9.776 8 10 7.776 10 7.5C10 7.224 9.776 7 9.5 7Z" fill="currentColor"/>'},"files-collapse":{viewBox:"0 0 16 16",path:'<path d="M14 4.27051C14.5999 4.62053 15 5.26009 15 6V11C15 13.21 13.21 15 11 15H6C5.26009 15 4.62053 14.5999 4.27051 14H11C12.65 14 14 12.65 14 11V4.27051Z" fill="currentColor"/><path d="M9.5 7C9.776 7 10 7.224 10 7.5C10 7.776 9.776 8 9.5 8H5.5C5.224 8 5 7.776 5 7.5C5 7.224 5.224 7 5.5 7H9.5Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11 2C12.103 2 13 2.897 13 4V11C13 12.103 12.103 13 11 13H4C2.897 13 2 12.103 2 11V4C2 2.897 2.897 2 4 2H11ZM4 3C3.449 3 3 3.449 3 4V11C3 11.552 3.449 12 4 12H11C11.551 12 12 11.552 12 11V4C12 3.449 11.551 3 11 3H4Z" fill="currentColor"/>'},reload:{viewBox:"0 0 24 24",path:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 3v5h-5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 21v-5h5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>'},gauge:{viewBox:"0 0 24 24",path:'<path d="M12 14L9 10M12 14L15 10M21 15C21 18.866 17.866 22 14 22H10C6.134 22 3 18.866 3 15V9C3 5.134 6.134 2 10 2H14C17.866 2 21 5.134 21 9V15Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},target:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7.5" stroke="currentColor"/><circle cx="10" cy="10" r="4.5" stroke="currentColor"/><circle cx="10" cy="10" r="1.5" fill="currentColor"/>'},local:{viewBox:"0 0 20 20",path:'<rect x="2.5" y="3.5" width="15" height="10" rx="1" stroke="currentColor"/><path d="M6 16.5H14" stroke="currentColor" stroke-linecap="square"/><path d="M10 13.5V16.5" stroke="currentColor"/>'},user:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="6.5" r="3" stroke="currentColor" stroke-width="1.25"/><path d="M4 17c.5-3 2.5-4.5 6-4.5s5.5 1.5 6 4.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'},"wand-sparkles":{viewBox:"0 0 24 24",path:'<path d="m15 4 1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3ZM19 13l.7 2.3L22 16l-2.3.7L19 19l-.7-2.3L16 16l2.3-.7L19 13ZM4 20 14 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>'},send:{viewBox:"0 0 16 16",path:'<path d="M1.5 1.5 14.5 8 1.5 14.5V9L10 8 1.5 7V1.5Z" fill="currentColor"/>'},reply:{viewBox:"0 0 20 20",path:'<path d="m9 16-5-5 5-5M4 11h10a4 4 0 0 1 4 4v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>'},smile:{viewBox:"0 0 20 20",path:'<circle cx="10" cy="10" r="7.5" stroke="currentColor" stroke-width="1.25"/><path d="M7 8h.01M13 8h.01M7 12c.9 1.2 2 1.8 3 1.8s2.1-.6 3-1.8" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>'}};function R1(r){const[e,t]=Me(r,["name","size","class","classList"]),n=()=>O1[e.name];return $(ie,{get when(){return n()},get fallback(){return $(Z1,pe(t,{get name(){return e.name},get size(){return e.size},get class(){return e.class},get classList(){return e.classList}}))},children:a=>(()=>{var s=B1(),o=s.firstChild;return Ne(o,pe({get classList(){return{...e.classList,[e.class??""]:!!e.class}},get viewBox(){return a().viewBox},get innerHTML(){return a().path}},t),!0,!1),ne(()=>ce(s,"data-size",e.size||"normal")),s})()})}function z1(r){return!r||r==="normal"?"icon":r==="small"?"icon-sm":r==="large"?"icon-lg":r}function N1(r){return!r||r==="default"?"secondary":r}function Jt(r){const[e,t]=Me(r,["variant","size","icon","iconSize","active","class","classList","children"]);return $(Gn,pe(t,{"data-component":"icon-button",get"data-size"(){return z1(e.size)},get"data-variant"(){return N1(e.variant)},get"data-active"(){return e.active||void 0},get"aria-pressed"(){return e.active||void 0},get classList(){return{...e.classList,[e.class??""]:!!e.class}},get children(){return[$(ie,{get when(){return e.icon},children:n=>$(R1,{get name(){return n()},get size(){return e.iconSize??"small"}})}),qe(()=>e.children)]}}))}function U1({onRequest:r,onSseError:e,onSseEvent:t,responseTransformer:n,responseValidator:a,sseDefaultRetryDelay:s,sseMaxRetryAttempts:o,sseMaxRetryDelay:i,sseSleepFn:c,url:f,...y}){let u;const p=c??(h=>new Promise(w=>setTimeout(w,h)));return{stream:async function*(){let h=s??3e3,w=0;const H=y.signal??new AbortController().signal;for(;!H.aborted;){w++;const _=y.headers instanceof Headers?y.headers:new Headers(y.headers);u!==void 0&&_.set("Last-Event-ID",u);try{const A={redirect:"follow",...y,body:y.serializedBody,headers:_,signal:H};let T=new Request(f,A);r&&(T=await r(f,A));const x=await(y.fetch??globalThis.fetch)(T);if(!x.ok)throw new Error(`SSE failed: ${x.status} ${x.statusText}`);if(!x.body)throw new Error("No body in SSE response");const F=x.body.pipeThrough(new TextDecoderStream).getReader();let j="";const b=()=>{try{F.cancel()}catch{}};H.addEventListener("abort",b);try{for(;;){const{done:S,value:v}=await F.read();if(S)break;j+=v,j=j.replace(/\r\n?/g,`
|
|
15
15
|
`);const M=j.split(`
|
|
16
16
|
|
|
17
17
|
`);j=M.pop()??"";for(const V of M){const C=V.split(`
|
|
18
18
|
`),E=[];let N;for(const G of C)if(G.startsWith("data:"))E.push(G.replace(/^data:\s*/,""));else if(G.startsWith("event:"))N=G.replace(/^event:\s*/,"");else if(G.startsWith("id:"))u=G.replace(/^id:\s*/,"");else if(G.startsWith("retry:")){const re=Number.parseInt(G.replace(/^retry:\s*/,""),10);Number.isNaN(re)||(h=re)}let J,he=!1;if(E.length){const G=E.join(`
|
|
19
|
-
`);try{J=JSON.parse(G),he=!0}catch{J=G}}he&&(a&&await a(J),n&&(J=await n(J))),t?.({data:J,event:N,id:u,retry:h}),E.length&&(yield J)}}}finally{H.removeEventListener("abort",b),F.releaseLock()}break}catch(A){if(e?.(A),o!==void 0&&w>=o)break;const T=Math.min(h*2**(w-1),i??3e4);await p(T)}}}()}}const W1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},J1=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},K1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qn=({allowReserved:r,explode:e,name:t,style:n,value:a})=>{if(!e){const i=(r?a:a.map(c=>encodeURIComponent(c))).join(J1(n));switch(n){case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;case"simple":return i;default:return`${t}=${i}`}}const s=W1(n),o=a.map(i=>n==="label"||n==="simple"?r?i:encodeURIComponent(i):jt({allowReserved:r,name:t,value:i})).join(s);return n==="label"||n==="matrix"?s+o:o},jt=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},ea=({allowReserved:r,explode:e,name:t,style:n,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${t}=${a.toISOString()}`;if(n!=="deepObject"&&!e){let c=[];Object.entries(a).forEach(([y,u])=>{c=[...c,y,r?u:encodeURIComponent(u)]});const f=c.join(",");switch(n){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}const o=K1(n),i=Object.entries(a).map(([c,f])=>jt({allowReserved:r,name:n==="deepObject"?`${t}[${c}]`:c,value:f})).join(o);return n==="label"||n==="matrix"?o+i:i},G1=/\{[^{}]+\}/g,Y1=({path:r,url:e})=>{let t=e;const n=e.match(G1);if(n)for(const a of n){let s=!1,o=a.substring(1,a.length-1),i="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),i="label"):o.startsWith(";")&&(o=o.substring(1),i="matrix");const c=r[o];if(c==null)continue;if(Array.isArray(c)){t=t.replace(a,Qn({explode:s,name:o,style:i,value:c}));continue}if(typeof c=="object"){t=t.replace(a,ea({explode:s,name:o,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){t=t.replace(a,`;${jt({name:o,value:c})}`);continue}const f=encodeURIComponent(i==="label"?`.${c}`:c);t=t.replace(a,f)}return t},X1=({baseUrl:r,path:e,query:t,querySerializer:n,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let o=(r??"")+s;e&&(o=Y1({path:e,url:o}));let i=t?n(t):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(o+=`?${i}`),o};function en(r){const e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}const Q1=async(r,e)=>{const t=typeof e=="function"?await e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t},ef={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)},ta=({parameters:r={},...e}={})=>n=>{const a=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o==null)continue;const i=r[s]||e;if(Array.isArray(o)){const c=Qn({allowReserved:i.allowReserved,explode:!0,name:s,style:"form",value:o,...i.array});c&&a.push(c)}else if(typeof o=="object"){const c=ea({allowReserved:i.allowReserved,explode:!0,name:s,style:"deepObject",value:o,...i.object});c&&a.push(c)}else{const c=jt({allowReserved:i.allowReserved,name:s,value:o});c&&a.push(c)}}return a.join("&")},tf=r=>{if(!r)return"stream";const e=r.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>e.startsWith(t)))return"blob";if(e.startsWith("text/"))return"text"}},rf=(r,e)=>e?!!(r.headers.has(e)||r.query?.[e]||r.headers.get("Cookie")?.includes(`${e}=`)):!1;async function nf(r){for(const e of r.security??[]){if(rf(r,e.name))continue;const t=await Q1(e,r.auth);if(!t)continue;const n=e.name??"Authorization";switch(e.in){case"query":r.query||(r.query={}),r.query[n]=t;break;case"cookie":r.headers.append("Cookie",`${n}=${t}`);break;default:r.headers.set(n,t);break}}}const tn=r=>X1({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:ta(r.querySerializer),url:r.url}),rn=(r,e)=>{const t={...r,...e};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=ra(r.headers,e.headers),t},af=r=>{const e=[];return r.forEach((t,n)=>{e.push([n,t])}),e},ra=(...r)=>{const e=new Headers;for(const t of r){if(!t)continue;const n=t instanceof Headers?af(t):Object.entries(t);for(const[a,s]of n)if(s===null)e.delete(a);else if(Array.isArray(s))for(const o of s)e.append(a,o);else s!==void 0&&e.set(a,typeof s=="object"?JSON.stringify(s):s)}return e};class Kt{fns=[];clear(){this.fns=[]}eject(e){const t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){const t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){const n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}}const sf=()=>({error:new Kt,request:new Kt,response:new Kt}),of=ta({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),cf={"Content-Type":"application/json"},na=(r={})=>({...ef,headers:cf,parseAs:"auto",querySerializer:of,...r}),aa=(r={})=>{let e=rn(na(),r);const t=()=>({...e}),n=y=>(e=rn(e,y),t()),a=sf(),s=async y=>{const u={...e,...y,fetch:y.fetch??e.fetch??globalThis.fetch,headers:ra(e.headers,y.headers),serializedBody:void 0};u.security&&await nf(u),u.requestValidator&&await u.requestValidator(u),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");const p=u,g=tn(p);return{opts:p,url:g}},o=async y=>{const u=y.throwOnError??e.throwOnError,p=y.responseStyle??e.responseStyle;let g,m;try{const{opts:h,url:w}=await s(y),H={redirect:"follow",...h,body:en(h)};g=new Request(w,H);for(const x of a.request.fns)x&&(g=await x(g,h));const _=h.fetch;m=await _(g);for(const x of a.response.fns)x&&(m=await x(m,g,h));const A={request:g,response:m};if(m.ok){const x=(h.parseAs==="auto"?tf(m.headers.get("Content-Type")):h.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let j;switch(x){case"arrayBuffer":case"blob":case"text":j=await m[x]();break;case"formData":j=new FormData;break;case"stream":j=m.body;break;default:j={};break}return h.responseStyle==="data"?j:{data:j,...A}}let F;switch(x){case"arrayBuffer":case"blob":case"formData":case"text":F=await m[x]();break;case"json":{const j=await m.text();F=j?JSON.parse(j):{};break}case"stream":return h.responseStyle==="data"?m.body:{data:m.body,...A}}return x==="json"&&(h.responseValidator&&await h.responseValidator(F),h.responseTransformer&&(F=await h.responseTransformer(F))),h.responseStyle==="data"?F:{data:F,...A}}const T=await m.text();let q;try{q=JSON.parse(T)}catch{}throw q??T}catch(h){let w=h;for(const H of a.error.fns)H&&(w=await H(w,m,g,y));if(w=w||{},u)throw w;return p==="data"?void 0:{error:w,request:g,response:m}}},i=y=>u=>o({...u,method:y}),c=y=>async u=>{const{opts:p,url:g}=await s(u);return U1({...p,body:p.body,method:y,onRequest:async(m,h)=>{let w=new Request(m,h);for(const H of a.request.fns)H&&(w=await H(w,p));return w},serializedBody:en(p),url:g})};return{buildUrl:y=>tn({...e,...y}),connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:t,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:o,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},lf={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},df=Object.entries(lf),sa=(r,e)=>{e||(e=new Map);for(const t of r)"in"in t?t.key&&e.set(t.key,{in:t.in,map:t.map}):"key"in t?e.set(t.key,{map:t.map}):t.args&&sa(t.args,e);return e},ff=r=>{for(const[e,t]of Object.entries(r))t&&typeof t=="object"&&!Array.isArray(t)&&!Object.keys(t).length&&delete r[e]},d=(r,e)=>{const t={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},n=sa(e);let a;for(const[s,o]of r.entries())if(e[s]&&(a=e[s]),!!a)if("in"in a)if(a.key){const i=n.get(a.key),c=i.map||a.key;i.in&&(t[i.in][c]=o)}else t.body=o;else for(const[i,c]of Object.entries(o??{})){const f=n.get(i);if(f)if(f.in){const y=f.map||i;t[f.in][y]=c}else t[f.map]=c;else{const y=df.find(([u])=>i.startsWith(u));if(y){const[u,p]=y;t[p][i.slice(u.length)]=c}else if("allowExtra"in a&&a.allowExtra){for(const[u,p]of Object.entries(a.allowExtra))if(p){t[u][i]=c;break}}}}return ff(t),t},uf=aa(na({baseUrl:"http://localhost:4096"}));class k{client;constructor(e){this.client=e?.client??uf}}class yf{defaultKey="default";instances=new Map;get(e){const t=this.instances.get(e??this.defaultKey);if(!t)throw new Error('No SDK client found. Create one with "new KiloClient()" to fix this error.');return t}set(e,t){this.instances.set(t??this.defaultKey,e)}}class pf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"}]}]);return(t?.client??this.client).delete({url:"/auth/{providerID}",...t,...n})}set(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return(t?.client??this.client).put({url:"/auth/{providerID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}let hf=class extends k{log(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/log",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}agents(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/agent",...t,...n})}skills(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/skill",...t,...n})}};class mf extends k{moveSession(e,t){const n=d([e],[{args:[{in:"body",key:"sessionID"},{in:"body",key:"destination"},{in:"body",key:"moveChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/control-plane/move-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class kf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/capabilities",...t,...n})}}class gf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console",...t,...n})}listOrgs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console/orgs",...t,...n})}switchOrg(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return(t?.client??this.client).post({url:"/experimental/console/switch",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"projectID"},{in:"query",key:"worktrees"},{in:"query",key:"current"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return(t?.client??this.client).get({url:"/experimental/session",...t,...n})}background(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/session/{sessionID}/background",...t,...n})}}class wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/resource",...t,...n})}}class vf extends k{generateName(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"context"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/generate-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/adapter",...t,...n})}}class Cf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}syncList(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/sync-list",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/status",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/experimental/workspace/{id}",...t,...n})}warp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"copyChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/warp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new xf({client:this.client})}}class Lf extends k{_controlPlane;get controlPlane(){return this._controlPlane??=new mf({client:this.client})}_capabilities;get capabilities(){return this._capabilities??=new kf({client:this.client})}_console;get console(){return this._console??=new gf({client:this.client})}_session;get session(){return this._session??=new bf({client:this.client})}_resource;get resource(){return this._resource??=new wf({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new vf({client:this.client})}_workspace;get workspace(){return this._workspace??=new Cf({client:this.client})}}class qf extends k{get(e){return(e?.client??this.client).get({url:"/global/config",...e})}update(e,t){const n=d([e],[{args:[{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/global/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mf extends k{health(e){return(e?.client??this.client).get({url:"/global/health",...e})}event(e){return(e?.client??this.client).sse.get({url:"/global/event",...e})}dispose(e){return(e?.client??this.client).post({url:"/global/dispose",...e})}upgrade(e,t){const n=d([e],[{args:[{in:"body",key:"target"}]}]);return(t?.client??this.client).post({url:"/global/upgrade",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_config;get config(){return this._config??=new qf({client:this.client})}}class $f extends k{subscribe(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).sse.get({url:"/event",...t,...n})}}class Hf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/warnings",...t,...n})}providers(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/providers",...t,...n})}overlay(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/overlay",...t,...n})}overlayUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"set"},{in:"body",key:"unset"},{in:"body",key:"expected"}]}]);return(t?.client??this.client).patch({url:"/config/overlay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sources(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/sources",...t,...n})}effective(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/effective",...t,...n})}rules(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/rules",...t,...n})}rulesUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"content"}]}]);return(t?.client??this.client).put({url:"/config/rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}modelState(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/model-state",...t,...n})}modelStateUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"favorite"}]}]);return(t?.client??this.client).patch({url:"/config/model-state",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Vf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return(t?.client??this.client).get({url:"/experimental/tool",...t,...n})}ids(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/tool/ids",...t,...n})}}class _f extends k{remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return(t?.client??this.client).delete({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reset(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff",...t,...n})}diffSummary(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/summary",...t,...n})}diffFile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"},{in:"query",key:"file"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/file",...t,...n})}}class If extends k{text(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return(t?.client??this.client).get({url:"/find",...t,...n})}files(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/find/file",...t,...n})}symbols(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return(t?.client??this.client).get({url:"/find/symbol",...t,...n})}}class jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file",...t,...n})}read(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file/content",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/file/status",...t,...n})}}class Ef extends k{dispose(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/dispose",...t,...n})}reload(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/reload",...t,...n})}}class Af extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/path",...t,...n})}}class Df extends k{raw(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/diff/raw",...t,...n})}}class Tf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/status",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"},{in:"query",key:"context"}]}]);return(t?.client??this.client).get({url:"/vcs/diff",...t,...n})}apply(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"patch"}]}]);return(t?.client??this.client).post({url:"/vcs/apply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new Df({client:this.client})}}class Sf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/command",...t,...n})}}class Pf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/lsp",...t,...n})}}class Ff extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/formatter",...t,...n})}}class Zf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/mcp/{name}/auth",...t,...n})}start(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth",...t,...n})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}authenticate(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...t,...n})}}class Bf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/mcp",...t,...n})}add(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return(t?.client??this.client).post({url:"/mcp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/connect",...t,...n})}disconnect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/disconnect",...t,...n})}readResource(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"uri"},{in:"body",key:"server"}]}]);return(t?.client??this.client).post({url:"/experimental/resource/read",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callTool(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"server"},{in:"body",key:"name"},{in:"body",key:"arguments"}]}]);return(t?.client??this.client).post({url:"/experimental/mcp/call-tool",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_auth;get auth(){return this._auth??=new Zf({client:this.client})}}class Of extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project",...t,...n})}current(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/current",...t,...n})}initGit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/project/git/init",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).patch({url:"/project/{projectID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}directories(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/{projectID}/directories",...t,...n})}}class Rf extends k{shells(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/shells",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).put({url:"/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"ticket"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}/connect",...t,...n})}}class zf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reject",...t,...n})}}class Nf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/permission",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"},{in:"body",key:"interactive"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}saveAlwaysRules(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"approvedAlways"},{in:"body",key:"deniedAlways"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/always-rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}allowEverything(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enable"},{in:"body",key:"requestID"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/permission/allow-everything",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}respond(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Uf extends k{authorize(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider",...t,...n})}auth(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider/auth",...t,...n})}_oauth;get oauth(){return this._oauth??=new Uf({client:this.client})}}class Jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"query",key:"path"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"title"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"platform"},{in:"body",key:"workspaceID"},{in:"body",key:"sandboxInheritanceToken"}]}]);return(t?.client??this.client).post({url:"/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/status",...t,...n})}delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}children(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/children",...t,...n})}todo(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/todo",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"},{in:"query",key:"file"},{in:"query",key:"full"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/diff",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message",...t,...n})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}deleteMessage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"queued"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...t,...n})}fork(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/fork",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}abort(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/abort",...t,...n})}init(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/init",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unshare(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/share",...t,...n})}share(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/share",...t,...n})}summarize(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/summarize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}promptAsync(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}command(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}shell(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/shell",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}revert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/revert",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unrevert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/unrevert",...t,...n})}viewed(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"viewer"},{in:"body",key:"attached"},{in:"body",key:"visible"}]}]);return(t?.client??this.client).post({url:"/session/viewed",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Kf extends k{delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Gf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/sync/history",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Yf extends k{start(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/sync/start",...t,...n})}replay(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return(t?.client??this.client).post({url:"/sync/replay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}steal(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/sync/steal",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_history;get history(){return this._history??=new Gf({client:this.client})}}class Xf extends k{next(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/control/next",...t,...n})}response(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/control/response",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Qf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"body",key:"$schema"},{in:"body",key:"theme"},{in:"body",key:"keybinds"},{in:"body",key:"plugin"},{in:"body",key:"plugin_enabled"},{in:"body",key:"title_icon"},{in:"body",key:"scroll_speed"},{in:"body",key:"scroll_acceleration"},{in:"body",key:"diff_style"},{in:"body",key:"mouse"},{in:"body",key:"attention"}]}]);return(t?.client??this.client).patch({url:"/tui/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/keybinds",...t,...n})}}class tu extends k{appendPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/tui/append-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}openHelp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-help",...t,...n})}openSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-sessions",...t,...n})}openThemes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-themes",...t,...n})}openModels(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-models",...t,...n})}submitPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/submit-prompt",...t,...n})}clearPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/clear-prompt",...t,...n})}executeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/tui/execute-command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}showToast(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return(t?.client??this.client).post({url:"/tui/show-toast",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}publish(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/publish",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}selectSession(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/tui/select-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_control;get control(){return this._control??=new Xf({client:this.client})}_config;get config(){return this._config??=new Qf({client:this.client})}_keybind;get keybind(){return this._keybind??=new eu({client:this.client})}}class ru extends k{preview(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).post({url:"/agent-builder/preview",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}save(e,t){const n=d([e],[{args:[{in:"path",key:"path_id",map:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_id",map:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).put({url:"/agent-builder/{id}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}",...t,...n})}logs(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}/logs",...t,...n})}stop(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/stop",...t,...n})}restart(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/restart",...t,...n})}stopSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/session/{sessionID}/stop",...t,...n})}}class au extends k{generate(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prompt"},{in:"body",key:"providerID"},{in:"body",key:"modelID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/branch-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class su extends k{generate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"path"},{in:"body",key:"selectedFiles"},{in:"body",key:"previousMessage"},{in:"body",key:"language"}]}]);return(t?.client??this.client).post({url:"/commit-message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ou extends k{enhance(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/enhance-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/status",...t,...n})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/warnings",...t,...n})}models(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/models",...t,...n})}consent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).put({url:"/indexing/consent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class cu extends k{transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"model"},{in:"body",key:"input_audio"},{in:"body",key:"language"},{in:"body",key:"prompt"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).post({url:"/kilo/audio/transcriptions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class lu extends k{images(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/images",...t,...n})}transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/transcriptions",...t,...n})}}class du extends k{set(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"organizationId"}]}]);return(t?.client??this.client).post({url:"/kilo/organization",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class fu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/claw/status",...t,...n})}chatCredentials(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/claw/chat-credentials",...t,...n})}}class uu extends k{get(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud/session/{id}",...t,...n})}import(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionId"}]}]);return(t?.client??this.client).post({url:"/kilo/cloud/session/import",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class yu extends k{_session;get session(){return this._session??=new uu({client:this.client})}}class pu extends k{profile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/profile",...t,...n})}authStatus(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/auth-status",...t,...n})}modes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/modes",...t,...n})}fim(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prefix"},{in:"body",key:"suffix"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).sse.post({url:"/kilo/fim",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}edit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"currentFilePath"},{in:"body",key:"currentFileContent"},{in:"body",key:"cursorLine"},{in:"body",key:"cursorCharacter"},{in:"body",key:"editableRegionStartLine"},{in:"body",key:"editableRegionEndLine"},{in:"body",key:"recentlyViewedSnippets"},{in:"body",key:"editDiffHistory"}]}]);return(t?.client??this.client).post({url:"/kilo/edit",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}notifications(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/notifications",...t,...n})}cloudSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"limit"},{in:"query",key:"gitUrl"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud-sessions",...t,...n})}_audio;get audio(){return this._audio??=new cu({client:this.client})}_models;get models(){return this._models??=new lu({client:this.client})}_organization;get organization(){return this._organization??=new du({client:this.client})}_claw;get claw(){return this._claw??=new fu({client:this.client})}_cloud;get cloud(){return this._cloud??=new yu({client:this.client})}}class hu extends k{snapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/heap/snapshot",...t,...n})}}class mu extends k{prepare(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/prepare",...t,...n})}}class ku extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/provider-usage",...t,...n})}refresh(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/provider-usage/refresh",...t,...n})}}class gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/notebook",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/agent-manager",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class wu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/cancel",...t,...n})}promote(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/promote",...t,...n})}}class vu extends k{sessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"},{in:"body",key:"ids"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}discover(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions/discover",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xu extends k{project(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"worktree"},{in:"body",key:"vcs"},{in:"body",key:"name"},{in:"body",key:"iconUrl"},{in:"body",key:"iconColor"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeInitialized"},{in:"body",key:"sandboxes"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/project",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}session(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"projectID"},{in:"body",key:"force"},{in:"body",key:"workspaceID"},{in:"body",key:"parentID"},{in:"body",key:"slug"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"title"},{in:"body",key:"version"},{in:"body",key:"shareURL"},{in:"body",key:"summary"},{in:"body",key:"revert"},{in:"body",key:"permission"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeCompacting"},{in:"body",key:"timeArchived"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}message(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}part(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"messageID"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/part",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Cu extends k{resumeSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"snapshotInitialization"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/resume",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}drainSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"token"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/drain",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"before"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/kilocode/session/{sessionID}/board",...t,...n})}resetSessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"revision"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/board/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}commandFiles(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/command/files",...t,...n})}removeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/command/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSkill(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/skill/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeAgent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSnapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionModelUsage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/model-usage",...t,...n})}backgroundJobs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/kilocode/background-jobs",...t,...n})}_heap;get heap(){return this._heap??=new hu({client:this.client})}_snapshot;get snapshot(){return this._snapshot??=new mu({client:this.client})}_providerUsage;get providerUsage(){return this._providerUsage??=new ku({client:this.client})}_notebook;get notebook(){return this._notebook??=new gu({client:this.client})}_agentManager;get agentManager(){return this._agentManager??=new bu({client:this.client})}_backgroundJob;get backgroundJob(){return this._backgroundJob??=new wu({client:this.client})}_migrate;get migrate(){return this._migrate??=new vu({client:this.client})}_sessionImport;get sessionImport(){return this._sessionImport??=new xu({client:this.client})}}class Lu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/anaconda-desktop/status",...t,...n})}open(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/open",...t,...n})}sync(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"acknowledgeToolLimitations"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/sync",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class qu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/network",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reply",...t,...n})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reject",...t,...n})}}class Mu extends k{enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/disable",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/remote/status",...t,...n})}}class $u extends k{support(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/sandbox/support",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/sandbox",...t,...n})}toggle(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/sandbox/toggle",...t,...n})}}class Hu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/suggestion",...t,...n})}accept(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"index"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/accept",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}dismiss(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/dismiss",...t,...n})}}class Vu extends k{capture(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"event"},{in:"body",key:"properties"}]}]);return(t?.client??this.client).post({url:"/telemetry/capture",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}setEnabled(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).post({url:"/telemetry/setEnabled",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class _u extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/status",...t,...n})}show(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/show",...t,...n})}enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/disable",...t,...n})}configure(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"autoConsolidate"},{in:"body",key:"verbose"}]}]);return(t?.client??this.client).post({url:"/memory/configure",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}rebuild(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/rebuild",...t,...n})}remember(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"file"},{in:"body",key:"section"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/remember",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}correct(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/correct",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}forget(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"query"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/forget",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}purge(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"confirm"}]}]);return(t?.client??this.client).post({url:"/memory/purge",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Iu extends k{get(e){return(e?.client??this.client).get({url:"/api/health",...e})}}class ju extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/location",...t,...n})}}class Eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/agent",...t,...n})}}class Au extends k{stage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"messageID"},{in:"body",key:"files"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/stage",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}clear(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/clear",...t,...n})}commit(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/commit",...t,...n})}}class Du extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"action"},{in:"body",key:"resources"},{in:"body",key:"save"},{in:"body",key:"metadata"},{in:"body",key:"source"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission/{requestID}",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Tu extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{key:"questionV2Reply",map:"body"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reject",...t,...n})}}class Su extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"search"},{in:"query",key:"directory"},{in:"query",key:"project"},{in:"query",key:"subpath"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"body",key:"id"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}active(e){return(e?.client??this.client).get({url:"/api/session/active",...e})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}",...t,...n})}switchAgent(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/agent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}switchModel(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"model"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/model",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"prompt"},{in:"body",key:"delivery"},{in:"body",key:"resume"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}compact(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/compact",...t,...n})}wait(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/wait",...t,...n})}context(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/context",...t,...n})}history(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"after"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/history",...t,...n})}events(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"after"}]}]);return(t?.client??this.client).sse.get({url:"/api/session/{sessionID}/event",...t,...n})}interrupt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/interrupt",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message/{messageID}",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message",...t,...n})}_revert;get revert(){return this._revert??=new Au({client:this.client})}_permission;get permission(){return this._permission??=new Du({client:this.client})}_question;get question(){return this._question??=new Tu({client:this.client})}}class Pu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/model",...t,...n})}}class Fu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider/{providerID}",...t,...n})}}class Zu extends k{key(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"key"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/key",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}oauth(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"methodID"},{in:"body",key:"inputs"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/oauth",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Bu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/integration/attempt/{attemptID}",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/attempt/{attemptID}",...t,...n})}complete(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/api/integration/attempt/{attemptID}/complete",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ou extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/{integrationID}",...t,...n})}_connect;get connect(){return this._connect??=new Zu({client:this.client})}_attempt;get attempt(){return this._attempt??=new Bu({client:this.client})}}class Ru extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/credential/{credentialID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"},{in:"body",key:"label"}]}]);return(t?.client??this.client).patch({url:"/api/credential/{credentialID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class zu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/permission/request",...t,...n})}}class Nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"projectID"}]}]);return(t?.client??this.client).get({url:"/api/permission/saved",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"}]}]);return(t?.client??this.client).delete({url:"/api/permission/saved/{id}",...t,...n})}}class Uu extends k{_request;get request(){return this._request??=new zu({client:this.client})}_saved;get saved(){return this._saved??=new Nu({client:this.client})}}class Wu extends k{read(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/read/*",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/list",...t,...n})}find(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"query"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/api/fs/find",...t,...n})}}class Ju extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/command",...t,...n})}}class Ku extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/skill",...t,...n})}}class Gu extends k{subscribe(e){return(e?.client??this.client).sse.get({url:"/api/event",...e})}}class Yu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/api/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return(t?.client??this.client).put({url:"/api/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location[directory]"},{in:"query",key:"location[workspace]"},{in:"query",key:"cursor"},{in:"query",key:"ticket"},{in:"query",key:"replayExited"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}/connect",...t,...n})}}class Xu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/question/request",...t,...n})}}class Qu extends k{_request;get request(){return this._request??=new Xu({client:this.client})}}class e0 extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/reference",...t,...n})}}class t0 extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"directory"},{in:"body",key:"force"}]}]);return(t?.client??this.client).delete({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}create(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"strategy"},{in:"body",key:"directory"},{in:"body",key:"name"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}refresh(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/refresh",...t,...n})}}class r0 extends k{_health;get health(){return this._health??=new Iu({client:this.client})}_location;get location(){return this._location??=new ju({client:this.client})}_agent;get agent(){return this._agent??=new Eu({client:this.client})}_session;get session(){return this._session??=new Su({client:this.client})}_model;get model(){return this._model??=new Pu({client:this.client})}_provider;get provider(){return this._provider??=new Fu({client:this.client})}_integration;get integration(){return this._integration??=new Ou({client:this.client})}_credential;get credential(){return this._credential??=new Ru({client:this.client})}_permission;get permission(){return this._permission??=new Uu({client:this.client})}_fs;get fs(){return this._fs??=new Wu({client:this.client})}_command;get command(){return this._command??=new Ju({client:this.client})}_skill;get skill(){return this._skill??=new Ku({client:this.client})}_event;get event(){return this._event??=new Gu({client:this.client})}_pty;get pty(){return this._pty??=new Yu({client:this.client})}_question;get question(){return this._question??=new Qu({client:this.client})}_reference;get reference(){return this._reference??=new e0({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new t0({client:this.client})}}class Lr extends k{static __registry=new yf;constructor(e){super(e),Lr.__registry.set(this,e?.key)}_auth;get auth(){return this._auth??=new pf({client:this.client})}_app;get app(){return this._app??=new hf({client:this.client})}_experimental;get experimental(){return this._experimental??=new Lf({client:this.client})}_global;get global(){return this._global??=new Mf({client:this.client})}_event;get event(){return this._event??=new $f({client:this.client})}_config;get config(){return this._config??=new Hf({client:this.client})}_tool;get tool(){return this._tool??=new Vf({client:this.client})}_worktree;get worktree(){return this._worktree??=new _f({client:this.client})}_find;get find(){return this._find??=new If({client:this.client})}_file;get file(){return this._file??=new jf({client:this.client})}_instance;get instance(){return this._instance??=new Ef({client:this.client})}_path;get path(){return this._path??=new Af({client:this.client})}_vcs;get vcs(){return this._vcs??=new Tf({client:this.client})}_command;get command(){return this._command??=new Sf({client:this.client})}_lsp;get lsp(){return this._lsp??=new Pf({client:this.client})}_formatter;get formatter(){return this._formatter??=new Ff({client:this.client})}_mcp;get mcp(){return this._mcp??=new Bf({client:this.client})}_project;get project(){return this._project??=new Of({client:this.client})}_pty;get pty(){return this._pty??=new Rf({client:this.client})}_question;get question(){return this._question??=new zf({client:this.client})}_permission;get permission(){return this._permission??=new Nf({client:this.client})}_provider;get provider(){return this._provider??=new Wf({client:this.client})}_session;get session(){return this._session??=new Jf({client:this.client})}_part;get part(){return this._part??=new Kf({client:this.client})}_sync;get sync(){return this._sync??=new Yf({client:this.client})}_tui;get tui(){return this._tui??=new tu({client:this.client})}_agentBuilder;get agentBuilder(){return this._agentBuilder??=new ru({client:this.client})}_backgroundProcess;get backgroundProcess(){return this._backgroundProcess??=new nu({client:this.client})}_branchName;get branchName(){return this._branchName??=new au({client:this.client})}_commitMessage;get commitMessage(){return this._commitMessage??=new su({client:this.client})}_enhancePrompt;get enhancePrompt(){return this._enhancePrompt??=new ou({client:this.client})}_indexing;get indexing(){return this._indexing??=new iu({client:this.client})}_kilo;get kilo(){return this._kilo??=new pu({client:this.client})}_kilocode;get kilocode(){return this._kilocode??=new Cu({client:this.client})}_anacondaDesktop;get anacondaDesktop(){return this._anacondaDesktop??=new Lu({client:this.client})}_network;get network(){return this._network??=new qu({client:this.client})}_remote;get remote(){return this._remote??=new Mu({client:this.client})}_sandbox;get sandbox(){return this._sandbox??=new $u({client:this.client})}_suggestion;get suggestion(){return this._suggestion??=new Hu({client:this.client})}_telemetry;get telemetry(){return this._telemetry??=new Vu({client:this.client})}_memory;get memory(){return this._memory??=new _u({client:this.client})}_v2;get v2(){return this._v2??=new r0({client:this.client})}}function n0(r,e,t,n){if(!n?.throwOnError||r instanceof Error)return r;if(typeof r=="object"&&r!==null&&Object.keys(r).length>0){const s=r,o=typeof s.data?.message=="string"&&s.data.message||typeof s.message=="string"&&s.message||typeof s.name=="string"&&s.name||nn(t,e);return new Error(o,{cause:{body:r,status:e?.status}})}if(typeof r=="string"&&r.length>0)return new Error(r,{cause:{body:r,status:e?.status}});const a=e?"(empty response body)":"network error (no response)";return new Error(`kilo server ${nn(t,e)}: ${a}`,{cause:{body:r,status:e?.status}})}function nn(r,e){const t=r?.method??"?",n=r?.url??"?",a=e?.status,s=e?.statusText;return`${t} ${n}${a?" → "+a:""}${s?" "+s:""}`}function a0(r,e,t){if(r)return e&&(r===e||t&&r===t(e))?e:r}function s0(r,e){if(r.method!=="GET"&&r.method!=="HEAD")return r;const t=new URL(r.url);let n=!1;for(const[s,o]of[["x-kilo-directory","directory"],["x-kilo-workspace","workspace"]]){const i=a0(r.headers.get(s),o==="directory"?e.directory:e.workspace,o==="directory"?encodeURIComponent:void 0);if(i){for(const c of t.pathname.startsWith("/api/")?[o,`location[${o}]`]:[o])t.searchParams.has(c)||t.searchParams.set(c,i);n=!0}}if(!n)return r;const a=new Request(t,r);return a.headers.delete("x-kilo-directory"),a.headers.delete("x-kilo-workspace"),a}function o0(r){r?.fetch||(r={...r,fetch:n=>fetch(n,{duplex:"half",timeout:!1})}),r?.directory&&(r.headers={...r.headers,"x-kilo-directory":encodeURIComponent(r.directory)}),r?.experimental_workspaceID&&(r.headers={...r.headers,"x-kilo-workspace":r.experimental_workspaceID}),r.duplex="half";const e=aa(r);return e.interceptors.request.use(t=>s0(t,{directory:r?.directory,workspace:r?.experimental_workspaceID})),e.interceptors.response.use(t=>{if(t.headers.get("content-type")==="text/html")throw new Error("Request is not supported by this version of OpenCode Server (Server responded with text/html)");return t}),e.interceptors.error.use(n0),new Lr({client:e})}const i0=Array.from({length:20},(r,e)=>4097+e),c0=1440*60*1e3,qr="kilo.config.server",Je={},Mr=window.fetch.bind(window);function l0(r){const e=new TextEncoder().encode(r);return btoa(String.fromCharCode(...e))}function an(r){return r?decodeURIComponent(r):""}function Et(r){const e=new URL(r),t=an(e.username)||"kilo",n=an(e.password)||"kilo";return e.username="",e.password="",e.search="",e.hash="",{url:e.toString().replace(/\/$/,""),token:l0(`${t}:${n}`)}}function R(r){const e=Et(r.url);return o0({baseUrl:e.url,directory:At(r.dir),headers:{Authorization:`Basic ${e.token}`},fetch:Mr})}function At(r){const e=r.trim();if(e)return e}function Ct(r){return r instanceof Error?r.message:typeof r=="string"?r:r==null?"Unknown error":JSON.stringify(r)}function P(r,e){if(e.error)throw new Error(`${r}: ${Ct(e.error)}`);if(e.data===void 0)throw new Error(`${r}: empty response`);return e.data}async function d0(r){const t=(await Pt(r)).find(n=>n.id===r.project);if(!t)throw new Error(`Project not found: ${r.project}`);return t}async function ke(r,e){return await e.then(t=>{if(t.error){console.warn(`${r}: ${Ct(t.error)}`);return}return t.data}).catch(t=>{console.warn(`${r}: ${Ct(t)}`)})}function f0(r){if(typeof r!="string")return;const e=r.indexOf("/");if(!(e<=0||e>=r.length-1))return{provider:r.slice(0,e),model:r.slice(e+1)}}function Dt(r){const e=At(r.dir);return e?{directory:e}:void 0}function u0(r){return r.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function y0(r){return{keybinds:Object.entries(r.keybinds??{}).map(([e,t])=>({id:e,label:u0(e),group:"Configured",default:t??"none",description:"Configured TUI keybind"}))}}function Lt(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function p0(r,e){const t=Lt(r),n=Lt(e);return n===t?!0:n.startsWith(`${t}/`)}function oa(r){return r.id!=="global"?!0:Lt(r.worktree)!=="/"}function h0(r,e){return[r.worktree,...r.sandboxes].reduce((t,n)=>p0(n,e)?Math.max(t,Lt(n).length):t,-1)}function m0(r,e){const t=r.find(n=>n.id===e.projectID);return t||r.reduce((n,a)=>{const s=h0(a,e.directory);return s<=n.score?n:{item:a,score:s}},{score:-1}).item}async function ia(r){const e=new AbortController,t=window.setTimeout(()=>e.abort(),400),n=Et(r);return await Mr(`${n.url}/global/health`,{headers:{Authorization:`Basic ${n.token}`},signal:e.signal}).then(a=>a.ok?r:void 0).catch(()=>{}).finally(()=>window.clearTimeout(t))}function k0(r){return Array.isArray(r)?r.filter(e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.id=="string"&&typeof t.worktree=="string"&&typeof t.time?.updated=="number"}):[]}function g0(r){return r.reduce((e,t)=>Math.max(e,t.time.updated),0)}async function b0(r){if(!await ia(r))return;const t=new AbortController,n=window.setTimeout(()=>t.abort(),400),a=Et(r);return await Mr(`${a.url}/project`,{headers:{Authorization:`Basic ${a.token}`},signal:t.signal}).then(async s=>{if(!s.ok)return{url:r,count:0,time:0};const o=k0(await s.json()).filter(oa);return{url:r,count:o.length,time:g0(o)}}).catch(()=>({url:r,count:0,time:0})).finally(()=>window.clearTimeout(n))}function sn(r){return Number(new URL(r).port)||0}function on(r){return new URL(r).hostname==="127.0.0.1"?1:0}function Fe(){return window.localStorage.getItem(qr)??""}function qe(r){window.localStorage.setItem(qr,r)}function Tt(){window.localStorage.removeItem(qr)}async function w0(r){return await ia(r)!==void 0}async function v0(){const r=i0.flatMap(t=>[`http://127.0.0.1:${t}`,`http://localhost:${t}`]);return(await Promise.all(r.map(b0))).filter(t=>t!==void 0).toSorted((t,n)=>n.count-t.count||n.time-t.time||sn(n.url)-sn(t.url)||on(n.url)-on(t.url))[0]?.url}async function St(){if(Je.run)return await Je.run;const r=v0().finally(()=>{Je.run===r&&(Je.run=void 0)});return Je.run=r,await r}async function $r(){const r=await St();if(r)return r;const e=Fe();if(e){if(await w0(e))return e;Tt()}}async function Gy(r){const e=R(r),[t,n,a,s,o,i,c,f,y,u,p,g]=await Promise.all([e.global.health(),e.config.overlay({scope:r.scope}),e.config.modelState(),e.provider.list(),e.provider.auth(),e.tui.config.get(),ke("TUI keybinds",e.tui.keybind.list()),e.tool.ids(),e.mcp.status(),e.lsp.status(),e.formatter.status(),e.app.agents()]),m=P("Config overlay",n),h=f0(m.effective.model),w=h?await ke("Tool metadata",e.tool.list(h)):void 0,H=P("TUI config",i);return{health:P("Health",t),effective:m.effective,overlay:m,sources:{sources:m.sources},modelState:P("Model state",a),providers:P("Providers",s),authMethods:P("Provider auth methods",o),tui:H,keybinds:c??y0(H),tools:P("Tools",f),toolDetails:w??[],mcp:P("MCP status",y),lsp:P("LSP status",u),formatter:P("Formatter status",p),agents:P("Agents",g)}}async function Yy(r){return P("Kilo embedding models",await R(r).indexing.models())}async function Xy(r){const t=await R(r).kilo.profile(Dt(r));return P("Kilo profile",t)}async function Qy(r,e){const t=R(r),n=await t.kilo.organization.set({...Dt(r),organizationId:e});P("Switch Kilo account",n),await t.global.dispose()}async function e7(r){const e=R(r),t=await e.auth.remove({providerID:"kilo"});P("Log out of Kilo",t),await e.global.dispose()}async function t7(r){const t=await R(r).provider.oauth.authorize({...Dt(r),providerID:"kilo",method:0});return P("Start Kilo login",t)}async function r7(r,e){const t=R(r),n=await t.provider.oauth.callback({...Dt(r),providerID:"kilo",method:0},e?{signal:e}:void 0);P("Complete Kilo login",n),await t.global.dispose()}async function x0(r){const e=R(r),t=At(r.dir),n=await e.project.list(t?{directory:t}:void 0);return P("Projects",n)}async function Pt(r){return(await x0(r)).filter(oa)}async function C0(r){const e=R(r),[t,n]=await Promise.all([Pt(r),e.experimental.session.list({archived:!1,start:Date.now()-c0,limit:500})]),a=P("Recent sessions",n),s=new Map;for(const o of a){const i=m0(t,o);i&&s.set(i.id,(s.get(i.id)??0)+1)}return t.map(o=>({...o,sessions:s.get(o.id)??0})).filter(o=>o.sessions>0)}async function n7(r){const e=await d0(r),t={url:r.url,dir:e.worktree},n=R(t),[a,s,o]=await Promise.all([n.config.overlay({scope:"global"}),n.vcs.get({directory:t.dir}),n.worktree.list({directory:t.dir})]),i=P("Config",a),c=P("Worktrees",o),f=await Promise.all([t.dir,...c.map(y=>y.directory)].map(y=>L0({url:r.url},y)));return{project:e,config:i.global,vcs:P("VCS",s),worktrees:c,terminals:f.flat()}}async function a7(r,e){const t=R(r),n=e?.trim(),a=await t.worktree.create({directory:r.dir,...n?{worktreeCreateInput:{name:n}}:{}});return P("Create worktree",a)}async function s7(r,e){const n=await R(r).worktree.remove({directory:r.dir,worktreeRemoveInput:{directory:e}});return P("Remove worktree",n)}async function o7(r,e){const n=await R(r).worktree.reset({directory:r.dir,worktreeResetInput:{directory:e}});return P("Reset worktree",n)}async function L0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([t.pty.list({directory:e}),ke("Session status",t.session.status({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=P("Terminals",n),c=a??{},f=cn(s??[]),y=cn(o??[]),u=new Map;return await Promise.all(i.map(async p=>{if(!p.sessionID||u.has(p.sessionID))return;const g=await ke("Session",t.session.get({directory:e,sessionID:p.sessionID}));g&&u.set(p.sessionID,g)})),i.map(p=>{const g=p.sessionID?u.get(p.sessionID):void 0;return{...p,directory:e,session:g,sessionStatus:p.sessionID?c[p.sessionID]:void 0,attention:p.sessionID?$0(p.sessionID,f,y):void 0}})}function ca(r){return new Set(r.flatMap(e=>e.sessionID?[e.sessionID]:[]))}function cn(r){return new Set(r.map(e=>e.sessionID))}function ln(r,e){return r.some(t=>e.has(t.sessionID))}async function q0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([ke("Session status",t.session.status({directory:e})),ke("Terminals",t.pty.list({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=ca(a??[]),c=Object.entries(n??{}).some(([y,u])=>i.has(y)&&u.type!=="idle"),f=ln(s??[],i)||ln(o??[],i);return{busy:c,attention:f}}async function M0(r,e){const t=R({url:r.url,dir:e}),n=await ke("Terminals",t.pty.list({directory:e}));return ca(n??[])}function $0(r,e,t){if(e.has(r))return"permission";if(t.has(r))return"question"}async function i7(r,e){const n=await R({url:r.url,dir:e}).worktree.diffSummary({directory:e});return P("Worktree diff",n)}async function c7(r,e,t){const a=await R({url:r.url,dir:e}).worktree.diffFile({directory:e,file:t});return P("Worktree diff file",a)}async function l7(r,e,t="Kilo session"){const a=await R({url:r.url,dir:e}).pty.create({directory:e,command:"kilo",cwd:e,title:t});return P("Create terminal",a)}async function d7(r,e){const n=await R({url:r.url,dir:r.dir}).pty.remove({directory:r.dir,ptyID:e});return P("Remove terminal",n)}async function f7(r,e,t,n){const s=await R(r).session.viewed({directory:r.dir,viewer:e,attached:t,visible:n});return P("Viewed sessions",s)}function H0(r,e){const t=R(r),n=new AbortController;return(async()=>{const a=await t.global.event({signal:n.signal,sseMaxRetryAttempts:0});for await(const s of a.stream){if(n.signal.aborted)return;e(s)}})().catch(a=>{n.signal.aborted||console.warn(`Project events: ${Ct(a)}`)}),()=>n.abort()}async function u7(r,e,t,n){const s=await R({url:r.url,dir:r.dir}).pty.update({directory:r.dir,ptyID:e,size:{cols:t,rows:n}});return P("Resize terminal",s)}function y7(r,e,t=0){const n=Et(r.url),a=new URL(`/pty/${encodeURIComponent(e)}/connect`,n.url);return a.protocol=a.protocol==="https:"?"wss:":"ws:",a.searchParams.set("directory",r.dir),a.searchParams.set("cursor",String(t)),a.searchParams.set("auth_token",n.token),a.toString()}async function la(r,e,t){const n=R(r),a=Object.keys(e).length?e:void 0,s=await n.config.overlayUpdate({directory:At(r.dir),scope:r.scope,set:a,unset:t});return P("Update config",s)}async function p7(r,e){return la(r,e)}async function h7(r,e){return la(r,{},e)}async function m7(r,e){const n=await R(r).config.modelStateUpdate({favorite:e});return P("Update model state",n)}async function k7(r,e,t,n){const a=R(r),s=n?{type:"api",key:t,metadata:n}:{type:"api",key:t},o=await a.auth.set({providerID:e,auth:s});P("Connect provider",o),await a.global.dispose()}async function g7(r,e,t,n){const s=await R(r).provider.oauth.authorize({providerID:e,method:t,inputs:n});return P("Authorize provider",s)}async function b7(r,e,t,n){const a=R(r),s=await a.provider.oauth.callback({providerID:e,method:t,code:n});P("Complete provider authorization",s),await a.global.dispose()}async function w7(r,e){const n=await R(r).mcp.connect({name:e});return P("Connect MCP server",n)}async function v7(r,e){const n=await R(r).mcp.disconnect({name:e});return P("Disconnect MCP server",n)}async function x7(r,e){const n=await R(r).mcp.auth.authenticate({name:e});return P("Authenticate MCP server",n)}async function C7(r,e){const n=await R(r).tui.config.update({scope:r.scope,...e});return P("Update TUI config",n)}async function L7(r,e){const n=await R(r).agentBuilder.preview(e);return P("Preview agent",n)}async function q7(r,e){const n=await R(r).agentBuilder.save({path_id:e.id,scope:e.scope,description:e.description,mode:e.mode,model:e.model,color:e.color,steps:e.steps,tools:e.tools,permission:e.permission,prompt:e.prompt});return P("Save agent",n)}const dn=Q(()=>X(()=>import("./AgentsRoute-s5Zmb8_f.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentBuilderRoute}))),V0=Q(()=>X(()=>import("./AgentsRoute-s5Zmb8_f.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentsRoute}))),_0=Q(()=>X(()=>import("./CliNotificationsRoute-D7syYW9r.js"),__vite__mapDeps([10,1,4,2,3,11,5,12])).then(r=>({default:r.CliNotificationsRoute}))),I0=Q(()=>X(()=>import("./CliUiRoute-DQDoZhR4.js"),__vite__mapDeps([13,1,4,2,3,11,5,12])).then(r=>({default:r.CliUiRoute}))),j0=Q(()=>X(()=>import("./ConsoleUiRoute-Df63saGj.js"),__vite__mapDeps([14,1,15,5,4,2,3,12])).then(r=>({default:r.ConsoleUiRoute}))),E0=Q(()=>X(()=>import("./FormattersRoute-BvdoFz5w.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.FormattersRoute}))),A0=Q(()=>X(()=>import("./FormattersRoute-BvdoFz5w.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.LspRoute}))),D0=Q(()=>X(()=>import("./IndexingRoute-Dx9yph6P.js"),__vite__mapDeps([18,1,4,5,2,3,19,9])).then(r=>({default:r.IndexingRoute}))),T0=Q(()=>X(()=>import("./KeybindsRoute-CurHjYjB.js"),__vite__mapDeps([20,1,2,3,5,21])).then(r=>({default:r.KeybindsRoute}))),S0=Q(()=>X(()=>import("./McpRoute-WHL8Rq4S.js"),__vite__mapDeps([22,1,2,3,23,4,5,24])).then(r=>({default:r.McpRoute}))),P0=Q(()=>X(()=>import("./ModelsRoute-C5j0Bvt5.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsAvailableRoute}))),F0=Q(()=>X(()=>import("./ModelsRoute-C5j0Bvt5.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsDefaultRoute}))),Z0=Q(()=>X(()=>import("./ModelsRoute-C5j0Bvt5.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsRoute}))),B0=Q(()=>X(()=>import("./OverviewRoute-Xk5yd_yq.js"),__vite__mapDeps([28,2,3,5,29])).then(r=>({default:r.OverviewRoute}))),O0=Q(()=>X(()=>import("./PermissionsRoute-DTtSlCTu.js").then(r=>r.P),__vite__mapDeps([6,1,2,3,5,7])).then(r=>({default:r.PermissionsRoute}))),R0=Q(()=>X(()=>import("./ProvidersRoute-DaMZgS0o.js"),__vite__mapDeps([30,1,2,3,23,4,5])).then(r=>({default:r.ProvidersRoute}))),z0=Q(()=>X(()=>import("./ServersRoute-eYvfSICa.js"),__vite__mapDeps([31,1,5,2,3,32])).then(r=>({default:r.ServersRoute}))),N0=Q(()=>X(()=>import("./SourcesRoute-BDoPNd6a.js"),__vite__mapDeps([33,5,2,3,34])).then(r=>({default:r.SourcesRoute}))),U0=Q(()=>X(()=>import("./ToolsRoute-DKOh-taA.js"),__vite__mapDeps([35,2,3,1,5,9])).then(r=>({default:r.ToolsRoute}))),W0={path:"/providers",href:"/settings/providers",icon:"providers",label:"Providers",component:R0},J0={path:"/agents",href:"/settings/agents",icon:"task",label:"Agents",component:V0},K0={path:"/tools",href:"/settings/tools",icon:"code",label:"Tools",component:U0},G0={path:"/mcp",href:"/settings/mcp",icon:"mcp",label:"MCP",component:S0},Y0={path:"/permissions",href:"/settings/permissions",icon:"key",label:"Permissions",component:O0},X0={path:"/formatters",href:"/settings/formatters",icon:"sliders",label:"Formatters",component:E0},Q0={path:"/lsp",href:"/settings/lsp",icon:"server",label:"LSP Servers",component:A0},da=[{id:"general",label:"General",items:[{path:"/",href:"/settings",icon:"home",label:"Overview",component:B0}]},W0,{id:"models",label:"Models",items:[{path:"/models/default",href:"/settings/models/default",icon:"models",label:"Defaults",component:F0},{path:"/models/explore",href:"/settings/models/explore",icon:"models",label:"Explore",component:P0}]},{id:"behaviour",label:"Behaviour",items:[J0,K0,Y0,G0,X0,Q0,{path:"/indexing",href:"/settings/indexing",icon:"circuit-board",label:"Code Indexing",component:D0}]},{id:"cli",label:"CLI",items:[{path:"/cli/ui",href:"/settings/cli/ui",icon:"sliders",label:"UI",component:I0},{path:"/cli/notifications",href:"/settings/cli/notifications",icon:"bubble-5",label:"Notifications",component:_0},{path:"/cli/keybinds",href:"/settings/cli/keybinds",icon:"keyboard",label:"Keybinds",component:T0}]},{id:"console",label:"Console",globalOnly:!0,items:[{path:"/console/ui",href:"/settings/console/ui",icon:"sliders",label:"UI",component:j0}]},{id:"advanced",label:"Advanced",items:[{path:"/servers",href:"/settings/servers",icon:"server",label:"Servers",component:z0},{path:"/sources",href:"/settings/sources",icon:"archive",label:"Sources",component:N0}]}];function e2(r){return"items"in r?r.items:[r]}const t2=[...da.flatMap(e2),{path:"/agents/new",href:"/settings/agents/new",icon:"task",label:"New Agent",component:dn},{path:"/agents/:agentID",href:"/settings/agents",icon:"task",label:"Edit Agent",component:dn},{path:"/models",href:"/settings/models/default",icon:"models",label:"Models",component:Z0}],r2={apply_patch:"Apply Patch",bash:"Bash",edit:"Edit File",glob:"Find Files",grep:"Search Content",lsp:"Language Server",question:"Ask User",read:"Read File",recall:"Local Recall",skill:"Load Skill",task:"Subagent Task",todowrite:"Todo List",webfetch:"Fetch URL",websearch:"Web Search",write:"Write File"},n2={apply_patch:["Apply structured patches to add, update, move, or delete files.","Keeps edits explicit and easy to review."],bash:["Run shell commands in the current workspace.","Supports timeouts, working directories, and command descriptions."],edit:["Replace exact text inside an existing file.","Can update one match or all matches when needed."],glob:["Find files by path patterns.","Useful for locating files before reading or editing them."],grep:["Search file contents with regular expressions.","Can limit results to a file pattern such as TypeScript or CSS files."],lsp:["Use language-server features for code navigation.","Supports operations such as definitions, references, and diagnostics."],question:["Ask the user for a decision during execution.","Supports single-choice and multi-choice prompts."],read:["Read files, directories, images, and PDFs from the workspace.","Supports line offsets and limits for large files."],recall:["Search and read previous project conversations.","Useful for recovering prior decisions or implementation context."],skill:["Load task-specific instructions and workflows.","Applies specialized repo guidance when a matching skill exists."],task:["Delegate focused exploration or implementation work to a subagent.","Useful for parallel codebase research and complex subtasks."],todowrite:["Track multi-step implementation work.","Shows progress with pending, in-progress, and completed states."],webfetch:["Fetch and convert web pages for analysis.","Supports markdown, text, and HTML output formats."],websearch:["Search the web for external information.","Supports fast, automatic, and deep search modes."],write:["Create or overwrite files with complete contents.","Best for new files or full-file replacements."]},a2=new Set(["api","html","id","json","lsp","mcp","pdf","url"]);function Hr(r){return r.trim()}function s2(r){return r==null||r===""?"Not set":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r)??"Unserializable value"}function M7(r){return[...r].sort((e,t)=>e.localeCompare(t))}function $7(r){return r.split(/\s+/).map(e=>e.trim()).filter(Boolean)}function Vr(r){return r.trim().split(/[\s._/-]+/).filter(Boolean).map(e=>/^[A-Z0-9]+$/.test(e)&&e.length<=4?e:`${e[0]?.toUpperCase()??""}${e.slice(1).toLowerCase()}`).join(" ")}function o2(r){const e=r.toLowerCase();return a2.has(e)?e.toUpperCase():r.charAt(0).toUpperCase()+r.slice(1)}function fn(r){return r.length<=180?r:`${r.slice(0,177)}...`}function i2(r){const e=r.replace(/```[\s\S]*?```/g," ").replace(/[*`#>_-]+/g," ").replace(/\s+/g," ").trim(),t=e.split(/(?:\.|\?|!)\s+/).map(n=>n.trim()).filter(Boolean).slice(0,2);return t.length?t.map(fn):e?[fn(e)]:[]}function H7(r){const e=r2[r];if(e)return e;const t=r.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[._:/-]+/g," ").replace(/\s+/g," ").trim();return t?t.split(" ").map(o2).join(" "):r}function V7(r){const e=n2[r.id];if(e)return e;const t=r.detail?.description.trim();return t?i2(t):["No capability description is available for this tool."]}function _7(r){return r.split(",").map(e=>e.trim()).filter(Boolean)}function I7(r){return!r||typeof r!="object"||Array.isArray(r)?0:Object.keys(r).length}function c2(r){return r instanceof Error?r.message:typeof r=="string"?r:s2(r)}function j7(r){return r==="subagent"?"subagent":r==="all"?"all":"primary"}var l2=W('<div class=omni-results id=omni-search-results role=listbox aria-label="Search results">'),d2=W("<footer class=omni-footer><span class=omni-help><span class=omni-kbd>↑</span><span class=omni-kbd>↓</span>Navigate</span><span class=omni-help><span class=omni-kbd>↵</span>Open"),f2=W('<form class=omni-search role=search><div class=omni-search-head><span class=omni-command aria-hidden=true><svg class=omni-command-icon viewBox="0 0 24 24"fill=none><path d="M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10"></path></svg></span><input type=search aria-label="Omni search"aria-controls=omni-search-results><button class=omni-escape type=button aria-label="Close search">esc'),u2=W("<div class=omni-empty>No matches."),y2=W("<span class=omni-enter aria-hidden=true>↵"),p2=W("<button type=button class=omni-entry role=option><span class=omni-kind></span><span class=omni-label>"),h2=W("<span class=omni-sub>");const m2=new Set(["3017","3018"]);function yr(r){return r.get("server")?!1:m2.has(window.location.port)}function k2(r){const e=r.get("server");if(e)return e;const t=yr(r)?Fe():"";return t||(yr(r)?"":window.location.origin)}function g2(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Ge(r,e){return`${r}${g2(e)}`}function b2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function w2(r){return Vr(r.name?.trim()||b2(r.worktree)||r.id.slice(0,8))}function v2(r){return r.length<=8?r:r.slice(0,8)}function x2(r){const e=[{kind:"NAV",label:"Projects",href:Ge("/projects",r)}];for(const t of da){if("items"in t){for(const n of t.items){const a=t.id==="general"?"Global Settings":`Global Settings · ${t.label}`;e.push({kind:"NAV",label:`${a} · ${n.label}`,href:Ge(n.href,r)})}continue}e.push({kind:"NAV",label:`Global Settings · ${t.label}`,href:Ge(t.href,r)})}return e.push({kind:"NAV",label:"Profile",href:Ge("/profile",r)}),e}function C2(r,e){return{kind:"PROJECT",label:w2(r),href:Ge(`/projects/${encodeURIComponent(r.id)}`,e),sub:v2(r.id),mono:!0}}function L2(r,e){return[...e].reduce((t,n)=>{if(t<0)return-1;const a=r.indexOf(n,t);return a<0?-1:a+1},0)>=0}function q2(r,e){const t=e.trim().toLowerCase();if(!t)return!0;const n=`${r.kind} ${r.label} ${r.sub??""}`.toLowerCase();return n.includes(t)?!0:L2(n,t)}function M2(){const r=It(),e=ws(),t=D(()=>new URLSearchParams(r.search)),n=()=>yr(t()),a=()=>k2(t()),[s,o]=U(a()),[i,c]=U(!1),[f,y]=U(""),[u,p]=U(0);let g,m;const h=D(()=>{const b=Hr(s())||a();if(b)return{url:b,dir:""}}),[w]=Mt(h,Pt),H=D(()=>[...x2(t()),...[...w()??[]].map(b=>C2(b,t()))]),_=D(()=>H().filter(b=>q2(b,f())));ee(()=>{document.body.classList.toggle("omni-search-open",i())}),fe(()=>document.body.classList.remove("omni-search-open"));function A(){c(!1),y(""),m?.blur()}function T(){c(!0),queueMicrotask(()=>m?.focus())}function q(b){b&&(e(b.href),A())}function x(b){const S=Math.max(_().length-1,0);p(v=>Math.min(Math.max(v+b,0),S))}function F(b){if(b.key==="Escape"&&i()){b.preventDefault(),A();return}if(i()){if(b.key==="ArrowDown"){b.preventDefault(),x(1);return}if(b.key==="ArrowUp"){b.preventDefault(),x(-1);return}b.key==="Enter"&&(b.preventDefault(),q(_()[u()]))}}function j(b){b.preventDefault(),i()&&q(_()[u()])}return ee(()=>{f(),p(0)}),ee(()=>{const b=t().get("server");b&&b!==s()&&o(b)}),ee(()=>{n()&&$r().then(b=>{b&&(qe(b),o(b))})}),ee(()=>{const b=h();!w()||!b||!n()||qe(b.url)}),ee(()=>{if(!w.error||!n())return;const b=Fe();!b||b!==s()||(Tt(),o(""),St().then(S=>{S&&(qe(S),o(S))}))}),$t(()=>{const b=v=>{if(!(!(v.metaKey||v.ctrlKey)||v.key.toLowerCase()!=="k")){if(v.preventDefault(),i()){A();return}T()}},S=v=>{if(!i())return;const M=v.target;M instanceof Node&&g?.contains(M)||A()};window.addEventListener("keydown",b),window.addEventListener("pointerdown",S),fe(()=>{window.removeEventListener("keydown",b),window.removeEventListener("pointerdown",S)})}),(()=>{var b=f2(),S=b.firstChild,v=S.firstChild,M=v.nextSibling,V=M.nextSibling;return b.addEventListener("submit",j),b.$$keydown=F,or(C=>g=C,b),S.$$pointerdown=C=>{C.target instanceof HTMLButtonElement||T()},M.$$input=C=>{y(C.currentTarget.value),c(!0)},M.addEventListener("focus",()=>c(!0)),or(C=>m=C,M),V.$$click=A,Z(b,$(ie,{get when(){return i()},get children(){return[(()=>{var C=l2();return Z(C,$(ie,{get when(){return _().length>0},get fallback(){return u2()},get children(){return $(Ye,{get each(){return _()},children:(E,N)=>(()=>{var J=p2(),he=J.firstChild,G=he.nextSibling;return J.$$mousemove=()=>p(N()),J.$$click=()=>q(E),Z(he,()=>E.kind),Z(G,()=>E.label),Z(J,$(ie,{get when(){return E.sub},children:re=>(()=>{var ae=h2();return Z(ae,re),ae})()}),null),Z(J,$(ie,{get when(){return N()===u()},get children(){return y2()}}),null),ne(re=>{var ae=N()===u(),ye=N()===u(),Ie=!!E.mono;return ae!==re.e&&J.classList.toggle("active",re.e=ae),ye!==re.t&&ce(J,"aria-selected",re.t=ye),Ie!==re.a&&G.classList.toggle("mono",re.a=Ie),re},{e:void 0,t:void 0,a:void 0}),J})()})}})),C})(),d2()]}}),null),ne(C=>{var E=!!i(),N=i()?"":"Search settings, projects, models...",J=i();return E!==C.e&&b.classList.toggle("expanded",C.e=E),N!==C.t&&ce(M,"placeholder",C.t=N),J!==C.a&&ce(M,"aria-expanded",C.a=J),C},{e:void 0,t:void 0,a:void 0}),ne(()=>M.value=f()),b})()}br(["keydown","pointerdown","input","click","mousemove"]);var $2=W('<img class="header-mark header-mark-logo"alt width=28 height=28>'),H2=W("<span class=header-title><span>Console"),V2=W('<header class=app-header><nav class=notification-zone aria-label="Notifications and status">');function _2(){return(()=>{var r=V2(),e=r.firstChild;return Z(r,$(Xe,{class:"header-brand",href:"/projects","aria-label":"Kilo Console home",get children(){return[(()=>{var t=$2();return ne(()=>ce(t,"src","/console/kilo-logo.svg")),t})(),H2()]}}),e),Z(r,$(M2,{}),e),Z(e,$(Jt,{icon:"bubble-5",variant:"ghost","aria-label":"Notifications"}),null),Z(e,$(Jt,{icon:"help",variant:"ghost","aria-label":"Help"}),null),Z(e,$(Jt,{icon:"circle-check",variant:"ghost","aria-label":"System status"}),null),r})()}function _r(){return"/console/".replace(/\/$/,"")}function Ir(r,e=_r()){return!e||e==="/"?r:r===e?"/":r.startsWith(`${e}/`)?r.slice(e.length):r}function E7(r,e=_r()){const t=Ir(r,e),n=t.indexOf("/settings");return n>0?`${t.slice(0,n)}/settings`:t.startsWith("/config")?"/config":"/settings"}function I2(r,e=_r()){const t=Ir(r,e);return t==="/profile"||t.startsWith("/kilo/login")?"/profile":t.startsWith("/settings")||t.startsWith("/config")?"/settings":t.startsWith("/projects/")?"/project":"/projects"}const[j2,fa]=U(new Map),[E2,ua]=U(new Map),[A2,ya]=U(new Map),[D2,pa]=U(new Map);function Ft(r,e,t){r(n=>{if(n.get(e)?.has(t))return n;const a=new Map(n);return a.set(e,new Set([...n.get(e)??[],t])),a})}function Zt(r,e,t){r(n=>{const a=n.get(e);if(!a?.has(t))return n;const s=new Map(n),o=new Set(a);return o.delete(t),o.size===0?s.delete(e):s.set(e,o),s})}const T2=(r,e)=>Ft(fa,r,e),Gt=(r,e)=>Zt(fa,r,e),un=(r,e)=>Ft(ua,r,e),Yt=(r,e)=>Zt(ua,r,e),S2=(r,e)=>Ft(ya,r,e),P2=(r,e)=>Zt(ya,r,e),yn=(r,e)=>Ft(pa,r,e),Xt=(r,e)=>Zt(pa,r,e);function F2(r){return(j2().get(r)?.size??0)>0?"error":(E2().get(r)?.size??0)>0?"attention":(A2().get(r)?.size??0)>0?"unread":(D2().get(r)?.size??0)>0?"busy":"idle"}function pr(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function Z2(r,e){const t=pr(r),n=pr(e);return n===t||n.startsWith(`${t}/`)}function B2(r,e){let t,n=-1;for(const a of r)for(const s of[a.worktree,...a.sandboxes])if(Z2(s,e)){const o=pr(s).length;o>n&&(n=o,t=a)}return t}function O2(r){const e=r.payload;return e.type?e.type!=="sync"?e.type:typeof e.name=="string"?e.name:typeof e.syncEvent?.type=="string"?e.syncEvent.type:"":""}function R2(r){const e=r.payload,n=(e.properties??e.data)?.sessionID;return typeof n=="string"?n:void 0}var z2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2">'),N2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37.996 .608 2.296 .07 2.572 -1.065z"></path><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0">'),U2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2">'),W2=W('<aside class=rail aria-label="Primary navigation"><nav class=rail-nav aria-label=Primary></nav><div class=rail-favorites aria-label="Projects with recent sessions"></div><nav class=rail-bottom aria-label="Account and settings">');const J2=new Set(["3017","3018"]);function hr(r){return r.get("server")?!1:J2.has(window.location.port)}function K2(r){const e=r.get("server");if(e)return e;const t=hr(r)?Fe():"";return t||(hr(r)?"":window.location.origin)}function G2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function mr(r){return Vr(r.name?.trim()||G2(r.worktree)||r.id.slice(0,8))}function Y2(r){const e=mr(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ha(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function X2(r,e){return`/projects/${encodeURIComponent(r.id)}${ha(e)}`}function pn(r){return r.name==="projects"?z2():r.name==="settings"?N2():U2()}function Q2(r){const e=It(),t=D(()=>new URLSearchParams(e.search)),n=D(()=>Ir(e.pathname)),a=()=>hr(t()),s=()=>K2(t()),[o,i]=U(s()),c={refetch:void 0},f=D(()=>{const q=Hr(o())||s();if(q)return{url:q,dir:""}}),[y,{refetch:u}]=Mt(f,C0),p=new Map,g=D(()=>{const q=n().match(/^\/projects\/([^/]+)/);return q?decodeURIComponent(q[1]):void 0}),m=()=>`/settings${ha(t())}`,h=q=>n().startsWith(`/projects/${encodeURIComponent(q.id)}/`)||n()===`/projects/${encodeURIComponent(q.id)}`,w=()=>[{href:"/projects",label:"Projects",name:"projects",path:"/projects"}],H=()=>[{href:"/profile",label:"Profile",name:"profile",path:"/profile"},{href:m(),label:"Settings",name:"settings",path:"/settings"}];function _(){c.refetch||(c.refetch=window.setTimeout(()=>{c.refetch=void 0,u()},150))}function A(q,x,F){const j=`${q}\0${x}\0${F}`,b=(p.get(j)??0)+1;return p.set(j,b),{key:j,rev:b}}function T(q,x,F,j,b,S,v){const M=A(q,F,b);M0(x,j).then(V=>{p.get(M.key)===M.rev&&(V.has(b)?S():v())}).catch(V=>console.warn("Project open sessions:",V))}return ee(()=>{const q=t().get("server");q&&q!==o()&&i(q)}),ee(()=>{a()&&$r().then(q=>{q&&(qe(q),i(q))})}),ee(()=>{const q=f();!y()||!q||!a()||qe(q.url)}),ee(()=>{if(!y.error||!a())return;const q=Fe();!q||q!==o()||(Tt(),i(""),St().then(x=>{x&&(qe(x),i(x))}))}),ee(()=>{if(!f())return;const q=window.setInterval(()=>{u()},5e3);fe(()=>window.clearInterval(q))}),ee(()=>{const q=y(),x=f();if(!(!q||!x))for(const F of q)q0(x,F.worktree).then(j=>{j.busy?yn(F.id,"__hydrated__"):Xt(F.id,"__hydrated__"),j.attention?un(F.id,"__hydrated__"):Yt(F.id,"__hydrated__")}).catch(j=>console.warn("Project live status:",j))}),ee(()=>{const q=f();if(!q)return;const x=H0(q,F=>{const j=F,b=y()??[],S=O2(j);if((S.startsWith("session.created")||S.startsWith("session.updated")||S.startsWith("session.deleted"))&&_(),!b.length||!j.directory)return;const v=B2(b,j.directory);if(!v)return;const M=R2(j);if(S==="session.turn.close"){const V=j.payload.properties;if(!M)return;if(V?.reason==="error"){T("error",q,v.id,j.directory,M,()=>T2(v.id,M),()=>Gt(v.id,M));return}A("error",v.id,M),Gt(v.id,M),V?.reason==="completed"&&v.id!==g()&&T("unread",q,v.id,j.directory,M,()=>S2(v.id,M),()=>P2(v.id,M));return}if(S==="permission.asked"||S==="question.asked"){if(!M)return;T("attention",q,v.id,j.directory,M,()=>un(v.id,M),()=>Yt(v.id,M));return}if(S==="permission.replied"||S==="permission.rejected"||S==="question.replied"||S==="question.rejected"){if(!M)return;A("attention",v.id,M),Yt(v.id,M);return}if(S==="session.status"){const C=j.payload.properties?.status?.type;if(!M)return;C==="busy"||C==="retry"?T("busy",q,v.id,j.directory,M,()=>yn(v.id,M),()=>Xt(v.id,M)):C==="idle"&&(A("busy",v.id,M),A("error",v.id,M),Xt(v.id,M),Gt(v.id,M));return}});fe(x)}),fe(()=>{c.refetch&&window.clearTimeout(c.refetch),p.clear()}),(()=>{var q=W2(),x=q.firstChild,F=x.nextSibling,j=F.nextSibling;return Z(x,$(Ye,{get each(){return w()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),Z(F,$(Ye,{get each(){return y()??[]},children:b=>{const S=()=>F2(b.id);return $(Xe,{class:"favorite-project",get classList(){return{active:h(b),"status-error":S()==="error","status-attention":S()==="attention","status-unread":S()==="unread","status-busy":S()==="busy"}},get href(){return X2(b,t())},get"aria-label"(){return mr(b)},get"aria-current"(){return h(b)?"page":void 0},get title(){return mr(b)},get children(){return Y2(b)}})}})),Z(j,$(Ye,{get each(){return H()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),q})()}var ey=W('<div class="console-shell kilo-console dark"><div class=console-body><main class=console-main>');function ty(r){return(()=>{var e=ey(),t=e.firstChild,n=t.firstChild;return Z(e,$(_2,{}),t),Z(t,$(Q2,{get path(){return r.path}}),n),Z(n,()=>r.children),e})()}function ry(r){const e=It(),t=D(()=>I2(e.pathname));return $(o1,{defaultTheme:"kilo",get children(){return $(ty,{get path(){return t()},get children(){return $(Sa,{get fallback(){return $(ur,{variant:"fullscreen"})},get children(){return r.children}})}})}})}function ny(r,e){const t=Object.fromEntries(Object.entries(e).filter(n=>n[1]!==void 0));if(typeof r=="string"){const n=Object.entries(t).map(a=>`${a[0]}:${a[1]}`).join(";");return n?`${r};${n}`:r}return{...r??{},...t}}var ay=W("<div>");function Qt(r){const[e,t]=Me(r,["variant","size","padding","style","class","classList","children"]),n=()=>typeof e.padding=="number"?`${e.padding}px`:e.padding;return(()=>{var a=ay();return Ne(a,pe(t,{"data-component":"card",get"data-variant"(){return e.variant??"normal"},get"data-size"(){return e.size??"default"},get style(){return ny(e.style,{"--kw-card-padding":n()})},get classList(){return{...e.classList,[e.class??""]:!!e.class}}}),!1,!0),Z(a,()=>e.children),a})()}var sy=W("<label data-component=search-field><span data-slot=search-label></span><input>");function oy(r){const[e,t]=Me(r,["label","value","variant","hideLabel","inputClass","class","classList","onValue"]);return(()=>{var n=sy(),a=n.firstChild,s=a.nextSibling;return Z(a,()=>e.label),Ne(s,pe(t,{get class(){return e.inputClass},type:"search",get value(){return e.value},get"aria-label"(){return Le(()=>e.hideLabel===!1)()?void 0:e.label},onInput:o=>e.onValue(o.currentTarget.value)}),!1,!1),ne(o=>{var i=e.variant??"list",c=e.hideLabel===!1?"visible":"hidden",f={...e.classList,[e.class??""]:!!e.class};return i!==o.e&&ce(n,"data-variant",o.e=i),c!==o.t&&ce(n,"data-label",o.t=c),o.a=Vn(n,f,o.a),o},{e:void 0,t:void 0,a:void 0}),n})()}var iy=W("<strong>Project request failed"),cy=W("<span>"),ly=W('<section class=route-empty><div class=projects-page><header class=projects-header><h1>Projects <span class=count-tag></span></h1><p>Projects opened with this Kilo server. Selecting a project opens its console.</p></header><ul class=project-list aria-label="Kilo projects">'),dy=W("<span class=project-icon aria-hidden=true>"),fy=W('<span class=project-body><span class=project-title><strong></strong><span></span></span><span class=project-meta><span class=project-git aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M6 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6 8v4a3 3 0 0 0 3 3h6"></path><path d="M14 12l3 3l-3 3"></path></svg></span><span class=project-folder></span><span aria-hidden=true>·</span><span>'),uy=W('<span class=project-arrow aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M9 6l6 6l-6 6">'),yy=W("<li>");const jr=new URLSearchParams(window.location.search),py=new Set(["3017","3018"]);function Be(){return jr.get("server")?!1:py.has(window.location.port)}function hn(){const r=jr.get("server");if(r)return r;const e=Be()?Fe():"";return e||(Be()?"":window.location.origin)}function hy(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function Er(r){return Vr(r.name?.trim()||hy(r.worktree)||r.id.slice(0,8))}function my(r){const e=Er(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ky(r){const e=new URLSearchParams,t=jr.get("server");t&&e.set("server",t);const n=e.toString();return`/projects/${encodeURIComponent(r.id)}${n?`?${n}`:""}`}function gy(r){return r.length<=8?r:r.slice(0,8)}function by(r){const e=Math.max(0,Date.now()-r),t=60*1e3,n=60*t,a=24*n;if(e<t)return"just now";if(e<n)return`${Math.floor(e/t)} minutes ago`;if(e<a)return`${Math.floor(e/n)} hours ago`;const s=Math.floor(e/a);return s===1?"yesterday":`${s} days ago`}function wy(r,e){const t=e.trim().toLowerCase();return t?`${Er(r)} ${r.id} ${r.worktree}`.toLowerCase().includes(t):!0}function mn(){const[r,e]=U(hn()),[t,n]=U(""),a=D(()=>{const c=Hr(r())||hn();if(c)return{url:c,dir:""}}),[s]=Mt(a,Pt),o=D(()=>[...s()??[]].sort((c,f)=>f.time.updated-c.time.updated)),i=D(()=>o().filter(c=>wy(c,t())));return ee(()=>{Be()&&$r().then(c=>{c&&(qe(c),e(c))})}),ee(()=>{const c=a();!s()||!c||!Be()||qe(c.url)}),ee(()=>{if(!s.error||!Be())return;const c=Fe();!c||c!==r()||(Tt(),e(""),St().then(f=>{f&&(qe(f),e(f))}))}),(()=>{var c=ly(),f=c.firstChild,y=f.firstChild,u=y.firstChild,p=u.firstChild,g=p.nextSibling,m=y.nextSibling;return Z(g,()=>o().length),Z(f,$(ie,{get when(){return Le(()=>!a())()&&Be()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!s.loading)()&&!s()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return s.error},get children(){return $(Qt,{class:"banner",variant:"error",get children(){return[iy(),(()=>{var h=cy();return Z(h,()=>c2(s.error)),h})()]}})}}),m),Z(f,$(oy,{label:"Filter projects",get value(){return t()},placeholder:"Filter projects...",onValue:n}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No projects have been opened with this Kilo server yet."})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length>0&&i().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No matches. Clear the filter or open a project from the CLI."})}}),m),Z(m,$(Ye,{get each(){return i()},children:h=>(()=>{var w=yy();return Z(w,$(Xe,{class:"project-row",get href(){return ky(h)},get children(){return[(()=>{var H=dy();return Z(H,()=>my(h)),H})(),(()=>{var H=fy(),_=H.firstChild,A=_.firstChild,T=A.nextSibling,q=_.nextSibling,x=q.firstChild,F=x.nextSibling,j=F.nextSibling,b=j.nextSibling;return Z(A,()=>Er(h)),Z(T,()=>gy(h.id)),Z(F,()=>h.worktree),Z(b,()=>by(h.time.updated)),H})(),uy()]}})),w})()})),c})()}const vy=Q(()=>X(()=>import("./ProjectConsoleRoute-CIGkV4IQ.js"),__vite__mapDeps([36,3,1,15,5,23,37,38])).then(r=>({default:r.ProjectConsoleRoute}))),er=Q(()=>X(()=>import("./ConfigLayout-B-W_U5_n.js"),__vite__mapDeps([39,5,40,38,27])).then(r=>({default:r.ConfigLayout}))),xy=Q(()=>X(()=>import("./ProfileRoute-ClpV2KwX.js"),__vite__mapDeps([41,1,42,43])).then(r=>({default:r.ProfileRoute}))),Cy=Q(()=>X(()=>import("./LoginRoute-C0OltPuR.js"),__vite__mapDeps([44,1,42,43])).then(r=>({default:r.LoginRoute}))),ma=document.getElementById("root");if(!ma)throw new Error("Missing root element");const Ly="/console/".replace(/\/$/,"");function tr(){return t2.map(r=>$(ve,{get path(){return r.path},get component(){return r.component}}))}Ja(()=>$(Ts,{root:ry,base:Ly||void 0,get children(){return[$(ve,{path:"/projects",component:mn}),$(ve,{path:"/projects/:project",component:vy}),$(ve,{path:"/projects/:project/settings",component:er,get children(){return tr()}}),$(ve,{path:"/profile",component:xy}),$(ve,{path:"/kilo/login",component:Cy}),$(ve,{path:"/settings",component:er,get children(){return tr()}}),$(ve,{path:"/config",component:er,get children(){return tr()}}),$(ve,{path:"*",component:mn})]}}),ma);export{I7 as $,Xe as A,Hn as B,Qt as C,V7 as D,H7 as E,Ye as F,Me as G,pe as H,R1 as I,Gn as J,Ne as K,ur as L,Hy as M,Se as N,st as O,q7 as P,M7 as Q,L7 as R,ie as S,j7 as T,Vr as U,Iy as V,E7 as W,Jt as X,s2 as Y,Xa as Z,m7 as _,ws as a,_1 as a$,X as a0,$t as a1,or as a2,u7 as a3,y7 as a4,Fe as a5,Tt as a6,St as a7,qe as a8,$r as a9,c7 as aA,a7 as aB,o7 as aC,s7 as aD,Ey as aE,p1 as aF,Zy as aG,te as aH,Dy as aI,Pr as aJ,Ny as aK,V1 as aL,Wy as aM,w1 as aN,Uy as aO,Ry as aP,Un as aQ,Kn as aR,I1 as aS,y1 as aT,By as aU,E1 as aV,Oy as aW,Fy as aX,zy as aY,Z1 as aZ,Vn as a_,$7 as aa,_7 as ab,Yy as ac,Ir as ad,x0 as ae,Gy as af,p7 as ag,la as ah,h7 as ai,C7 as aj,da as ak,b7 as al,k7 as am,g7 as an,a1 as ao,f7 as ap,Q as aq,n7 as ar,i7 as as,kr as at,H0 as au,Sa as av,P2 as aw,S2 as ax,l7 as ay,d7 as az,Mt as b,m1 as b0,Jy as b1,jy as b2,Ay as b3,Py as b4,vn as b5,Os as b6,_y as b7,x7 as b8,v7 as b9,w7 as ba,Ty as bb,I as bc,Ae as bd,et as be,Sy as bf,D as c,U as d,ee as e,$ as f,ne as g,br as h,Z as i,c2 as j,e7 as k,Xy as l,Le as m,Qy as n,fe as o,$y as p,t7 as q,r7 as r,ce as s,W as t,It as u,Ya as v,oy as w,Vy as x,Hr as y,My as z};
|
|
19
|
+
`);try{J=JSON.parse(G),he=!0}catch{J=G}}he&&(a&&await a(J),n&&(J=await n(J))),t?.({data:J,event:N,id:u,retry:h}),E.length&&(yield J)}}}finally{H.removeEventListener("abort",b),F.releaseLock()}break}catch(A){if(e?.(A),o!==void 0&&w>=o)break;const T=Math.min(h*2**(w-1),i??3e4);await p(T)}}}()}}const W1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},J1=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},K1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qn=({allowReserved:r,explode:e,name:t,style:n,value:a})=>{if(!e){const i=(r?a:a.map(c=>encodeURIComponent(c))).join(J1(n));switch(n){case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;case"simple":return i;default:return`${t}=${i}`}}const s=W1(n),o=a.map(i=>n==="label"||n==="simple"?r?i:encodeURIComponent(i):jt({allowReserved:r,name:t,value:i})).join(s);return n==="label"||n==="matrix"?s+o:o},jt=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},ea=({allowReserved:r,explode:e,name:t,style:n,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${t}=${a.toISOString()}`;if(n!=="deepObject"&&!e){let c=[];Object.entries(a).forEach(([y,u])=>{c=[...c,y,r?u:encodeURIComponent(u)]});const f=c.join(",");switch(n){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}const o=K1(n),i=Object.entries(a).map(([c,f])=>jt({allowReserved:r,name:n==="deepObject"?`${t}[${c}]`:c,value:f})).join(o);return n==="label"||n==="matrix"?o+i:i},G1=/\{[^{}]+\}/g,Y1=({path:r,url:e})=>{let t=e;const n=e.match(G1);if(n)for(const a of n){let s=!1,o=a.substring(1,a.length-1),i="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),i="label"):o.startsWith(";")&&(o=o.substring(1),i="matrix");const c=r[o];if(c==null)continue;if(Array.isArray(c)){t=t.replace(a,Qn({explode:s,name:o,style:i,value:c}));continue}if(typeof c=="object"){t=t.replace(a,ea({explode:s,name:o,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){t=t.replace(a,`;${jt({name:o,value:c})}`);continue}const f=encodeURIComponent(i==="label"?`.${c}`:c);t=t.replace(a,f)}return t},X1=({baseUrl:r,path:e,query:t,querySerializer:n,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let o=(r??"")+s;e&&(o=Y1({path:e,url:o}));let i=t?n(t):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(o+=`?${i}`),o};function en(r){const e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}const Q1=async(r,e)=>{const t=typeof e=="function"?await e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t},ef={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)},ta=({parameters:r={},...e}={})=>n=>{const a=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o==null)continue;const i=r[s]||e;if(Array.isArray(o)){const c=Qn({allowReserved:i.allowReserved,explode:!0,name:s,style:"form",value:o,...i.array});c&&a.push(c)}else if(typeof o=="object"){const c=ea({allowReserved:i.allowReserved,explode:!0,name:s,style:"deepObject",value:o,...i.object});c&&a.push(c)}else{const c=jt({allowReserved:i.allowReserved,name:s,value:o});c&&a.push(c)}}return a.join("&")},tf=r=>{if(!r)return"stream";const e=r.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>e.startsWith(t)))return"blob";if(e.startsWith("text/"))return"text"}},rf=(r,e)=>e?!!(r.headers.has(e)||r.query?.[e]||r.headers.get("Cookie")?.includes(`${e}=`)):!1;async function nf(r){for(const e of r.security??[]){if(rf(r,e.name))continue;const t=await Q1(e,r.auth);if(!t)continue;const n=e.name??"Authorization";switch(e.in){case"query":r.query||(r.query={}),r.query[n]=t;break;case"cookie":r.headers.append("Cookie",`${n}=${t}`);break;default:r.headers.set(n,t);break}}}const tn=r=>X1({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:ta(r.querySerializer),url:r.url}),rn=(r,e)=>{const t={...r,...e};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=ra(r.headers,e.headers),t},af=r=>{const e=[];return r.forEach((t,n)=>{e.push([n,t])}),e},ra=(...r)=>{const e=new Headers;for(const t of r){if(!t)continue;const n=t instanceof Headers?af(t):Object.entries(t);for(const[a,s]of n)if(s===null)e.delete(a);else if(Array.isArray(s))for(const o of s)e.append(a,o);else s!==void 0&&e.set(a,typeof s=="object"?JSON.stringify(s):s)}return e};class Kt{fns=[];clear(){this.fns=[]}eject(e){const t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){const t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){const n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}}const sf=()=>({error:new Kt,request:new Kt,response:new Kt}),of=ta({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),cf={"Content-Type":"application/json"},na=(r={})=>({...ef,headers:cf,parseAs:"auto",querySerializer:of,...r}),aa=(r={})=>{let e=rn(na(),r);const t=()=>({...e}),n=y=>(e=rn(e,y),t()),a=sf(),s=async y=>{const u={...e,...y,fetch:y.fetch??e.fetch??globalThis.fetch,headers:ra(e.headers,y.headers),serializedBody:void 0};u.security&&await nf(u),u.requestValidator&&await u.requestValidator(u),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");const p=u,g=tn(p);return{opts:p,url:g}},o=async y=>{const u=y.throwOnError??e.throwOnError,p=y.responseStyle??e.responseStyle;let g,m;try{const{opts:h,url:w}=await s(y),H={redirect:"follow",...h,body:en(h)};g=new Request(w,H);for(const x of a.request.fns)x&&(g=await x(g,h));const _=h.fetch;m=await _(g);for(const x of a.response.fns)x&&(m=await x(m,g,h));const A={request:g,response:m};if(m.ok){const x=(h.parseAs==="auto"?tf(m.headers.get("Content-Type")):h.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let j;switch(x){case"arrayBuffer":case"blob":case"text":j=await m[x]();break;case"formData":j=new FormData;break;case"stream":j=m.body;break;default:j={};break}return h.responseStyle==="data"?j:{data:j,...A}}let F;switch(x){case"arrayBuffer":case"blob":case"formData":case"text":F=await m[x]();break;case"json":{const j=await m.text();F=j?JSON.parse(j):{};break}case"stream":return h.responseStyle==="data"?m.body:{data:m.body,...A}}return x==="json"&&(h.responseValidator&&await h.responseValidator(F),h.responseTransformer&&(F=await h.responseTransformer(F))),h.responseStyle==="data"?F:{data:F,...A}}const T=await m.text();let L;try{L=JSON.parse(T)}catch{}throw L??T}catch(h){let w=h;for(const H of a.error.fns)H&&(w=await H(w,m,g,y));if(w=w||{},u)throw w;return p==="data"?void 0:{error:w,request:g,response:m}}},i=y=>u=>o({...u,method:y}),c=y=>async u=>{const{opts:p,url:g}=await s(u);return U1({...p,body:p.body,method:y,onRequest:async(m,h)=>{let w=new Request(m,h);for(const H of a.request.fns)H&&(w=await H(w,p));return w},serializedBody:en(p),url:g})};return{buildUrl:y=>tn({...e,...y}),connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:t,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:o,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},lf={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},df=Object.entries(lf),sa=(r,e)=>{e||(e=new Map);for(const t of r)"in"in t?t.key&&e.set(t.key,{in:t.in,map:t.map}):"key"in t?e.set(t.key,{map:t.map}):t.args&&sa(t.args,e);return e},ff=r=>{for(const[e,t]of Object.entries(r))t&&typeof t=="object"&&!Array.isArray(t)&&!Object.keys(t).length&&delete r[e]},d=(r,e)=>{const t={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},n=sa(e);let a;for(const[s,o]of r.entries())if(e[s]&&(a=e[s]),!!a)if("in"in a)if(a.key){const i=n.get(a.key),c=i.map||a.key;i.in&&(t[i.in][c]=o)}else t.body=o;else for(const[i,c]of Object.entries(o??{})){const f=n.get(i);if(f)if(f.in){const y=f.map||i;t[f.in][y]=c}else t[f.map]=c;else{const y=df.find(([u])=>i.startsWith(u));if(y){const[u,p]=y;t[p][i.slice(u.length)]=c}else if("allowExtra"in a&&a.allowExtra){for(const[u,p]of Object.entries(a.allowExtra))if(p){t[u][i]=c;break}}}}return ff(t),t},uf=aa(na({baseUrl:"http://localhost:4096"}));class k{client;constructor(e){this.client=e?.client??uf}}class yf{defaultKey="default";instances=new Map;get(e){const t=this.instances.get(e??this.defaultKey);if(!t)throw new Error('No SDK client found. Create one with "new KiloClient()" to fix this error.');return t}set(e,t){this.instances.set(t??this.defaultKey,e)}}class pf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"}]}]);return(t?.client??this.client).delete({url:"/auth/{providerID}",...t,...n})}set(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return(t?.client??this.client).put({url:"/auth/{providerID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}let hf=class extends k{log(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/log",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}agents(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/agent",...t,...n})}skills(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/skill",...t,...n})}};class mf extends k{moveSession(e,t){const n=d([e],[{args:[{in:"body",key:"sessionID"},{in:"body",key:"destination"},{in:"body",key:"moveChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/control-plane/move-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class kf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/capabilities",...t,...n})}}class gf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console",...t,...n})}listOrgs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console/orgs",...t,...n})}switchOrg(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return(t?.client??this.client).post({url:"/experimental/console/switch",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"projectID"},{in:"query",key:"worktrees"},{in:"query",key:"current"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return(t?.client??this.client).get({url:"/experimental/session",...t,...n})}background(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/session/{sessionID}/background",...t,...n})}}class wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/resource",...t,...n})}}class vf extends k{generateName(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"context"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/generate-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/adapter",...t,...n})}}class Cf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}syncList(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/sync-list",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/status",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/experimental/workspace/{id}",...t,...n})}warp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"copyChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/warp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new xf({client:this.client})}}class qf extends k{_controlPlane;get controlPlane(){return this._controlPlane??=new mf({client:this.client})}_capabilities;get capabilities(){return this._capabilities??=new kf({client:this.client})}_console;get console(){return this._console??=new gf({client:this.client})}_session;get session(){return this._session??=new bf({client:this.client})}_resource;get resource(){return this._resource??=new wf({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new vf({client:this.client})}_workspace;get workspace(){return this._workspace??=new Cf({client:this.client})}}class Lf extends k{get(e){return(e?.client??this.client).get({url:"/global/config",...e})}update(e,t){const n=d([e],[{args:[{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/global/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mf extends k{health(e){return(e?.client??this.client).get({url:"/global/health",...e})}event(e){return(e?.client??this.client).sse.get({url:"/global/event",...e})}dispose(e){return(e?.client??this.client).post({url:"/global/dispose",...e})}upgrade(e,t){const n=d([e],[{args:[{in:"body",key:"target"}]}]);return(t?.client??this.client).post({url:"/global/upgrade",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_config;get config(){return this._config??=new Lf({client:this.client})}}class $f extends k{subscribe(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).sse.get({url:"/event",...t,...n})}}class Hf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/warnings",...t,...n})}providers(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/providers",...t,...n})}overlay(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/overlay",...t,...n})}overlayUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"set"},{in:"body",key:"unset"},{in:"body",key:"expected"}]}]);return(t?.client??this.client).patch({url:"/config/overlay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sources(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/sources",...t,...n})}effective(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/effective",...t,...n})}rules(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/rules",...t,...n})}rulesUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"content"}]}]);return(t?.client??this.client).put({url:"/config/rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}modelState(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/model-state",...t,...n})}modelStateUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"favorite"}]}]);return(t?.client??this.client).patch({url:"/config/model-state",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Vf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return(t?.client??this.client).get({url:"/experimental/tool",...t,...n})}ids(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/tool/ids",...t,...n})}}class _f extends k{remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return(t?.client??this.client).delete({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reset(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff",...t,...n})}diffSummary(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/summary",...t,...n})}diffFile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"},{in:"query",key:"file"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/file",...t,...n})}}class If extends k{text(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return(t?.client??this.client).get({url:"/find",...t,...n})}files(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/find/file",...t,...n})}symbols(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return(t?.client??this.client).get({url:"/find/symbol",...t,...n})}}class jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file",...t,...n})}read(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file/content",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/file/status",...t,...n})}}class Ef extends k{dispose(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/dispose",...t,...n})}reload(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/reload",...t,...n})}}class Af extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/path",...t,...n})}}class Df extends k{raw(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/diff/raw",...t,...n})}}class Tf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/status",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"},{in:"query",key:"context"}]}]);return(t?.client??this.client).get({url:"/vcs/diff",...t,...n})}apply(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"patch"}]}]);return(t?.client??this.client).post({url:"/vcs/apply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new Df({client:this.client})}}class Sf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/command",...t,...n})}}class Pf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/lsp",...t,...n})}}class Ff extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/formatter",...t,...n})}}class Zf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/mcp/{name}/auth",...t,...n})}start(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth",...t,...n})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}authenticate(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...t,...n})}}class Bf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/mcp",...t,...n})}add(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return(t?.client??this.client).post({url:"/mcp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/connect",...t,...n})}disconnect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/disconnect",...t,...n})}readResource(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"uri"},{in:"body",key:"server"}]}]);return(t?.client??this.client).post({url:"/experimental/resource/read",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callTool(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"server"},{in:"body",key:"name"},{in:"body",key:"arguments"}]}]);return(t?.client??this.client).post({url:"/experimental/mcp/call-tool",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_auth;get auth(){return this._auth??=new Zf({client:this.client})}}class Of extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project",...t,...n})}current(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/current",...t,...n})}initGit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/project/git/init",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).patch({url:"/project/{projectID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}directories(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/{projectID}/directories",...t,...n})}}class Rf extends k{shells(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/shells",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).put({url:"/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"ticket"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}/connect",...t,...n})}}class zf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reject",...t,...n})}}class Nf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/permission",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"},{in:"body",key:"interactive"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}saveAlwaysRules(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"approvedAlways"},{in:"body",key:"deniedAlways"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/always-rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}allowEverything(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enable"},{in:"body",key:"requestID"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/permission/allow-everything",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}respond(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Uf extends k{authorize(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider",...t,...n})}auth(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider/auth",...t,...n})}_oauth;get oauth(){return this._oauth??=new Uf({client:this.client})}}class Jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"query",key:"path"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"title"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"platform"},{in:"body",key:"workspaceID"},{in:"body",key:"sandboxInheritanceToken"}]}]);return(t?.client??this.client).post({url:"/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/status",...t,...n})}delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}children(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/children",...t,...n})}todo(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/todo",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"},{in:"query",key:"file"},{in:"query",key:"full"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/diff",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message",...t,...n})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}deleteMessage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"queued"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...t,...n})}fork(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/fork",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}abort(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/abort",...t,...n})}init(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/init",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unshare(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/share",...t,...n})}share(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/share",...t,...n})}summarize(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/summarize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}promptAsync(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}command(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}shell(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/shell",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}revert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/revert",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unrevert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/unrevert",...t,...n})}viewed(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"viewer"},{in:"body",key:"attached"},{in:"body",key:"visible"}]}]);return(t?.client??this.client).post({url:"/session/viewed",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Kf extends k{delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Gf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/sync/history",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Yf extends k{start(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/sync/start",...t,...n})}replay(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return(t?.client??this.client).post({url:"/sync/replay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}steal(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/sync/steal",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_history;get history(){return this._history??=new Gf({client:this.client})}}class Xf extends k{next(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/control/next",...t,...n})}response(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/control/response",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Qf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"body",key:"$schema"},{in:"body",key:"theme"},{in:"body",key:"keybinds"},{in:"body",key:"plugin"},{in:"body",key:"plugin_enabled"},{in:"body",key:"title_icon"},{in:"body",key:"scroll_speed"},{in:"body",key:"scroll_acceleration"},{in:"body",key:"diff_style"},{in:"body",key:"mouse"},{in:"body",key:"attention"}]}]);return(t?.client??this.client).patch({url:"/tui/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/keybinds",...t,...n})}}class tu extends k{appendPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/tui/append-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}openHelp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-help",...t,...n})}openSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-sessions",...t,...n})}openThemes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-themes",...t,...n})}openModels(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-models",...t,...n})}submitPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/submit-prompt",...t,...n})}clearPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/clear-prompt",...t,...n})}executeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/tui/execute-command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}showToast(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return(t?.client??this.client).post({url:"/tui/show-toast",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}publish(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/publish",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}selectSession(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/tui/select-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_control;get control(){return this._control??=new Xf({client:this.client})}_config;get config(){return this._config??=new Qf({client:this.client})}_keybind;get keybind(){return this._keybind??=new eu({client:this.client})}}class ru extends k{preview(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).post({url:"/agent-builder/preview",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}save(e,t){const n=d([e],[{args:[{in:"path",key:"path_id",map:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_id",map:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).put({url:"/agent-builder/{id}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}",...t,...n})}logs(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}/logs",...t,...n})}stop(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/stop",...t,...n})}restart(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/restart",...t,...n})}stopSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/session/{sessionID}/stop",...t,...n})}}class au extends k{generate(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prompt"},{in:"body",key:"providerID"},{in:"body",key:"modelID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/branch-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class su extends k{generate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"path"},{in:"body",key:"selectedFiles"},{in:"body",key:"previousMessage"},{in:"body",key:"language"}]}]);return(t?.client??this.client).post({url:"/commit-message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ou extends k{enhance(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/enhance-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/status",...t,...n})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/warnings",...t,...n})}models(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/models",...t,...n})}consent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).put({url:"/indexing/consent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class cu extends k{transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"model"},{in:"body",key:"input_audio"},{in:"body",key:"language"},{in:"body",key:"prompt"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).post({url:"/kilo/audio/transcriptions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class lu extends k{images(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/images",...t,...n})}transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/transcriptions",...t,...n})}}class du extends k{set(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"organizationId"}]}]);return(t?.client??this.client).post({url:"/kilo/organization",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class fu extends k{get(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud/session/{id}",...t,...n})}import(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionId"}]}]);return(t?.client??this.client).post({url:"/kilo/cloud/session/import",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class uu extends k{_session;get session(){return this._session??=new fu({client:this.client})}}class yu extends k{profile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/profile",...t,...n})}authStatus(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/auth-status",...t,...n})}modes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/modes",...t,...n})}fim(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prefix"},{in:"body",key:"suffix"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).sse.post({url:"/kilo/fim",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}edit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"currentFilePath"},{in:"body",key:"currentFileContent"},{in:"body",key:"cursorLine"},{in:"body",key:"cursorCharacter"},{in:"body",key:"editableRegionStartLine"},{in:"body",key:"editableRegionEndLine"},{in:"body",key:"recentlyViewedSnippets"},{in:"body",key:"editDiffHistory"}]}]);return(t?.client??this.client).post({url:"/kilo/edit",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}notifications(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/notifications",...t,...n})}cloudSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"limit"},{in:"query",key:"gitUrl"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud-sessions",...t,...n})}_audio;get audio(){return this._audio??=new cu({client:this.client})}_models;get models(){return this._models??=new lu({client:this.client})}_organization;get organization(){return this._organization??=new du({client:this.client})}_cloud;get cloud(){return this._cloud??=new uu({client:this.client})}}class pu extends k{snapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/heap/snapshot",...t,...n})}}class hu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/marketplace",...t,...n})}install(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"target"},{in:"body",key:"parameters"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/install",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class mu extends k{prepare(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/prepare",...t,...n})}}class ku extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/provider-usage",...t,...n})}refresh(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/provider-usage/refresh",...t,...n})}}class gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/notebook",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/agent-manager",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class wu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/cancel",...t,...n})}promote(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/promote",...t,...n})}}class vu extends k{sessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"},{in:"body",key:"ids"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}discover(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions/discover",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xu extends k{project(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"worktree"},{in:"body",key:"vcs"},{in:"body",key:"name"},{in:"body",key:"iconUrl"},{in:"body",key:"iconColor"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeInitialized"},{in:"body",key:"sandboxes"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/project",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}session(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"projectID"},{in:"body",key:"force"},{in:"body",key:"workspaceID"},{in:"body",key:"parentID"},{in:"body",key:"slug"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"title"},{in:"body",key:"version"},{in:"body",key:"shareURL"},{in:"body",key:"summary"},{in:"body",key:"revert"},{in:"body",key:"permission"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeCompacting"},{in:"body",key:"timeArchived"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}message(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}part(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"messageID"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/part",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Cu extends k{resumeSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"snapshotInitialization"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/resume",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}drainSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"token"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/drain",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"before"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/kilocode/session/{sessionID}/board",...t,...n})}resetSessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"revision"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/board/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}commandFiles(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/command/files",...t,...n})}removeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/command/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSkill(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/skill/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeAgent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSnapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}teardownWorktree(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/worktree/teardown",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionModelUsage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/model-usage",...t,...n})}backgroundJobs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/kilocode/background-jobs",...t,...n})}wakeups(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/wakeups",...t,...n})}_heap;get heap(){return this._heap??=new pu({client:this.client})}_marketplace;get marketplace(){return this._marketplace??=new hu({client:this.client})}_snapshot;get snapshot(){return this._snapshot??=new mu({client:this.client})}_providerUsage;get providerUsage(){return this._providerUsage??=new ku({client:this.client})}_notebook;get notebook(){return this._notebook??=new gu({client:this.client})}_agentManager;get agentManager(){return this._agentManager??=new bu({client:this.client})}_backgroundJob;get backgroundJob(){return this._backgroundJob??=new wu({client:this.client})}_migrate;get migrate(){return this._migrate??=new vu({client:this.client})}_sessionImport;get sessionImport(){return this._sessionImport??=new xu({client:this.client})}}class qu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/anaconda-desktop/status",...t,...n})}open(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/open",...t,...n})}sync(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"acknowledgeToolLimitations"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/sync",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Lu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/network",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reply",...t,...n})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reject",...t,...n})}}class Mu extends k{enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/disable",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/remote/status",...t,...n})}}class $u extends k{support(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/sandbox/support",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/sandbox",...t,...n})}toggle(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/sandbox/toggle",...t,...n})}}class Hu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/suggestion",...t,...n})}accept(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"index"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/accept",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}dismiss(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/dismiss",...t,...n})}}class Vu extends k{capture(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"event"},{in:"body",key:"properties"}]}]);return(t?.client??this.client).post({url:"/telemetry/capture",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}setEnabled(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).post({url:"/telemetry/setEnabled",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class _u extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/status",...t,...n})}show(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/show",...t,...n})}enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/disable",...t,...n})}configure(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"autoConsolidate"},{in:"body",key:"verbose"}]}]);return(t?.client??this.client).post({url:"/memory/configure",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}rebuild(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/rebuild",...t,...n})}remember(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"file"},{in:"body",key:"section"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/remember",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}correct(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/correct",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}forget(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"query"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/forget",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}purge(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"confirm"}]}]);return(t?.client??this.client).post({url:"/memory/purge",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Iu extends k{get(e){return(e?.client??this.client).get({url:"/api/health",...e})}}class ju extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/location",...t,...n})}}class Eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/agent",...t,...n})}}class Au extends k{stage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"messageID"},{in:"body",key:"files"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/stage",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}clear(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/clear",...t,...n})}commit(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/commit",...t,...n})}}class Du extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"action"},{in:"body",key:"resources"},{in:"body",key:"save"},{in:"body",key:"metadata"},{in:"body",key:"source"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission/{requestID}",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Tu extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{key:"questionV2Reply",map:"body"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reject",...t,...n})}}class Su extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"search"},{in:"query",key:"directory"},{in:"query",key:"project"},{in:"query",key:"subpath"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"body",key:"id"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}active(e){return(e?.client??this.client).get({url:"/api/session/active",...e})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}",...t,...n})}switchAgent(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/agent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}switchModel(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"model"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/model",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"prompt"},{in:"body",key:"delivery"},{in:"body",key:"resume"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}compact(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/compact",...t,...n})}wait(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/wait",...t,...n})}context(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/context",...t,...n})}history(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"after"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/history",...t,...n})}events(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"after"}]}]);return(t?.client??this.client).sse.get({url:"/api/session/{sessionID}/event",...t,...n})}interrupt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/interrupt",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message/{messageID}",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message",...t,...n})}_revert;get revert(){return this._revert??=new Au({client:this.client})}_permission;get permission(){return this._permission??=new Du({client:this.client})}_question;get question(){return this._question??=new Tu({client:this.client})}}class Pu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/model",...t,...n})}}class Fu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider/{providerID}",...t,...n})}}class Zu extends k{key(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"key"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/key",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}oauth(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"methodID"},{in:"body",key:"inputs"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/oauth",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Bu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/integration/attempt/{attemptID}",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/attempt/{attemptID}",...t,...n})}complete(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/api/integration/attempt/{attemptID}/complete",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ou extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/{integrationID}",...t,...n})}_connect;get connect(){return this._connect??=new Zu({client:this.client})}_attempt;get attempt(){return this._attempt??=new Bu({client:this.client})}}class Ru extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/credential/{credentialID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"},{in:"body",key:"label"}]}]);return(t?.client??this.client).patch({url:"/api/credential/{credentialID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class zu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/permission/request",...t,...n})}}class Nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"projectID"}]}]);return(t?.client??this.client).get({url:"/api/permission/saved",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"}]}]);return(t?.client??this.client).delete({url:"/api/permission/saved/{id}",...t,...n})}}class Uu extends k{_request;get request(){return this._request??=new zu({client:this.client})}_saved;get saved(){return this._saved??=new Nu({client:this.client})}}class Wu extends k{read(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/read/*",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/list",...t,...n})}find(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"query"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/api/fs/find",...t,...n})}}class Ju extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/command",...t,...n})}}class Ku extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/skill",...t,...n})}}class Gu extends k{subscribe(e){return(e?.client??this.client).sse.get({url:"/api/event",...e})}}class Yu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/api/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return(t?.client??this.client).put({url:"/api/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location[directory]"},{in:"query",key:"location[workspace]"},{in:"query",key:"cursor"},{in:"query",key:"ticket"},{in:"query",key:"replayExited"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}/connect",...t,...n})}}class Xu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/question/request",...t,...n})}}class Qu extends k{_request;get request(){return this._request??=new Xu({client:this.client})}}class e0 extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/reference",...t,...n})}}class t0 extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"directory"},{in:"body",key:"force"}]}]);return(t?.client??this.client).delete({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}create(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"strategy"},{in:"body",key:"directory"},{in:"body",key:"name"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}refresh(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/refresh",...t,...n})}}class r0 extends k{_health;get health(){return this._health??=new Iu({client:this.client})}_location;get location(){return this._location??=new ju({client:this.client})}_agent;get agent(){return this._agent??=new Eu({client:this.client})}_session;get session(){return this._session??=new Su({client:this.client})}_model;get model(){return this._model??=new Pu({client:this.client})}_provider;get provider(){return this._provider??=new Fu({client:this.client})}_integration;get integration(){return this._integration??=new Ou({client:this.client})}_credential;get credential(){return this._credential??=new Ru({client:this.client})}_permission;get permission(){return this._permission??=new Uu({client:this.client})}_fs;get fs(){return this._fs??=new Wu({client:this.client})}_command;get command(){return this._command??=new Ju({client:this.client})}_skill;get skill(){return this._skill??=new Ku({client:this.client})}_event;get event(){return this._event??=new Gu({client:this.client})}_pty;get pty(){return this._pty??=new Yu({client:this.client})}_question;get question(){return this._question??=new Qu({client:this.client})}_reference;get reference(){return this._reference??=new e0({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new t0({client:this.client})}}class qr extends k{static __registry=new yf;constructor(e){super(e),qr.__registry.set(this,e?.key)}_auth;get auth(){return this._auth??=new pf({client:this.client})}_app;get app(){return this._app??=new hf({client:this.client})}_experimental;get experimental(){return this._experimental??=new qf({client:this.client})}_global;get global(){return this._global??=new Mf({client:this.client})}_event;get event(){return this._event??=new $f({client:this.client})}_config;get config(){return this._config??=new Hf({client:this.client})}_tool;get tool(){return this._tool??=new Vf({client:this.client})}_worktree;get worktree(){return this._worktree??=new _f({client:this.client})}_find;get find(){return this._find??=new If({client:this.client})}_file;get file(){return this._file??=new jf({client:this.client})}_instance;get instance(){return this._instance??=new Ef({client:this.client})}_path;get path(){return this._path??=new Af({client:this.client})}_vcs;get vcs(){return this._vcs??=new Tf({client:this.client})}_command;get command(){return this._command??=new Sf({client:this.client})}_lsp;get lsp(){return this._lsp??=new Pf({client:this.client})}_formatter;get formatter(){return this._formatter??=new Ff({client:this.client})}_mcp;get mcp(){return this._mcp??=new Bf({client:this.client})}_project;get project(){return this._project??=new Of({client:this.client})}_pty;get pty(){return this._pty??=new Rf({client:this.client})}_question;get question(){return this._question??=new zf({client:this.client})}_permission;get permission(){return this._permission??=new Nf({client:this.client})}_provider;get provider(){return this._provider??=new Wf({client:this.client})}_session;get session(){return this._session??=new Jf({client:this.client})}_part;get part(){return this._part??=new Kf({client:this.client})}_sync;get sync(){return this._sync??=new Yf({client:this.client})}_tui;get tui(){return this._tui??=new tu({client:this.client})}_agentBuilder;get agentBuilder(){return this._agentBuilder??=new ru({client:this.client})}_backgroundProcess;get backgroundProcess(){return this._backgroundProcess??=new nu({client:this.client})}_branchName;get branchName(){return this._branchName??=new au({client:this.client})}_commitMessage;get commitMessage(){return this._commitMessage??=new su({client:this.client})}_enhancePrompt;get enhancePrompt(){return this._enhancePrompt??=new ou({client:this.client})}_indexing;get indexing(){return this._indexing??=new iu({client:this.client})}_kilo;get kilo(){return this._kilo??=new yu({client:this.client})}_kilocode;get kilocode(){return this._kilocode??=new Cu({client:this.client})}_anacondaDesktop;get anacondaDesktop(){return this._anacondaDesktop??=new qu({client:this.client})}_network;get network(){return this._network??=new Lu({client:this.client})}_remote;get remote(){return this._remote??=new Mu({client:this.client})}_sandbox;get sandbox(){return this._sandbox??=new $u({client:this.client})}_suggestion;get suggestion(){return this._suggestion??=new Hu({client:this.client})}_telemetry;get telemetry(){return this._telemetry??=new Vu({client:this.client})}_memory;get memory(){return this._memory??=new _u({client:this.client})}_v2;get v2(){return this._v2??=new r0({client:this.client})}}function n0(r,e,t,n){if(!n?.throwOnError||r instanceof Error)return r;if(typeof r=="object"&&r!==null&&Object.keys(r).length>0){const s=r,o=typeof s.data?.message=="string"&&s.data.message||typeof s.message=="string"&&s.message||typeof s.name=="string"&&s.name||nn(t,e);return new Error(o,{cause:{body:r,status:e?.status}})}if(typeof r=="string"&&r.length>0)return new Error(r,{cause:{body:r,status:e?.status}});const a=e?"(empty response body)":"network error (no response)";return new Error(`kilo server ${nn(t,e)}: ${a}`,{cause:{body:r,status:e?.status}})}function nn(r,e){const t=r?.method??"?",n=r?.url??"?",a=e?.status,s=e?.statusText;return`${t} ${n}${a?" → "+a:""}${s?" "+s:""}`}function a0(r,e,t){if(r)return e&&(r===e||t&&r===t(e))?e:r}function s0(r,e){if(r.method!=="GET"&&r.method!=="HEAD")return r;const t=new URL(r.url);let n=!1;for(const[s,o]of[["x-kilo-directory","directory"],["x-kilo-workspace","workspace"]]){const i=a0(r.headers.get(s),o==="directory"?e.directory:e.workspace,o==="directory"?encodeURIComponent:void 0);if(i){for(const c of t.pathname.startsWith("/api/")?[o,`location[${o}]`]:[o])t.searchParams.has(c)||t.searchParams.set(c,i);n=!0}}if(!n)return r;const a=new Request(t,r);return a.headers.delete("x-kilo-directory"),a.headers.delete("x-kilo-workspace"),a}function o0(r){r?.fetch||(r={...r,fetch:n=>fetch(n,{duplex:"half",timeout:!1})}),r?.directory&&(r.headers={...r.headers,"x-kilo-directory":encodeURIComponent(r.directory)}),r?.experimental_workspaceID&&(r.headers={...r.headers,"x-kilo-workspace":r.experimental_workspaceID}),r.duplex="half";const e=aa(r);return e.interceptors.request.use(t=>s0(t,{directory:r?.directory,workspace:r?.experimental_workspaceID})),e.interceptors.response.use(t=>{if(t.headers.get("content-type")==="text/html")throw new Error("Request is not supported by this version of OpenCode Server (Server responded with text/html)");return t}),e.interceptors.error.use(n0),new qr({client:e})}const i0=Array.from({length:20},(r,e)=>4097+e),c0=1440*60*1e3,Lr="kilo.config.server",Je={},Mr=window.fetch.bind(window);function l0(r){const e=new TextEncoder().encode(r);return btoa(String.fromCharCode(...e))}function an(r){return r?decodeURIComponent(r):""}function Et(r){const e=new URL(r),t=an(e.username)||"kilo",n=an(e.password)||"kilo";return e.username="",e.password="",e.search="",e.hash="",{url:e.toString().replace(/\/$/,""),token:l0(`${t}:${n}`)}}function R(r){const e=Et(r.url);return o0({baseUrl:e.url,directory:At(r.dir),headers:{Authorization:`Basic ${e.token}`},fetch:Mr})}function At(r){const e=r.trim();if(e)return e}function Ct(r){return r instanceof Error?r.message:typeof r=="string"?r:r==null?"Unknown error":JSON.stringify(r)}function P(r,e){if(e.error)throw new Error(`${r}: ${Ct(e.error)}`);if(e.data===void 0)throw new Error(`${r}: empty response`);return e.data}async function d0(r){const t=(await Pt(r)).find(n=>n.id===r.project);if(!t)throw new Error(`Project not found: ${r.project}`);return t}async function ke(r,e){return await e.then(t=>{if(t.error){console.warn(`${r}: ${Ct(t.error)}`);return}return t.data}).catch(t=>{console.warn(`${r}: ${Ct(t)}`)})}function f0(r){if(typeof r!="string")return;const e=r.indexOf("/");if(!(e<=0||e>=r.length-1))return{provider:r.slice(0,e),model:r.slice(e+1)}}function Dt(r){const e=At(r.dir);return e?{directory:e}:void 0}function u0(r){return r.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function y0(r){return{keybinds:Object.entries(r.keybinds??{}).map(([e,t])=>({id:e,label:u0(e),group:"Configured",default:t??"none",description:"Configured TUI keybind"}))}}function qt(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function p0(r,e){const t=qt(r),n=qt(e);return n===t?!0:n.startsWith(`${t}/`)}function oa(r){return r.id!=="global"?!0:qt(r.worktree)!=="/"}function h0(r,e){return[r.worktree,...r.sandboxes].reduce((t,n)=>p0(n,e)?Math.max(t,qt(n).length):t,-1)}function m0(r,e){const t=r.find(n=>n.id===e.projectID);return t||r.reduce((n,a)=>{const s=h0(a,e.directory);return s<=n.score?n:{item:a,score:s}},{score:-1}).item}async function ia(r){const e=new AbortController,t=window.setTimeout(()=>e.abort(),400),n=Et(r);return await Mr(`${n.url}/global/health`,{headers:{Authorization:`Basic ${n.token}`},signal:e.signal}).then(a=>a.ok?r:void 0).catch(()=>{}).finally(()=>window.clearTimeout(t))}function k0(r){return Array.isArray(r)?r.filter(e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.id=="string"&&typeof t.worktree=="string"&&typeof t.time?.updated=="number"}):[]}function g0(r){return r.reduce((e,t)=>Math.max(e,t.time.updated),0)}async function b0(r){if(!await ia(r))return;const t=new AbortController,n=window.setTimeout(()=>t.abort(),400),a=Et(r);return await Mr(`${a.url}/project`,{headers:{Authorization:`Basic ${a.token}`},signal:t.signal}).then(async s=>{if(!s.ok)return{url:r,count:0,time:0};const o=k0(await s.json()).filter(oa);return{url:r,count:o.length,time:g0(o)}}).catch(()=>({url:r,count:0,time:0})).finally(()=>window.clearTimeout(n))}function sn(r){return Number(new URL(r).port)||0}function on(r){return new URL(r).hostname==="127.0.0.1"?1:0}function Fe(){return window.localStorage.getItem(Lr)??""}function Le(r){window.localStorage.setItem(Lr,r)}function Tt(){window.localStorage.removeItem(Lr)}async function w0(r){return await ia(r)!==void 0}async function v0(){const r=i0.flatMap(t=>[`http://127.0.0.1:${t}`,`http://localhost:${t}`]);return(await Promise.all(r.map(b0))).filter(t=>t!==void 0).toSorted((t,n)=>n.count-t.count||n.time-t.time||sn(n.url)-sn(t.url)||on(n.url)-on(t.url))[0]?.url}async function St(){if(Je.run)return await Je.run;const r=v0().finally(()=>{Je.run===r&&(Je.run=void 0)});return Je.run=r,await r}async function $r(){const r=await St();if(r)return r;const e=Fe();if(e){if(await w0(e))return e;Tt()}}async function Gy(r){const e=R(r),[t,n,a,s,o,i,c,f,y,u,p,g]=await Promise.all([e.global.health(),e.config.overlay({scope:r.scope}),e.config.modelState(),e.provider.list(),e.provider.auth(),e.tui.config.get(),ke("TUI keybinds",e.tui.keybind.list()),e.tool.ids(),e.mcp.status(),e.lsp.status(),e.formatter.status(),e.app.agents()]),m=P("Config overlay",n),h=f0(m.effective.model),w=h?await ke("Tool metadata",e.tool.list(h)):void 0,H=P("TUI config",i);return{health:P("Health",t),effective:m.effective,overlay:m,sources:{sources:m.sources},modelState:P("Model state",a),providers:P("Providers",s),authMethods:P("Provider auth methods",o),tui:H,keybinds:c??y0(H),tools:P("Tools",f),toolDetails:w??[],mcp:P("MCP status",y),lsp:P("LSP status",u),formatter:P("Formatter status",p),agents:P("Agents",g)}}async function Yy(r){return P("Kilo embedding models",await R(r).indexing.models())}async function Xy(r){const t=await R(r).kilo.profile(Dt(r));return P("Kilo profile",t)}async function Qy(r,e){const t=R(r),n=await t.kilo.organization.set({...Dt(r),organizationId:e});P("Switch Kilo account",n),await t.global.dispose()}async function e7(r){const e=R(r),t=await e.auth.remove({providerID:"kilo"});P("Log out of Kilo",t),await e.global.dispose()}async function t7(r){const t=await R(r).provider.oauth.authorize({...Dt(r),providerID:"kilo",method:0});return P("Start Kilo login",t)}async function r7(r,e){const t=R(r),n=await t.provider.oauth.callback({...Dt(r),providerID:"kilo",method:0},e?{signal:e}:void 0);P("Complete Kilo login",n),await t.global.dispose()}async function x0(r){const e=R(r),t=At(r.dir),n=await e.project.list(t?{directory:t}:void 0);return P("Projects",n)}async function Pt(r){return(await x0(r)).filter(oa)}async function C0(r){const e=R(r),[t,n]=await Promise.all([Pt(r),e.experimental.session.list({archived:!1,start:Date.now()-c0,limit:500})]),a=P("Recent sessions",n),s=new Map;for(const o of a){const i=m0(t,o);i&&s.set(i.id,(s.get(i.id)??0)+1)}return t.map(o=>({...o,sessions:s.get(o.id)??0})).filter(o=>o.sessions>0)}async function n7(r){const e=await d0(r),t={url:r.url,dir:e.worktree},n=R(t),[a,s,o]=await Promise.all([n.config.overlay({scope:"global"}),n.vcs.get({directory:t.dir}),n.worktree.list({directory:t.dir})]),i=P("Config",a),c=P("Worktrees",o),f=await Promise.all([t.dir,...c.map(y=>y.directory)].map(y=>q0({url:r.url},y)));return{project:e,config:i.global,vcs:P("VCS",s),worktrees:c,terminals:f.flat()}}async function a7(r,e){const t=R(r),n=e?.trim(),a=await t.worktree.create({directory:r.dir,...n?{worktreeCreateInput:{name:n}}:{}});return P("Create worktree",a)}async function s7(r,e){const n=await R(r).worktree.remove({directory:r.dir,worktreeRemoveInput:{directory:e}});return P("Remove worktree",n)}async function o7(r,e){const n=await R(r).worktree.reset({directory:r.dir,worktreeResetInput:{directory:e}});return P("Reset worktree",n)}async function q0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([t.pty.list({directory:e}),ke("Session status",t.session.status({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=P("Terminals",n),c=a??{},f=cn(s??[]),y=cn(o??[]),u=new Map;return await Promise.all(i.map(async p=>{if(!p.sessionID||u.has(p.sessionID))return;const g=await ke("Session",t.session.get({directory:e,sessionID:p.sessionID}));g&&u.set(p.sessionID,g)})),i.map(p=>{const g=p.sessionID?u.get(p.sessionID):void 0;return{...p,directory:e,session:g,sessionStatus:p.sessionID?c[p.sessionID]:void 0,attention:p.sessionID?$0(p.sessionID,f,y):void 0}})}function ca(r){return new Set(r.flatMap(e=>e.sessionID?[e.sessionID]:[]))}function cn(r){return new Set(r.map(e=>e.sessionID))}function ln(r,e){return r.some(t=>e.has(t.sessionID))}async function L0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([ke("Session status",t.session.status({directory:e})),ke("Terminals",t.pty.list({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=ca(a??[]),c=Object.entries(n??{}).some(([y,u])=>i.has(y)&&u.type!=="idle"),f=ln(s??[],i)||ln(o??[],i);return{busy:c,attention:f}}async function M0(r,e){const t=R({url:r.url,dir:e}),n=await ke("Terminals",t.pty.list({directory:e}));return ca(n??[])}function $0(r,e,t){if(e.has(r))return"permission";if(t.has(r))return"question"}async function i7(r,e){const n=await R({url:r.url,dir:e}).worktree.diffSummary({directory:e});return P("Worktree diff",n)}async function c7(r,e,t){const a=await R({url:r.url,dir:e}).worktree.diffFile({directory:e,file:t});return P("Worktree diff file",a)}async function l7(r,e,t="Kilo session"){const a=await R({url:r.url,dir:e}).pty.create({directory:e,command:"kilo",cwd:e,title:t});return P("Create terminal",a)}async function d7(r,e){const n=await R({url:r.url,dir:r.dir}).pty.remove({directory:r.dir,ptyID:e});return P("Remove terminal",n)}async function f7(r,e,t,n){const s=await R(r).session.viewed({directory:r.dir,viewer:e,attached:t,visible:n});return P("Viewed sessions",s)}function H0(r,e){const t=R(r),n=new AbortController;return(async()=>{const a=await t.global.event({signal:n.signal,sseMaxRetryAttempts:0});for await(const s of a.stream){if(n.signal.aborted)return;e(s)}})().catch(a=>{n.signal.aborted||console.warn(`Project events: ${Ct(a)}`)}),()=>n.abort()}async function u7(r,e,t,n){const s=await R({url:r.url,dir:r.dir}).pty.update({directory:r.dir,ptyID:e,size:{cols:t,rows:n}});return P("Resize terminal",s)}function y7(r,e,t=0){const n=Et(r.url),a=new URL(`/pty/${encodeURIComponent(e)}/connect`,n.url);return a.protocol=a.protocol==="https:"?"wss:":"ws:",a.searchParams.set("directory",r.dir),a.searchParams.set("cursor",String(t)),a.searchParams.set("auth_token",n.token),a.toString()}async function la(r,e,t){const n=R(r),a=Object.keys(e).length?e:void 0,s=await n.config.overlayUpdate({directory:At(r.dir),scope:r.scope,set:a,unset:t});return P("Update config",s)}async function p7(r,e){return la(r,e)}async function h7(r,e){return la(r,{},e)}async function m7(r,e){const n=await R(r).config.modelStateUpdate({favorite:e});return P("Update model state",n)}async function k7(r,e,t,n){const a=R(r),s=n?{type:"api",key:t,metadata:n}:{type:"api",key:t},o=await a.auth.set({providerID:e,auth:s});P("Connect provider",o),await a.global.dispose()}async function g7(r,e,t,n){const s=await R(r).provider.oauth.authorize({providerID:e,method:t,inputs:n});return P("Authorize provider",s)}async function b7(r,e,t,n){const a=R(r),s=await a.provider.oauth.callback({providerID:e,method:t,code:n});P("Complete provider authorization",s),await a.global.dispose()}async function w7(r,e){const n=await R(r).mcp.connect({name:e});return P("Connect MCP server",n)}async function v7(r,e){const n=await R(r).mcp.disconnect({name:e});return P("Disconnect MCP server",n)}async function x7(r,e){const n=await R(r).mcp.auth.authenticate({name:e});return P("Authenticate MCP server",n)}async function C7(r,e){const n=await R(r).tui.config.update({scope:r.scope,...e});return P("Update TUI config",n)}async function q7(r,e){const n=await R(r).agentBuilder.preview(e);return P("Preview agent",n)}async function L7(r,e){const n=await R(r).agentBuilder.save({path_id:e.id,scope:e.scope,description:e.description,mode:e.mode,model:e.model,color:e.color,steps:e.steps,tools:e.tools,permission:e.permission,prompt:e.prompt});return P("Save agent",n)}const dn=Q(()=>X(()=>import("./AgentsRoute-DAzMkP_0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentBuilderRoute}))),V0=Q(()=>X(()=>import("./AgentsRoute-DAzMkP_0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentsRoute}))),_0=Q(()=>X(()=>import("./CliNotificationsRoute-Cb-UQJhm.js"),__vite__mapDeps([10,1,4,2,3,11,5,12])).then(r=>({default:r.CliNotificationsRoute}))),I0=Q(()=>X(()=>import("./CliUiRoute-3tQMODs_.js"),__vite__mapDeps([13,1,4,2,3,11,5,12])).then(r=>({default:r.CliUiRoute}))),j0=Q(()=>X(()=>import("./ConsoleUiRoute-D_evleuB.js"),__vite__mapDeps([14,1,15,5,4,2,3,12])).then(r=>({default:r.ConsoleUiRoute}))),E0=Q(()=>X(()=>import("./FormattersRoute-DBLZ396h.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.FormattersRoute}))),A0=Q(()=>X(()=>import("./FormattersRoute-DBLZ396h.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.LspRoute}))),D0=Q(()=>X(()=>import("./IndexingRoute-BiLifWbJ.js"),__vite__mapDeps([18,1,4,5,2,3,19,9])).then(r=>({default:r.IndexingRoute}))),T0=Q(()=>X(()=>import("./KeybindsRoute-Cxx0SjQg.js"),__vite__mapDeps([20,1,2,3,5,21])).then(r=>({default:r.KeybindsRoute}))),S0=Q(()=>X(()=>import("./McpRoute-_2JtmcIn.js"),__vite__mapDeps([22,1,2,3,23,4,5,24])).then(r=>({default:r.McpRoute}))),P0=Q(()=>X(()=>import("./ModelsRoute-CxDvqqyc.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsAvailableRoute}))),F0=Q(()=>X(()=>import("./ModelsRoute-CxDvqqyc.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsDefaultRoute}))),Z0=Q(()=>X(()=>import("./ModelsRoute-CxDvqqyc.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsRoute}))),B0=Q(()=>X(()=>import("./OverviewRoute-chXJJQOX.js"),__vite__mapDeps([28,2,3,5,29])).then(r=>({default:r.OverviewRoute}))),O0=Q(()=>X(()=>import("./PermissionsRoute-C8lD0SkX.js").then(r=>r.P),__vite__mapDeps([6,1,2,3,5,7])).then(r=>({default:r.PermissionsRoute}))),R0=Q(()=>X(()=>import("./ProvidersRoute-DCHCvhT6.js"),__vite__mapDeps([30,1,2,3,23,4,5])).then(r=>({default:r.ProvidersRoute}))),z0=Q(()=>X(()=>import("./ServersRoute-CjvMDv1R.js"),__vite__mapDeps([31,1,5,2,3,32])).then(r=>({default:r.ServersRoute}))),N0=Q(()=>X(()=>import("./SourcesRoute-DcjMOp__.js"),__vite__mapDeps([33,5,2,3,34])).then(r=>({default:r.SourcesRoute}))),U0=Q(()=>X(()=>import("./ToolsRoute-C2R5p7JN.js"),__vite__mapDeps([35,2,3,1,5,9])).then(r=>({default:r.ToolsRoute}))),W0={path:"/providers",href:"/settings/providers",icon:"providers",label:"Providers",component:R0},J0={path:"/agents",href:"/settings/agents",icon:"task",label:"Agents",component:V0},K0={path:"/tools",href:"/settings/tools",icon:"code",label:"Tools",component:U0},G0={path:"/mcp",href:"/settings/mcp",icon:"mcp",label:"MCP",component:S0},Y0={path:"/permissions",href:"/settings/permissions",icon:"key",label:"Permissions",component:O0},X0={path:"/formatters",href:"/settings/formatters",icon:"sliders",label:"Formatters",component:E0},Q0={path:"/lsp",href:"/settings/lsp",icon:"server",label:"LSP Servers",component:A0},da=[{id:"general",label:"General",items:[{path:"/",href:"/settings",icon:"home",label:"Overview",component:B0}]},W0,{id:"models",label:"Models",items:[{path:"/models/default",href:"/settings/models/default",icon:"models",label:"Defaults",component:F0},{path:"/models/explore",href:"/settings/models/explore",icon:"models",label:"Explore",component:P0}]},{id:"behaviour",label:"Behaviour",items:[J0,K0,Y0,G0,X0,Q0,{path:"/indexing",href:"/settings/indexing",icon:"circuit-board",label:"Code Indexing",component:D0}]},{id:"cli",label:"CLI",items:[{path:"/cli/ui",href:"/settings/cli/ui",icon:"sliders",label:"UI",component:I0},{path:"/cli/notifications",href:"/settings/cli/notifications",icon:"bubble-5",label:"Notifications",component:_0},{path:"/cli/keybinds",href:"/settings/cli/keybinds",icon:"keyboard",label:"Keybinds",component:T0}]},{id:"console",label:"Console",globalOnly:!0,items:[{path:"/console/ui",href:"/settings/console/ui",icon:"sliders",label:"UI",component:j0}]},{id:"advanced",label:"Advanced",items:[{path:"/servers",href:"/settings/servers",icon:"server",label:"Servers",component:z0},{path:"/sources",href:"/settings/sources",icon:"archive",label:"Sources",component:N0}]}];function e2(r){return"items"in r?r.items:[r]}const t2=[...da.flatMap(e2),{path:"/agents/new",href:"/settings/agents/new",icon:"task",label:"New Agent",component:dn},{path:"/agents/:agentID",href:"/settings/agents",icon:"task",label:"Edit Agent",component:dn},{path:"/models",href:"/settings/models/default",icon:"models",label:"Models",component:Z0}],r2={apply_patch:"Apply Patch",bash:"Bash",edit:"Edit File",glob:"Find Files",grep:"Search Content",lsp:"Language Server",question:"Ask User",read:"Read File",recall:"Local Recall",skill:"Load Skill",task:"Subagent Task",todowrite:"Todo List",webfetch:"Fetch URL",websearch:"Web Search",write:"Write File"},n2={apply_patch:["Apply structured patches to add, update, move, or delete files.","Keeps edits explicit and easy to review."],bash:["Run shell commands in the current workspace.","Supports timeouts, working directories, and command descriptions."],edit:["Replace exact text inside an existing file.","Can update one match or all matches when needed."],glob:["Find files by path patterns.","Useful for locating files before reading or editing them."],grep:["Search file contents with regular expressions.","Can limit results to a file pattern such as TypeScript or CSS files."],lsp:["Use language-server features for code navigation.","Supports operations such as definitions, references, and diagnostics."],question:["Ask the user for a decision during execution.","Supports single-choice and multi-choice prompts."],read:["Read files, directories, images, and PDFs from the workspace.","Supports line offsets and limits for large files."],recall:["Search and read previous project conversations.","Useful for recovering prior decisions or implementation context."],skill:["Load task-specific instructions and workflows.","Applies specialized repo guidance when a matching skill exists."],task:["Delegate focused exploration or implementation work to a subagent.","Useful for parallel codebase research and complex subtasks."],todowrite:["Track multi-step implementation work.","Shows progress with pending, in-progress, and completed states."],webfetch:["Fetch and convert web pages for analysis.","Supports markdown, text, and HTML output formats."],websearch:["Search the web for external information.","Supports fast, automatic, and deep search modes."],write:["Create or overwrite files with complete contents.","Best for new files or full-file replacements."]},a2=new Set(["api","html","id","json","lsp","mcp","pdf","url"]);function Hr(r){return r.trim()}function s2(r){return r==null||r===""?"Not set":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r)??"Unserializable value"}function M7(r){return[...r].sort((e,t)=>e.localeCompare(t))}function $7(r){return r.split(/\s+/).map(e=>e.trim()).filter(Boolean)}function Vr(r){return r.trim().split(/[\s._/-]+/).filter(Boolean).map(e=>/^[A-Z0-9]+$/.test(e)&&e.length<=4?e:`${e[0]?.toUpperCase()??""}${e.slice(1).toLowerCase()}`).join(" ")}function o2(r){const e=r.toLowerCase();return a2.has(e)?e.toUpperCase():r.charAt(0).toUpperCase()+r.slice(1)}function fn(r){return r.length<=180?r:`${r.slice(0,177)}...`}function i2(r){const e=r.replace(/```[\s\S]*?```/g," ").replace(/[*`#>_-]+/g," ").replace(/\s+/g," ").trim(),t=e.split(/(?:\.|\?|!)\s+/).map(n=>n.trim()).filter(Boolean).slice(0,2);return t.length?t.map(fn):e?[fn(e)]:[]}function H7(r){const e=r2[r];if(e)return e;const t=r.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[._:/-]+/g," ").replace(/\s+/g," ").trim();return t?t.split(" ").map(o2).join(" "):r}function V7(r){const e=n2[r.id];if(e)return e;const t=r.detail?.description.trim();return t?i2(t):["No capability description is available for this tool."]}function _7(r){return r.split(",").map(e=>e.trim()).filter(Boolean)}function I7(r){return!r||typeof r!="object"||Array.isArray(r)?0:Object.keys(r).length}function c2(r){return r instanceof Error?r.message:typeof r=="string"?r:s2(r)}function j7(r){return r==="subagent"?"subagent":r==="all"?"all":"primary"}var l2=W('<div class=omni-results id=omni-search-results role=listbox aria-label="Search results">'),d2=W("<footer class=omni-footer><span class=omni-help><span class=omni-kbd>↑</span><span class=omni-kbd>↓</span>Navigate</span><span class=omni-help><span class=omni-kbd>↵</span>Open"),f2=W('<form class=omni-search role=search><div class=omni-search-head><span class=omni-command aria-hidden=true><svg class=omni-command-icon viewBox="0 0 24 24"fill=none><path d="M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10"></path></svg></span><input type=search aria-label="Omni search"aria-controls=omni-search-results><button class=omni-escape type=button aria-label="Close search">esc'),u2=W("<div class=omni-empty>No matches."),y2=W("<span class=omni-enter aria-hidden=true>↵"),p2=W("<button type=button class=omni-entry role=option><span class=omni-kind></span><span class=omni-label>"),h2=W("<span class=omni-sub>");const m2=new Set(["3017","3018"]);function yr(r){return r.get("server")?!1:m2.has(window.location.port)}function k2(r){const e=r.get("server");if(e)return e;const t=yr(r)?Fe():"";return t||(yr(r)?"":window.location.origin)}function g2(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Ge(r,e){return`${r}${g2(e)}`}function b2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function w2(r){return Vr(r.name?.trim()||b2(r.worktree)||r.id.slice(0,8))}function v2(r){return r.length<=8?r:r.slice(0,8)}function x2(r){const e=[{kind:"NAV",label:"Projects",href:Ge("/projects",r)}];for(const t of da){if("items"in t){for(const n of t.items){const a=t.id==="general"?"Global Settings":`Global Settings · ${t.label}`;e.push({kind:"NAV",label:`${a} · ${n.label}`,href:Ge(n.href,r)})}continue}e.push({kind:"NAV",label:`Global Settings · ${t.label}`,href:Ge(t.href,r)})}return e.push({kind:"NAV",label:"Profile",href:Ge("/profile",r)}),e}function C2(r,e){return{kind:"PROJECT",label:w2(r),href:Ge(`/projects/${encodeURIComponent(r.id)}`,e),sub:v2(r.id),mono:!0}}function q2(r,e){return[...e].reduce((t,n)=>{if(t<0)return-1;const a=r.indexOf(n,t);return a<0?-1:a+1},0)>=0}function L2(r,e){const t=e.trim().toLowerCase();if(!t)return!0;const n=`${r.kind} ${r.label} ${r.sub??""}`.toLowerCase();return n.includes(t)?!0:q2(n,t)}function M2(){const r=It(),e=ws(),t=D(()=>new URLSearchParams(r.search)),n=()=>yr(t()),a=()=>k2(t()),[s,o]=U(a()),[i,c]=U(!1),[f,y]=U(""),[u,p]=U(0);let g,m;const h=D(()=>{const b=Hr(s())||a();if(b)return{url:b,dir:""}}),[w]=Mt(h,Pt),H=D(()=>[...x2(t()),...[...w()??[]].map(b=>C2(b,t()))]),_=D(()=>H().filter(b=>L2(b,f())));ee(()=>{document.body.classList.toggle("omni-search-open",i())}),fe(()=>document.body.classList.remove("omni-search-open"));function A(){c(!1),y(""),m?.blur()}function T(){c(!0),queueMicrotask(()=>m?.focus())}function L(b){b&&(e(b.href),A())}function x(b){const S=Math.max(_().length-1,0);p(v=>Math.min(Math.max(v+b,0),S))}function F(b){if(b.key==="Escape"&&i()){b.preventDefault(),A();return}if(i()){if(b.key==="ArrowDown"){b.preventDefault(),x(1);return}if(b.key==="ArrowUp"){b.preventDefault(),x(-1);return}b.key==="Enter"&&(b.preventDefault(),L(_()[u()]))}}function j(b){b.preventDefault(),i()&&L(_()[u()])}return ee(()=>{f(),p(0)}),ee(()=>{const b=t().get("server");b&&b!==s()&&o(b)}),ee(()=>{n()&&$r().then(b=>{b&&(Le(b),o(b))})}),ee(()=>{const b=h();!w()||!b||!n()||Le(b.url)}),ee(()=>{if(!w.error||!n())return;const b=Fe();!b||b!==s()||(Tt(),o(""),St().then(S=>{S&&(Le(S),o(S))}))}),$t(()=>{const b=v=>{if(!(!(v.metaKey||v.ctrlKey)||v.key.toLowerCase()!=="k")){if(v.preventDefault(),i()){A();return}T()}},S=v=>{if(!i())return;const M=v.target;M instanceof Node&&g?.contains(M)||A()};window.addEventListener("keydown",b),window.addEventListener("pointerdown",S),fe(()=>{window.removeEventListener("keydown",b),window.removeEventListener("pointerdown",S)})}),(()=>{var b=f2(),S=b.firstChild,v=S.firstChild,M=v.nextSibling,V=M.nextSibling;return b.addEventListener("submit",j),b.$$keydown=F,or(C=>g=C,b),S.$$pointerdown=C=>{C.target instanceof HTMLButtonElement||T()},M.$$input=C=>{y(C.currentTarget.value),c(!0)},M.addEventListener("focus",()=>c(!0)),or(C=>m=C,M),V.$$click=A,Z(b,$(ie,{get when(){return i()},get children(){return[(()=>{var C=l2();return Z(C,$(ie,{get when(){return _().length>0},get fallback(){return u2()},get children(){return $(Ye,{get each(){return _()},children:(E,N)=>(()=>{var J=p2(),he=J.firstChild,G=he.nextSibling;return J.$$mousemove=()=>p(N()),J.$$click=()=>L(E),Z(he,()=>E.kind),Z(G,()=>E.label),Z(J,$(ie,{get when(){return E.sub},children:re=>(()=>{var ae=h2();return Z(ae,re),ae})()}),null),Z(J,$(ie,{get when(){return N()===u()},get children(){return y2()}}),null),ne(re=>{var ae=N()===u(),ye=N()===u(),Ie=!!E.mono;return ae!==re.e&&J.classList.toggle("active",re.e=ae),ye!==re.t&&ce(J,"aria-selected",re.t=ye),Ie!==re.a&&G.classList.toggle("mono",re.a=Ie),re},{e:void 0,t:void 0,a:void 0}),J})()})}})),C})(),d2()]}}),null),ne(C=>{var E=!!i(),N=i()?"":"Search settings, projects, models...",J=i();return E!==C.e&&b.classList.toggle("expanded",C.e=E),N!==C.t&&ce(M,"placeholder",C.t=N),J!==C.a&&ce(M,"aria-expanded",C.a=J),C},{e:void 0,t:void 0,a:void 0}),ne(()=>M.value=f()),b})()}br(["keydown","pointerdown","input","click","mousemove"]);var $2=W('<img class="header-mark header-mark-logo"alt width=28 height=28>'),H2=W("<span class=header-title><span>Console"),V2=W('<header class=app-header><nav class=notification-zone aria-label="Notifications and status">');function _2(){return(()=>{var r=V2(),e=r.firstChild;return Z(r,$(Xe,{class:"header-brand",href:"/projects","aria-label":"Kilo Console home",get children(){return[(()=>{var t=$2();return ne(()=>ce(t,"src","/console/kilo-logo.svg")),t})(),H2()]}}),e),Z(r,$(M2,{}),e),Z(e,$(Jt,{icon:"bubble-5",variant:"ghost","aria-label":"Notifications"}),null),Z(e,$(Jt,{icon:"help",variant:"ghost","aria-label":"Help"}),null),Z(e,$(Jt,{icon:"circle-check",variant:"ghost","aria-label":"System status"}),null),r})()}function _r(){return"/console/".replace(/\/$/,"")}function Ir(r,e=_r()){return!e||e==="/"?r:r===e?"/":r.startsWith(`${e}/`)?r.slice(e.length):r}function E7(r,e=_r()){const t=Ir(r,e),n=t.indexOf("/settings");return n>0?`${t.slice(0,n)}/settings`:t.startsWith("/config")?"/config":"/settings"}function I2(r,e=_r()){const t=Ir(r,e);return t==="/profile"||t.startsWith("/kilo/login")?"/profile":t.startsWith("/settings")||t.startsWith("/config")?"/settings":t.startsWith("/projects/")?"/project":"/projects"}const[j2,fa]=U(new Map),[E2,ua]=U(new Map),[A2,ya]=U(new Map),[D2,pa]=U(new Map);function Ft(r,e,t){r(n=>{if(n.get(e)?.has(t))return n;const a=new Map(n);return a.set(e,new Set([...n.get(e)??[],t])),a})}function Zt(r,e,t){r(n=>{const a=n.get(e);if(!a?.has(t))return n;const s=new Map(n),o=new Set(a);return o.delete(t),o.size===0?s.delete(e):s.set(e,o),s})}const T2=(r,e)=>Ft(fa,r,e),Gt=(r,e)=>Zt(fa,r,e),un=(r,e)=>Ft(ua,r,e),Yt=(r,e)=>Zt(ua,r,e),S2=(r,e)=>Ft(ya,r,e),P2=(r,e)=>Zt(ya,r,e),yn=(r,e)=>Ft(pa,r,e),Xt=(r,e)=>Zt(pa,r,e);function F2(r){return(j2().get(r)?.size??0)>0?"error":(E2().get(r)?.size??0)>0?"attention":(A2().get(r)?.size??0)>0?"unread":(D2().get(r)?.size??0)>0?"busy":"idle"}function pr(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function Z2(r,e){const t=pr(r),n=pr(e);return n===t||n.startsWith(`${t}/`)}function B2(r,e){let t,n=-1;for(const a of r)for(const s of[a.worktree,...a.sandboxes])if(Z2(s,e)){const o=pr(s).length;o>n&&(n=o,t=a)}return t}function O2(r){const e=r.payload;return e.type?e.type!=="sync"?e.type:typeof e.name=="string"?e.name:typeof e.syncEvent?.type=="string"?e.syncEvent.type:"":""}function R2(r){const e=r.payload,n=(e.properties??e.data)?.sessionID;return typeof n=="string"?n:void 0}var z2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2">'),N2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37.996 .608 2.296 .07 2.572 -1.065z"></path><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0">'),U2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2">'),W2=W('<aside class=rail aria-label="Primary navigation"><nav class=rail-nav aria-label=Primary></nav><div class=rail-favorites aria-label="Projects with recent sessions"></div><nav class=rail-bottom aria-label="Account and settings">');const J2=new Set(["3017","3018"]);function hr(r){return r.get("server")?!1:J2.has(window.location.port)}function K2(r){const e=r.get("server");if(e)return e;const t=hr(r)?Fe():"";return t||(hr(r)?"":window.location.origin)}function G2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function mr(r){return Vr(r.name?.trim()||G2(r.worktree)||r.id.slice(0,8))}function Y2(r){const e=mr(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ha(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function X2(r,e){return`/projects/${encodeURIComponent(r.id)}${ha(e)}`}function pn(r){return r.name==="projects"?z2():r.name==="settings"?N2():U2()}function Q2(r){const e=It(),t=D(()=>new URLSearchParams(e.search)),n=D(()=>Ir(e.pathname)),a=()=>hr(t()),s=()=>K2(t()),[o,i]=U(s()),c={refetch:void 0},f=D(()=>{const L=Hr(o())||s();if(L)return{url:L,dir:""}}),[y,{refetch:u}]=Mt(f,C0),p=new Map,g=D(()=>{const L=n().match(/^\/projects\/([^/]+)/);return L?decodeURIComponent(L[1]):void 0}),m=()=>`/settings${ha(t())}`,h=L=>n().startsWith(`/projects/${encodeURIComponent(L.id)}/`)||n()===`/projects/${encodeURIComponent(L.id)}`,w=()=>[{href:"/projects",label:"Projects",name:"projects",path:"/projects"}],H=()=>[{href:"/profile",label:"Profile",name:"profile",path:"/profile"},{href:m(),label:"Settings",name:"settings",path:"/settings"}];function _(){c.refetch||(c.refetch=window.setTimeout(()=>{c.refetch=void 0,u()},150))}function A(L,x,F){const j=`${L}\0${x}\0${F}`,b=(p.get(j)??0)+1;return p.set(j,b),{key:j,rev:b}}function T(L,x,F,j,b,S,v){const M=A(L,F,b);M0(x,j).then(V=>{p.get(M.key)===M.rev&&(V.has(b)?S():v())}).catch(V=>console.warn("Project open sessions:",V))}return ee(()=>{const L=t().get("server");L&&L!==o()&&i(L)}),ee(()=>{a()&&$r().then(L=>{L&&(Le(L),i(L))})}),ee(()=>{const L=f();!y()||!L||!a()||Le(L.url)}),ee(()=>{if(!y.error||!a())return;const L=Fe();!L||L!==o()||(Tt(),i(""),St().then(x=>{x&&(Le(x),i(x))}))}),ee(()=>{if(!f())return;const L=window.setInterval(()=>{u()},5e3);fe(()=>window.clearInterval(L))}),ee(()=>{const L=y(),x=f();if(!(!L||!x))for(const F of L)L0(x,F.worktree).then(j=>{j.busy?yn(F.id,"__hydrated__"):Xt(F.id,"__hydrated__"),j.attention?un(F.id,"__hydrated__"):Yt(F.id,"__hydrated__")}).catch(j=>console.warn("Project live status:",j))}),ee(()=>{const L=f();if(!L)return;const x=H0(L,F=>{const j=F,b=y()??[],S=O2(j);if((S.startsWith("session.created")||S.startsWith("session.updated")||S.startsWith("session.deleted"))&&_(),!b.length||!j.directory)return;const v=B2(b,j.directory);if(!v)return;const M=R2(j);if(S==="session.turn.close"){const V=j.payload.properties;if(!M)return;if(V?.reason==="error"){T("error",L,v.id,j.directory,M,()=>T2(v.id,M),()=>Gt(v.id,M));return}A("error",v.id,M),Gt(v.id,M),V?.reason==="completed"&&v.id!==g()&&T("unread",L,v.id,j.directory,M,()=>S2(v.id,M),()=>P2(v.id,M));return}if(S==="permission.asked"||S==="question.asked"){if(!M)return;T("attention",L,v.id,j.directory,M,()=>un(v.id,M),()=>Yt(v.id,M));return}if(S==="permission.replied"||S==="permission.rejected"||S==="question.replied"||S==="question.rejected"){if(!M)return;A("attention",v.id,M),Yt(v.id,M);return}if(S==="session.status"){const C=j.payload.properties?.status?.type;if(!M)return;C==="busy"||C==="retry"?T("busy",L,v.id,j.directory,M,()=>yn(v.id,M),()=>Xt(v.id,M)):C==="idle"&&(A("busy",v.id,M),A("error",v.id,M),Xt(v.id,M),Gt(v.id,M));return}});fe(x)}),fe(()=>{c.refetch&&window.clearTimeout(c.refetch),p.clear()}),(()=>{var L=W2(),x=L.firstChild,F=x.nextSibling,j=F.nextSibling;return Z(x,$(Ye,{get each(){return w()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),Z(F,$(Ye,{get each(){return y()??[]},children:b=>{const S=()=>F2(b.id);return $(Xe,{class:"favorite-project",get classList(){return{active:h(b),"status-error":S()==="error","status-attention":S()==="attention","status-unread":S()==="unread","status-busy":S()==="busy"}},get href(){return X2(b,t())},get"aria-label"(){return mr(b)},get"aria-current"(){return h(b)?"page":void 0},get title(){return mr(b)},get children(){return Y2(b)}})}})),Z(j,$(Ye,{get each(){return H()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),L})()}var ey=W('<div class="console-shell kilo-console dark"><div class=console-body><main class=console-main>');function ty(r){return(()=>{var e=ey(),t=e.firstChild,n=t.firstChild;return Z(e,$(_2,{}),t),Z(t,$(Q2,{get path(){return r.path}}),n),Z(n,()=>r.children),e})()}function ry(r){const e=It(),t=D(()=>I2(e.pathname));return $(o1,{defaultTheme:"kilo",get children(){return $(ty,{get path(){return t()},get children(){return $(Sa,{get fallback(){return $(ur,{variant:"fullscreen"})},get children(){return r.children}})}})}})}function ny(r,e){const t=Object.fromEntries(Object.entries(e).filter(n=>n[1]!==void 0));if(typeof r=="string"){const n=Object.entries(t).map(a=>`${a[0]}:${a[1]}`).join(";");return n?`${r};${n}`:r}return{...r??{},...t}}var ay=W("<div>");function Qt(r){const[e,t]=Me(r,["variant","size","padding","style","class","classList","children"]),n=()=>typeof e.padding=="number"?`${e.padding}px`:e.padding;return(()=>{var a=ay();return Ne(a,pe(t,{"data-component":"card",get"data-variant"(){return e.variant??"normal"},get"data-size"(){return e.size??"default"},get style(){return ny(e.style,{"--kw-card-padding":n()})},get classList(){return{...e.classList,[e.class??""]:!!e.class}}}),!1,!0),Z(a,()=>e.children),a})()}var sy=W("<label data-component=search-field><span data-slot=search-label></span><input>");function oy(r){const[e,t]=Me(r,["label","value","variant","hideLabel","inputClass","class","classList","onValue"]);return(()=>{var n=sy(),a=n.firstChild,s=a.nextSibling;return Z(a,()=>e.label),Ne(s,pe(t,{get class(){return e.inputClass},type:"search",get value(){return e.value},get"aria-label"(){return qe(()=>e.hideLabel===!1)()?void 0:e.label},onInput:o=>e.onValue(o.currentTarget.value)}),!1,!1),ne(o=>{var i=e.variant??"list",c=e.hideLabel===!1?"visible":"hidden",f={...e.classList,[e.class??""]:!!e.class};return i!==o.e&&ce(n,"data-variant",o.e=i),c!==o.t&&ce(n,"data-label",o.t=c),o.a=Vn(n,f,o.a),o},{e:void 0,t:void 0,a:void 0}),n})()}var iy=W("<strong>Project request failed"),cy=W("<span>"),ly=W('<section class=route-empty><div class=projects-page><header class=projects-header><h1>Projects <span class=count-tag></span></h1><p>Projects opened with this Kilo server. Selecting a project opens its console.</p></header><ul class=project-list aria-label="Kilo projects">'),dy=W("<span class=project-icon aria-hidden=true>"),fy=W('<span class=project-body><span class=project-title><strong></strong><span></span></span><span class=project-meta><span class=project-git aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M6 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6 8v4a3 3 0 0 0 3 3h6"></path><path d="M14 12l3 3l-3 3"></path></svg></span><span class=project-folder></span><span aria-hidden=true>·</span><span>'),uy=W('<span class=project-arrow aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M9 6l6 6l-6 6">'),yy=W("<li>");const jr=new URLSearchParams(window.location.search),py=new Set(["3017","3018"]);function Be(){return jr.get("server")?!1:py.has(window.location.port)}function hn(){const r=jr.get("server");if(r)return r;const e=Be()?Fe():"";return e||(Be()?"":window.location.origin)}function hy(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function Er(r){return Vr(r.name?.trim()||hy(r.worktree)||r.id.slice(0,8))}function my(r){const e=Er(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ky(r){const e=new URLSearchParams,t=jr.get("server");t&&e.set("server",t);const n=e.toString();return`/projects/${encodeURIComponent(r.id)}${n?`?${n}`:""}`}function gy(r){return r.length<=8?r:r.slice(0,8)}function by(r){const e=Math.max(0,Date.now()-r),t=60*1e3,n=60*t,a=24*n;if(e<t)return"just now";if(e<n)return`${Math.floor(e/t)} minutes ago`;if(e<a)return`${Math.floor(e/n)} hours ago`;const s=Math.floor(e/a);return s===1?"yesterday":`${s} days ago`}function wy(r,e){const t=e.trim().toLowerCase();return t?`${Er(r)} ${r.id} ${r.worktree}`.toLowerCase().includes(t):!0}function mn(){const[r,e]=U(hn()),[t,n]=U(""),a=D(()=>{const c=Hr(r())||hn();if(c)return{url:c,dir:""}}),[s]=Mt(a,Pt),o=D(()=>[...s()??[]].sort((c,f)=>f.time.updated-c.time.updated)),i=D(()=>o().filter(c=>wy(c,t())));return ee(()=>{Be()&&$r().then(c=>{c&&(Le(c),e(c))})}),ee(()=>{const c=a();!s()||!c||!Be()||Le(c.url)}),ee(()=>{if(!s.error||!Be())return;const c=Fe();!c||c!==r()||(Tt(),e(""),St().then(f=>{f&&(Le(f),e(f))}))}),(()=>{var c=ly(),f=c.firstChild,y=f.firstChild,u=y.firstChild,p=u.firstChild,g=p.nextSibling,m=y.nextSibling;return Z(g,()=>o().length),Z(f,$(ie,{get when(){return qe(()=>!a())()&&Be()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return qe(()=>!!s.loading)()&&!s()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return s.error},get children(){return $(Qt,{class:"banner",variant:"error",get children(){return[iy(),(()=>{var h=cy();return Z(h,()=>c2(s.error)),h})()]}})}}),m),Z(f,$(oy,{label:"Filter projects",get value(){return t()},placeholder:"Filter projects...",onValue:n}),m),Z(f,$(ie,{get when(){return qe(()=>!!(a()&&!s.loading&&o().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No projects have been opened with this Kilo server yet."})}}),m),Z(f,$(ie,{get when(){return qe(()=>!!(a()&&!s.loading&&o().length>0&&i().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No matches. Clear the filter or open a project from the CLI."})}}),m),Z(m,$(Ye,{get each(){return i()},children:h=>(()=>{var w=yy();return Z(w,$(Xe,{class:"project-row",get href(){return ky(h)},get children(){return[(()=>{var H=dy();return Z(H,()=>my(h)),H})(),(()=>{var H=fy(),_=H.firstChild,A=_.firstChild,T=A.nextSibling,L=_.nextSibling,x=L.firstChild,F=x.nextSibling,j=F.nextSibling,b=j.nextSibling;return Z(A,()=>Er(h)),Z(T,()=>gy(h.id)),Z(F,()=>h.worktree),Z(b,()=>by(h.time.updated)),H})(),uy()]}})),w})()})),c})()}const vy=Q(()=>X(()=>import("./ProjectConsoleRoute-DulDq6dJ.js"),__vite__mapDeps([36,3,1,15,5,23,37,38])).then(r=>({default:r.ProjectConsoleRoute}))),er=Q(()=>X(()=>import("./ConfigLayout-EQuNhrf2.js"),__vite__mapDeps([39,5,40,38,27])).then(r=>({default:r.ConfigLayout}))),xy=Q(()=>X(()=>import("./ProfileRoute-Dw64b7WI.js"),__vite__mapDeps([41,1,42,43])).then(r=>({default:r.ProfileRoute}))),Cy=Q(()=>X(()=>import("./LoginRoute-DMJEF9aX.js"),__vite__mapDeps([44,1,42,43])).then(r=>({default:r.LoginRoute}))),ma=document.getElementById("root");if(!ma)throw new Error("Missing root element");const qy="/console/".replace(/\/$/,"");function tr(){return t2.map(r=>$(ve,{get path(){return r.path},get component(){return r.component}}))}Ja(()=>$(Ts,{root:ry,base:qy||void 0,get children(){return[$(ve,{path:"/projects",component:mn}),$(ve,{path:"/projects/:project",component:vy}),$(ve,{path:"/projects/:project/settings",component:er,get children(){return tr()}}),$(ve,{path:"/profile",component:xy}),$(ve,{path:"/kilo/login",component:Cy}),$(ve,{path:"/settings",component:er,get children(){return tr()}}),$(ve,{path:"/config",component:er,get children(){return tr()}}),$(ve,{path:"*",component:mn})]}}),ma);export{I7 as $,Xe as A,Hn as B,Qt as C,V7 as D,H7 as E,Ye as F,Me as G,pe as H,R1 as I,Gn as J,Ne as K,ur as L,Hy as M,Se as N,st as O,L7 as P,M7 as Q,q7 as R,ie as S,j7 as T,Vr as U,Iy as V,E7 as W,Jt as X,s2 as Y,Xa as Z,m7 as _,ws as a,_1 as a$,X as a0,$t as a1,or as a2,u7 as a3,y7 as a4,Fe as a5,Tt as a6,St as a7,Le as a8,$r as a9,c7 as aA,a7 as aB,o7 as aC,s7 as aD,Ey as aE,p1 as aF,Zy as aG,te as aH,Dy as aI,Pr as aJ,Ny as aK,V1 as aL,Wy as aM,w1 as aN,Uy as aO,Ry as aP,Un as aQ,Kn as aR,I1 as aS,y1 as aT,By as aU,E1 as aV,Oy as aW,Fy as aX,zy as aY,Z1 as aZ,Vn as a_,$7 as aa,_7 as ab,Yy as ac,Ir as ad,x0 as ae,Gy as af,p7 as ag,la as ah,h7 as ai,C7 as aj,da as ak,b7 as al,k7 as am,g7 as an,a1 as ao,f7 as ap,Q as aq,n7 as ar,i7 as as,kr as at,H0 as au,Sa as av,P2 as aw,S2 as ax,l7 as ay,d7 as az,Mt as b,m1 as b0,Jy as b1,jy as b2,Ay as b3,Py as b4,vn as b5,Os as b6,_y as b7,x7 as b8,v7 as b9,w7 as ba,Ty as bb,I as bc,Ae as bd,et as be,Sy as bf,D as c,U as d,ee as e,$ as f,ne as g,br as h,Z as i,c2 as j,e7 as k,Xy as l,qe as m,Qy as n,fe as o,$y as p,t7 as q,r7 as r,ce as s,W as t,It as u,Ya as v,oy as w,Vy as x,Hr as y,My as z};
|