groove-dev 0.24.13 → 0.24.14
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/node_modules/@groove-dev/gui/dist/assets/{index-BWfJkR97.js → index-CsWIdDVz.js} +38 -38
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +33 -8
- package/package.json +1 -1
- package/packages/gui/dist/assets/{index-BWfJkR97.js → index-CsWIdDVz.js} +38 -38
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/views/agents.jsx +33 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as dj,c as Oj,a as v,j as i,b as p0,A as x0,m as g0,R as Vn}from"./vendor-C0HXlhrU.js";import{r as fj,a as b0,R as hj,H as Gn,P as Ln,b as mj,u as pj,c as xj,d as gj,i as bj,B as vj}from"./reactflow-BQPfi37R.js";import{P as v0,N as
|
|
1
|
+
import{r as dj,c as Oj,a as v,j as i,b as p0,A as x0,m as g0,R as Vn}from"./vendor-C0HXlhrU.js";import{r as fj,a as b0,R as hj,H as Gn,P as Ln,b as mj,u as pj,c as xj,d as gj,i as bj,B as vj}from"./reactflow-BQPfi37R.js";import{P as v0,N as $f,a as ni,D as yj,b as sn,T as ma,I as Qc,s as $s,t as A,L as Qs,i as y0,c as S0,d as Q0,e as si,f as _l,g as Sj,h as yl,j as Lo,k as Ts,l as jc,m as Ie,E as kl,n as ga,o as Wn,p as j0,q as Tf,r as w0,u as Qj,v as jj,w as wj,x as ef,y as kj,z as Lr,A as $j,B as Tj,C as Pj,F as k0,G as Nj,H as Sg,J as zj,K as Rj,M as Cj,O as Xj,Q as _j,R as Zj,S as Aj,U as Ej,V as qj,W as Mj,X as Yj,Y as Vj,Z as Uj}from"./codemirror-BBL3i_JW.js";import{D as Gj,o as Lj,L as Dj}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=s(o);fetch(o.href,u)}})();var oO={exports:{}},Xr={},cO={exports:{}},uO={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* scheduler.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import{r as dj,c as Oj,a as v,j as i,b as p0,A as x0,m as g0,R as Vn}from"./vend
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Qg;function Wj(){return Qg||(Qg=1,(function(t){function n(z,B){var I=z.length;z.push(B);e:for(;0<I;){var fe=I-1>>>1,te=z[fe];if(0<o(te,B))z[fe]=B,z[I]=te,I=fe;else break e}}function s(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var B=z[0],I=z.pop();if(I!==B){z[0]=I;e:for(var fe=0,te=z.length,Ae=te>>>1;fe<Ae;){var Se=2*(fe+1)-1,ve=z[Se],Xe=Se+1,L=z[Xe];if(0>o(ve,I))Xe<te&&0>o(L,ve)?(z[fe]=L,z[Xe]=I,fe=Xe):(z[fe]=ve,z[Se]=I,fe=Se);else if(Xe<te&&0>o(L,I))z[fe]=L,z[Xe]=I,fe=Xe;else break e}}return B}function o(z,B){var I=z.sortIndex-B.sortIndex;return I!==0?I:z.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,O=d.now();t.unstable_now=function(){return d.now()-O}}var m=[],p=[],x=1,g=null,b=3,S=!1,Q=!1,k=!1,T=!1,j=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function Z(z){for(var B=s(p);B!==null;){if(B.callback===null)l(p);else if(B.startTime<=z)l(p),B.sortIndex=B.expirationTime,n(m,B);else break;B=s(p)}}function U(z){if(k=!1,Z(z),!Q)if(s(m)!==null)Q=!0,C||(C=!0,re());else{var B=s(p);B!==null&&J(U,B.startTime-z)}}var C=!1,X=-1,$=5,W=-1;function E(){return T?!0:!(t.unstable_now()-W<$)}function ne(){if(T=!1,C){var z=t.unstable_now();W=z;var B=!0;try{e:{Q=!1,k&&(k=!1,P(X),X=-1),S=!0;var I=b;try{t:{for(Z(z),g=s(m);g!==null&&!(g.expirationTime>z&&E());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,b=g.priorityLevel;var te=fe(g.expirationTime<=z);if(z=t.unstable_now(),typeof te=="function"){g.callback=te,Z(z),B=!0;break t}g===s(m)&&l(m),Z(z)}else l(m);g=s(m)}if(g!==null)B=!0;else{var Ae=s(p);Ae!==null&&J(U,Ae.startTime-z),B=!1}}break e}finally{g=null,b=I,S=!1}B=void 0}}finally{B?re():C=!1}}}var re;if(typeof N=="function")re=function(){N(ne)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ie=xe.port2;xe.port1.onmessage=ne,re=function(){ie.postMessage(null)}}else re=function(){j(ne,0)};function J(z,B){X=j(function(){z(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(z){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var I=b;b=B;try{return z()}finally{b=I}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(z,B){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var I=b;b=z;try{return B()}finally{b=I}},t.unstable_scheduleCallback=function(z,B,I){var fe=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?fe+I:fe):I=fe,z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=I+te,z={id:x++,callback:B,priorityLevel:z,startTime:I,expirationTime:te,sortIndex:-1},I>fe?(z.sortIndex=I,n(p,z),s(m)===null&&z===s(p)&&(k?(P(X),X=-1):k=!0,J(U,I-fe))):(z.sortIndex=te,n(m,z),Q||S||(Q=!0,C||(C=!0,re()))),z},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(z){var B=b;return function(){var I=b;b=B;try{return z.apply(this,arguments)}finally{b=I}}}})(uO)),uO}var jg;function Bj(){return jg||(jg=1,cO.exports=Wj()),cO.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-dom-client.production.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,19 @@ import{r as dj,c as Oj,a as v,j as i,b as p0,A as x0,m as g0,R as Vn}from"./vend
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var wg;function Hj(){if(wg)return Xr;wg=1;var t=Bj(),n=dj(),s=fj();function l(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)a+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var a=e,r=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(r=a.return),e=a.return;while(e)}return a.tag===3?r:null}function d(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function O(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function m(e){if(u(e)!==e)throw Error(l(188))}function p(e){var a=e.alternate;if(!a){if(a=u(e),a===null)throw Error(l(188));return a!==e?null:e}for(var r=e,c=a;;){var f=r.return;if(f===null)break;var h=f.alternate;if(h===null){if(c=f.return,c!==null){r=c;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===r)return m(f),e;if(h===c)return m(f),a;h=h.sibling}throw Error(l(188))}if(r.return!==c.return)r=f,c=h;else{for(var y=!1,w=f.child;w;){if(w===r){y=!0,r=f,c=h;break}if(w===c){y=!0,c=f,r=h;break}w=w.sibling}if(!y){for(w=h.child;w;){if(w===r){y=!0,r=h,c=f;break}if(w===c){y=!0,c=h,r=f;break}w=w.sibling}if(!y)throw Error(l(189))}}if(r.alternate!==c)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:a}function x(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=x(e),a!==null)return a;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),N=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case j:return"Profiler";case T:return"StrictMode";case U:return"Suspense";case C:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case N:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case Z:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return a=e.displayName||null,a!==null?a:ie(e.type)||"Memo";case $:a=e._payload,e=e._init;try{return ie(e(a))}catch{}}return null}var J=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},fe=[],te=-1;function Ae(e){return{current:e}}function Se(e){0>te||(e.current=fe[te],fe[te]=null,te--)}function ve(e,a){te++,fe[te]=e.current,e.current=a}var Xe=Ae(null),L=Ae(null),oe=Ae(null),ze=Ae(null);function Ot(e,a){switch(ve(oe,a),ve(L,e),ve(Xe,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Lx(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Lx(a),e=Dx(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Se(Xe),ve(Xe,e)}function _e(){Se(Xe),Se(L),Se(oe)}function tt(e){e.memoizedState!==null&&ve(ze,e);var a=Xe.current,r=Dx(a,e.type);a!==r&&(ve(L,e),ve(Xe,r))}function bt(e){L.current===e&&(Se(Xe),Se(L)),ze.current===e&&(Se(ze),Nr._currentValue=I)}var vt,It;function yt(e){if(vt===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);vt=a&&a[1]||"",It=-1<r.stack.indexOf(`
|
|
18
18
|
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+vt+e+It}var Ml=!1;function Yl(e,a){if(!e||Ml)return"";Ml=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var
|
|
19
|
+
`+vt+e+It}var Ml=!1;function Yl(e,a){if(!e||Ml)return"";Ml=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(G){var V=G}Reflect.construct(e,[],K)}else{try{K.call()}catch(G){V=G}e.call(K.prototype)}}else{try{throw Error()}catch(G){V=G}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=c.DetermineComponentFrameRoot(),y=h[0],w=h[1];if(y&&w){var R=y.split(`
|
|
20
20
|
`),Y=w.split(`
|
|
21
21
|
`);for(f=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;f<Y.length&&!Y[f].includes("DetermineComponentFrameRoot");)f++;if(c===R.length||f===Y.length)for(c=R.length-1,f=Y.length-1;1<=c&&0<=f&&R[c]!==Y[f];)f--;for(;1<=c&&0<=f;c--,f--)if(R[c]!==Y[f]){if(c!==1||f!==1)do if(c--,f--,0>f||R[c]!==Y[f]){var H=`
|
|
22
22
|
`+R[c].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=c&&0<=f);break}}}finally{Ml=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?yt(r):""}function Wc(e,a){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==a&&a!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Yl(e.type,!1);case 11:return Yl(e.type.render,!1);case 1:return Yl(e.type,!0);case 31:return yt("Activity");default:return""}}function Oi(e){try{var a="",r=null;do a+=Wc(e,r),r=e,e=e.return;while(e);return a}catch(c){return`
|
|
23
23
|
Error generating stack: `+c.message+`
|
|
24
|
-
`+c.stack}}var On=Object.prototype.hasOwnProperty,Bc=t.unstable_scheduleCallback,Hc=t.unstable_cancelCallback,US=t.unstable_shouldYield,GS=t.unstable_requestPaint,Xt=t.unstable_now,LS=t.unstable_getCurrentPriorityLevel,Sh=t.unstable_ImmediatePriority,Qh=t.unstable_UserBlockingPriority,fi=t.unstable_NormalPriority,DS=t.unstable_LowPriority,jh=t.unstable_IdlePriority,WS=t.log,BS=t.unstable_setDisableYieldValue,Vl=null,_t=null;function fn(e){if(typeof WS=="function"&&BS(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Vl,e)}catch{}}var Zt=Math.clz32?Math.clz32:FS,HS=Math.log,IS=Math.LN2;function FS(e){return e>>>=0,e===0?32:31-(HS(e)/IS|0)|0}var hi=256,mi=262144,pi=4194304;function ts(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xi(e,a,r){var c=e.pendingLanes;if(c===0)return 0;var f=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=c&134217727;return w!==0?(c=w&~h,c!==0?f=ts(c):(y&=w,y!==0?f=ts(y):r||(r=w&~e,r!==0&&(f=ts(r))))):(w=c&~h,w!==0?f=ts(w):y!==0?f=ts(y):r||(r=c&~e,r!==0&&(f=ts(r)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,r=a&-a,h>=r||h===32&&(r&4194048)!==0)?a:f}function Ul(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function KS(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wh(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function Ic(e){for(var a=[],r=0;31>r;r++)a.push(e);return a}function Gl(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function JS(e,a,r,c,f,h){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(r=y&~r;0<r;){var H=31-Zt(r),F=1<<H;w[H]=0,R[H]=-1;var V=Y[H];if(V!==null)for(Y[H]=null,H=0;H<V.length;H++){var L=V[H];L!==null&&(L.lane&=-536870913)}r&=~F}c!==0&&kh(e,c,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~a))}function kh(e,a,r){e.pendingLanes|=a,e.suspendedLanes&=~a;var c=31-Zt(a);e.entangledLanes|=a,e.entanglements[c]=e.entanglements[c]|1073741824|r&261930}function $h(e,a){var r=e.entangledLanes|=a;for(e=e.entanglements;r;){var c=31-Zt(r),f=1<<c;f&a|e[c]&a&&(e[c]|=a),r&=~f}}function Th(e,a){var r=a&-a;return r=(r&42)!==0?1:Fc(r),(r&(e.suspendedLanes|a))!==0?0:r}function Fc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ph(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:hg(e.type))}function Nh(e,a){var r=B.p;try{return B.p=e,a()}finally{B.p=r}}var hn=Math.random().toString(36).slice(2),ft="__reactFiber$"+hn,Qt="__reactProps$"+hn,zs="__reactContainer$"+hn,Jc="__reactEvents$"+hn,eQ="__reactListeners$"+hn,tQ="__reactHandles$"+hn,zh="__reactResources$"+hn,Ll="__reactMarker$"+hn;function eu(e){delete e[ft],delete e[Qt],delete e[Jc],delete e[eQ],delete e[tQ]}function Rs(e){var a=e[ft];if(a)return a;for(var r=e.parentNode;r;){if(a=r[zs]||r[ft]){if(r=a.alternate,a.child!==null||r!==null&&r.child!==null)for(e=Kx(e);e!==null;){if(r=e[ft])return r;e=Kx(e)}return a}e=r,r=e.parentNode}return null}function Cs(e){if(e=e[ft]||e[zs]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Dl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(l(33))}function Xs(e){var a=e[zh];return a||(a=e[zh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ut(e){e[Ll]=!0}var Rh=new Set,Ch={};function as(e,a){_s(e,a),_s(e+"Capture",a)}function _s(e,a){for(Ch[e]=a,e=0;e<a.length;e++)Rh.add(a[e])}var aQ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xh={},_h={};function nQ(e){return On.call(_h,e)?!0:On.call(Xh,e)?!1:aQ.test(e)?_h[e]=!0:(Xh[e]=!0,!1)}function gi(e,a,r){if(nQ(a))if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+r)}}function bi(e,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+r)}}function Ra(e,a,r,c){if(c===null)e.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(a,r,""+c)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function sQ(e,a,r){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,h=c.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return f.call(this)},set:function(y){r=""+y,h.call(this,y)}}),Object.defineProperty(e,a,{enumerable:c.enumerable}),{getValue:function(){return r},setValue:function(y){r=""+y},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function tu(e){if(!e._valueTracker){var a=Zh(e)?"checked":"value";e._valueTracker=sQ(e,a,""+e[a])}}function Ah(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var r=a.getValue(),c="";return e&&(c=Zh(e)?e.checked?"true":"false":e.value),e=c,e!==r?(a.setValue(e),!0):!1}function vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lQ=/[\n"\\]/g;function Kt(e){return e.replace(lQ,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function au(e,a,r,c,f,h,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),a!=null?y==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ft(a)):e.value!==""+Ft(a)&&(e.value=""+Ft(a)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),a!=null?nu(e,y,Ft(a)):r!=null?nu(e,y,Ft(r)):c!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ft(w):e.removeAttribute("name")}function Eh(e,a,r,c,f,h,y,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),a!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){tu(e);return}r=r!=null?""+Ft(r):"",a=a!=null?""+Ft(a):r,w||a===e.value||(e.value=a),e.defaultValue=a}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=w?e.checked:!!c,e.defaultChecked=!!c,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),tu(e)}function nu(e,a,r){a==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Zs(e,a,r,c){if(e=e.options,a){a={};for(var f=0;f<r.length;f++)a["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=a.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&c&&(e[r].defaultSelected=!0)}else{for(r=""+Ft(r),a=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}a!==null||e[f].disabled||(a=e[f])}a!==null&&(a.selected=!0)}}function qh(e,a,r){if(a!=null&&(a=""+Ft(a),a!==e.value&&(e.value=a),r==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=r!=null?""+Ft(r):""}function Mh(e,a,r,c){if(a==null){if(c!=null){if(r!=null)throw Error(l(92));if(K(c)){if(1<c.length)throw Error(l(93));c=c[0]}r=c}r==null&&(r=""),a=r}r=Ft(a),e.defaultValue=r,c=e.textContent,c===r&&c!==""&&c!==null&&(e.value=c),tu(e)}function As(e,a){if(a){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=a;return}}e.textContent=a}var rQ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yh(e,a,r){var c=a.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?c?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":c?e.setProperty(a,r):typeof r!="number"||r===0||rQ.has(a)?a==="float"?e.cssFloat=r:e[a]=(""+r).trim():e[a]=r+"px"}function Vh(e,a,r){if(a!=null&&typeof a!="object")throw Error(l(62));if(e=e.style,r!=null){for(var c in r)!r.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var f in a)c=a[f],a.hasOwnProperty(f)&&r[f]!==c&&Yh(e,f,c)}else for(var h in a)a.hasOwnProperty(h)&&Yh(e,h,a[h])}function su(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iQ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yi(e){return oQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ca(){}var lu=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Es=null,qs=null;function Uh(e){var a=Cs(e);if(a&&(e=a.stateNode)){var r=e[Qt]||null;e:switch(e=a.stateNode,a.type){case"input":if(au(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),a=r.name,r.type==="radio"&&a!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Kt(""+a)+'"][type="radio"]'),a=0;a<r.length;a++){var c=r[a];if(c!==e&&c.form===e.form){var f=c[Qt]||null;if(!f)throw Error(l(90));au(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<r.length;a++)c=r[a],c.form===e.form&&Ah(c)}break e;case"textarea":qh(e,r.value,r.defaultValue);break e;case"select":a=r.value,a!=null&&Zs(e,!!r.multiple,a,!1)}}}var iu=!1;function Gh(e,a,r){if(iu)return e(a,r);iu=!0;try{var c=e(a);return c}finally{if(iu=!1,(Es!==null||qs!==null)&&(oo(),Es&&(a=Es,e=qs,qs=Es=null,Uh(a),e)))for(a=0;a<e.length;a++)Uh(e[a])}}function Wl(e,a){var r=e.stateNode;if(r===null)return null;var c=r[Qt]||null;if(c===null)return null;r=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,a,typeof r));return r}var Xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if(Xa)try{var Bl={};Object.defineProperty(Bl,"passive",{get:function(){ou=!0}}),window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl)}catch{ou=!1}var mn=null,cu=null,Si=null;function Lh(){if(Si)return Si;var e,a=cu,r=a.length,c,f="value"in mn?mn.value:mn.textContent,h=f.length;for(e=0;e<r&&a[e]===f[e];e++);var y=r-e;for(c=1;c<=y&&a[r-c]===f[h-c];c++);return Si=f.slice(e,1<c?1-c:void 0)}function Qi(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function Dh(){return!1}function jt(e){function a(r,c,f,h,y){this._reactName=r,this._targetInst=f,this.type=c,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ji:Dh,this.isPropagationStopped=Dh,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),a}var ns={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=jt(ns),Hl=g({},ns,{view:0,detail:0}),cQ=jt(Hl),uu,du,Il,ki=g({},Hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Il&&(Il&&e.type==="mousemove"?(uu=e.screenX-Il.screenX,du=e.screenY-Il.screenY):du=uu=0,Il=e),uu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),Wh=jt(ki),uQ=g({},ki,{dataTransfer:0}),dQ=jt(uQ),OQ=g({},Hl,{relatedTarget:0}),Ou=jt(OQ),fQ=g({},ns,{animationName:0,elapsedTime:0,pseudoElement:0}),hQ=jt(fQ),mQ=g({},ns,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pQ=jt(mQ),xQ=g({},ns,{data:0}),Bh=jt(xQ),gQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bQ={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yQ(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=vQ[e])?!!a[e]:!1}function fu(){return yQ}var SQ=g({},Hl,{key:function(e){if(e.key){var a=gQ[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fu,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QQ=jt(SQ),jQ=g({},ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=jt(jQ),wQ=g({},Hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fu}),kQ=jt(wQ),$Q=g({},ns,{propertyName:0,elapsedTime:0,pseudoElement:0}),TQ=jt($Q),PQ=g({},ki,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),NQ=jt(PQ),zQ=g({},ns,{newState:0,oldState:0}),RQ=jt(zQ),CQ=[9,13,27,32],hu=Xa&&"CompositionEvent"in window,Fl=null;Xa&&"documentMode"in document&&(Fl=document.documentMode);var XQ=Xa&&"TextEvent"in window&&!Fl,Ih=Xa&&(!hu||Fl&&8<Fl&&11>=Fl),Fh=" ",Kh=!1;function Jh(e,a){switch(e){case"keyup":return CQ.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ms=!1;function _Q(e,a){switch(e){case"compositionend":return em(a);case"keypress":return a.which!==32?null:(Kh=!0,Fh);case"textInput":return e=a.data,e===Fh&&Kh?null:e;default:return null}}function ZQ(e,a){if(Ms)return e==="compositionend"||!hu&&Jh(e,a)?(e=Lh(),Si=cu=mn=null,Ms=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ih&&a.locale!=="ko"?null:a.data;default:return null}}var AQ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tm(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!AQ[e.type]:a==="textarea"}function am(e,a,r,c){Es?qs?qs.push(c):qs=[c]:Es=c,a=po(a,"onChange"),0<a.length&&(r=new wi("onChange","change",null,r,c),e.push({event:r,listeners:a}))}var Kl=null,Jl=null;function EQ(e){Ex(e,0)}function $i(e){var a=Dl(e);if(Ah(a))return e}function nm(e,a){if(e==="change")return a}var sm=!1;if(Xa){var mu;if(Xa){var pu="oninput"in document;if(!pu){var lm=document.createElement("div");lm.setAttribute("oninput","return;"),pu=typeof lm.oninput=="function"}mu=pu}else mu=!1;sm=mu&&(!document.documentMode||9<document.documentMode)}function rm(){Kl&&(Kl.detachEvent("onpropertychange",im),Jl=Kl=null)}function im(e){if(e.propertyName==="value"&&$i(Jl)){var a=[];am(a,Jl,e,ru(e)),Gh(EQ,a)}}function qQ(e,a,r){e==="focusin"?(rm(),Kl=a,Jl=r,Kl.attachEvent("onpropertychange",im)):e==="focusout"&&rm()}function MQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(Jl)}function YQ(e,a){if(e==="click")return $i(a)}function VQ(e,a){if(e==="input"||e==="change")return $i(a)}function UQ(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var At=typeof Object.is=="function"?Object.is:UQ;function er(e,a){if(At(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var r=Object.keys(e),c=Object.keys(a);if(r.length!==c.length)return!1;for(c=0;c<r.length;c++){var f=r[c];if(!On.call(a,f)||!At(e[f],a[f]))return!1}return!0}function om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cm(e,a){var r=om(e);e=0;for(var c;r;){if(r.nodeType===3){if(c=e+r.textContent.length,e<=a&&c>=a)return{node:r,offset:a-e};e=c}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=om(r)}}function um(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?um(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function dm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=vi(e.document);a instanceof e.HTMLIFrameElement;){try{var r=typeof a.contentWindow.location.href=="string"}catch{r=!1}if(r)e=a.contentWindow;else break;a=vi(e.document)}return a}function xu(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var GQ=Xa&&"documentMode"in document&&11>=document.documentMode,Ys=null,gu=null,tr=null,bu=!1;function Om(e,a,r){var c=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bu||Ys==null||Ys!==vi(c)||(c=Ys,"selectionStart"in c&&xu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),tr&&er(tr,c)||(tr=c,c=po(gu,"onSelect"),0<c.length&&(a=new wi("onSelect","select",null,a,r),e.push({event:a,listeners:c}),a.target=Ys)))}function ss(e,a){var r={};return r[e.toLowerCase()]=a.toLowerCase(),r["Webkit"+e]="webkit"+a,r["Moz"+e]="moz"+a,r}var Vs={animationend:ss("Animation","AnimationEnd"),animationiteration:ss("Animation","AnimationIteration"),animationstart:ss("Animation","AnimationStart"),transitionrun:ss("Transition","TransitionRun"),transitionstart:ss("Transition","TransitionStart"),transitioncancel:ss("Transition","TransitionCancel"),transitionend:ss("Transition","TransitionEnd")},vu={},fm={};Xa&&(fm=document.createElement("div").style,"AnimationEvent"in window||(delete Vs.animationend.animation,delete Vs.animationiteration.animation,delete Vs.animationstart.animation),"TransitionEvent"in window||delete Vs.transitionend.transition);function ls(e){if(vu[e])return vu[e];if(!Vs[e])return e;var a=Vs[e],r;for(r in a)if(a.hasOwnProperty(r)&&r in fm)return vu[e]=a[r];return e}var hm=ls("animationend"),mm=ls("animationiteration"),pm=ls("animationstart"),LQ=ls("transitionrun"),DQ=ls("transitionstart"),WQ=ls("transitioncancel"),xm=ls("transitionend"),gm=new Map,yu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yu.push("scrollEnd");function da(e,a){gm.set(e,a),as(a,[e])}var Ti=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],Us=0,Su=0;function Pi(){for(var e=Us,a=Su=Us=0;a<e;){var r=Jt[a];Jt[a++]=null;var c=Jt[a];Jt[a++]=null;var f=Jt[a];Jt[a++]=null;var h=Jt[a];if(Jt[a++]=null,c!==null&&f!==null){var y=c.pending;y===null?f.next=f:(f.next=y.next,y.next=f),c.pending=f}h!==0&&bm(r,f,h)}}function Ni(e,a,r,c){Jt[Us++]=e,Jt[Us++]=a,Jt[Us++]=r,Jt[Us++]=c,Su|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Qu(e,a,r,c){return Ni(e,a,r,c),zi(e)}function rs(e,a){return Ni(e,null,null,a),zi(e)}function bm(e,a,r){e.lanes|=r;var c=e.alternate;c!==null&&(c.lanes|=r);for(var f=!1,h=e.return;h!==null;)h.childLanes|=r,c=h.alternate,c!==null&&(c.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&a!==null&&(f=31-Zt(r),e=h.hiddenUpdates,c=e[f],c===null?e[f]=[a]:c.push(a),a.lane=r|536870912),h):null}function zi(e){if(50<Qr)throw Qr=0,Rd=null,Error(l(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Gs={};function BQ(e,a,r,c){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,a,r,c){return new BQ(e,a,r,c)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _a(e,a){var r=e.alternate;return r===null?(r=Et(e.tag,a,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=a,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,a=e.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function vm(e,a){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,a=r.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Ri(e,a,r,c,f,h){var y=0;if(c=e,typeof e=="function")ju(e)&&(y=1);else if(typeof e=="string")y=J2(e,r,Xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Et(31,r,a,f),e.elementType=G,e.lanes=h,e;case k:return is(r.children,f,h,a);case $:y=8,f|=24;break;case j:return e=Et(12,r,a,f|2),e.elementType=j,e.lanes=h,e;case U:return e=Et(13,r,a,f),e.elementType=U,e.lanes=h,e;case C:return e=Et(19,r,a,f),e.elementType=C,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:y=10;break e;case P:y=9;break e;case Z:y=11;break e;case X:y=14;break e;case T:y=16,c=null;break e}y=29,r=Error(l(130,e===null?"null":typeof e,"")),c=null}return a=Et(y,r,a,f),a.elementType=e,a.type=c,a.lanes=h,a}function is(e,a,r,c){return e=Et(7,e,c,a),e.lanes=r,e}function wu(e,a,r){return e=Et(6,e,null,a),e.lanes=r,e}function ym(e){var a=Et(18,null,null,0);return a.stateNode=e,a}function ku(e,a,r){return a=Et(4,e.children!==null?e.children:[],e.key,a),a.lanes=r,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Sm=new WeakMap;function ea(e,a){if(typeof e=="object"&&e!==null){var r=Sm.get(e);return r!==void 0?r:(a={value:e,source:a,stack:Oi(a)},Sm.set(e,a),a)}return{value:e,source:a,stack:Oi(a)}}var Ls=[],Ds=0,Ci=null,ar=0,ta=[],aa=0,pn=null,ya=1,Sa="";function Za(e,a){Ls[Ds++]=ar,Ls[Ds++]=Ci,Ci=e,ar=a}function Qm(e,a,r){ta[aa++]=ya,ta[aa++]=Sa,ta[aa++]=pn,pn=e;var c=ya;e=Sa;var f=32-Zt(c)-1;c&=~(1<<f),r+=1;var h=32-Zt(a)+f;if(30<h){var y=f-f%5;h=(c&(1<<y)-1).toString(32),c>>=y,f-=y,ya=1<<32-Zt(a)+f|r<<f|c,Sa=h+e}else ya=1<<h|r<<f|c,Sa=e}function $u(e){e.return!==null&&(Za(e,1),Qm(e,1,0))}function Tu(e){for(;e===Ci;)Ci=Ls[--Ds],Ls[Ds]=null,ar=Ls[--Ds],Ls[Ds]=null;for(;e===pn;)pn=ta[--aa],ta[aa]=null,Sa=ta[--aa],ta[aa]=null,ya=ta[--aa],ta[aa]=null}function jm(e,a){ta[aa++]=ya,ta[aa++]=Sa,ta[aa++]=pn,ya=a.id,Sa=a.overflow,pn=e}var ht=null,Le=null,Pe=!1,xn=null,na=!1,Pu=Error(l(519));function gn(e){var a=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nr(ea(a,e)),Pu}function wm(e){var a=e.stateNode,r=e.type,c=e.memoizedProps;switch(a[ft]=e,a[Qt]=c,r){case"dialog":ke("cancel",a),ke("close",a);break;case"iframe":case"object":case"embed":ke("load",a);break;case"video":case"audio":for(r=0;r<wr.length;r++)ke(wr[r],a);break;case"source":ke("error",a);break;case"img":case"image":case"link":ke("error",a),ke("load",a);break;case"details":ke("toggle",a);break;case"input":ke("invalid",a),Eh(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ke("invalid",a);break;case"textarea":ke("invalid",a),Mh(a,c.value,c.defaultValue,c.children)}r=c.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||a.textContent===""+r||c.suppressHydrationWarning===!0||Vx(a.textContent,r)?(c.popover!=null&&(ke("beforetoggle",a),ke("toggle",a)),c.onScroll!=null&&ke("scroll",a),c.onScrollEnd!=null&&ke("scrollend",a),c.onClick!=null&&(a.onclick=Ca),a=!0):a=!1,a||gn(e,!0)}function km(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:ht=ht.return}}function Ws(e){if(e!==ht)return!1;if(!Pe)return km(e),Pe=!0,!1;var a=e.tag,r;if((r=a!==3&&a!==27)&&((r=a===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Wd(e.type,e.memoizedProps)),r=!r),r&&Le&&gn(e),km(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Fx(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Fx(e)}else a===27?(a=Le,Rn(e.type)?(e=Kd,Kd=null,Le=e):Le=a):Le=ht?la(e.stateNode.nextSibling):null;return!0}function os(){Le=ht=null,Pe=!1}function Nu(){var e=xn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),xn=null),e}function nr(e){xn===null?xn=[e]:xn.push(e)}var zu=Ae(null),cs=null,Aa=null;function bn(e,a,r){ve(zu,a._currentValue),a._currentValue=r}function Ea(e){e._currentValue=zu.current,Se(zu)}function Ru(e,a,r){for(;e!==null;){var c=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),e===r)break;e=e.return}}function Cu(e,a,r,c){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var y=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var R=0;R<a.length;R++)if(w.context===a[R]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),Ru(h.return,r,e),c||(y=null);break e}h=w.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(l(341));y.lanes|=r,h=y.alternate,h!==null&&(h.lanes|=r),Ru(y,r,e),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===e){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function Bs(e,a,r,c){e=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var w=f.type;At(f.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(f===ze.current){if(y=f.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Nr):e=[Nr])}f=f.return}e!==null&&Cu(a,e,r,c),a.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function us(e){cs=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return $m(cs,e)}function _i(e,a){return cs===null&&us(e),$m(e,a)}function $m(e,a){var r=a._currentValue;if(a={context:a,memoizedValue:r,next:null},Aa===null){if(e===null)throw Error(l(308));Aa=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Aa=Aa.next=a;return r}var HQ=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(r,c){e.push(c)}};this.abort=function(){a.aborted=!0,e.forEach(function(r){return r()})}},IQ=t.unstable_scheduleCallback,FQ=t.unstable_NormalPriority,at={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xu(){return{controller:new HQ,data:new Map,refCount:0}}function sr(e){e.refCount--,e.refCount===0&&IQ(FQ,function(){e.controller.abort()})}var lr=null,_u=0,Hs=0,Is=null;function KQ(e,a){if(lr===null){var r=lr=[];_u=0,Hs=Ed(),Is={status:"pending",value:void 0,then:function(c){r.push(c)}}}return _u++,a.then(Tm,Tm),a}function Tm(){if(--_u===0&&lr!==null){Is!==null&&(Is.status="fulfilled");var e=lr;lr=null,Hs=0,Is=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function JQ(e,a){var r=[],c={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){c.status="fulfilled",c.value=a;for(var f=0;f<r.length;f++)(0,r[f])(a)},function(f){for(c.status="rejected",c.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),c}var Pm=z.S;z.S=function(e,a){Ox=Xt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&KQ(e,a),Pm!==null&&Pm(e,a)};var ds=Ae(null);function Zu(){var e=ds.current;return e!==null?e:Ge.pooledCache}function Zi(e,a){a===null?ve(ds,ds.current):ve(ds,a.pool)}function Nm(){var e=Zu();return e===null?null:{parent:at._currentValue,pool:e}}var Fs=Error(l(460)),Au=Error(l(474)),Ai=Error(l(542)),Ei={then:function(){}};function zm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rm(e,a,r){switch(r=e[r],r===void 0?e.push(a):r!==a&&(a.then(Ca,Ca),a=r),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Xm(e),e;default:if(typeof a.status=="string")a.then(Ca,Ca);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=a,e.status="pending",e.then(function(c){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=c}},function(c){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Xm(e),e}throw fs=a,Fs}}function Os(e){try{var a=e._init;return a(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(fs=r,Fs):r}}var fs=null;function Cm(){if(fs===null)throw Error(l(459));var e=fs;return fs=null,e}function Xm(e){if(e===Fs||e===Ai)throw Error(l(483))}var Ks=null,rr=0;function qi(e){var a=rr;return rr+=1,Ks===null&&(Ks=[]),Rm(Ks,e,a)}function ir(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Mi(e,a){throw a.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(a),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function _m(e){function a(q,_){if(e){var M=q.deletions;M===null?(q.deletions=[_],q.flags|=16):M.push(_)}}function r(q,_){if(!e)return null;for(;_!==null;)a(q,_),_=_.sibling;return null}function c(q){for(var _=new Map;q!==null;)q.key!==null?_.set(q.key,q):_.set(q.index,q),q=q.sibling;return _}function f(q,_){return q=_a(q,_),q.index=0,q.sibling=null,q}function h(q,_,M){return q.index=M,e?(M=q.alternate,M!==null?(M=M.index,M<_?(q.flags|=67108866,_):M):(q.flags|=67108866,_)):(q.flags|=1048576,_)}function y(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function w(q,_,M,I){return _===null||_.tag!==6?(_=wu(M,q.mode,I),_.return=q,_):(_=f(_,M),_.return=q,_)}function R(q,_,M,I){var pe=M.type;return pe===k?H(q,_,M.props.children,I,M.key):_!==null&&(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===T&&Os(pe)===_.type)?(_=f(_,M.props),ir(_,M),_.return=q,_):(_=Ri(M.type,M.key,M.props,null,q.mode,I),ir(_,M),_.return=q,_)}function Y(q,_,M,I){return _===null||_.tag!==4||_.stateNode.containerInfo!==M.containerInfo||_.stateNode.implementation!==M.implementation?(_=ku(M,q.mode,I),_.return=q,_):(_=f(_,M.children||[]),_.return=q,_)}function H(q,_,M,I,pe){return _===null||_.tag!==7?(_=is(M,q.mode,I,pe),_.return=q,_):(_=f(_,M),_.return=q,_)}function F(q,_,M){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=wu(""+_,q.mode,M),_.return=q,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return M=Ri(_.type,_.key,_.props,null,q.mode,M),ir(M,_),M.return=q,M;case Q:return _=ku(_,q.mode,M),_.return=q,_;case T:return _=Os(_),F(q,_,M)}if(K(_)||re(_))return _=is(_,q.mode,M,null),_.return=q,_;if(typeof _.then=="function")return F(q,qi(_),M);if(_.$$typeof===N)return F(q,_i(q,_),M);Mi(q,_)}return null}function V(q,_,M,I){var pe=_!==null?_.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return pe!==null?null:w(q,_,""+M,I);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===pe?R(q,_,M,I):null;case Q:return M.key===pe?Y(q,_,M,I):null;case T:return M=Os(M),V(q,_,M,I)}if(K(M)||re(M))return pe!==null?null:H(q,_,M,I,null);if(typeof M.then=="function")return V(q,_,qi(M),I);if(M.$$typeof===N)return V(q,_,_i(q,M),I);Mi(q,M)}return null}function L(q,_,M,I,pe){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return q=q.get(M)||null,w(_,q,""+I,pe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case S:return q=q.get(I.key===null?M:I.key)||null,R(_,q,I,pe);case Q:return q=q.get(I.key===null?M:I.key)||null,Y(_,q,I,pe);case T:return I=Os(I),L(q,_,M,I,pe)}if(K(I)||re(I))return q=q.get(M)||null,H(_,q,I,pe,null);if(typeof I.then=="function")return L(q,_,M,qi(I),pe);if(I.$$typeof===N)return L(q,_,M,_i(_,I),pe);Mi(_,I)}return null}function oe(q,_,M,I){for(var pe=null,Re=null,Oe=_,ye=_=0,Te=null;Oe!==null&&ye<M.length;ye++){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var Ce=V(q,Oe,M[ye],I);if(Ce===null){Oe===null&&(Oe=Te);break}e&&Oe&&Ce.alternate===null&&a(q,Oe),_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce,Oe=Te}if(ye===M.length)return r(q,Oe),Pe&&Za(q,ye),pe;if(Oe===null){for(;ye<M.length;ye++)Oe=F(q,M[ye],I),Oe!==null&&(_=h(Oe,_,ye),Re===null?pe=Oe:Re.sibling=Oe,Re=Oe);return Pe&&Za(q,ye),pe}for(Oe=c(Oe);ye<M.length;ye++)Te=L(Oe,q,ye,M[ye],I),Te!==null&&(e&&Te.alternate!==null&&Oe.delete(Te.key===null?ye:Te.key),_=h(Te,_,ye),Re===null?pe=Te:Re.sibling=Te,Re=Te);return e&&Oe.forEach(function(An){return a(q,An)}),Pe&&Za(q,ye),pe}function xe(q,_,M,I){if(M==null)throw Error(l(151));for(var pe=null,Re=null,Oe=_,ye=_=0,Te=null,Ce=M.next();Oe!==null&&!Ce.done;ye++,Ce=M.next()){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var An=V(q,Oe,Ce.value,I);if(An===null){Oe===null&&(Oe=Te);break}e&&Oe&&An.alternate===null&&a(q,Oe),_=h(An,_,ye),Re===null?pe=An:Re.sibling=An,Re=An,Oe=Te}if(Ce.done)return r(q,Oe),Pe&&Za(q,ye),pe;if(Oe===null){for(;!Ce.done;ye++,Ce=M.next())Ce=F(q,Ce.value,I),Ce!==null&&(_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce);return Pe&&Za(q,ye),pe}for(Oe=c(Oe);!Ce.done;ye++,Ce=M.next())Ce=L(Oe,q,ye,Ce.value,I),Ce!==null&&(e&&Ce.alternate!==null&&Oe.delete(Ce.key===null?ye:Ce.key),_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce);return e&&Oe.forEach(function(uj){return a(q,uj)}),Pe&&Za(q,ye),pe}function Ue(q,_,M,I){if(typeof M=="object"&&M!==null&&M.type===k&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var pe=M.key;_!==null;){if(_.key===pe){if(pe=M.type,pe===k){if(_.tag===7){r(q,_.sibling),I=f(_,M.props.children),I.return=q,q=I;break e}}else if(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===T&&Os(pe)===_.type){r(q,_.sibling),I=f(_,M.props),ir(I,M),I.return=q,q=I;break e}r(q,_);break}else a(q,_);_=_.sibling}M.type===k?(I=is(M.props.children,q.mode,I,M.key),I.return=q,q=I):(I=Ri(M.type,M.key,M.props,null,q.mode,I),ir(I,M),I.return=q,q=I)}return y(q);case Q:e:{for(pe=M.key;_!==null;){if(_.key===pe)if(_.tag===4&&_.stateNode.containerInfo===M.containerInfo&&_.stateNode.implementation===M.implementation){r(q,_.sibling),I=f(_,M.children||[]),I.return=q,q=I;break e}else{r(q,_);break}else a(q,_);_=_.sibling}I=ku(M,q.mode,I),I.return=q,q=I}return y(q);case T:return M=Os(M),Ue(q,_,M,I)}if(K(M))return oe(q,_,M,I);if(re(M)){if(pe=re(M),typeof pe!="function")throw Error(l(150));return M=pe.call(M),xe(q,_,M,I)}if(typeof M.then=="function")return Ue(q,_,qi(M),I);if(M.$$typeof===N)return Ue(q,_,_i(q,M),I);Mi(q,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,_!==null&&_.tag===6?(r(q,_.sibling),I=f(_,M),I.return=q,q=I):(r(q,_),I=wu(M,q.mode,I),I.return=q,q=I),y(q)):r(q,_)}return function(q,_,M,I){try{rr=0;var pe=Ue(q,_,M,I);return Ks=null,pe}catch(Oe){if(Oe===Fs||Oe===Ai)throw Oe;var Re=Et(29,Oe,null,q.mode);return Re.lanes=I,Re.return=q,Re}finally{}}}var hs=_m(!0),Zm=_m(!1),vn=!1;function Eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sn(e,a,r){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ze&2)!==0){var f=c.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a,a=zi(e),bm(e,null,r),a}return Ni(e,c,a,r),zi(e)}function or(e,a,r){if(a=a.updateQueue,a!==null&&(a=a.shared,(r&4194048)!==0)){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,$h(e,r)}}function Mu(e,a){var r=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,r===c)){var f=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?f=h=y:h=h.next=y,r=r.next}while(r!==null);h===null?f=h=a:h=h.next=a}else f=h=a;r={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:c.shared,callbacks:c.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=a:e.next=a,r.lastBaseUpdate=a}var Yu=!1;function cr(){if(Yu){var e=Is;if(e!==null)throw e}}function ur(e,a,r,c){Yu=!1;var f=e.updateQueue;vn=!1;var h=f.firstBaseUpdate,y=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var R=w,Y=R.next;R.next=null,y===null?h=Y:y.next=Y,y=R;var H=e.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==y&&(w===null?H.firstBaseUpdate=Y:w.next=Y,H.lastBaseUpdate=R))}if(h!==null){var F=f.baseState;y=0,H=Y=R=null,w=h;do{var V=w.lane&-536870913,L=V!==w.lane;if(L?($e&V)===V:(c&V)===V){V!==0&&V===Hs&&(Yu=!0),H!==null&&(H=H.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var oe=e,xe=w;V=a;var Ue=r;switch(xe.tag){case 1:if(oe=xe.payload,typeof oe=="function"){F=oe.call(Ue,F,V);break e}F=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=xe.payload,V=typeof oe=="function"?oe.call(Ue,F,V):oe,V==null)break e;F=g({},F,V);break e;case 2:vn=!0}}V=w.callback,V!==null&&(e.flags|=64,L&&(e.flags|=8192),L=f.callbacks,L===null?f.callbacks=[V]:L.push(V))}else L={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(Y=H=L,R=F):H=H.next=L,y|=V;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;L=w,w=L.next,L.next=null,f.lastBaseUpdate=L,f.shared.pending=null}}while(!0);H===null&&(R=F),f.baseState=R,f.firstBaseUpdate=Y,f.lastBaseUpdate=H,h===null&&(f.shared.lanes=0),$n|=y,e.lanes=y,e.memoizedState=F}}function Am(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function Em(e,a){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Am(r[e],a)}var Js=Ae(null),Yi=Ae(0);function qm(e,a){e=Wa,ve(Yi,e),ve(Js,a),Wa=e|a.baseLanes}function Vu(){ve(Yi,Wa),ve(Js,Js.current)}function Uu(){Wa=Yi.current,Se(Js),Se(Yi)}var qt=Ae(null),sa=null;function Qn(e){var a=e.alternate;ve(Je,Je.current&1),ve(qt,e),sa===null&&(a===null||Js.current!==null||a.memoizedState!==null)&&(sa=e)}function Gu(e){ve(Je,Je.current),ve(qt,e),sa===null&&(sa=e)}function Mm(e){e.tag===22?(ve(Je,Je.current),ve(qt,e),sa===null&&(sa=e)):jn()}function jn(){ve(Je,Je.current),ve(qt,qt.current)}function Mt(e){Se(qt),sa===e&&(sa=null),Se(Je)}var Je=Ae(0);function Vi(e){for(var a=e;a!==null;){if(a.tag===13){var r=a.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Id(r)||Fd(r)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var qa=0,be=null,Ye=null,nt=null,Ui=!1,el=!1,ms=!1,Gi=0,dr=0,tl=null,e2=0;function Fe(){throw Error(l(321))}function Lu(e,a){if(a===null)return!1;for(var r=0;r<a.length&&r<e.length;r++)if(!At(e[r],a[r]))return!1;return!0}function Du(e,a,r,c,f,h){return qa=h,be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=e===null||e.memoizedState===null?Qp:id,ms=!1,h=r(c,f),ms=!1,el&&(h=Vm(a,r,c,f)),Ym(e),h}function Ym(e){z.H=hr;var a=Ye!==null&&Ye.next!==null;if(qa=0,nt=Ye=be=null,Ui=!1,dr=0,tl=null,a)throw Error(l(300));e===null||st||(e=e.dependencies,e!==null&&Xi(e)&&(st=!0))}function Vm(e,a,r,c){be=e;var f=0;do{if(el&&(tl=null),dr=0,el=!1,25<=f)throw Error(l(301));if(f+=1,nt=Ye=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=jp,h=a(r,c)}while(el);return h}function t2(){var e=z.H,a=e.useState()[0];return a=typeof a.then=="function"?Or(a):a,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(be.flags|=1024),a}function Wu(){var e=Gi!==0;return Gi=0,e}function Bu(e,a,r){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~r}function Hu(e){if(Ui){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Ui=!1}qa=0,nt=Ye=be=null,el=!1,dr=Gi=0,tl=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?be.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ye===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var a=nt===null?be.memoizedState:nt.next;if(a!==null)nt=a,Ye=e;else{if(e===null)throw be.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},nt===null?be.memoizedState=nt=e:nt=nt.next=e}return nt}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Or(e){var a=dr;return dr+=1,tl===null&&(tl=[]),e=Rm(tl,e,a),a=be,(nt===null?a.memoizedState:nt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?Qp:id),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Or(e);if(e.$$typeof===N)return mt(e)}throw Error(l(438,String(e)))}function Iu(e){var a=null,r=be.updateQueue;if(r!==null&&(a=r.memoCache),a==null){var c=be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),r===null&&(r=Li(),be.updateQueue=r),r.memoCache=a,r=a.data[a.index],r===void 0)for(r=a.data[a.index]=Array(e),c=0;c<e;c++)r[c]=E;return a.index++,r}function Ma(e,a){return typeof a=="function"?a(e):a}function Wi(e){var a=et();return Fu(a,Ye,e)}function Fu(e,a,r){var c=e.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=r;var f=e.baseQueue,h=c.pending;if(h!==null){if(f!==null){var y=f.next;f.next=h.next,h.next=y}a.baseQueue=f=h,c.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{a=f.next;var w=y=null,R=null,Y=a,H=!1;do{var F=Y.lane&-536870913;if(F!==Y.lane?($e&F)===F:(qa&F)===F){var V=Y.revertLane;if(V===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),F===Hs&&(H=!0);else if((qa&V)===V){Y=Y.next,V===Hs&&(H=!0);continue}else F={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=F,y=h):R=R.next=F,be.lanes|=V,$n|=V;F=Y.action,ms&&r(h,F),h=Y.hasEagerState?Y.eagerState:r(h,F)}else V={lane:F,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=V,y=h):R=R.next=V,be.lanes|=F,$n|=F;Y=Y.next}while(Y!==null&&Y!==a);if(R===null?y=h:R.next=w,!At(h,e.memoizedState)&&(st=!0,H&&(r=Is,r!==null)))throw r;e.memoizedState=h,e.baseState=y,e.baseQueue=R,c.lastRenderedState=h}return f===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Ku(e){var a=et(),r=a.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var c=r.dispatch,f=r.pending,h=a.memoizedState;if(f!==null){r.pending=null;var y=f=f.next;do h=e(h,y.action),y=y.next;while(y!==f);At(h,a.memoizedState)||(st=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),r.lastRenderedState=h}return[h,c]}function Um(e,a,r){var c=be,f=et(),h=Pe;if(h){if(r===void 0)throw Error(l(407));r=r()}else r=a();var y=!At((Ye||f).memoizedState,r);if(y&&(f.memoizedState=r,st=!0),f=f.queue,td(Dm.bind(null,c,f,e),[e]),f.getSnapshot!==a||y||nt!==null&&nt.memoizedState.tag&1){if(c.flags|=2048,al(9,{destroy:void 0},Lm.bind(null,c,f,r,a),null),Ge===null)throw Error(l(349));h||(qa&127)!==0||Gm(c,a,r)}return r}function Gm(e,a,r){e.flags|=16384,e={getSnapshot:a,value:r},a=be.updateQueue,a===null?(a=Li(),be.updateQueue=a,a.stores=[e]):(r=a.stores,r===null?a.stores=[e]:r.push(e))}function Lm(e,a,r,c){a.value=r,a.getSnapshot=c,Wm(a)&&Bm(e)}function Dm(e,a,r){return r(function(){Wm(a)&&Bm(e)})}function Wm(e){var a=e.getSnapshot;e=e.value;try{var r=a();return!At(e,r)}catch{return!0}}function Bm(e){var a=rs(e,2);a!==null&&Pt(a,e,2)}function Ju(e){var a=St();if(typeof e=="function"){var r=e;if(e=r(),ms){fn(!0);try{r()}finally{fn(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},a}function Hm(e,a,r,c){return e.baseState=r,Fu(e,Ye,typeof c=="function"?c:Ma)}function a2(e,a,r,c,f){if(Ii(e))throw Error(l(485));if(e=a.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){h.listeners.push(y)}};z.T!==null?r(!0):h.isTransition=!1,c(h),r=a.pending,r===null?(h.next=a.pending=h,Im(a,h)):(h.next=r.next,a.pending=r.next=h)}}function Im(e,a){var r=a.action,c=a.payload,f=e.state;if(a.isTransition){var h=z.T,y={};z.T=y;try{var w=r(f,c),R=z.S;R!==null&&R(y,w),Fm(e,a,w)}catch(Y){ed(e,a,Y)}finally{h!==null&&y.types!==null&&(h.types=y.types),z.T=h}}else try{h=r(f,c),Fm(e,a,h)}catch(Y){ed(e,a,Y)}}function Fm(e,a,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(c){Km(e,a,c)},function(c){return ed(e,a,c)}):Km(e,a,r)}function Km(e,a,r){a.status="fulfilled",a.value=r,Jm(a),e.state=r,a=e.pending,a!==null&&(r=a.next,r===a?e.pending=null:(r=r.next,a.next=r,Im(e,r)))}function ed(e,a,r){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=r,Jm(a),a=a.next;while(a!==c)}e.action=null}function Jm(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function ep(e,a){return a}function tp(e,a){if(Pe){var r=Ge.formState;if(r!==null){e:{var c=be;if(Pe){if(Le){t:{for(var f=Le,h=na;f.nodeType!==8;){if(!h){f=null;break t}if(f=la(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Le=la(f.nextSibling),c=f.data==="F!";break e}}gn(c)}c=!1}c&&(a=r[0])}}return r=St(),r.memoizedState=r.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ep,lastRenderedState:a},r.queue=c,r=vp.bind(null,be,c),c.dispatch=r,c=Ju(!1),h=rd.bind(null,be,!1,c.queue),c=St(),f={state:a,dispatch:null,action:e,pending:null},c.queue=f,r=a2.bind(null,be,f,h,r),f.dispatch=r,c.memoizedState=e,[a,r,!1]}function ap(e){var a=et();return np(a,Ye,e)}function np(e,a,r){if(a=Fu(e,a,ep)[0],e=Wi(Ma)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Or(a)}catch(y){throw y===Fs?Ai:y}else c=a;a=et();var f=a.queue,h=f.dispatch;return r!==a.memoizedState&&(be.flags|=2048,al(9,{destroy:void 0},n2.bind(null,f,r),null)),[c,h,e]}function n2(e,a){e.action=a}function sp(e){var a=et(),r=Ye;if(r!==null)return np(a,r,e);et(),a=a.memoizedState,r=et();var c=r.queue.dispatch;return r.memoizedState=e,[a,c,!1]}function al(e,a,r,c){return e={tag:e,create:r,deps:c,inst:a,next:null},a=be.updateQueue,a===null&&(a=Li(),be.updateQueue=a),r=a.lastEffect,r===null?a.lastEffect=e.next=e:(c=r.next,r.next=e,e.next=c,a.lastEffect=e),e}function lp(){return et().memoizedState}function Bi(e,a,r,c){var f=St();be.flags|=e,f.memoizedState=al(1|a,{destroy:void 0},r,c===void 0?null:c)}function Hi(e,a,r,c){var f=et();c=c===void 0?null:c;var h=f.memoizedState.inst;Ye!==null&&c!==null&&Lu(c,Ye.memoizedState.deps)?f.memoizedState=al(a,h,r,c):(be.flags|=e,f.memoizedState=al(1|a,h,r,c))}function rp(e,a){Bi(8390656,8,e,a)}function td(e,a){Hi(2048,8,e,a)}function s2(e){be.flags|=4;var a=be.updateQueue;if(a===null)a=Li(),be.updateQueue=a,a.events=[e];else{var r=a.events;r===null?a.events=[e]:r.push(e)}}function ip(e){var a=et().memoizedState;return s2({ref:a,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}function op(e,a){return Hi(4,2,e,a)}function cp(e,a){return Hi(4,4,e,a)}function up(e,a){if(typeof a=="function"){e=e();var r=a(e);return function(){typeof r=="function"?r():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function dp(e,a,r){r=r!=null?r.concat([e]):null,Hi(4,4,up.bind(null,a,e),r)}function ad(){}function Op(e,a){var r=et();a=a===void 0?null:a;var c=r.memoizedState;return a!==null&&Lu(a,c[1])?c[0]:(r.memoizedState=[e,a],e)}function fp(e,a){var r=et();a=a===void 0?null:a;var c=r.memoizedState;if(a!==null&&Lu(a,c[1]))return c[0];if(c=e(),ms){fn(!0);try{e()}finally{fn(!1)}}return r.memoizedState=[c,a],c}function nd(e,a,r){return r===void 0||(qa&1073741824)!==0&&($e&261930)===0?e.memoizedState=a:(e.memoizedState=r,e=hx(),be.lanes|=e,$n|=e,r)}function hp(e,a,r,c){return At(r,a)?r:Js.current!==null?(e=nd(e,r,c),At(e,a)||(st=!0),e):(qa&42)===0||(qa&1073741824)!==0&&($e&261930)===0?(st=!0,e.memoizedState=r):(e=hx(),be.lanes|=e,$n|=e,a)}function mp(e,a,r,c,f){var h=B.p;B.p=h!==0&&8>h?h:8;var y=z.T,w={};z.T=w,rd(e,!1,a,r);try{var R=f(),Y=z.S;if(Y!==null&&Y(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=JQ(R,c);fr(e,a,H,Ut(e))}else fr(e,a,c,Ut(e))}catch(F){fr(e,a,{then:function(){},status:"rejected",reason:F},Ut())}finally{B.p=h,y!==null&&w.types!==null&&(y.types=w.types),z.T=y}}function l2(){}function sd(e,a,r,c){if(e.tag!==5)throw Error(l(476));var f=pp(e).queue;mp(e,f,a,J,r===null?l2:function(){return xp(e),r(c)})}function pp(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:J},next:null};var r={};return a.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:r},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function xp(e){var a=pp(e);a.next===null&&(a=e.alternate.memoizedState),fr(e,a.next.queue,{},Ut())}function ld(){return mt(Nr)}function gp(){return et().memoizedState}function bp(){return et().memoizedState}function r2(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var r=Ut();e=yn(r);var c=Sn(a,e,r);c!==null&&(Pt(c,a,r),or(c,a,r)),a={cache:Xu()},e.payload=a;return}a=a.return}}function i2(e,a,r){var c=Ut();r={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ii(e)?yp(a,r):(r=Qu(e,a,r,c),r!==null&&(Pt(r,e,c),Sp(r,a,c)))}function vp(e,a,r){var c=Ut();fr(e,a,r,c)}function fr(e,a,r,c){var f={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ii(e))yp(a,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var y=a.lastRenderedState,w=h(y,r);if(f.hasEagerState=!0,f.eagerState=w,At(w,y))return Ni(e,a,f,0),Ge===null&&Pi(),!1}catch{}finally{}if(r=Qu(e,a,f,c),r!==null)return Pt(r,e,c),Sp(r,a,c),!0}return!1}function rd(e,a,r,c){if(c={lane:2,revertLane:Ed(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ii(e)){if(a)throw Error(l(479))}else a=Qu(e,r,c,2),a!==null&&Pt(a,e,2)}function Ii(e){var a=e.alternate;return e===be||a!==null&&a===be}function yp(e,a){el=Ui=!0;var r=e.pending;r===null?a.next=a:(a.next=r.next,r.next=a),e.pending=a}function Sp(e,a,r){if((r&4194048)!==0){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,$h(e,r)}}var hr={readContext:mt,use:Di,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};hr.useEffectEvent=Fe;var Qp={readContext:mt,use:Di,useCallback:function(e,a){return St().memoizedState=[e,a===void 0?null:a],e},useContext:mt,useEffect:rp,useImperativeHandle:function(e,a,r){r=r!=null?r.concat([e]):null,Bi(4194308,4,up.bind(null,a,e),r)},useLayoutEffect:function(e,a){return Bi(4194308,4,e,a)},useInsertionEffect:function(e,a){Bi(4,2,e,a)},useMemo:function(e,a){var r=St();a=a===void 0?null:a;var c=e();if(ms){fn(!0);try{e()}finally{fn(!1)}}return r.memoizedState=[c,a],c},useReducer:function(e,a,r){var c=St();if(r!==void 0){var f=r(a);if(ms){fn(!0);try{r(a)}finally{fn(!1)}}}else f=a;return c.memoizedState=c.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},c.queue=e,e=e.dispatch=i2.bind(null,be,e),[c.memoizedState,e]},useRef:function(e){var a=St();return e={current:e},a.memoizedState=e},useState:function(e){e=Ju(e);var a=e.queue,r=vp.bind(null,be,a);return a.dispatch=r,[e.memoizedState,r]},useDebugValue:ad,useDeferredValue:function(e,a){var r=St();return nd(r,e,a)},useTransition:function(){var e=Ju(!1);return e=mp.bind(null,be,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,r){var c=be,f=St();if(Pe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=a(),Ge===null)throw Error(l(349));($e&127)!==0||Gm(c,a,r)}f.memoizedState=r;var h={value:r,getSnapshot:a};return f.queue=h,rp(Dm.bind(null,c,h,e),[e]),c.flags|=2048,al(9,{destroy:void 0},Lm.bind(null,c,h,r,a),null),r},useId:function(){var e=St(),a=Ge.identifierPrefix;if(Pe){var r=Sa,c=ya;r=(c&~(1<<32-Zt(c)-1)).toString(32)+r,a="_"+a+"R_"+r,r=Gi++,0<r&&(a+="H"+r.toString(32)),a+="_"}else r=e2++,a="_"+a+"r_"+r.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:ld,useFormState:tp,useActionState:tp,useOptimistic:function(e){var a=St();a.memoizedState=a.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=r,a=rd.bind(null,be,!0,r),r.dispatch=a,[e,a]},useMemoCache:Iu,useCacheRefresh:function(){return St().memoizedState=r2.bind(null,be)},useEffectEvent:function(e){var a=St(),r={impl:e};return a.memoizedState=r,function(){if((Ze&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},id={readContext:mt,use:Di,useCallback:Op,useContext:mt,useEffect:td,useImperativeHandle:dp,useInsertionEffect:op,useLayoutEffect:cp,useMemo:fp,useReducer:Wi,useRef:lp,useState:function(){return Wi(Ma)},useDebugValue:ad,useDeferredValue:function(e,a){var r=et();return hp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Wi(Ma)[0],a=et().memoizedState;return[typeof e=="boolean"?e:Or(e),a]},useSyncExternalStore:Um,useId:gp,useHostTransitionStatus:ld,useFormState:ap,useActionState:ap,useOptimistic:function(e,a){var r=et();return Hm(r,Ye,e,a)},useMemoCache:Iu,useCacheRefresh:bp};id.useEffectEvent=ip;var jp={readContext:mt,use:Di,useCallback:Op,useContext:mt,useEffect:td,useImperativeHandle:dp,useInsertionEffect:op,useLayoutEffect:cp,useMemo:fp,useReducer:Ku,useRef:lp,useState:function(){return Ku(Ma)},useDebugValue:ad,useDeferredValue:function(e,a){var r=et();return Ye===null?nd(r,e,a):hp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Ku(Ma)[0],a=et().memoizedState;return[typeof e=="boolean"?e:Or(e),a]},useSyncExternalStore:Um,useId:gp,useHostTransitionStatus:ld,useFormState:sp,useActionState:sp,useOptimistic:function(e,a){var r=et();return Ye!==null?Hm(r,Ye,e,a):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Iu,useCacheRefresh:bp};jp.useEffectEvent=ip;function od(e,a,r,c){a=e.memoizedState,r=r(c,a),r=r==null?a:g({},a,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var cd={enqueueSetState:function(e,a,r){e=e._reactInternals;var c=Ut(),f=yn(c);f.payload=a,r!=null&&(f.callback=r),a=Sn(e,f,c),a!==null&&(Pt(a,e,c),or(a,e,c))},enqueueReplaceState:function(e,a,r){e=e._reactInternals;var c=Ut(),f=yn(c);f.tag=1,f.payload=a,r!=null&&(f.callback=r),a=Sn(e,f,c),a!==null&&(Pt(a,e,c),or(a,e,c))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var r=Ut(),c=yn(r);c.tag=2,a!=null&&(c.callback=a),a=Sn(e,c,r),a!==null&&(Pt(a,e,r),or(a,e,r))}};function wp(e,a,r,c,f,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,h,y):a.prototype&&a.prototype.isPureReactComponent?!er(r,c)||!er(f,h):!0}function kp(e,a,r,c){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(r,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(r,c),a.state!==e&&cd.enqueueReplaceState(a,a.state,null)}function ps(e,a){var r=a;if("ref"in a){r={};for(var c in a)c!=="ref"&&(r[c]=a[c])}if(e=e.defaultProps){r===a&&(r=g({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function $p(e){Ti(e)}function Tp(e){console.error(e)}function Pp(e){Ti(e)}function Fi(e,a){try{var r=e.onUncaughtError;r(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Np(e,a,r){try{var c=e.onCaughtError;c(r.value,{componentStack:r.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function ud(e,a,r){return r=yn(r),r.tag=3,r.payload={element:null},r.callback=function(){Fi(e,a)},r}function zp(e){return e=yn(e),e.tag=3,e}function Rp(e,a,r,c){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var h=c.value;e.payload=function(){return f(h)},e.callback=function(){Np(a,r,c)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Np(a,r,c),typeof f!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function o2(e,a,r,c,f){if(r.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=r.alternate,a!==null&&Bs(a,r,f,!0),r=qt.current,r!==null){switch(r.tag){case 31:case 13:return sa===null?co():r.alternate===null&&Ke===0&&(Ke=3),r.flags&=-257,r.flags|=65536,r.lanes=f,c===Ei?r.flags|=16384:(a=r.updateQueue,a===null?r.updateQueue=new Set([c]):a.add(c),_d(e,c,f)),!1;case 22:return r.flags|=65536,c===Ei?r.flags|=16384:(a=r.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},r.updateQueue=a):(r=a.retryQueue,r===null?a.retryQueue=new Set([c]):r.add(c)),_d(e,c,f)),!1}throw Error(l(435,r.tag))}return _d(e,c,f),co(),!1}if(Pe)return a=qt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,c!==Pu&&(e=Error(l(422),{cause:c}),nr(ea(e,r)))):(c!==Pu&&(a=Error(l(423),{cause:c}),nr(ea(a,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,c=ea(c,r),f=ud(e.stateNode,c,f),Mu(e,f),Ke!==4&&(Ke=2)),!1;var h=Error(l(520),{cause:c});if(h=ea(h,r),Sr===null?Sr=[h]:Sr.push(h),Ke!==4&&(Ke=2),a===null)return!0;c=ea(c,r),r=a;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=ud(r.stateNode,c,e),Mu(r,e),!1;case 1:if(a=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Tn===null||!Tn.has(h))))return r.flags|=65536,f&=-f,r.lanes|=f,f=zp(f),Rp(f,e,r,c),Mu(r,f),!1}r=r.return}while(r!==null);return!1}var dd=Error(l(461)),st=!1;function pt(e,a,r,c){a.child=e===null?Zm(a,null,r,c):hs(a,e.child,r,c)}function Cp(e,a,r,c,f){r=r.render;var h=a.ref;if("ref"in c){var y={};for(var w in c)w!=="ref"&&(y[w]=c[w])}else y=c;return us(a),c=Du(e,a,r,y,h,f),w=Wu(),e!==null&&!st?(Bu(e,a,f),Ya(e,a,f)):(Pe&&w&&$u(a),a.flags|=1,pt(e,a,c,f),a.child)}function Xp(e,a,r,c,f){if(e===null){var h=r.type;return typeof h=="function"&&!ju(h)&&h.defaultProps===void 0&&r.compare===null?(a.tag=15,a.type=h,_p(e,a,h,c,f)):(e=Ri(r.type,null,c,a,a.mode,f),e.ref=a.ref,e.return=a,a.child=e)}if(h=e.child,!bd(e,f)){var y=h.memoizedProps;if(r=r.compare,r=r!==null?r:er,r(y,c)&&e.ref===a.ref)return Ya(e,a,f)}return a.flags|=1,e=_a(h,c),e.ref=a.ref,e.return=a,a.child=e}function _p(e,a,r,c,f){if(e!==null){var h=e.memoizedProps;if(er(h,c)&&e.ref===a.ref)if(st=!1,a.pendingProps=c=h,bd(e,f))(e.flags&131072)!==0&&(st=!0);else return a.lanes=e.lanes,Ya(e,a,f)}return Od(e,a,r,c,f)}function Zp(e,a,r,c){var f=c.children,h=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(c=a.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~h}else c=0,a.child=null;return Ap(e,a,h,r,c)}if((r&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(a,h!==null?h.cachePool:null),h!==null?qm(a,h):Vu(),Mm(a);else return c=a.lanes=536870912,Ap(e,a,h!==null?h.baseLanes|r:r,r,c)}else h!==null?(Zi(a,h.cachePool),qm(a,h),jn(),a.memoizedState=null):(e!==null&&Zi(a,null),Vu(),jn());return pt(e,a,f,r),a.child}function mr(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ap(e,a,r,c,f){var h=Zu();return h=h===null?null:{parent:at._currentValue,pool:h},a.memoizedState={baseLanes:r,cachePool:h},e!==null&&Zi(a,null),Vu(),Mm(a),e!==null&&Bs(e,a,c,!0),a.childLanes=f,null}function Ki(e,a){return a=eo({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Ep(e,a,r){return hs(a,e.child,null,r),e=Ki(a,a.pendingProps),e.flags|=2,Mt(a),a.memoizedState=null,e}function c2(e,a,r){var c=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(Pe){if(c.mode==="hidden")return e=Ki(a,c),a.lanes=536870912,mr(null,e);if(Gu(a),(e=Le)?(e=Ix(e,na),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:pn!==null?{id:ya,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},r=ym(e),r.return=a,a.child=r,ht=a,Le=null)):e=null,e===null)throw gn(a);return a.lanes=536870912,null}return Ki(a,c)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(Gu(a),f)if(a.flags&256)a.flags&=-257,a=Ep(e,a,r);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(l(558));else if(st||Bs(e,a,r,!1),f=(r&e.childLanes)!==0,st||f){if(c=Ge,c!==null&&(y=Th(c,r),y!==0&&y!==h.retryLane))throw h.retryLane=y,rs(e,y),Pt(c,e,y),dd;co(),a=Ep(e,a,r)}else e=h.treeContext,Le=la(y.nextSibling),ht=a,Pe=!0,xn=null,na=!1,e!==null&&jm(a,e),a=Ki(a,c),a.flags|=4096;return a}return e=_a(e.child,{mode:c.mode,children:c.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Ji(e,a){var r=a.ref;if(r===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(a.flags|=4194816)}}function Od(e,a,r,c,f){return us(a),r=Du(e,a,r,c,void 0,f),c=Wu(),e!==null&&!st?(Bu(e,a,f),Ya(e,a,f)):(Pe&&c&&$u(a),a.flags|=1,pt(e,a,r,f),a.child)}function qp(e,a,r,c,f,h){return us(a),a.updateQueue=null,r=Vm(a,c,r,f),Ym(e),c=Wu(),e!==null&&!st?(Bu(e,a,h),Ya(e,a,h)):(Pe&&c&&$u(a),a.flags|=1,pt(e,a,r,h),a.child)}function Mp(e,a,r,c,f){if(us(a),a.stateNode===null){var h=Gs,y=r.contextType;typeof y=="object"&&y!==null&&(h=mt(y)),h=new r(c,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=cd,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=c,h.state=a.memoizedState,h.refs={},Eu(a),y=r.contextType,h.context=typeof y=="object"&&y!==null?mt(y):Gs,h.state=a.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(od(a,r,y,c),h.state=a.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&cd.enqueueReplaceState(h,h.state,null),ur(a,c,h,f),cr(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(e===null){h=a.stateNode;var w=a.memoizedProps,R=ps(r,w);h.props=R;var Y=h.context,H=r.contextType;y=Gs,typeof H=="object"&&H!==null&&(y=mt(H));var F=r.getDerivedStateFromProps;H=typeof F=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,H||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||Y!==y)&&kp(a,h,c,y),vn=!1;var V=a.memoizedState;h.state=V,ur(a,c,h,f),cr(),Y=a.memoizedState,w||V!==Y||vn?(typeof F=="function"&&(od(a,r,F,c),Y=a.memoizedState),(R=vn||wp(a,r,R,c,V,Y,y))?(H||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=Y),h.props=c,h.state=Y,h.context=y,c=R):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{h=a.stateNode,qu(e,a),y=a.memoizedProps,H=ps(r,y),h.props=H,F=a.pendingProps,V=h.context,Y=r.contextType,R=Gs,typeof Y=="object"&&Y!==null&&(R=mt(Y)),w=r.getDerivedStateFromProps,(Y=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==F||V!==R)&&kp(a,h,c,R),vn=!1,V=a.memoizedState,h.state=V,ur(a,c,h,f),cr();var L=a.memoizedState;y!==F||V!==L||vn||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof w=="function"&&(od(a,r,w,c),L=a.memoizedState),(H=vn||wp(a,r,H,c,V,L,R)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(Y||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(c,L,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(c,L,R)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=L),h.props=c,h.state=L,h.context=R,c=H):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),c=!1)}return h=c,Ji(e,a),c=(a.flags&128)!==0,h||c?(h=a.stateNode,r=c&&typeof r.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,e!==null&&c?(a.child=hs(a,e.child,null,f),a.child=hs(a,null,r,f)):pt(e,a,r,f),a.memoizedState=h.state,e=a.child):e=Ya(e,a,f),e}function Yp(e,a,r,c){return os(),a.flags|=256,pt(e,a,r,c),a.child}var fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hd(e){return{baseLanes:e,cachePool:Nm()}}function md(e,a,r){return e=e!==null?e.childLanes&~r:0,a&&(e|=Vt),e}function Vp(e,a,r){var c=a.pendingProps,f=!1,h=(a.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),y&&(f=!0,a.flags&=-129),y=(a.flags&32)!==0,a.flags&=-33,e===null){if(Pe){if(f?Qn(a):jn(),(e=Le)?(e=Ix(e,na),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:pn!==null?{id:ya,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},r=ym(e),r.return=a,a.child=r,ht=a,Le=null)):e=null,e===null)throw gn(a);return Fd(e)?a.lanes=32:a.lanes=536870912,null}var w=c.children;return c=c.fallback,f?(jn(),f=a.mode,w=eo({mode:"hidden",children:w},f),c=is(c,f,r,null),w.return=a,c.return=a,w.sibling=c,a.child=w,c=a.child,c.memoizedState=hd(r),c.childLanes=md(e,y,r),a.memoizedState=fd,mr(null,c)):(Qn(a),pd(a,w))}var R=e.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(h)a.flags&256?(Qn(a),a.flags&=-257,a=xd(e,a,r)):a.memoizedState!==null?(jn(),a.child=e.child,a.flags|=128,a=null):(jn(),w=c.fallback,f=a.mode,c=eo({mode:"visible",children:c.children},f),w=is(w,f,r,null),w.flags|=2,c.return=a,w.return=a,c.sibling=w,a.child=c,hs(a,e.child,null,r),c=a.child,c.memoizedState=hd(r),c.childLanes=md(e,y,r),a.memoizedState=fd,a=mr(null,c));else if(Qn(a),Fd(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var Y=y.dgst;y=Y,c=Error(l(419)),c.stack="",c.digest=y,nr({value:c,source:null,stack:null}),a=xd(e,a,r)}else if(st||Bs(e,a,r,!1),y=(r&e.childLanes)!==0,st||y){if(y=Ge,y!==null&&(c=Th(y,r),c!==0&&c!==R.retryLane))throw R.retryLane=c,rs(e,c),Pt(y,e,c),dd;Id(w)||co(),a=xd(e,a,r)}else Id(w)?(a.flags|=192,a.child=e.child,a=null):(e=R.treeContext,Le=la(w.nextSibling),ht=a,Pe=!0,xn=null,na=!1,e!==null&&jm(a,e),a=pd(a,c.children),a.flags|=4096);return a}return f?(jn(),w=c.fallback,f=a.mode,R=e.child,Y=R.sibling,c=_a(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,Y!==null?w=_a(Y,w):(w=is(w,f,r,null),w.flags|=2),w.return=a,c.return=a,c.sibling=w,a.child=c,mr(null,c),c=a.child,w=e.child.memoizedState,w===null?w=hd(r):(f=w.cachePool,f!==null?(R=at._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=Nm(),w={baseLanes:w.baseLanes|r,cachePool:f}),c.memoizedState=w,c.childLanes=md(e,y,r),a.memoizedState=fd,mr(e.child,c)):(Qn(a),r=e.child,e=r.sibling,r=_a(r,{mode:"visible",children:c.children}),r.return=a,r.sibling=null,e!==null&&(y=a.deletions,y===null?(a.deletions=[e],a.flags|=16):y.push(e)),a.child=r,a.memoizedState=null,r)}function pd(e,a){return a=eo({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function eo(e,a){return e=Et(22,e,null,a),e.lanes=0,e}function xd(e,a,r){return hs(a,e.child,null,r),e=pd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Up(e,a,r){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a),Ru(e.return,a,r)}function gd(e,a,r,c,f,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:r,tailMode:f,treeForkCount:h}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=r,y.tailMode=f,y.treeForkCount=h)}function Gp(e,a,r){var c=a.pendingProps,f=c.revealOrder,h=c.tail;c=c.children;var y=Je.current,w=(y&2)!==0;if(w?(y=y&1|2,a.flags|=128):y&=1,ve(Je,y),pt(e,a,c,r),c=Pe?ar:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Up(e,r,a);else if(e.tag===19)Up(e,r,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=a.child,f=null;r!==null;)e=r.alternate,e!==null&&Vi(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=a.child,a.child=null):(f=r.sibling,r.sibling=null),gd(a,!1,f,r,h,c);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=a.child,a.child=null;f!==null;){if(e=f.alternate,e!==null&&Vi(e)===null){a.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}gd(a,!0,r,null,h,c);break;case"together":gd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Ya(e,a,r){if(e!==null&&(a.dependencies=e.dependencies),$n|=a.lanes,(r&a.childLanes)===0)if(e!==null){if(Bs(e,a,r,!1),(r&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(l(153));if(a.child!==null){for(e=a.child,r=_a(e,e.pendingProps),a.child=r,r.return=a;e.sibling!==null;)e=e.sibling,r=r.sibling=_a(e,e.pendingProps),r.return=a;r.sibling=null}return a.child}function bd(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Xi(e)))}function u2(e,a,r){switch(a.tag){case 3:Ot(a,a.stateNode.containerInfo),bn(a,at,e.memoizedState.cache),os();break;case 27:case 5:tt(a);break;case 4:Ot(a,a.stateNode.containerInfo);break;case 10:bn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Gu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Qn(a),a.flags|=128,null):(r&a.child.childLanes)!==0?Vp(e,a,r):(Qn(a),e=Ya(e,a,r),e!==null?e.sibling:null);Qn(a);break;case 19:var f=(e.flags&128)!==0;if(c=(r&a.childLanes)!==0,c||(Bs(e,a,r,!1),c=(r&a.childLanes)!==0),f){if(c)return Gp(e,a,r);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ve(Je,Je.current),c)break;return null;case 22:return a.lanes=0,Zp(e,a,r,a.pendingProps);case 24:bn(a,at,e.memoizedState.cache)}return Ya(e,a,r)}function Lp(e,a,r){if(e!==null)if(e.memoizedProps!==a.pendingProps)st=!0;else{if(!bd(e,r)&&(a.flags&128)===0)return st=!1,u2(e,a,r);st=(e.flags&131072)!==0}else st=!1,Pe&&(a.flags&1048576)!==0&&Qm(a,ar,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(e=Os(a.elementType),a.type=e,typeof e=="function")ju(e)?(c=ps(e,c),a.tag=1,a=Mp(null,a,e,c,r)):(a.tag=0,a=Od(null,a,e,c,r));else{if(e!=null){var f=e.$$typeof;if(f===Z){a.tag=11,a=Cp(null,a,e,c,r);break e}else if(f===X){a.tag=14,a=Xp(null,a,e,c,r);break e}}throw a=de(e)||e,Error(l(306,a,""))}}return a;case 0:return Od(e,a,a.type,a.pendingProps,r);case 1:return c=a.type,f=ps(c,a.pendingProps),Mp(e,a,c,f,r);case 3:e:{if(Ot(a,a.stateNode.containerInfo),e===null)throw Error(l(387));c=a.pendingProps;var h=a.memoizedState;f=h.element,qu(e,a),ur(a,c,null,r);var y=a.memoizedState;if(c=y.cache,bn(a,at,c),c!==h.cache&&Cu(a,[at],r,!0),cr(),c=y.element,h.isDehydrated)if(h={element:c,isDehydrated:!1,cache:y.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=Yp(e,a,c,r);break e}else if(c!==f){f=ea(Error(l(424)),a),nr(f),a=Yp(e,a,c,r);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=la(e.firstChild),ht=a,Pe=!0,xn=null,na=!0,r=Zm(a,null,c,r),a.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(os(),c===f){a=Ya(e,a,r);break e}pt(e,a,c,r)}a=a.child}return a;case 26:return Ji(e,a),e===null?(r=ag(a.type,null,a.pendingProps,null))?a.memoizedState=r:Pe||(r=a.type,e=a.pendingProps,c=xo(ie.current).createElement(r),c[ft]=a,c[Qt]=e,xt(c,r,e),ut(c),a.stateNode=c):a.memoizedState=ag(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return tt(a),e===null&&Pe&&(c=a.stateNode=Jx(a.type,a.pendingProps,ie.current),ht=a,na=!0,f=Le,Rn(a.type)?(Kd=f,Le=la(c.firstChild)):Le=f),pt(e,a,a.pendingProps.children,r),Ji(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&Pe&&((f=c=Le)&&(c=M2(c,a.type,a.pendingProps,na),c!==null?(a.stateNode=c,ht=a,Le=la(c.firstChild),na=!1,f=!0):f=!1),f||gn(a)),tt(a),f=a.type,h=a.pendingProps,y=e!==null?e.memoizedProps:null,c=h.children,Wd(f,h)?c=null:y!==null&&Wd(f,y)&&(a.flags|=32),a.memoizedState!==null&&(f=Du(e,a,t2,null,null,r),Nr._currentValue=f),Ji(e,a),pt(e,a,c,r),a.child;case 6:return e===null&&Pe&&((e=r=Le)&&(r=Y2(r,a.pendingProps,na),r!==null?(a.stateNode=r,ht=a,Le=null,e=!0):e=!1),e||gn(a)),null;case 13:return Vp(e,a,r);case 4:return Ot(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=hs(a,null,c,r):pt(e,a,c,r),a.child;case 11:return Cp(e,a,a.type,a.pendingProps,r);case 7:return pt(e,a,a.pendingProps,r),a.child;case 8:return pt(e,a,a.pendingProps.children,r),a.child;case 12:return pt(e,a,a.pendingProps.children,r),a.child;case 10:return c=a.pendingProps,bn(a,a.type,c.value),pt(e,a,c.children,r),a.child;case 9:return f=a.type._context,c=a.pendingProps.children,us(a),f=mt(f),c=c(f),a.flags|=1,pt(e,a,c,r),a.child;case 14:return Xp(e,a,a.type,a.pendingProps,r);case 15:return _p(e,a,a.type,a.pendingProps,r);case 19:return Gp(e,a,r);case 31:return c2(e,a,r);case 22:return Zp(e,a,r,a.pendingProps);case 24:return us(a),c=mt(at),e===null?(f=Zu(),f===null&&(f=Ge,h=Xu(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=r),f=h),a.memoizedState={parent:c,cache:f},Eu(a),bn(a,at,f)):((e.lanes&r)!==0&&(qu(e,a),ur(a,null,null,r),cr()),f=e.memoizedState,h=a.memoizedState,f.parent!==c?(f={parent:c,cache:c},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),bn(a,at,c)):(c=h.cache,bn(a,at,c),c!==f.cache&&Cu(a,[at],r,!0))),pt(e,a,a.pendingProps.children,r),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function Va(e){e.flags|=4}function vd(e,a,r,c,f){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(gx())e.flags|=8192;else throw fs=Ei,Au}else e.flags&=-16777217}function Dp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ig(a))if(gx())e.flags|=8192;else throw fs=Ei,Au}function to(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?wh():536870912,e.lanes|=a,rl|=a)}function pr(e,a){if(!Pe)switch(e.tailMode){case"hidden":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var c=null;r!==null;)r.alternate!==null&&(c=r),r=r.sibling;c===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function De(e){var a=e.alternate!==null&&e.alternate.child===e.child,r=0,c=0;if(a)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=r,a}function d2(e,a,r){var c=a.pendingProps;switch(Tu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(a),null;case 1:return De(a),null;case 3:return r=a.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Ea(at),_e(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(a)?Va(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Nu())),De(a),null;case 26:var f=a.type,h=a.memoizedState;return e===null?(Va(a),h!==null?(De(a),Dp(a,h)):(De(a),vd(a,f,null,c,r))):h?h!==e.memoizedState?(Va(a),De(a),Dp(a,h)):(De(a),a.flags&=-16777217):(e=e.memoizedProps,e!==c&&Va(a),De(a),vd(a,f,e,c,r)),null;case 27:if(bt(a),r=ie.current,f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return De(a),null}e=Xe.current,Ws(a)?wm(a):(e=Jx(f,c,r),a.stateNode=e,Va(a))}return De(a),null;case 5:if(bt(a),f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return De(a),null}if(h=Xe.current,Ws(a))wm(a);else{var y=xo(ie.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof c.is=="string"?y.createElement("select",{is:c.is}):y.createElement("select"),c.multiple?h.multiple=!0:c.size&&(h.size=c.size);break;default:h=typeof c.is=="string"?y.createElement(f,{is:c.is}):y.createElement(f)}}h[ft]=a,h[Qt]=c;e:for(y=a.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===a)break e;for(;y.sibling===null;){if(y.return===null||y.return===a)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}a.stateNode=h;e:switch(xt(h,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Va(a)}}return De(a),vd(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,r),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(l(166));if(e=ie.current,Ws(a)){if(e=a.stateNode,r=a.memoizedProps,c=null,f=ht,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}e[ft]=a,e=!!(e.nodeValue===r||c!==null&&c.suppressHydrationWarning===!0||Vx(e.nodeValue,r)),e||gn(a,!0)}else e=xo(e).createTextNode(c),e[ft]=a,a.stateNode=e}return De(a),null;case 31:if(r=a.memoizedState,e===null||e.memoizedState!==null){if(c=Ws(a),r!==null){if(e===null){if(!c)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;De(a),e=!1}else r=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return a.flags&256?(Mt(a),a):(Mt(a),null);if((a.flags&128)!==0)throw Error(l(558))}return De(a),null;case 13:if(c=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ws(a),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;De(a),f=!1}else f=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Mt(a),a):(Mt(a),null)}return Mt(a),(a.flags&128)!==0?(a.lanes=r,a):(r=c!==null,e=e!==null&&e.memoizedState!==null,r&&(c=a.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),h=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),h!==f&&(c.flags|=2048)),r!==e&&r&&(a.child.flags|=8192),to(a,a.updateQueue),De(a),null);case 4:return _e(),e===null&&Vd(a.stateNode.containerInfo),De(a),null;case 10:return Ea(a.type),De(a),null;case 19:if(Se(Je),c=a.memoizedState,c===null)return De(a),null;if(f=(a.flags&128)!==0,h=c.rendering,h===null)if(f)pr(c,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(h=Vi(e),h!==null){for(a.flags|=128,pr(c,!1),e=h.updateQueue,a.updateQueue=e,to(a,e),a.subtreeFlags=0,e=r,r=a.child;r!==null;)vm(r,e),r=r.sibling;return ve(Je,Je.current&1|2),Pe&&Za(a,c.treeForkCount),a.child}e=e.sibling}c.tail!==null&&Xt()>ro&&(a.flags|=128,f=!0,pr(c,!1),a.lanes=4194304)}else{if(!f)if(e=Vi(h),e!==null){if(a.flags|=128,f=!0,e=e.updateQueue,a.updateQueue=e,to(a,e),pr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Pe)return De(a),null}else 2*Xt()-c.renderingStartTime>ro&&r!==536870912&&(a.flags|=128,f=!0,pr(c,!1),a.lanes=4194304);c.isBackwards?(h.sibling=a.child,a.child=h):(e=c.last,e!==null?e.sibling=h:a.child=h,c.last=h)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Xt(),e.sibling=null,r=Je.current,ve(Je,f?r&1|2:r&1),Pe&&Za(a,c.treeForkCount),e):(De(a),null);case 22:case 23:return Mt(a),Uu(),c=a.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(r&536870912)!==0&&(a.flags&128)===0&&(De(a),a.subtreeFlags&6&&(a.flags|=8192)):De(a),r=a.updateQueue,r!==null&&to(a,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048),e!==null&&Se(ds),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),a.memoizedState.cache!==r&&(a.flags|=2048),Ea(at),De(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function O2(e,a){switch(Tu(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Ea(at),_e(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return bt(a),null;case 31:if(a.memoizedState!==null){if(Mt(a),a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Mt(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Se(Je),null;case 4:return _e(),null;case 10:return Ea(a.type),null;case 22:case 23:return Mt(a),Uu(),e!==null&&Se(ds),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Ea(at),null;case 25:return null;default:return null}}function Wp(e,a){switch(Tu(a),a.tag){case 3:Ea(at),_e();break;case 26:case 27:case 5:bt(a);break;case 4:_e();break;case 31:a.memoizedState!==null&&Mt(a);break;case 13:Mt(a);break;case 19:Se(Je);break;case 10:Ea(a.type);break;case 22:case 23:Mt(a),Uu(),e!==null&&Se(ds);break;case 24:Ea(at)}}function xr(e,a){try{var r=a.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){c=void 0;var h=r.create,y=r.inst;c=h(),y.destroy=c}r=r.next}while(r!==f)}}catch(w){Me(a,a.return,w)}}function wn(e,a,r){try{var c=a.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var h=f.next;c=h;do{if((c.tag&e)===e){var y=c.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,f=a;var R=r,Y=w;try{Y()}catch(H){Me(f,R,H)}}}c=c.next}while(c!==h)}}catch(H){Me(a,a.return,H)}}function Bp(e){var a=e.updateQueue;if(a!==null){var r=e.stateNode;try{Em(a,r)}catch(c){Me(e,e.return,c)}}}function Hp(e,a,r){r.props=ps(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(c){Me(e,a,c)}}function gr(e,a){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof r=="function"?e.refCleanup=r(c):r.current=c}}catch(f){Me(e,a,f)}}function Qa(e,a){var r=e.ref,c=e.refCleanup;if(r!==null)if(typeof c=="function")try{c()}catch(f){Me(e,a,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Me(e,a,f)}else r.current=null}function Ip(e){var a=e.type,r=e.memoizedProps,c=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":r.autoFocus&&c.focus();break e;case"img":r.src?c.src=r.src:r.srcSet&&(c.srcset=r.srcSet)}}catch(f){Me(e,e.return,f)}}function yd(e,a,r){try{var c=e.stateNode;X2(c,e.type,r,a),c[Qt]=a}catch(f){Me(e,e.return,f)}}function Fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Rn(e.type)||e.tag===4}function Sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Rn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qd(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,a):(a=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.appendChild(e),r=r._reactRootContainer,r!=null||a.onclick!==null||(a.onclick=Ca));else if(c!==4&&(c===27&&Rn(e.type)&&(r=e.stateNode,a=null),e=e.child,e!==null))for(Qd(e,a,r),e=e.sibling;e!==null;)Qd(e,a,r),e=e.sibling}function ao(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?r.insertBefore(e,a):r.appendChild(e);else if(c!==4&&(c===27&&Rn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(ao(e,a,r),e=e.sibling;e!==null;)ao(e,a,r),e=e.sibling}function Kp(e){var a=e.stateNode,r=e.memoizedProps;try{for(var c=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);xt(a,c,r),a[ft]=e,a[Qt]=r}catch(h){Me(e,e.return,h)}}var Ua=!1,lt=!1,jd=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,dt=null;function f2(e,a){if(e=e.containerInfo,Ld=jo,e=dm(e),xu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var c=r.getSelection&&r.getSelection();if(c&&c.rangeCount!==0){r=c.anchorNode;var f=c.anchorOffset,h=c.focusNode;c=c.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var y=0,w=-1,R=-1,Y=0,H=0,F=e,V=null;t:for(;;){for(var L;F!==r||f!==0&&F.nodeType!==3||(w=y+f),F!==h||c!==0&&F.nodeType!==3||(R=y+c),F.nodeType===3&&(y+=F.nodeValue.length),(L=F.firstChild)!==null;)V=F,F=L;for(;;){if(F===e)break t;if(V===r&&++Y===f&&(w=y),V===h&&++H===c&&(R=y),(L=F.nextSibling)!==null)break;F=V,V=F.parentNode}F=L}r=w===-1||R===-1?null:{start:w,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dd={focusedElem:e,selectionRange:r},jo=!1,dt=a;dt!==null;)if(a=dt,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,dt=e;else for(;dt!==null;){switch(a=dt,h=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=a,f=h.memoizedProps,h=h.memoizedState,c=r.stateNode;try{var oe=ps(r.type,f);e=c.getSnapshotBeforeUpdate(oe,h),c.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Me(r,r.return,xe)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,r=e.nodeType,r===9)Hd(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=a.sibling,e!==null){e.return=a.return,dt=e;break}dt=a.return}}function ex(e,a,r){var c=r.flags;switch(r.tag){case 0:case 11:case 15:La(e,r),c&4&&xr(5,r);break;case 1:if(La(e,r),c&4)if(e=r.stateNode,a===null)try{e.componentDidMount()}catch(y){Me(r,r.return,y)}else{var f=ps(r.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(f,a,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Me(r,r.return,y)}}c&64&&Bp(r),c&512&&gr(r,r.return);break;case 3:if(La(e,r),c&64&&(e=r.updateQueue,e!==null)){if(a=null,r.child!==null)switch(r.child.tag){case 27:case 5:a=r.child.stateNode;break;case 1:a=r.child.stateNode}try{Em(e,a)}catch(y){Me(r,r.return,y)}}break;case 27:a===null&&c&4&&Kp(r);case 26:case 5:La(e,r),a===null&&c&4&&Ip(r),c&512&&gr(r,r.return);break;case 12:La(e,r);break;case 31:La(e,r),c&4&&nx(e,r);break;case 13:La(e,r),c&4&&sx(e,r),c&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=S2.bind(null,r),V2(e,r))));break;case 22:if(c=r.memoizedState!==null||Ua,!c){a=a!==null&&a.memoizedState!==null||lt,f=Ua;var h=lt;Ua=c,(lt=a)&&!h?Da(e,r,(r.subtreeFlags&8772)!==0):La(e,r),Ua=f,lt=h}break;case 30:break;default:La(e,r)}}function tx(e){var a=e.alternate;a!==null&&(e.alternate=null,tx(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&eu(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,wt=!1;function Ga(e,a,r){for(r=r.child;r!==null;)ax(e,a,r),r=r.sibling}function ax(e,a,r){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Vl,r)}catch{}switch(r.tag){case 26:lt||Qa(r,a),Ga(e,a,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:lt||Qa(r,a);var c=He,f=wt;Rn(r.type)&&(He=r.stateNode,wt=!1),Ga(e,a,r),$r(r.stateNode),He=c,wt=f;break;case 5:lt||Qa(r,a);case 6:if(c=He,f=wt,He=null,Ga(e,a,r),He=c,wt=f,He!==null)if(wt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(r.stateNode)}catch(h){Me(r,a,h)}else try{He.removeChild(r.stateNode)}catch(h){Me(r,a,h)}break;case 18:He!==null&&(wt?(e=He,Bx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),hl(e)):Bx(He,r.stateNode));break;case 4:c=He,f=wt,He=r.stateNode.containerInfo,wt=!0,Ga(e,a,r),He=c,wt=f;break;case 0:case 11:case 14:case 15:wn(2,r,a),lt||wn(4,r,a),Ga(e,a,r);break;case 1:lt||(Qa(r,a),c=r.stateNode,typeof c.componentWillUnmount=="function"&&Hp(r,a,c)),Ga(e,a,r);break;case 21:Ga(e,a,r);break;case 22:lt=(c=lt)||r.memoizedState!==null,Ga(e,a,r),lt=c;break;default:Ga(e,a,r)}}function nx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hl(e)}catch(r){Me(a,a.return,r)}}}function sx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hl(e)}catch(r){Me(a,a.return,r)}}function h2(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Jp),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Jp),a;default:throw Error(l(435,e.tag))}}function no(e,a){var r=h2(e);a.forEach(function(c){if(!r.has(c)){r.add(c);var f=Q2.bind(null,e,c);c.then(f,f)}})}function kt(e,a){var r=a.deletions;if(r!==null)for(var c=0;c<r.length;c++){var f=r[c],h=e,y=a,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Rn(w.type)){He=w.stateNode,wt=!1;break e}break;case 5:He=w.stateNode,wt=!1;break e;case 3:case 4:He=w.stateNode.containerInfo,wt=!0;break e}w=w.return}if(He===null)throw Error(l(160));ax(h,y,f),He=null,wt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)lx(a,e),a=a.sibling}var Oa=null;function lx(e,a){var r=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(a,e),$t(e),c&4&&(wn(3,e,e.return),xr(3,e),wn(5,e,e.return));break;case 1:kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),c&64&&Ua&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?c:r.concat(c))));break;case 26:var f=Oa;if(kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),c&4){var h=r!==null?r.memoizedState:null;if(c=e.memoizedState,r===null)if(c===null)if(e.stateNode===null){e:{c=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Ll]||h[ft]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(c),f.head.insertBefore(h,f.querySelector("head > title"))),xt(h,c,r),h[ft]=e,ut(h),c=h;break e;case"link":var y=lg("link","href",f).get(c+(r.href||""));if(y){for(var w=0;w<y.length;w++)if(h=y[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){y.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;case"meta":if(y=lg("meta","content",f).get(c+(r.content||""))){for(w=0;w<y.length;w++)if(h=y[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){y.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;default:throw Error(l(468,c))}h[ft]=e,ut(h),c=h}e.stateNode=c}else rg(f,e.type,e.stateNode);else e.stateNode=sg(f,c,e.memoizedProps);else h!==c?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,c===null?rg(f,e.type,e.stateNode):sg(f,c,e.memoizedProps)):c===null&&e.stateNode!==null&&yd(e,e.memoizedProps,r.memoizedProps)}break;case 27:kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),r!==null&&c&4&&yd(e,e.memoizedProps,r.memoizedProps);break;case 5:if(kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),e.flags&32){f=e.stateNode;try{As(f,"")}catch(oe){Me(e,e.return,oe)}}c&4&&e.stateNode!=null&&(f=e.memoizedProps,yd(e,f,r!==null?r.memoizedProps:f)),c&1024&&(jd=!0);break;case 6:if(kt(a,e),$t(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,r=e.stateNode;try{r.nodeValue=c}catch(oe){Me(e,e.return,oe)}}break;case 3:if(vo=null,f=Oa,Oa=go(a.containerInfo),kt(a,e),Oa=f,$t(e),c&4&&r!==null&&r.memoizedState.isDehydrated)try{hl(a.containerInfo)}catch(oe){Me(e,e.return,oe)}jd&&(jd=!1,rx(e));break;case 4:c=Oa,Oa=go(e.stateNode.containerInfo),kt(a,e),$t(e),Oa=c;break;case 12:kt(a,e),$t(e);break;case 31:kt(a,e),$t(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 13:kt(a,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(lo=Xt()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 22:f=e.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,Y=Ua,H=lt;if(Ua=Y||f,lt=H||R,kt(a,e),lt=H,Ua=Y,$t(e),c&8192)e:for(a=e.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(r===null||R||Ua||lt||xs(e)),r=null,a=e;;){if(a.tag===5||a.tag===26){if(r===null){R=r=a;try{if(h=R.stateNode,f)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=R.stateNode;var F=R.memoizedProps.style,V=F!=null&&F.hasOwnProperty("display")?F.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(oe){Me(R,R.return,oe)}}}else if(a.tag===6){if(r===null){R=a;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(oe){Me(R,R.return,oe)}}}else if(a.tag===18){if(r===null){R=a;try{var L=R.stateNode;f?Hx(L,!0):Hx(R.stateNode,!1)}catch(oe){Me(R,R.return,oe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;r===a&&(r=null),a=a.return}r===a&&(r=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=e.updateQueue,c!==null&&(r=c.retryQueue,r!==null&&(c.retryQueue=null,no(e,r))));break;case 19:kt(a,e),$t(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 30:break;case 21:break;default:kt(a,e),$t(e)}}function $t(e){var a=e.flags;if(a&2){try{for(var r,c=e.return;c!==null;){if(Fp(c)){r=c;break}c=c.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,h=Sd(e);ao(e,h,f);break;case 5:var y=r.stateNode;r.flags&32&&(As(y,""),r.flags&=-33);var w=Sd(e);ao(e,w,y);break;case 3:case 4:var R=r.stateNode.containerInfo,Y=Sd(e);Qd(e,Y,R);break;default:throw Error(l(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function rx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;rx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function La(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ex(e,a.alternate,a),a=a.sibling}function xs(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:wn(4,a,a.return),xs(a);break;case 1:Qa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&Hp(a,a.return,r),xs(a);break;case 27:$r(a.stateNode);case 26:case 5:Qa(a,a.return),xs(a);break;case 22:a.memoizedState===null&&xs(a);break;case 30:xs(a);break;default:xs(a)}e=e.sibling}}function Da(e,a,r){for(r=r&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,f=e,h=a,y=h.flags;switch(h.tag){case 0:case 11:case 15:Da(f,h,r),xr(4,h);break;case 1:if(Da(f,h,r),c=h,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Y){Me(c,c.return,Y)}if(c=h,f=c.updateQueue,f!==null){var w=c.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Am(R[f],w)}catch(Y){Me(c,c.return,Y)}}r&&y&64&&Bp(h),gr(h,h.return);break;case 27:Kp(h);case 26:case 5:Da(f,h,r),r&&c===null&&y&4&&Ip(h),gr(h,h.return);break;case 12:Da(f,h,r);break;case 31:Da(f,h,r),r&&y&4&&nx(f,h);break;case 13:Da(f,h,r),r&&y&4&&sx(f,h);break;case 22:h.memoizedState===null&&Da(f,h,r),gr(h,h.return);break;case 30:break;default:Da(f,h,r)}a=a.sibling}}function wd(e,a){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&sr(r))}function kd(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&sr(e))}function fa(e,a,r,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ix(e,a,r,c),a=a.sibling}function ix(e,a,r,c){var f=a.flags;switch(a.tag){case 0:case 11:case 15:fa(e,a,r,c),f&2048&&xr(9,a);break;case 1:fa(e,a,r,c);break;case 3:fa(e,a,r,c),f&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&sr(e)));break;case 12:if(f&2048){fa(e,a,r,c),e=a.stateNode;try{var h=a.memoizedProps,y=h.id,w=h.onPostCommit;typeof w=="function"&&w(y,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Me(a,a.return,R)}}else fa(e,a,r,c);break;case 31:fa(e,a,r,c);break;case 13:fa(e,a,r,c);break;case 23:break;case 22:h=a.stateNode,y=a.alternate,a.memoizedState!==null?h._visibility&2?fa(e,a,r,c):br(e,a):h._visibility&2?fa(e,a,r,c):(h._visibility|=2,nl(e,a,r,c,(a.subtreeFlags&10256)!==0||!1)),f&2048&&wd(y,a);break;case 24:fa(e,a,r,c),f&2048&&kd(a.alternate,a);break;default:fa(e,a,r,c)}}function nl(e,a,r,c,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=e,y=a,w=r,R=c,Y=y.flags;switch(y.tag){case 0:case 11:case 15:nl(h,y,w,R,f),xr(8,y);break;case 23:break;case 22:var H=y.stateNode;y.memoizedState!==null?H._visibility&2?nl(h,y,w,R,f):br(h,y):(H._visibility|=2,nl(h,y,w,R,f)),f&&Y&2048&&wd(y.alternate,y);break;case 24:nl(h,y,w,R,f),f&&Y&2048&&kd(y.alternate,y);break;default:nl(h,y,w,R,f)}a=a.sibling}}function br(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var r=e,c=a,f=c.flags;switch(c.tag){case 22:br(r,c),f&2048&&wd(c.alternate,c);break;case 24:br(r,c),f&2048&&kd(c.alternate,c);break;default:br(r,c)}a=a.sibling}}var vr=8192;function sl(e,a,r){if(e.subtreeFlags&vr)for(e=e.child;e!==null;)ox(e,a,r),e=e.sibling}function ox(e,a,r){switch(e.tag){case 26:sl(e,a,r),e.flags&vr&&e.memoizedState!==null&&ej(r,Oa,e.memoizedState,e.memoizedProps);break;case 5:sl(e,a,r);break;case 3:case 4:var c=Oa;Oa=go(e.stateNode.containerInfo),sl(e,a,r),Oa=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=vr,vr=16777216,sl(e,a,r),vr=c):sl(e,a,r));break;default:sl(e,a,r)}}function cx(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function yr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,dx(c,e)}cx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ux(e),e=e.sibling}function ux(e){switch(e.tag){case 0:case 11:case 15:yr(e),e.flags&2048&&wn(9,e,e.return);break;case 3:yr(e);break;case 12:yr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,so(e)):yr(e);break;default:yr(e)}}function so(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,dx(c,e)}cx(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:wn(8,a,a.return),so(a);break;case 22:r=a.stateNode,r._visibility&2&&(r._visibility&=-3,so(a));break;default:so(a)}e=e.sibling}}function dx(e,a){for(;dt!==null;){var r=dt;switch(r.tag){case 0:case 11:case 15:wn(8,r,a);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var c=r.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:sr(r.memoizedState.cache)}if(c=r.child,c!==null)c.return=r,dt=c;else e:for(r=e;dt!==null;){c=dt;var f=c.sibling,h=c.return;if(tx(c),c===r){dt=null;break e}if(f!==null){f.return=h,dt=f;break e}dt=h}}}var m2={getCacheForType:function(e){var a=mt(at),r=a.data.get(e);return r===void 0&&(r=e(),a.data.set(e,r)),r},cacheSignal:function(){return mt(at).controller.signal}},p2=typeof WeakMap=="function"?WeakMap:Map,Ze=0,Ge=null,we=null,$e=0,qe=0,Yt=null,kn=!1,ll=!1,$d=!1,Wa=0,Ke=0,$n=0,gs=0,Td=0,Vt=0,rl=0,Sr=null,Tt=null,Pd=!1,lo=0,Ox=0,ro=1/0,io=null,Tn=null,it=0,Pn=null,il=null,Ba=0,Nd=0,zd=null,fx=null,Qr=0,Rd=null;function Ut(){return(Ze&2)!==0&&$e!==0?$e&-$e:z.T!==null?Ed():Ph()}function hx(){if(Vt===0)if(($e&536870912)===0||Pe){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),Vt=e}else Vt=536870912;return e=qt.current,e!==null&&(e.flags|=32),Vt}function Pt(e,a,r){(e===Ge&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ol(e,0),Nn(e,$e,Vt,!1)),Gl(e,r),((Ze&2)===0||e!==Ge)&&(e===Ge&&((Ze&2)===0&&(gs|=r),Ke===4&&Nn(e,$e,Vt,!1)),ja(e))}function mx(e,a,r){if((Ze&6)!==0)throw Error(l(327));var c=!r&&(a&127)===0&&(a&e.expiredLanes)===0||Ul(e,a),f=c?b2(e,a):Xd(e,a,!0),h=c;do{if(f===0){ll&&!c&&Nn(e,a,0,!1);break}else{if(r=e.current.alternate,h&&!x2(r)){f=Xd(e,a,!1),h=!1;continue}if(f===2){if(h=a,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){a=y;e:{var w=e;f=Sr;var R=w.current.memoizedState.isDehydrated;if(R&&(ol(w,y).flags|=256),y=Xd(w,y,!1),y!==2){if($d&&!R){w.errorRecoveryDisabledLanes|=h,gs|=h,f=4;break e}h=Tt,Tt=f,h!==null&&(Tt===null?Tt=h:Tt.push.apply(Tt,h))}f=y}if(h=!1,f!==2)continue}}if(f===1){ol(e,0),Nn(e,a,0,!0);break}e:{switch(c=e,h=f,h){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:Nn(c,a,Vt,!kn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(f=lo+300-Xt(),10<f)){if(Nn(c,a,Vt,!kn),xi(c,0,!0)!==0)break e;Ba=a,c.timeoutHandle=Dx(px.bind(null,c,r,Tt,io,Pd,a,Vt,gs,rl,kn,h,"Throttled",-0,0),f);break e}px(c,r,Tt,io,Pd,a,Vt,gs,rl,kn,h,null,-0,0)}}break}while(!0);ja(e)}function px(e,a,r,c,f,h,y,w,R,Y,H,F,V,L){if(e.timeoutHandle=-1,F=a.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ca},ox(a,h,F);var oe=(h&62914560)===h?lo-Xt():(h&4194048)===h?Ox-Xt():0;if(oe=tj(F,oe),oe!==null){Ba=h,e.cancelPendingCommit=oe(jx.bind(null,e,a,h,r,c,f,y,w,R,H,F,null,V,L)),Nn(e,h,y,!Y);return}}jx(e,a,h,r,c,f,y,w,R)}function x2(e){for(var a=e;;){var r=a.tag;if((r===0||r===11||r===15)&&a.flags&16384&&(r=a.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var c=0;c<r.length;c++){var f=r[c],h=f.getSnapshot;f=f.value;try{if(!At(h(),f))return!1}catch{return!1}}if(r=a.child,a.subtreeFlags&16384&&r!==null)r.return=a,a=r;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Nn(e,a,r,c){a&=~Td,a&=~gs,e.suspendedLanes|=a,e.pingedLanes&=~a,c&&(e.warmLanes|=a),c=e.expirationTimes;for(var f=a;0<f;){var h=31-Zt(f),y=1<<h;c[h]=-1,f&=~y}r!==0&&kh(e,r,a)}function oo(){return(Ze&6)===0?(jr(0),!1):!0}function Cd(){if(we!==null){if(qe===0)var e=we.return;else e=we,Aa=cs=null,Hu(e),Ks=null,rr=0,e=we;for(;e!==null;)Wp(e.alternate,e),e=e.return;we=null}}function ol(e,a){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,A2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ba=0,Cd(),Ge=e,we=r=_a(e.current,null),$e=a,qe=0,Yt=null,kn=!1,ll=Ul(e,a),$d=!1,rl=Vt=Td=gs=$n=Ke=0,Tt=Sr=null,Pd=!1,(a&8)!==0&&(a|=a&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=a;0<c;){var f=31-Zt(c),h=1<<f;a|=e[f],c&=~h}return Wa=a,Pi(),r}function xx(e,a){be=null,z.H=hr,a===Fs||a===Ai?(a=Cm(),qe=3):a===Au?(a=Cm(),qe=4):qe=a===dd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Yt=a,we===null&&(Ke=1,Fi(e,ea(a,e.current)))}function gx(){var e=qt.current;return e===null?!0:($e&4194048)===$e?sa===null:($e&62914560)===$e||($e&536870912)!==0?e===sa:!1}function bx(){var e=z.H;return z.H=hr,e===null?hr:e}function vx(){var e=z.A;return z.A=m2,e}function co(){Ke=4,kn||($e&4194048)!==$e&&qt.current!==null||(ll=!0),($n&134217727)===0&&(gs&134217727)===0||Ge===null||Nn(Ge,$e,Vt,!1)}function Xd(e,a,r){var c=Ze;Ze|=2;var f=bx(),h=vx();(Ge!==e||$e!==a)&&(io=null,ol(e,a)),a=!1;var y=Ke;e:do try{if(qe!==0&&we!==null){var w=we,R=Yt;switch(qe){case 8:Cd(),y=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(a=!0);var Y=qe;if(qe=0,Yt=null,cl(e,w,R,Y),r&&ll){y=0;break e}break;default:Y=qe,qe=0,Yt=null,cl(e,w,R,Y)}}g2(),y=Ke;break}catch(H){xx(e,H)}while(!0);return a&&e.shellSuspendCounter++,Aa=cs=null,Ze=c,z.H=f,z.A=h,we===null&&(Ge=null,$e=0,Pi()),y}function g2(){for(;we!==null;)yx(we)}function b2(e,a){var r=Ze;Ze|=2;var c=bx(),f=vx();Ge!==e||$e!==a?(io=null,ro=Xt()+500,ol(e,a)):ll=Ul(e,a);e:do try{if(qe!==0&&we!==null){a=we;var h=Yt;t:switch(qe){case 1:qe=0,Yt=null,cl(e,a,h,1);break;case 2:case 9:if(zm(h)){qe=0,Yt=null,Sx(a);break}a=function(){qe!==2&&qe!==9||Ge!==e||(qe=7),ja(e)},h.then(a,a);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:zm(h)?(qe=0,Yt=null,Sx(a)):(qe=0,Yt=null,cl(e,a,h,7));break;case 5:var y=null;switch(we.tag){case 26:y=we.memoizedState;case 5:case 27:var w=we;if(y?ig(y):w.stateNode.complete){qe=0,Yt=null;var R=w.sibling;if(R!==null)we=R;else{var Y=w.return;Y!==null?(we=Y,uo(Y)):we=null}break t}}qe=0,Yt=null,cl(e,a,h,5);break;case 6:qe=0,Yt=null,cl(e,a,h,6);break;case 8:Cd(),Ke=6;break e;default:throw Error(l(462))}}v2();break}catch(H){xx(e,H)}while(!0);return Aa=cs=null,z.H=c,z.A=f,Ze=r,we!==null?0:(Ge=null,$e=0,Pi(),Ke)}function v2(){for(;we!==null&&!US();)yx(we)}function yx(e){var a=Lp(e.alternate,e,Wa);e.memoizedProps=e.pendingProps,a===null?uo(e):we=a}function Sx(e){var a=e,r=a.alternate;switch(a.tag){case 15:case 0:a=qp(r,a,a.pendingProps,a.type,void 0,$e);break;case 11:a=qp(r,a,a.pendingProps,a.type.render,a.ref,$e);break;case 5:Hu(a);default:Wp(r,a),a=we=vm(a,Wa),a=Lp(r,a,Wa)}e.memoizedProps=e.pendingProps,a===null?uo(e):we=a}function cl(e,a,r,c){Aa=cs=null,Hu(a),Ks=null,rr=0;var f=a.return;try{if(o2(e,f,a,r,$e)){Ke=1,Fi(e,ea(r,e.current)),we=null;return}}catch(h){if(f!==null)throw we=f,h;Ke=1,Fi(e,ea(r,e.current)),we=null;return}a.flags&32768?(Pe||c===1?e=!0:ll||($e&536870912)!==0?e=!1:(kn=e=!0,(c===2||c===9||c===3||c===6)&&(c=qt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Qx(a,e)):uo(a)}function uo(e){var a=e;do{if((a.flags&32768)!==0){Qx(a,kn);return}e=a.return;var r=d2(a.alternate,a,Wa);if(r!==null){we=r;return}if(a=a.sibling,a!==null){we=a;return}we=a=e}while(a!==null);Ke===0&&(Ke=5)}function Qx(e,a){do{var r=O2(e.alternate,e);if(r!==null){r.flags&=32767,we=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!a&&(e=e.sibling,e!==null)){we=e;return}we=e=r}while(e!==null);Ke=6,we=null}function jx(e,a,r,c,f,h,y,w,R){e.cancelPendingCommit=null;do Oo();while(it!==0);if((Ze&6)!==0)throw Error(l(327));if(a!==null){if(a===e.current)throw Error(l(177));if(h=a.lanes|a.childLanes,h|=Su,JS(e,r,h,y,w,R),e===Ge&&(we=Ge=null,$e=0),il=a,Pn=e,Ba=r,Nd=h,zd=f,fx=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,j2(fi,function(){return Px(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null,f=B.p,B.p=2,y=Ze,Ze|=4;try{f2(e,a,r)}finally{Ze=y,B.p=f,z.T=c}}it=1,wx(),kx(),$x()}}function wx(){if(it===1){it=0;var e=Pn,a=il,r=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{lx(a,e);var h=Dd,y=dm(e.containerInfo),w=h.focusedElem,R=h.selectionRange;if(y!==w&&w&&w.ownerDocument&&um(w.ownerDocument.documentElement,w)){if(R!==null&&xu(w)){var Y=R.start,H=R.end;if(H===void 0&&(H=Y),"selectionStart"in w)w.selectionStart=Y,w.selectionEnd=Math.min(H,w.value.length);else{var F=w.ownerDocument||document,V=F&&F.defaultView||window;if(V.getSelection){var L=V.getSelection(),oe=w.textContent.length,xe=Math.min(R.start,oe),Ue=R.end===void 0?xe:Math.min(R.end,oe);!L.extend&&xe>Ue&&(y=Ue,Ue=xe,xe=y);var q=cm(w,xe),_=cm(w,Ue);if(q&&_&&(L.rangeCount!==1||L.anchorNode!==q.node||L.anchorOffset!==q.offset||L.focusNode!==_.node||L.focusOffset!==_.offset)){var M=F.createRange();M.setStart(q.node,q.offset),L.removeAllRanges(),xe>Ue?(L.addRange(M),L.extend(_.node,_.offset)):(M.setEnd(_.node,_.offset),L.addRange(M))}}}}for(F=[],L=w;L=L.parentNode;)L.nodeType===1&&F.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<F.length;w++){var I=F[w];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}jo=!!Ld,Dd=Ld=null}finally{Ze=f,B.p=c,z.T=r}}e.current=a,it=2}}function kx(){if(it===2){it=0;var e=Pn,a=il,r=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{ex(e,a.alternate,a)}finally{Ze=f,B.p=c,z.T=r}}it=3}}function $x(){if(it===4||it===3){it=0,GS();var e=Pn,a=il,r=Ba,c=fx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?it=5:(it=0,il=Pn=null,Tx(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Tn=null),Kc(r),a=a.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Vl,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=z.T,f=B.p,B.p=2,z.T=null;try{for(var h=e.onRecoverableError,y=0;y<c.length;y++){var w=c[y];h(w.value,{componentStack:w.stack})}}finally{z.T=a,B.p=f}}(Ba&3)!==0&&Oo(),ja(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===Rd?Qr++:(Qr=0,Rd=e):Qr=0,jr(0)}}function Tx(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,sr(a)))}function Oo(){return wx(),kx(),$x(),Px()}function Px(){if(it!==5)return!1;var e=Pn,a=Nd;Nd=0;var r=Kc(Ba),c=z.T,f=B.p;try{B.p=32>r?32:r,z.T=null,r=zd,zd=null;var h=Pn,y=Ba;if(it=0,il=Pn=null,Ba=0,(Ze&6)!==0)throw Error(l(331));var w=Ze;if(Ze|=4,ux(h.current),ix(h,h.current,y,r),Ze=w,jr(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Vl,h)}catch{}return!0}finally{B.p=f,z.T=c,Tx(e,a)}}function Nx(e,a,r){a=ea(r,a),a=ud(e.stateNode,a,2),e=Sn(e,a,2),e!==null&&(Gl(e,2),ja(e))}function Me(e,a,r){if(e.tag===3)Nx(e,e,r);else for(;a!==null;){if(a.tag===3){Nx(a,e,r);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Tn===null||!Tn.has(c))){e=ea(r,e),r=zp(2),c=Sn(a,r,2),c!==null&&(Rp(r,c,a,e),Gl(c,2),ja(c));break}}a=a.return}}function _d(e,a,r){var c=e.pingCache;if(c===null){c=e.pingCache=new p2;var f=new Set;c.set(a,f)}else f=c.get(a),f===void 0&&(f=new Set,c.set(a,f));f.has(r)||($d=!0,f.add(r),e=y2.bind(null,e,a,r),a.then(e,e))}function y2(e,a,r){var c=e.pingCache;c!==null&&c.delete(a),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ge===e&&($e&r)===r&&(Ke===4||Ke===3&&($e&62914560)===$e&&300>Xt()-lo?(Ze&2)===0&&ol(e,0):Td|=r,rl===$e&&(rl=0)),ja(e)}function zx(e,a){a===0&&(a=wh()),e=rs(e,a),e!==null&&(Gl(e,a),ja(e))}function S2(e){var a=e.memoizedState,r=0;a!==null&&(r=a.retryLane),zx(e,r)}function Q2(e,a){var r=0;switch(e.tag){case 31:case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(a),zx(e,r)}function j2(e,a){return Bc(e,a)}var fo=null,ul=null,Zd=!1,ho=!1,Ad=!1,zn=0;function ja(e){e!==ul&&e.next===null&&(ul===null?fo=ul=e:ul=ul.next=e),ho=!0,Zd||(Zd=!0,k2())}function jr(e,a){if(!Ad&&ho){Ad=!0;do for(var r=!1,c=fo;c!==null;){if(e!==0){var f=c.pendingLanes;if(f===0)var h=0;else{var y=c.suspendedLanes,w=c.pingedLanes;h=(1<<31-Zt(42|e)+1)-1,h&=f&~(y&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,_x(c,h))}else h=$e,h=xi(c,c===Ge?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(h&3)===0||Ul(c,h)||(r=!0,_x(c,h));c=c.next}while(r);Ad=!1}}function w2(){Rx()}function Rx(){ho=Zd=!1;var e=0;zn!==0&&Z2()&&(e=zn);for(var a=Xt(),r=null,c=fo;c!==null;){var f=c.next,h=Cx(c,a);h===0?(c.next=null,r===null?fo=f:r.next=f,f===null&&(ul=r)):(r=c,(e!==0||(h&3)!==0)&&(ho=!0)),c=f}it!==0&&it!==5||jr(e),zn!==0&&(zn=0)}function Cx(e,a){for(var r=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Zt(h),w=1<<y,R=f[y];R===-1?((w&r)===0||(w&c)!==0)&&(f[y]=KS(w,a)):R<=a&&(e.expiredLanes|=w),h&=~w}if(a=Ge,r=$e,r=xi(e,e===a?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,r===0||e===a&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&Hc(c),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Ul(e,r)){if(a=r&-r,a===e.callbackPriority)return a;switch(c!==null&&Hc(c),Kc(r)){case 2:case 8:r=Qh;break;case 32:r=fi;break;case 268435456:r=jh;break;default:r=fi}return c=Xx.bind(null,e),r=Bc(r,c),e.callbackPriority=a,e.callbackNode=r,a}return c!==null&&c!==null&&Hc(c),e.callbackPriority=2,e.callbackNode=null,2}function Xx(e,a){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Oo()&&e.callbackNode!==r)return null;var c=$e;return c=xi(e,e===Ge?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(mx(e,c,a),Cx(e,Xt()),e.callbackNode!=null&&e.callbackNode===r?Xx.bind(null,e):null)}function _x(e,a){if(Oo())return null;mx(e,a,!0)}function k2(){E2(function(){(Ze&6)!==0?Bc(Sh,w2):Rx()})}function Ed(){if(zn===0){var e=Hs;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),zn=e}return zn}function Zx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yi(""+e)}function Ax(e,a){var r=a.ownerDocument.createElement("input");return r.name=a.name,r.value=a.value,e.id&&r.setAttribute("form",e.id),a.parentNode.insertBefore(r,a),e=new FormData(e),r.parentNode.removeChild(r),e}function $2(e,a,r,c,f){if(a==="submit"&&r&&r.stateNode===f){var h=Zx((f[Qt]||null).action),y=c.submitter;y&&(a=(a=y[Qt]||null)?Zx(a.formAction):y.getAttribute("formAction"),a!==null&&(h=a,y=null));var w=new wi("action","action",null,c,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(zn!==0){var R=y?Ax(f,y):new FormData(f);sd(r,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(w.preventDefault(),R=y?Ax(f,y):new FormData(f),sd(r,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var qd=0;qd<yu.length;qd++){var Md=yu[qd],T2=Md.toLowerCase(),P2=Md[0].toUpperCase()+Md.slice(1);da(T2,"on"+P2)}da(hm,"onAnimationEnd"),da(mm,"onAnimationIteration"),da(pm,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(LQ,"onTransitionRun"),da(DQ,"onTransitionStart"),da(WQ,"onTransitionCancel"),da(xm,"onTransitionEnd"),_s("onMouseEnter",["mouseout","mouseover"]),_s("onMouseLeave",["mouseout","mouseover"]),_s("onPointerEnter",["pointerout","pointerover"]),_s("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),N2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wr));function Ex(e,a){a=(a&4)!==0;for(var r=0;r<e.length;r++){var c=e[r],f=c.event;c=c.listeners;e:{var h=void 0;if(a)for(var y=c.length-1;0<=y;y--){var w=c[y],R=w.instance,Y=w.currentTarget;if(w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){Ti(H)}f.currentTarget=null,h=R}else for(y=0;y<c.length;y++){if(w=c[y],R=w.instance,Y=w.currentTarget,w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){Ti(H)}f.currentTarget=null,h=R}}}}function ke(e,a){var r=a[Jc];r===void 0&&(r=a[Jc]=new Set);var c=e+"__bubble";r.has(c)||(qx(a,e,2,!1),r.add(c))}function Yd(e,a,r){var c=0;a&&(c|=4),qx(r,e,c,a)}var mo="_reactListening"+Math.random().toString(36).slice(2);function Vd(e){if(!e[mo]){e[mo]=!0,Rh.forEach(function(r){r!=="selectionchange"&&(N2.has(r)||Yd(r,!1,e),Yd(r,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[mo]||(a[mo]=!0,Yd("selectionchange",!1,a))}}function qx(e,a,r,c){switch(hg(a)){case 2:var f=sj;break;case 8:f=lj;break;default:f=nO}r=f.bind(null,a,r,e),f=void 0,!ou||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(a,r,{capture:!0,passive:f}):e.addEventListener(a,r,!0):f!==void 0?e.addEventListener(a,r,{passive:f}):e.addEventListener(a,r,!1)}function Ud(e,a,r,c,f){var h=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var y=c.tag;if(y===3||y===4){var w=c.stateNode.containerInfo;if(w===f)break;if(y===4)for(y=c.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;w!==null;){if(y=Rs(w),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){c=h=y;continue e}w=w.parentNode}}c=c.return}Gh(function(){var Y=h,H=ru(r),F=[];e:{var V=gm.get(e);if(V!==void 0){var L=wi,oe=e;switch(e){case"keypress":if(Qi(r)===0)break e;case"keydown":case"keyup":L=QQ;break;case"focusin":oe="focus",L=Ou;break;case"focusout":oe="blur",L=Ou;break;case"beforeblur":case"afterblur":L=Ou;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=dQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=kQ;break;case hm:case mm:case pm:L=hQ;break;case xm:L=TQ;break;case"scroll":case"scrollend":L=cQ;break;case"wheel":L=NQ;break;case"copy":case"cut":case"paste":L=pQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Hh;break;case"toggle":case"beforetoggle":L=RQ}var xe=(a&4)!==0,Ue=!xe&&(e==="scroll"||e==="scrollend"),q=xe?V!==null?V+"Capture":null:V;xe=[];for(var _=Y,M;_!==null;){var I=_;if(M=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||M===null||q===null||(I=Wl(_,q),I!=null&&xe.push(kr(_,I,M))),Ue)break;_=_.return}0<xe.length&&(V=new L(V,oe,null,r,H),F.push({event:V,listeners:xe}))}}if((a&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",V&&r!==lu&&(oe=r.relatedTarget||r.fromElement)&&(Rs(oe)||oe[zs]))break e;if((L||V)&&(V=H.window===H?H:(V=H.ownerDocument)?V.defaultView||V.parentWindow:window,L?(oe=r.relatedTarget||r.toElement,L=Y,oe=oe?Rs(oe):null,oe!==null&&(Ue=u(oe),xe=oe.tag,oe!==Ue||xe!==5&&xe!==27&&xe!==6)&&(oe=null)):(L=null,oe=Y),L!==oe)){if(xe=Wh,I="onMouseLeave",q="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Hh,I="onPointerLeave",q="onPointerEnter",_="pointer"),Ue=L==null?V:Dl(L),M=oe==null?V:Dl(oe),V=new xe(I,_+"leave",L,r,H),V.target=Ue,V.relatedTarget=M,I=null,Rs(H)===Y&&(xe=new xe(q,_+"enter",oe,r,H),xe.target=M,xe.relatedTarget=Ue,I=xe),Ue=I,L&&oe)t:{for(xe=z2,q=L,_=oe,M=0,I=q;I;I=xe(I))M++;I=0;for(var pe=_;pe;pe=xe(pe))I++;for(;0<M-I;)q=xe(q),M--;for(;0<I-M;)_=xe(_),I--;for(;M--;){if(q===_||_!==null&&q===_.alternate){xe=q;break t}q=xe(q),_=xe(_)}xe=null}else xe=null;L!==null&&Mx(F,V,L,xe,!1),oe!==null&&Ue!==null&&Mx(F,Ue,oe,xe,!0)}}e:{if(V=Y?Dl(Y):window,L=V.nodeName&&V.nodeName.toLowerCase(),L==="select"||L==="input"&&V.type==="file")var Re=nm;else if(tm(V))if(sm)Re=VQ;else{Re=MQ;var Oe=qQ}else L=V.nodeName,!L||L.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Y&&su(Y.elementType)&&(Re=nm):Re=YQ;if(Re&&(Re=Re(e,Y))){am(F,Re,r,H);break e}Oe&&Oe(e,V,Y),e==="focusout"&&Y&&V.type==="number"&&Y.memoizedProps.value!=null&&nu(V,"number",V.value)}switch(Oe=Y?Dl(Y):window,e){case"focusin":(tm(Oe)||Oe.contentEditable==="true")&&(Ys=Oe,gu=Y,tr=null);break;case"focusout":tr=gu=Ys=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Om(F,r,H);break;case"selectionchange":if(GQ)break;case"keydown":case"keyup":Om(F,r,H)}var ye;if(hu)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ms?Jh(e,r)&&(Te="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Te="onCompositionStart");Te&&(Ih&&r.locale!=="ko"&&(Ms||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ms&&(ye=Lh()):(mn=H,cu="value"in mn?mn.value:mn.textContent,Ms=!0)),Oe=po(Y,Te),0<Oe.length&&(Te=new Bh(Te,e,null,r,H),F.push({event:Te,listeners:Oe}),ye?Te.data=ye:(ye=em(r),ye!==null&&(Te.data=ye)))),(ye=XQ?_Q(e,r):ZQ(e,r))&&(Te=po(Y,"onBeforeInput"),0<Te.length&&(Oe=new Bh("onBeforeInput","beforeinput",null,r,H),F.push({event:Oe,listeners:Te}),Oe.data=ye)),$2(F,e,Y,r,H)}Ex(F,a)})}function kr(e,a,r){return{instance:e,listener:a,currentTarget:r}}function po(e,a){for(var r=a+"Capture",c=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Wl(e,r),f!=null&&c.unshift(kr(e,f,h)),f=Wl(e,a),f!=null&&c.push(kr(e,f,h))),e.tag===3)return c;e=e.return}return[]}function z2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mx(e,a,r,c,f){for(var h=a._reactName,y=[];r!==null&&r!==c;){var w=r,R=w.alternate,Y=w.stateNode;if(w=w.tag,R!==null&&R===c)break;w!==5&&w!==26&&w!==27||Y===null||(R=Y,f?(Y=Wl(r,h),Y!=null&&y.unshift(kr(r,Y,R))):f||(Y=Wl(r,h),Y!=null&&y.push(kr(r,Y,R)))),r=r.return}y.length!==0&&e.push({event:a,listeners:y})}var R2=/\r\n?/g,C2=/\u0000|\uFFFD/g;function Yx(e){return(typeof e=="string"?e:""+e).replace(R2,`
|
|
25
|
-
`).replace(C2,"")}function Vx(e,a){return a=Yx(a),Yx(e)===a}function Ve(e,a,r,c,f,h){switch(r){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||As(e,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&As(e,""+c);break;case"className":bi(e,"class",c);break;case"tabIndex":bi(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":bi(e,r,c);break;case"style":Vh(e,c,h);break;case"data":if(a!=="object"){bi(e,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||r!=="href")){e.removeAttribute(r);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=yi(""+c),e.setAttribute(r,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(r==="formAction"?(a!=="input"&&Ve(e,a,"name",f.name,f,null),Ve(e,a,"formEncType",f.formEncType,f,null),Ve(e,a,"formMethod",f.formMethod,f,null),Ve(e,a,"formTarget",f.formTarget,f,null)):(Ve(e,a,"encType",f.encType,f,null),Ve(e,a,"method",f.method,f,null),Ve(e,a,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=yi(""+c),e.setAttribute(r,c);break;case"onClick":c!=null&&(e.onclick=Ca);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}r=yi(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""+c):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":c===!0?e.setAttribute(r,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,c):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(r,c):e.removeAttribute(r);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(r):e.setAttribute(r,c);break;case"popover":ke("beforetoggle",e),ke("toggle",e),gi(e,"popover",c);break;case"xlinkActuate":Ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Ra(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Ra(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Ra(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Ra(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":gi(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=iQ.get(r)||r,gi(e,r,c))}}function Gd(e,a,r,c,f,h){switch(r){case"style":Vh(e,c,h);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof c=="string"?As(e,c):(typeof c=="number"||typeof c=="bigint")&&As(e,""+c);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"onClick":c!=null&&(e.onclick=Ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ch.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),a=r.slice(2,f?r.length-7:void 0),h=e[Qt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(a,h,f),typeof c=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(a,c,f);break e}r in e?e[r]=c:c===!0?e.setAttribute(r,""):gi(e,r,c)}}}function xt(e,a,r){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var c=!1,f=!1,h;for(h in r)if(r.hasOwnProperty(h)){var y=r[h];if(y!=null)switch(h){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,h,y,r,null)}}f&&Ve(e,a,"srcSet",r.srcSet,r,null),c&&Ve(e,a,"src",r.src,r,null);return;case"input":ke("invalid",e);var w=h=y=f=null,R=null,Y=null;for(c in r)if(r.hasOwnProperty(c)){var H=r[c];if(H!=null)switch(c){case"name":f=H;break;case"type":y=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":h=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,a));break;default:Ve(e,a,c,H,r,null)}}Eh(e,h,w,R,Y,y,f,!1);return;case"select":ke("invalid",e),c=y=h=null;for(f in r)if(r.hasOwnProperty(f)&&(w=r[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":y=w;break;case"multiple":c=w;default:Ve(e,a,f,w,r,null)}a=h,r=y,e.multiple=!!c,a!=null?Zs(e,!!c,a,!1):r!=null&&Zs(e,!!c,r,!0);return;case"textarea":ke("invalid",e),h=f=c=null;for(y in r)if(r.hasOwnProperty(y)&&(w=r[y],w!=null))switch(y){case"value":c=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,a,y,w,r,null)}Mh(e,c,f,h);return;case"option":for(R in r)if(r.hasOwnProperty(R)&&(c=r[R],c!=null))switch(R){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ve(e,a,R,c,r,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(c=0;c<wr.length;c++)ke(wr[c],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in r)if(r.hasOwnProperty(Y)&&(c=r[Y],c!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,Y,c,r,null)}return;default:if(su(a)){for(H in r)r.hasOwnProperty(H)&&(c=r[H],c!==void 0&&Gd(e,a,H,c,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(c=r[w],c!=null&&Ve(e,a,w,c,r,null))}function X2(e,a,r,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,y=null,w=null,R=null,Y=null,H=null;for(L in r){var F=r[L];if(r.hasOwnProperty(L)&&F!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":R=F;default:c.hasOwnProperty(L)||Ve(e,a,L,null,c,F)}}for(var V in c){var L=c[V];if(F=r[V],c.hasOwnProperty(V)&&(L!=null||F!=null))switch(V){case"type":h=L;break;case"name":f=L;break;case"checked":Y=L;break;case"defaultChecked":H=L;break;case"value":y=L;break;case"defaultValue":w=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,a));break;default:L!==F&&Ve(e,a,V,L,c,F)}}au(e,y,w,R,Y,H,h,f);return;case"select":L=y=w=V=null;for(h in r)if(R=r[h],r.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":L=R;default:c.hasOwnProperty(h)||Ve(e,a,h,null,c,R)}for(f in c)if(h=c[f],R=r[f],c.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":V=h;break;case"defaultValue":w=h;break;case"multiple":y=h;default:h!==R&&Ve(e,a,f,h,c,R)}a=w,r=y,c=L,V!=null?Zs(e,!!r,V,!1):!!c!=!!r&&(a!=null?Zs(e,!!r,a,!0):Zs(e,!!r,r?[]:"",!1));return;case"textarea":L=V=null;for(w in r)if(f=r[w],r.hasOwnProperty(w)&&f!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,a,w,null,c,f)}for(y in c)if(f=c[y],h=r[y],c.hasOwnProperty(y)&&(f!=null||h!=null))switch(y){case"value":V=f;break;case"defaultValue":L=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==h&&Ve(e,a,y,f,c,h)}qh(e,V,L);return;case"option":for(var oe in r)if(V=r[oe],r.hasOwnProperty(oe)&&V!=null&&!c.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ve(e,a,oe,null,c,V)}for(R in c)if(V=c[R],L=r[R],c.hasOwnProperty(R)&&V!==L&&(V!=null||L!=null))switch(R){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ve(e,a,R,V,c,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in r)V=r[xe],r.hasOwnProperty(xe)&&V!=null&&!c.hasOwnProperty(xe)&&Ve(e,a,xe,null,c,V);for(Y in c)if(V=c[Y],L=r[Y],c.hasOwnProperty(Y)&&V!==L&&(V!=null||L!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,a));break;default:Ve(e,a,Y,V,c,L)}return;default:if(su(a)){for(var Ue in r)V=r[Ue],r.hasOwnProperty(Ue)&&V!==void 0&&!c.hasOwnProperty(Ue)&&Gd(e,a,Ue,void 0,c,V);for(H in c)V=c[H],L=r[H],!c.hasOwnProperty(H)||V===L||V===void 0&&L===void 0||Gd(e,a,H,V,c,L);return}}for(var q in r)V=r[q],r.hasOwnProperty(q)&&V!=null&&!c.hasOwnProperty(q)&&Ve(e,a,q,null,c,V);for(F in c)V=c[F],L=r[F],!c.hasOwnProperty(F)||V===L||V==null&&L==null||Ve(e,a,F,V,c,L)}function Ux(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,r=performance.getEntriesByType("resource"),c=0;c<r.length;c++){var f=r[c],h=f.transferSize,y=f.initiatorType,w=f.duration;if(h&&w&&Ux(y)){for(y=0,w=f.responseEnd,c+=1;c<r.length;c++){var R=r[c],Y=R.startTime;if(Y>w)break;var H=R.transferSize,F=R.initiatorType;H&&Ux(F)&&(R=R.responseEnd,y+=H*(R<w?1:(w-Y)/(R-Y)))}if(--c,a+=8*(h+y)/(f.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ld=null,Dd=null;function xo(e){return e.nodeType===9?e:e.ownerDocument}function Gx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lx(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Wd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Bd=null;function Z2(){var e=window.event;return e&&e.type==="popstate"?e===Bd?!1:(Bd=e,!0):(Bd=null,!1)}var Dx=typeof setTimeout=="function"?setTimeout:void 0,A2=typeof clearTimeout=="function"?clearTimeout:void 0,Wx=typeof Promise=="function"?Promise:void 0,E2=typeof queueMicrotask=="function"?queueMicrotask:typeof Wx<"u"?function(e){return Wx.resolve(null).then(e).catch(q2)}:Dx;function q2(e){setTimeout(function(){throw e})}function Rn(e){return e==="head"}function Bx(e,a){var r=a,c=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(c===0){e.removeChild(f),hl(a);return}c--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")c++;else if(r==="html")$r(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,$r(r);for(var h=r.firstChild;h;){var y=h.nextSibling,w=h.nodeName;h[Ll]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=y}}else r==="body"&&$r(e.ownerDocument.body);r=f}while(r);hl(a)}function Hx(e,a){var r=e;e=0;do{var c=r.nextSibling;if(r.nodeType===1?a?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(a?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=c}while(r)}function Hd(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var r=a;switch(a=a.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Hd(r),eu(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function M2(e,a,r,c){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Ll])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=la(e.nextSibling),e===null)break}return null}function Y2(e,a,r){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=la(e.nextSibling),e===null))return null;return e}function Ix(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=la(e.nextSibling),e===null))return null;return e}function Id(e){return e.data==="$?"||e.data==="$~"}function Fd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function V2(e,a){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||r.readyState!=="loading")a();else{var c=function(){a(),r.removeEventListener("DOMContentLoaded",c)};r.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function la(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var Kd=null;function Fx(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(a===0)return la(e.nextSibling);a--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||a++}e=e.nextSibling}return null}function Kx(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(a===0)return e;a--}else r!=="/$"&&r!=="/&"||a++}e=e.previousSibling}return null}function Jx(e,a,r){switch(a=xo(r),e){case"html":if(e=a.documentElement,!e)throw Error(l(452));return e;case"head":if(e=a.head,!e)throw Error(l(453));return e;case"body":if(e=a.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function $r(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);eu(e)}var ra=new Map,eg=new Set;function go(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ha=B.d;B.d={f:U2,r:G2,D:L2,C:D2,L:W2,m:B2,X:I2,S:H2,M:F2};function U2(){var e=Ha.f(),a=oo();return e||a}function G2(e){var a=Cs(e);a!==null&&a.tag===5&&a.type==="form"?xp(a):Ha.r(e)}var dl=typeof document>"u"?null:document;function tg(e,a,r){var c=dl;if(c&&typeof a=="string"&&a){var f=Kt(a);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),eg.has(f)||(eg.add(f),e={rel:e,crossOrigin:r,href:a},c.querySelector(f)===null&&(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function L2(e){Ha.D(e),tg("dns-prefetch",e,null)}function D2(e,a){Ha.C(e,a),tg("preconnect",e,a)}function W2(e,a,r){Ha.L(e,a,r);var c=dl;if(c&&e&&a){var f='link[rel="preload"][as="'+Kt(a)+'"]';a==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+Kt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+Kt(r.imageSizes)+'"]')):f+='[href="'+Kt(e)+'"]';var h=f;switch(a){case"style":h=Ol(e);break;case"script":h=fl(e)}ra.has(h)||(e=g({rel:"preload",href:a==="image"&&r&&r.imageSrcSet?void 0:e,as:a},r),ra.set(h,e),c.querySelector(f)!==null||a==="style"&&c.querySelector(Tr(h))||a==="script"&&c.querySelector(Pr(h))||(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function B2(e,a){Ha.m(e,a);var r=dl;if(r&&e){var c=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Kt(c)+'"][href="'+Kt(e)+'"]',h=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=fl(e)}if(!ra.has(h)&&(e=g({rel:"modulepreload",href:e},a),ra.set(h,e),r.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Pr(h)))return}c=r.createElement("link"),xt(c,"link",e),ut(c),r.head.appendChild(c)}}}function H2(e,a,r){Ha.S(e,a,r);var c=dl;if(c&&e){var f=Xs(c).hoistableStyles,h=Ol(e);a=a||"default";var y=f.get(h);if(!y){var w={loading:0,preload:null};if(y=c.querySelector(Tr(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":a},r),(r=ra.get(h))&&Jd(e,r);var R=y=c.createElement("link");ut(R),xt(R,"link",e),R._p=new Promise(function(Y,H){R.onload=Y,R.onerror=H}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,bo(y,a,c)}y={type:"stylesheet",instance:y,count:1,state:w},f.set(h,y)}}}function I2(e,a){Ha.X(e,a);var r=dl;if(r&&e){var c=Xs(r).hoistableScripts,f=fl(e),h=c.get(f);h||(h=r.querySelector(Pr(f)),h||(e=g({src:e,async:!0},a),(a=ra.get(f))&&eO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function F2(e,a){Ha.M(e,a);var r=dl;if(r&&e){var c=Xs(r).hoistableScripts,f=fl(e),h=c.get(f);h||(h=r.querySelector(Pr(f)),h||(e=g({src:e,async:!0,type:"module"},a),(a=ra.get(f))&&eO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function ag(e,a,r,c){var f=(f=ie.current)?go(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(a=Ol(r.href),r=Xs(f).hoistableStyles,c=r.get(a),c||(c={type:"style",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ol(r.href);var h=Xs(f).hoistableStyles,y=h.get(e);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=f.querySelector(Tr(e)))&&!h._p&&(y.instance=h,y.state.loading=5),ra.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},ra.set(e,r),h||K2(f,e,r,y.state))),a&&c===null)throw Error(l(528,""));return y}if(a&&c!==null)throw Error(l(529,""));return null;case"script":return a=r.async,r=r.src,typeof r=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=fl(r),r=Xs(f).hoistableScripts,c=r.get(a),c||(c={type:"script",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ol(e){return'href="'+Kt(e)+'"'}function Tr(e){return'link[rel="stylesheet"]['+e+"]"}function ng(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function K2(e,a,r,c){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=e.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),xt(a,"link",r),ut(a),e.head.appendChild(a))}function fl(e){return'[src="'+Kt(e)+'"]'}function Pr(e){return"script[async]"+e}function sg(e,a,r){if(a.count++,a.instance===null)switch(a.type){case"style":var c=e.querySelector('style[data-href~="'+Kt(r.href)+'"]');if(c)return a.instance=c,ut(c),c;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),ut(c),xt(c,"style",f),bo(c,r.precedence,e),a.instance=c;case"stylesheet":f=Ol(r.href);var h=e.querySelector(Tr(f));if(h)return a.state.loading|=4,a.instance=h,ut(h),h;c=ng(r),(f=ra.get(f))&&Jd(c,f),h=(e.ownerDocument||e).createElement("link"),ut(h);var y=h;return y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),xt(h,"link",c),a.state.loading|=4,bo(h,r.precedence,e),a.instance=h;case"script":return h=fl(r.src),(f=e.querySelector(Pr(h)))?(a.instance=f,ut(f),f):(c=r,(f=ra.get(h))&&(c=g({},r),eO(c,f)),e=e.ownerDocument||e,f=e.createElement("script"),ut(f),xt(f,"link",c),e.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,bo(c,r.precedence,e));return a.instance}function bo(e,a,r){for(var c=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,h=f,y=0;y<c.length;y++){var w=c[y];if(w.dataset.precedence===a)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(a=r.nodeType===9?r.head:r,a.insertBefore(e,a.firstChild))}function Jd(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function eO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var vo=null;function lg(e,a,r){if(vo===null){var c=new Map,f=vo=new Map;f.set(r,c)}else f=vo,c=f.get(r),c||(c=new Map,f.set(r,c));if(c.has(e))return c;for(c.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var h=r[f];if(!(h[Ll]||h[ft]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(a)||"";y=e+y;var w=c.get(y);w?w.push(h):c.set(y,[h])}}return c}function rg(e,a,r){e=e.ownerDocument||e,e.head.insertBefore(r,a==="title"?e.querySelector("head > title"):null)}function J2(e,a,r){if(r===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function ig(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ej(e,a,r,c){if(r.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=Ol(c.href),h=a.querySelector(Tr(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=yo.bind(e),a.then(e,e)),r.state.loading|=4,r.instance=h,ut(h);return}h=a.ownerDocument||a,c=ng(c),(f=ra.get(f))&&Jd(c,f),h=h.createElement("link"),ut(h);var y=h;y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),xt(h,"link",c),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,a),(a=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yo.bind(e),a.addEventListener("load",r),a.addEventListener("error",r))}}var tO=0;function tj(e,a){return e.stylesheets&&e.count===0&&Qo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var c=setTimeout(function(){if(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+a);0<e.imgBytes&&tO===0&&(tO=62500*_2());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>tO?50:800)+a);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var So=null;function Qo(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,So=new Map,a.forEach(aj,e),So=null,yo.call(e))}function aj(e,a){if(!(a.state.loading&4)){var r=So.get(e);if(r)var c=r.get(null);else{r=new Map,So.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var y=f[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),c=y)}c&&r.set(null,c)}f=a.instance,y=f.getAttribute("data-precedence"),h=r.get(y)||c,h===c&&r.set(null,f),r.set(y,f),this.count++,c=yo.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),a.state.loading|=4}}var Nr={$$typeof:N,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function nj(e,a,r,c,f,h,y,w,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function og(e,a,r,c,f,h,y,w,R,Y,H,F){return e=new nj(e,a,r,y,R,Y,H,F,w),a=1,h===!0&&(a|=24),h=Et(3,null,null,a),e.current=h,h.stateNode=e,a=Xu(),a.refCount++,e.pooledCache=a,a.refCount++,h.memoizedState={element:c,isDehydrated:r,cache:a},Eu(h),e}function cg(e){return e?(e=Gs,e):Gs}function ug(e,a,r,c,f,h){f=cg(f),c.context===null?c.context=f:c.pendingContext=f,c=yn(a),c.payload={element:r},h=h===void 0?null:h,h!==null&&(c.callback=h),r=Sn(e,c,a),r!==null&&(Pt(r,e,a),or(r,e,a))}function dg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<a?r:a}}function aO(e,a){dg(e,a),(e=e.alternate)&&dg(e,a)}function Og(e){if(e.tag===13||e.tag===31){var a=rs(e,67108864);a!==null&&Pt(a,e,67108864),aO(e,67108864)}}function fg(e){if(e.tag===13||e.tag===31){var a=Ut();a=Fc(a);var r=rs(e,a);r!==null&&Pt(r,e,a),aO(e,a)}}var jo=!0;function sj(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=2,nO(e,a,r,c)}finally{B.p=h,z.T=f}}function lj(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=8,nO(e,a,r,c)}finally{B.p=h,z.T=f}}function nO(e,a,r,c){if(jo){var f=sO(c);if(f===null)Ud(e,a,c,wo,r),mg(e,c);else if(ij(f,e,a,r,c))c.stopPropagation();else if(mg(e,c),a&4&&-1<rj.indexOf(e)){for(;f!==null;){var h=Cs(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=ts(h.pendingLanes);if(y!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var R=1<<31-Zt(y);w.entanglements[1]|=R,y&=~R}ja(h),(Ze&6)===0&&(ro=Xt()+500,jr(0))}}break;case 31:case 13:w=rs(h,2),w!==null&&Pt(w,h,2),oo(),aO(h,2)}if(h=sO(c),h===null&&Ud(e,a,c,wo,r),h===f)break;f=h}f!==null&&c.stopPropagation()}else Ud(e,a,c,null,r)}}function sO(e){return e=ru(e),lO(e)}var wo=null;function lO(e){if(wo=null,e=Rs(e),e!==null){var a=u(e);if(a===null)e=null;else{var r=a.tag;if(r===13){if(e=d(a),e!==null)return e;e=null}else if(r===31){if(e=O(a),e!==null)return e;e=null}else if(r===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return wo=e,null}function hg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(LS()){case Sh:return 2;case Qh:return 8;case fi:case DS:return 32;case jh:return 268435456;default:return 32}default:return 32}}var rO=!1,Cn=null,Xn=null,_n=null,zr=new Map,Rr=new Map,Zn=[],rj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function mg(e,a){switch(e){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":zr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(a.pointerId)}}function Cr(e,a,r,c,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:a,domEventName:r,eventSystemFlags:c,nativeEvent:h,targetContainers:[f]},a!==null&&(a=Cs(a),a!==null&&Og(a)),e):(e.eventSystemFlags|=c,a=e.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),e)}function ij(e,a,r,c,f){switch(a){case"focusin":return Cn=Cr(Cn,e,a,r,c,f),!0;case"dragenter":return Xn=Cr(Xn,e,a,r,c,f),!0;case"mouseover":return _n=Cr(_n,e,a,r,c,f),!0;case"pointerover":var h=f.pointerId;return zr.set(h,Cr(zr.get(h)||null,e,a,r,c,f)),!0;case"gotpointercapture":return h=f.pointerId,Rr.set(h,Cr(Rr.get(h)||null,e,a,r,c,f)),!0}return!1}function pg(e){var a=Rs(e.target);if(a!==null){var r=u(a);if(r!==null){if(a=r.tag,a===13){if(a=d(r),a!==null){e.blockedOn=a,Nh(e.priority,function(){fg(r)});return}}else if(a===31){if(a=O(r),a!==null){e.blockedOn=a,Nh(e.priority,function(){fg(r)});return}}else if(a===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ko(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var r=sO(e.nativeEvent);if(r===null){r=e.nativeEvent;var c=new r.constructor(r.type,r);lu=c,r.target.dispatchEvent(c),lu=null}else return a=Cs(r),a!==null&&Og(a),e.blockedOn=r,!1;a.shift()}return!0}function xg(e,a,r){ko(e)&&r.delete(a)}function oj(){rO=!1,Cn!==null&&ko(Cn)&&(Cn=null),Xn!==null&&ko(Xn)&&(Xn=null),_n!==null&&ko(_n)&&(_n=null),zr.forEach(xg),Rr.forEach(xg)}function $o(e,a){e.blockedOn===a&&(e.blockedOn=null,rO||(rO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,oj)))}var To=null;function gg(e){To!==e&&(To=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){To===e&&(To=null);for(var a=0;a<e.length;a+=3){var r=e[a],c=e[a+1],f=e[a+2];if(typeof c!="function"){if(lO(c||r)===null)continue;break}var h=Cs(r);h!==null&&(e.splice(a,3),a-=3,sd(h,{pending:!0,data:f,method:r.method,action:c},c,f))}}))}function hl(e){function a(R){return $o(R,e)}Cn!==null&&$o(Cn,e),Xn!==null&&$o(Xn,e),_n!==null&&$o(_n,e),zr.forEach(a),Rr.forEach(a);for(var r=0;r<Zn.length;r++){var c=Zn[r];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Zn.length&&(r=Zn[0],r.blockedOn===null);)pg(r),r.blockedOn===null&&Zn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(c=0;c<r.length;c+=3){var f=r[c],h=r[c+1],y=f[Qt]||null;if(typeof h=="function")y||gg(r);else if(y){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,y=h[Qt]||null)w=y.formAction;else if(lO(f)!==null)continue}else w=y.action;typeof w=="function"?r[c+1]=w:(r.splice(c,3),c-=3),gg(r)}}}function bg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),c||setTimeout(r,20)}function r(){if(!c&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(r,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function iO(e){this._internalRoot=e}Po.prototype.render=iO.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(l(409));var r=a.current,c=Ut();ug(r,c,e,a,null,null)},Po.prototype.unmount=iO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;ug(e.current,2,null,e,null,null),oo(),a[zs]=null}};function Po(e){this._internalRoot=e}Po.prototype.unstable_scheduleHydration=function(e){if(e){var a=Ph();e={blockedOn:null,target:e,priority:a};for(var r=0;r<Zn.length&&a!==0&&a<Zn[r].priority;r++);Zn.splice(r,0,e),r===0&&pg(e)}};var vg=n.version;if(vg!=="19.2.4")throw Error(l(527,vg,"19.2.4"));B.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(a),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var cj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var No=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!No.isDisabled&&No.supportsFiber)try{Vl=No.inject(cj),_t=No}catch{}}return Xr.createRoot=function(e,a){if(!o(e))throw Error(l(299));var r=!1,c="",f=$p,h=Tp,y=Pp;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=og(e,1,!1,null,null,r,c,null,f,h,y,bg),e[zs]=a.current,Vd(e),new iO(a)},Xr.hydrateRoot=function(e,a,r){if(!o(e))throw Error(l(299));var c=!1,f="",h=$p,y=Tp,w=Pp,R=null;return r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),a=og(e,1,!0,a,r??null,c,f,R,h,y,w,bg),a.context=cg(null),r=a.current,c=Ut(),c=Fc(c),f=yn(c),f.callback=null,Sn(r,f,c),r=c,a.current.lanes=r,Gl(a,r),ja(a),e[zs]=a.current,Vd(e),new Po(a)},Xr.version="19.2.4",Xr}var wg;function Ij(){if(wg)return oO.exports;wg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),oO.exports=Hj(),oO.exports}var Fj=Ij();const Kj="/api";class Jj extends Error{constructor(n,s,l){super(n),this.name="ApiError",this.status=s,this.body=l}}async function _r(t,n,s){const l=`${Kj}${n}`,o={method:t,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const u=await fetch(l,o),d=await u.text();let O;try{O=JSON.parse(d)}catch{O=d}if(!u.ok)throw new Jj((O==null?void 0:O.error)||(O==null?void 0:O.message)||`Request failed: ${u.status}`,u.status,O);return O}const ee={get:t=>_r("GET",t),post:(t,n)=>_r("POST",t,n),put:(t,n)=>_r("PUT",t,n),patch:(t,n)=>_r("PATCH",t,n),delete:(t,n)=>_r("DELETE",t,n)},ew=`ws://${window.location.hostname}:${window.location.port||31415}`;let tw=0;function ef(t,n={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(n))}catch{return n}}function bl(t,n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}const kg="0.22.27";ef("groove:storeVersion")!==kg&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),bl("groove:storeVersion",kg));const W=Oj((t,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,commandPaletteOpen:!1,detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:ef("groove:activityLog"),chatHistory:ef("groove:chatHistory"),tokenTimeline:{},dashTelemetry:{},ccChartTimeline:[],pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const s=new WebSocket(ew);t({ws:s}),s.onopen=()=>{t({connected:!0}),ee.get("/status").then(l=>{const o={};l.host&&l.host!=="127.0.0.1"&&(o.daemonHost=l.host);const u=window.location.port||"80";String(l.port)!==u&&(o.tunneled=!0),Object.keys(o).length>0&&t(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=l=>{var u,d,O;const o=JSON.parse(l.data);switch(o.type){case"state":{const m={...n().tokenTimeline},p=Date.now();for(const x of o.data){m[x.id]||(m[x.id]=[]);const g=m[x.id],b=g[g.length-1];(!b||x.tokensUsed!==b.v||p-b.t>5e3)&&(g.push({t:p,v:x.tokensUsed||0}),g.length>200&&(m[x.id]=g.slice(-200)))}t({agents:o.data,tokenTimeline:m,hydrated:!0});break}case"agent:output":{const{agentId:m,data:p}=o;let x="",g="";if(typeof p.data=="string"?x=p.data:Array.isArray(p.data)&&(x=p.data.filter(b=>b.type==="text").map(b=>b.text).join(`
|
|
24
|
+
`+c.stack}}var On=Object.prototype.hasOwnProperty,Bc=t.unstable_scheduleCallback,Hc=t.unstable_cancelCallback,US=t.unstable_shouldYield,GS=t.unstable_requestPaint,Xt=t.unstable_now,LS=t.unstable_getCurrentPriorityLevel,Qh=t.unstable_ImmediatePriority,jh=t.unstable_UserBlockingPriority,fi=t.unstable_NormalPriority,DS=t.unstable_LowPriority,wh=t.unstable_IdlePriority,WS=t.log,BS=t.unstable_setDisableYieldValue,Vl=null,_t=null;function fn(e){if(typeof WS=="function"&&BS(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Vl,e)}catch{}}var Zt=Math.clz32?Math.clz32:FS,HS=Math.log,IS=Math.LN2;function FS(e){return e>>>=0,e===0?32:31-(HS(e)/IS|0)|0}var hi=256,mi=262144,pi=4194304;function ts(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xi(e,a,r){var c=e.pendingLanes;if(c===0)return 0;var f=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=c&134217727;return w!==0?(c=w&~h,c!==0?f=ts(c):(y&=w,y!==0?f=ts(y):r||(r=w&~e,r!==0&&(f=ts(r))))):(w=c&~h,w!==0?f=ts(w):y!==0?f=ts(y):r||(r=c&~e,r!==0&&(f=ts(r)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,r=a&-a,h>=r||h===32&&(r&4194048)!==0)?a:f}function Ul(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function KS(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kh(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function Ic(e){for(var a=[],r=0;31>r;r++)a.push(e);return a}function Gl(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function JS(e,a,r,c,f,h){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(r=y&~r;0<r;){var H=31-Zt(r),K=1<<H;w[H]=0,R[H]=-1;var V=Y[H];if(V!==null)for(Y[H]=null,H=0;H<V.length;H++){var G=V[H];G!==null&&(G.lane&=-536870913)}r&=~K}c!==0&&$h(e,c,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~a))}function $h(e,a,r){e.pendingLanes|=a,e.suspendedLanes&=~a;var c=31-Zt(a);e.entangledLanes|=a,e.entanglements[c]=e.entanglements[c]|1073741824|r&261930}function Th(e,a){var r=e.entangledLanes|=a;for(e=e.entanglements;r;){var c=31-Zt(r),f=1<<c;f&a|e[c]&a&&(e[c]|=a),r&=~f}}function Ph(e,a){var r=a&-a;return r=(r&42)!==0?1:Fc(r),(r&(e.suspendedLanes|a))!==0?0:r}function Fc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nh(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:mg(e.type))}function zh(e,a){var r=B.p;try{return B.p=e,a()}finally{B.p=r}}var hn=Math.random().toString(36).slice(2),ft="__reactFiber$"+hn,Qt="__reactProps$"+hn,zs="__reactContainer$"+hn,Jc="__reactEvents$"+hn,eQ="__reactListeners$"+hn,tQ="__reactHandles$"+hn,Rh="__reactResources$"+hn,Ll="__reactMarker$"+hn;function eu(e){delete e[ft],delete e[Qt],delete e[Jc],delete e[eQ],delete e[tQ]}function Rs(e){var a=e[ft];if(a)return a;for(var r=e.parentNode;r;){if(a=r[zs]||r[ft]){if(r=a.alternate,a.child!==null||r!==null&&r.child!==null)for(e=Jx(e);e!==null;){if(r=e[ft])return r;e=Jx(e)}return a}e=r,r=e.parentNode}return null}function Cs(e){if(e=e[ft]||e[zs]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Dl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(l(33))}function Xs(e){var a=e[Rh];return a||(a=e[Rh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ut(e){e[Ll]=!0}var Ch=new Set,Xh={};function as(e,a){_s(e,a),_s(e+"Capture",a)}function _s(e,a){for(Xh[e]=a,e=0;e<a.length;e++)Ch.add(a[e])}var aQ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_h={},Zh={};function nQ(e){return On.call(Zh,e)?!0:On.call(_h,e)?!1:aQ.test(e)?Zh[e]=!0:(_h[e]=!0,!1)}function gi(e,a,r){if(nQ(a))if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+r)}}function bi(e,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+r)}}function Ra(e,a,r,c){if(c===null)e.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(a,r,""+c)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ah(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function sQ(e,a,r){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,h=c.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return f.call(this)},set:function(y){r=""+y,h.call(this,y)}}),Object.defineProperty(e,a,{enumerable:c.enumerable}),{getValue:function(){return r},setValue:function(y){r=""+y},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function tu(e){if(!e._valueTracker){var a=Ah(e)?"checked":"value";e._valueTracker=sQ(e,a,""+e[a])}}function Eh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var r=a.getValue(),c="";return e&&(c=Ah(e)?e.checked?"true":"false":e.value),e=c,e!==r?(a.setValue(e),!0):!1}function vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lQ=/[\n"\\]/g;function Kt(e){return e.replace(lQ,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function au(e,a,r,c,f,h,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),a!=null?y==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ft(a)):e.value!==""+Ft(a)&&(e.value=""+Ft(a)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),a!=null?nu(e,y,Ft(a)):r!=null?nu(e,y,Ft(r)):c!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ft(w):e.removeAttribute("name")}function qh(e,a,r,c,f,h,y,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),a!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){tu(e);return}r=r!=null?""+Ft(r):"",a=a!=null?""+Ft(a):r,w||a===e.value||(e.value=a),e.defaultValue=a}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=w?e.checked:!!c,e.defaultChecked=!!c,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),tu(e)}function nu(e,a,r){a==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Zs(e,a,r,c){if(e=e.options,a){a={};for(var f=0;f<r.length;f++)a["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=a.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&c&&(e[r].defaultSelected=!0)}else{for(r=""+Ft(r),a=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}a!==null||e[f].disabled||(a=e[f])}a!==null&&(a.selected=!0)}}function Mh(e,a,r){if(a!=null&&(a=""+Ft(a),a!==e.value&&(e.value=a),r==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=r!=null?""+Ft(r):""}function Yh(e,a,r,c){if(a==null){if(c!=null){if(r!=null)throw Error(l(92));if(J(c)){if(1<c.length)throw Error(l(93));c=c[0]}r=c}r==null&&(r=""),a=r}r=Ft(a),e.defaultValue=r,c=e.textContent,c===r&&c!==""&&c!==null&&(e.value=c),tu(e)}function As(e,a){if(a){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=a;return}}e.textContent=a}var rQ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vh(e,a,r){var c=a.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?c?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":c?e.setProperty(a,r):typeof r!="number"||r===0||rQ.has(a)?a==="float"?e.cssFloat=r:e[a]=(""+r).trim():e[a]=r+"px"}function Uh(e,a,r){if(a!=null&&typeof a!="object")throw Error(l(62));if(e=e.style,r!=null){for(var c in r)!r.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var f in a)c=a[f],a.hasOwnProperty(f)&&r[f]!==c&&Vh(e,f,c)}else for(var h in a)a.hasOwnProperty(h)&&Vh(e,h,a[h])}function su(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iQ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yi(e){return oQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ca(){}var lu=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Es=null,qs=null;function Gh(e){var a=Cs(e);if(a&&(e=a.stateNode)){var r=e[Qt]||null;e:switch(e=a.stateNode,a.type){case"input":if(au(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),a=r.name,r.type==="radio"&&a!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Kt(""+a)+'"][type="radio"]'),a=0;a<r.length;a++){var c=r[a];if(c!==e&&c.form===e.form){var f=c[Qt]||null;if(!f)throw Error(l(90));au(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<r.length;a++)c=r[a],c.form===e.form&&Eh(c)}break e;case"textarea":Mh(e,r.value,r.defaultValue);break e;case"select":a=r.value,a!=null&&Zs(e,!!r.multiple,a,!1)}}}var iu=!1;function Lh(e,a,r){if(iu)return e(a,r);iu=!0;try{var c=e(a);return c}finally{if(iu=!1,(Es!==null||qs!==null)&&(oo(),Es&&(a=Es,e=qs,qs=Es=null,Gh(a),e)))for(a=0;a<e.length;a++)Gh(e[a])}}function Wl(e,a){var r=e.stateNode;if(r===null)return null;var c=r[Qt]||null;if(c===null)return null;r=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,a,typeof r));return r}var Xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if(Xa)try{var Bl={};Object.defineProperty(Bl,"passive",{get:function(){ou=!0}}),window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl)}catch{ou=!1}var mn=null,cu=null,Si=null;function Dh(){if(Si)return Si;var e,a=cu,r=a.length,c,f="value"in mn?mn.value:mn.textContent,h=f.length;for(e=0;e<r&&a[e]===f[e];e++);var y=r-e;for(c=1;c<=y&&a[r-c]===f[h-c];c++);return Si=f.slice(e,1<c?1-c:void 0)}function Qi(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function Wh(){return!1}function jt(e){function a(r,c,f,h,y){this._reactName=r,this._targetInst=f,this.type=c,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ji:Wh,this.isPropagationStopped=Wh,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),a}var ns={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=jt(ns),Hl=g({},ns,{view:0,detail:0}),cQ=jt(Hl),uu,du,Il,ki=g({},Hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Il&&(Il&&e.type==="mousemove"?(uu=e.screenX-Il.screenX,du=e.screenY-Il.screenY):du=uu=0,Il=e),uu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),Bh=jt(ki),uQ=g({},ki,{dataTransfer:0}),dQ=jt(uQ),OQ=g({},Hl,{relatedTarget:0}),Ou=jt(OQ),fQ=g({},ns,{animationName:0,elapsedTime:0,pseudoElement:0}),hQ=jt(fQ),mQ=g({},ns,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pQ=jt(mQ),xQ=g({},ns,{data:0}),Hh=jt(xQ),gQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bQ={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yQ(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=vQ[e])?!!a[e]:!1}function fu(){return yQ}var SQ=g({},Hl,{key:function(e){if(e.key){var a=gQ[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fu,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QQ=jt(SQ),jQ=g({},ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ih=jt(jQ),wQ=g({},Hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fu}),kQ=jt(wQ),$Q=g({},ns,{propertyName:0,elapsedTime:0,pseudoElement:0}),TQ=jt($Q),PQ=g({},ki,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),NQ=jt(PQ),zQ=g({},ns,{newState:0,oldState:0}),RQ=jt(zQ),CQ=[9,13,27,32],hu=Xa&&"CompositionEvent"in window,Fl=null;Xa&&"documentMode"in document&&(Fl=document.documentMode);var XQ=Xa&&"TextEvent"in window&&!Fl,Fh=Xa&&(!hu||Fl&&8<Fl&&11>=Fl),Kh=" ",Jh=!1;function em(e,a){switch(e){case"keyup":return CQ.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ms=!1;function _Q(e,a){switch(e){case"compositionend":return tm(a);case"keypress":return a.which!==32?null:(Jh=!0,Kh);case"textInput":return e=a.data,e===Kh&&Jh?null:e;default:return null}}function ZQ(e,a){if(Ms)return e==="compositionend"||!hu&&em(e,a)?(e=Dh(),Si=cu=mn=null,Ms=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Fh&&a.locale!=="ko"?null:a.data;default:return null}}var AQ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function am(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!AQ[e.type]:a==="textarea"}function nm(e,a,r,c){Es?qs?qs.push(c):qs=[c]:Es=c,a=po(a,"onChange"),0<a.length&&(r=new wi("onChange","change",null,r,c),e.push({event:r,listeners:a}))}var Kl=null,Jl=null;function EQ(e){qx(e,0)}function $i(e){var a=Dl(e);if(Eh(a))return e}function sm(e,a){if(e==="change")return a}var lm=!1;if(Xa){var mu;if(Xa){var pu="oninput"in document;if(!pu){var rm=document.createElement("div");rm.setAttribute("oninput","return;"),pu=typeof rm.oninput=="function"}mu=pu}else mu=!1;lm=mu&&(!document.documentMode||9<document.documentMode)}function im(){Kl&&(Kl.detachEvent("onpropertychange",om),Jl=Kl=null)}function om(e){if(e.propertyName==="value"&&$i(Jl)){var a=[];nm(a,Jl,e,ru(e)),Lh(EQ,a)}}function qQ(e,a,r){e==="focusin"?(im(),Kl=a,Jl=r,Kl.attachEvent("onpropertychange",om)):e==="focusout"&&im()}function MQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(Jl)}function YQ(e,a){if(e==="click")return $i(a)}function VQ(e,a){if(e==="input"||e==="change")return $i(a)}function UQ(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var At=typeof Object.is=="function"?Object.is:UQ;function er(e,a){if(At(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var r=Object.keys(e),c=Object.keys(a);if(r.length!==c.length)return!1;for(c=0;c<r.length;c++){var f=r[c];if(!On.call(a,f)||!At(e[f],a[f]))return!1}return!0}function cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,a){var r=cm(e);e=0;for(var c;r;){if(r.nodeType===3){if(c=e+r.textContent.length,e<=a&&c>=a)return{node:r,offset:a-e};e=c}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cm(r)}}function dm(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?dm(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Om(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=vi(e.document);a instanceof e.HTMLIFrameElement;){try{var r=typeof a.contentWindow.location.href=="string"}catch{r=!1}if(r)e=a.contentWindow;else break;a=vi(e.document)}return a}function xu(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var GQ=Xa&&"documentMode"in document&&11>=document.documentMode,Ys=null,gu=null,tr=null,bu=!1;function fm(e,a,r){var c=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bu||Ys==null||Ys!==vi(c)||(c=Ys,"selectionStart"in c&&xu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),tr&&er(tr,c)||(tr=c,c=po(gu,"onSelect"),0<c.length&&(a=new wi("onSelect","select",null,a,r),e.push({event:a,listeners:c}),a.target=Ys)))}function ss(e,a){var r={};return r[e.toLowerCase()]=a.toLowerCase(),r["Webkit"+e]="webkit"+a,r["Moz"+e]="moz"+a,r}var Vs={animationend:ss("Animation","AnimationEnd"),animationiteration:ss("Animation","AnimationIteration"),animationstart:ss("Animation","AnimationStart"),transitionrun:ss("Transition","TransitionRun"),transitionstart:ss("Transition","TransitionStart"),transitioncancel:ss("Transition","TransitionCancel"),transitionend:ss("Transition","TransitionEnd")},vu={},hm={};Xa&&(hm=document.createElement("div").style,"AnimationEvent"in window||(delete Vs.animationend.animation,delete Vs.animationiteration.animation,delete Vs.animationstart.animation),"TransitionEvent"in window||delete Vs.transitionend.transition);function ls(e){if(vu[e])return vu[e];if(!Vs[e])return e;var a=Vs[e],r;for(r in a)if(a.hasOwnProperty(r)&&r in hm)return vu[e]=a[r];return e}var mm=ls("animationend"),pm=ls("animationiteration"),xm=ls("animationstart"),LQ=ls("transitionrun"),DQ=ls("transitionstart"),WQ=ls("transitioncancel"),gm=ls("transitionend"),bm=new Map,yu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yu.push("scrollEnd");function da(e,a){bm.set(e,a),as(a,[e])}var Ti=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],Us=0,Su=0;function Pi(){for(var e=Us,a=Su=Us=0;a<e;){var r=Jt[a];Jt[a++]=null;var c=Jt[a];Jt[a++]=null;var f=Jt[a];Jt[a++]=null;var h=Jt[a];if(Jt[a++]=null,c!==null&&f!==null){var y=c.pending;y===null?f.next=f:(f.next=y.next,y.next=f),c.pending=f}h!==0&&vm(r,f,h)}}function Ni(e,a,r,c){Jt[Us++]=e,Jt[Us++]=a,Jt[Us++]=r,Jt[Us++]=c,Su|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Qu(e,a,r,c){return Ni(e,a,r,c),zi(e)}function rs(e,a){return Ni(e,null,null,a),zi(e)}function vm(e,a,r){e.lanes|=r;var c=e.alternate;c!==null&&(c.lanes|=r);for(var f=!1,h=e.return;h!==null;)h.childLanes|=r,c=h.alternate,c!==null&&(c.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&a!==null&&(f=31-Zt(r),e=h.hiddenUpdates,c=e[f],c===null?e[f]=[a]:c.push(a),a.lane=r|536870912),h):null}function zi(e){if(50<Qr)throw Qr=0,Rd=null,Error(l(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Gs={};function BQ(e,a,r,c){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,a,r,c){return new BQ(e,a,r,c)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _a(e,a){var r=e.alternate;return r===null?(r=Et(e.tag,a,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=a,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,a=e.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ym(e,a){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,a=r.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Ri(e,a,r,c,f,h){var y=0;if(c=e,typeof e=="function")ju(e)&&(y=1);else if(typeof e=="string")y=J2(e,r,Xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Et(31,r,a,f),e.elementType=W,e.lanes=h,e;case k:return is(r.children,f,h,a);case T:y=8,f|=24;break;case j:return e=Et(12,r,a,f|2),e.elementType=j,e.lanes=h,e;case U:return e=Et(13,r,a,f),e.elementType=U,e.lanes=h,e;case C:return e=Et(19,r,a,f),e.elementType=C,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:y=10;break e;case P:y=9;break e;case Z:y=11;break e;case X:y=14;break e;case $:y=16,c=null;break e}y=29,r=Error(l(130,e===null?"null":typeof e,"")),c=null}return a=Et(y,r,a,f),a.elementType=e,a.type=c,a.lanes=h,a}function is(e,a,r,c){return e=Et(7,e,c,a),e.lanes=r,e}function wu(e,a,r){return e=Et(6,e,null,a),e.lanes=r,e}function Sm(e){var a=Et(18,null,null,0);return a.stateNode=e,a}function ku(e,a,r){return a=Et(4,e.children!==null?e.children:[],e.key,a),a.lanes=r,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Qm=new WeakMap;function ea(e,a){if(typeof e=="object"&&e!==null){var r=Qm.get(e);return r!==void 0?r:(a={value:e,source:a,stack:Oi(a)},Qm.set(e,a),a)}return{value:e,source:a,stack:Oi(a)}}var Ls=[],Ds=0,Ci=null,ar=0,ta=[],aa=0,pn=null,ya=1,Sa="";function Za(e,a){Ls[Ds++]=ar,Ls[Ds++]=Ci,Ci=e,ar=a}function jm(e,a,r){ta[aa++]=ya,ta[aa++]=Sa,ta[aa++]=pn,pn=e;var c=ya;e=Sa;var f=32-Zt(c)-1;c&=~(1<<f),r+=1;var h=32-Zt(a)+f;if(30<h){var y=f-f%5;h=(c&(1<<y)-1).toString(32),c>>=y,f-=y,ya=1<<32-Zt(a)+f|r<<f|c,Sa=h+e}else ya=1<<h|r<<f|c,Sa=e}function $u(e){e.return!==null&&(Za(e,1),jm(e,1,0))}function Tu(e){for(;e===Ci;)Ci=Ls[--Ds],Ls[Ds]=null,ar=Ls[--Ds],Ls[Ds]=null;for(;e===pn;)pn=ta[--aa],ta[aa]=null,Sa=ta[--aa],ta[aa]=null,ya=ta[--aa],ta[aa]=null}function wm(e,a){ta[aa++]=ya,ta[aa++]=Sa,ta[aa++]=pn,ya=a.id,Sa=a.overflow,pn=e}var ht=null,Le=null,Pe=!1,xn=null,na=!1,Pu=Error(l(519));function gn(e){var a=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nr(ea(a,e)),Pu}function km(e){var a=e.stateNode,r=e.type,c=e.memoizedProps;switch(a[ft]=e,a[Qt]=c,r){case"dialog":ke("cancel",a),ke("close",a);break;case"iframe":case"object":case"embed":ke("load",a);break;case"video":case"audio":for(r=0;r<wr.length;r++)ke(wr[r],a);break;case"source":ke("error",a);break;case"img":case"image":case"link":ke("error",a),ke("load",a);break;case"details":ke("toggle",a);break;case"input":ke("invalid",a),qh(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ke("invalid",a);break;case"textarea":ke("invalid",a),Yh(a,c.value,c.defaultValue,c.children)}r=c.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||a.textContent===""+r||c.suppressHydrationWarning===!0||Ux(a.textContent,r)?(c.popover!=null&&(ke("beforetoggle",a),ke("toggle",a)),c.onScroll!=null&&ke("scroll",a),c.onScrollEnd!=null&&ke("scrollend",a),c.onClick!=null&&(a.onclick=Ca),a=!0):a=!1,a||gn(e,!0)}function $m(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:ht=ht.return}}function Ws(e){if(e!==ht)return!1;if(!Pe)return $m(e),Pe=!0,!1;var a=e.tag,r;if((r=a!==3&&a!==27)&&((r=a===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Wd(e.type,e.memoizedProps)),r=!r),r&&Le&&gn(e),$m(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Kx(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Le=Kx(e)}else a===27?(a=Le,Rn(e.type)?(e=Kd,Kd=null,Le=e):Le=a):Le=ht?la(e.stateNode.nextSibling):null;return!0}function os(){Le=ht=null,Pe=!1}function Nu(){var e=xn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),xn=null),e}function nr(e){xn===null?xn=[e]:xn.push(e)}var zu=Ae(null),cs=null,Aa=null;function bn(e,a,r){ve(zu,a._currentValue),a._currentValue=r}function Ea(e){e._currentValue=zu.current,Se(zu)}function Ru(e,a,r){for(;e!==null;){var c=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),e===r)break;e=e.return}}function Cu(e,a,r,c){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var y=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var R=0;R<a.length;R++)if(w.context===a[R]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),Ru(h.return,r,e),c||(y=null);break e}h=w.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(l(341));y.lanes|=r,h=y.alternate,h!==null&&(h.lanes|=r),Ru(y,r,e),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===e){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function Bs(e,a,r,c){e=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var w=f.type;At(f.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(f===ze.current){if(y=f.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Nr):e=[Nr])}f=f.return}e!==null&&Cu(a,e,r,c),a.flags|=262144}function Xi(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function us(e){cs=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Tm(cs,e)}function _i(e,a){return cs===null&&us(e),Tm(e,a)}function Tm(e,a){var r=a._currentValue;if(a={context:a,memoizedValue:r,next:null},Aa===null){if(e===null)throw Error(l(308));Aa=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Aa=Aa.next=a;return r}var HQ=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(r,c){e.push(c)}};this.abort=function(){a.aborted=!0,e.forEach(function(r){return r()})}},IQ=t.unstable_scheduleCallback,FQ=t.unstable_NormalPriority,at={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xu(){return{controller:new HQ,data:new Map,refCount:0}}function sr(e){e.refCount--,e.refCount===0&&IQ(FQ,function(){e.controller.abort()})}var lr=null,_u=0,Hs=0,Is=null;function KQ(e,a){if(lr===null){var r=lr=[];_u=0,Hs=Ed(),Is={status:"pending",value:void 0,then:function(c){r.push(c)}}}return _u++,a.then(Pm,Pm),a}function Pm(){if(--_u===0&&lr!==null){Is!==null&&(Is.status="fulfilled");var e=lr;lr=null,Hs=0,Is=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function JQ(e,a){var r=[],c={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){c.status="fulfilled",c.value=a;for(var f=0;f<r.length;f++)(0,r[f])(a)},function(f){for(c.status="rejected",c.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),c}var Nm=z.S;z.S=function(e,a){fx=Xt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&KQ(e,a),Nm!==null&&Nm(e,a)};var ds=Ae(null);function Zu(){var e=ds.current;return e!==null?e:Ge.pooledCache}function Zi(e,a){a===null?ve(ds,ds.current):ve(ds,a.pool)}function zm(){var e=Zu();return e===null?null:{parent:at._currentValue,pool:e}}var Fs=Error(l(460)),Au=Error(l(474)),Ai=Error(l(542)),Ei={then:function(){}};function Rm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cm(e,a,r){switch(r=e[r],r===void 0?e.push(a):r!==a&&(a.then(Ca,Ca),a=r),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,_m(e),e;default:if(typeof a.status=="string")a.then(Ca,Ca);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=a,e.status="pending",e.then(function(c){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=c}},function(c){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,_m(e),e}throw fs=a,Fs}}function Os(e){try{var a=e._init;return a(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(fs=r,Fs):r}}var fs=null;function Xm(){if(fs===null)throw Error(l(459));var e=fs;return fs=null,e}function _m(e){if(e===Fs||e===Ai)throw Error(l(483))}var Ks=null,rr=0;function qi(e){var a=rr;return rr+=1,Ks===null&&(Ks=[]),Cm(Ks,e,a)}function ir(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Mi(e,a){throw a.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(a),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Zm(e){function a(q,_){if(e){var M=q.deletions;M===null?(q.deletions=[_],q.flags|=16):M.push(_)}}function r(q,_){if(!e)return null;for(;_!==null;)a(q,_),_=_.sibling;return null}function c(q){for(var _=new Map;q!==null;)q.key!==null?_.set(q.key,q):_.set(q.index,q),q=q.sibling;return _}function f(q,_){return q=_a(q,_),q.index=0,q.sibling=null,q}function h(q,_,M){return q.index=M,e?(M=q.alternate,M!==null?(M=M.index,M<_?(q.flags|=67108866,_):M):(q.flags|=67108866,_)):(q.flags|=1048576,_)}function y(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function w(q,_,M,F){return _===null||_.tag!==6?(_=wu(M,q.mode,F),_.return=q,_):(_=f(_,M),_.return=q,_)}function R(q,_,M,F){var pe=M.type;return pe===k?H(q,_,M.props.children,F,M.key):_!==null&&(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===$&&Os(pe)===_.type)?(_=f(_,M.props),ir(_,M),_.return=q,_):(_=Ri(M.type,M.key,M.props,null,q.mode,F),ir(_,M),_.return=q,_)}function Y(q,_,M,F){return _===null||_.tag!==4||_.stateNode.containerInfo!==M.containerInfo||_.stateNode.implementation!==M.implementation?(_=ku(M,q.mode,F),_.return=q,_):(_=f(_,M.children||[]),_.return=q,_)}function H(q,_,M,F,pe){return _===null||_.tag!==7?(_=is(M,q.mode,F,pe),_.return=q,_):(_=f(_,M),_.return=q,_)}function K(q,_,M){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=wu(""+_,q.mode,M),_.return=q,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return M=Ri(_.type,_.key,_.props,null,q.mode,M),ir(M,_),M.return=q,M;case Q:return _=ku(_,q.mode,M),_.return=q,_;case $:return _=Os(_),K(q,_,M)}if(J(_)||re(_))return _=is(_,q.mode,M,null),_.return=q,_;if(typeof _.then=="function")return K(q,qi(_),M);if(_.$$typeof===N)return K(q,_i(q,_),M);Mi(q,_)}return null}function V(q,_,M,F){var pe=_!==null?_.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return pe!==null?null:w(q,_,""+M,F);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===pe?R(q,_,M,F):null;case Q:return M.key===pe?Y(q,_,M,F):null;case $:return M=Os(M),V(q,_,M,F)}if(J(M)||re(M))return pe!==null?null:H(q,_,M,F,null);if(typeof M.then=="function")return V(q,_,qi(M),F);if(M.$$typeof===N)return V(q,_,_i(q,M),F);Mi(q,M)}return null}function G(q,_,M,F,pe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return q=q.get(M)||null,w(_,q,""+F,pe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return q=q.get(F.key===null?M:F.key)||null,R(_,q,F,pe);case Q:return q=q.get(F.key===null?M:F.key)||null,Y(_,q,F,pe);case $:return F=Os(F),G(q,_,M,F,pe)}if(J(F)||re(F))return q=q.get(M)||null,H(_,q,F,pe,null);if(typeof F.then=="function")return G(q,_,M,qi(F),pe);if(F.$$typeof===N)return G(q,_,M,_i(_,F),pe);Mi(_,F)}return null}function ce(q,_,M,F){for(var pe=null,Re=null,Oe=_,ye=_=0,Te=null;Oe!==null&&ye<M.length;ye++){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var Ce=V(q,Oe,M[ye],F);if(Ce===null){Oe===null&&(Oe=Te);break}e&&Oe&&Ce.alternate===null&&a(q,Oe),_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce,Oe=Te}if(ye===M.length)return r(q,Oe),Pe&&Za(q,ye),pe;if(Oe===null){for(;ye<M.length;ye++)Oe=K(q,M[ye],F),Oe!==null&&(_=h(Oe,_,ye),Re===null?pe=Oe:Re.sibling=Oe,Re=Oe);return Pe&&Za(q,ye),pe}for(Oe=c(Oe);ye<M.length;ye++)Te=G(Oe,q,ye,M[ye],F),Te!==null&&(e&&Te.alternate!==null&&Oe.delete(Te.key===null?ye:Te.key),_=h(Te,_,ye),Re===null?pe=Te:Re.sibling=Te,Re=Te);return e&&Oe.forEach(function(An){return a(q,An)}),Pe&&Za(q,ye),pe}function ge(q,_,M,F){if(M==null)throw Error(l(151));for(var pe=null,Re=null,Oe=_,ye=_=0,Te=null,Ce=M.next();Oe!==null&&!Ce.done;ye++,Ce=M.next()){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var An=V(q,Oe,Ce.value,F);if(An===null){Oe===null&&(Oe=Te);break}e&&Oe&&An.alternate===null&&a(q,Oe),_=h(An,_,ye),Re===null?pe=An:Re.sibling=An,Re=An,Oe=Te}if(Ce.done)return r(q,Oe),Pe&&Za(q,ye),pe;if(Oe===null){for(;!Ce.done;ye++,Ce=M.next())Ce=K(q,Ce.value,F),Ce!==null&&(_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce);return Pe&&Za(q,ye),pe}for(Oe=c(Oe);!Ce.done;ye++,Ce=M.next())Ce=G(Oe,q,ye,Ce.value,F),Ce!==null&&(e&&Ce.alternate!==null&&Oe.delete(Ce.key===null?ye:Ce.key),_=h(Ce,_,ye),Re===null?pe=Ce:Re.sibling=Ce,Re=Ce);return e&&Oe.forEach(function(uj){return a(q,uj)}),Pe&&Za(q,ye),pe}function Ue(q,_,M,F){if(typeof M=="object"&&M!==null&&M.type===k&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var pe=M.key;_!==null;){if(_.key===pe){if(pe=M.type,pe===k){if(_.tag===7){r(q,_.sibling),F=f(_,M.props.children),F.return=q,q=F;break e}}else if(_.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===$&&Os(pe)===_.type){r(q,_.sibling),F=f(_,M.props),ir(F,M),F.return=q,q=F;break e}r(q,_);break}else a(q,_);_=_.sibling}M.type===k?(F=is(M.props.children,q.mode,F,M.key),F.return=q,q=F):(F=Ri(M.type,M.key,M.props,null,q.mode,F),ir(F,M),F.return=q,q=F)}return y(q);case Q:e:{for(pe=M.key;_!==null;){if(_.key===pe)if(_.tag===4&&_.stateNode.containerInfo===M.containerInfo&&_.stateNode.implementation===M.implementation){r(q,_.sibling),F=f(_,M.children||[]),F.return=q,q=F;break e}else{r(q,_);break}else a(q,_);_=_.sibling}F=ku(M,q.mode,F),F.return=q,q=F}return y(q);case $:return M=Os(M),Ue(q,_,M,F)}if(J(M))return ce(q,_,M,F);if(re(M)){if(pe=re(M),typeof pe!="function")throw Error(l(150));return M=pe.call(M),ge(q,_,M,F)}if(typeof M.then=="function")return Ue(q,_,qi(M),F);if(M.$$typeof===N)return Ue(q,_,_i(q,M),F);Mi(q,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,_!==null&&_.tag===6?(r(q,_.sibling),F=f(_,M),F.return=q,q=F):(r(q,_),F=wu(M,q.mode,F),F.return=q,q=F),y(q)):r(q,_)}return function(q,_,M,F){try{rr=0;var pe=Ue(q,_,M,F);return Ks=null,pe}catch(Oe){if(Oe===Fs||Oe===Ai)throw Oe;var Re=Et(29,Oe,null,q.mode);return Re.lanes=F,Re.return=q,Re}finally{}}}var hs=Zm(!0),Am=Zm(!1),vn=!1;function Eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sn(e,a,r){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ze&2)!==0){var f=c.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a,a=zi(e),vm(e,null,r),a}return Ni(e,c,a,r),zi(e)}function or(e,a,r){if(a=a.updateQueue,a!==null&&(a=a.shared,(r&4194048)!==0)){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,Th(e,r)}}function Mu(e,a){var r=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,r===c)){var f=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?f=h=y:h=h.next=y,r=r.next}while(r!==null);h===null?f=h=a:h=h.next=a}else f=h=a;r={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:c.shared,callbacks:c.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=a:e.next=a,r.lastBaseUpdate=a}var Yu=!1;function cr(){if(Yu){var e=Is;if(e!==null)throw e}}function ur(e,a,r,c){Yu=!1;var f=e.updateQueue;vn=!1;var h=f.firstBaseUpdate,y=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var R=w,Y=R.next;R.next=null,y===null?h=Y:y.next=Y,y=R;var H=e.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==y&&(w===null?H.firstBaseUpdate=Y:w.next=Y,H.lastBaseUpdate=R))}if(h!==null){var K=f.baseState;y=0,H=Y=R=null,w=h;do{var V=w.lane&-536870913,G=V!==w.lane;if(G?($e&V)===V:(c&V)===V){V!==0&&V===Hs&&(Yu=!0),H!==null&&(H=H.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ce=e,ge=w;V=a;var Ue=r;switch(ge.tag){case 1:if(ce=ge.payload,typeof ce=="function"){K=ce.call(Ue,K,V);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ge.payload,V=typeof ce=="function"?ce.call(Ue,K,V):ce,V==null)break e;K=g({},K,V);break e;case 2:vn=!0}}V=w.callback,V!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[V]:G.push(V))}else G={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(Y=H=G,R=K):H=H.next=G,y|=V;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;G=w,w=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);H===null&&(R=K),f.baseState=R,f.firstBaseUpdate=Y,f.lastBaseUpdate=H,h===null&&(f.shared.lanes=0),$n|=y,e.lanes=y,e.memoizedState=K}}function Em(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function qm(e,a){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Em(r[e],a)}var Js=Ae(null),Yi=Ae(0);function Mm(e,a){e=Wa,ve(Yi,e),ve(Js,a),Wa=e|a.baseLanes}function Vu(){ve(Yi,Wa),ve(Js,Js.current)}function Uu(){Wa=Yi.current,Se(Js),Se(Yi)}var qt=Ae(null),sa=null;function Qn(e){var a=e.alternate;ve(Je,Je.current&1),ve(qt,e),sa===null&&(a===null||Js.current!==null||a.memoizedState!==null)&&(sa=e)}function Gu(e){ve(Je,Je.current),ve(qt,e),sa===null&&(sa=e)}function Ym(e){e.tag===22?(ve(Je,Je.current),ve(qt,e),sa===null&&(sa=e)):jn()}function jn(){ve(Je,Je.current),ve(qt,qt.current)}function Mt(e){Se(qt),sa===e&&(sa=null),Se(Je)}var Je=Ae(0);function Vi(e){for(var a=e;a!==null;){if(a.tag===13){var r=a.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Id(r)||Fd(r)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var qa=0,be=null,Ye=null,nt=null,Ui=!1,el=!1,ms=!1,Gi=0,dr=0,tl=null,e2=0;function Fe(){throw Error(l(321))}function Lu(e,a){if(a===null)return!1;for(var r=0;r<a.length&&r<e.length;r++)if(!At(e[r],a[r]))return!1;return!0}function Du(e,a,r,c,f,h){return qa=h,be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=e===null||e.memoizedState===null?jp:id,ms=!1,h=r(c,f),ms=!1,el&&(h=Um(a,r,c,f)),Vm(e),h}function Vm(e){z.H=hr;var a=Ye!==null&&Ye.next!==null;if(qa=0,nt=Ye=be=null,Ui=!1,dr=0,tl=null,a)throw Error(l(300));e===null||st||(e=e.dependencies,e!==null&&Xi(e)&&(st=!0))}function Um(e,a,r,c){be=e;var f=0;do{if(el&&(tl=null),dr=0,el=!1,25<=f)throw Error(l(301));if(f+=1,nt=Ye=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=wp,h=a(r,c)}while(el);return h}function t2(){var e=z.H,a=e.useState()[0];return a=typeof a.then=="function"?Or(a):a,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(be.flags|=1024),a}function Wu(){var e=Gi!==0;return Gi=0,e}function Bu(e,a,r){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~r}function Hu(e){if(Ui){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Ui=!1}qa=0,nt=Ye=be=null,el=!1,dr=Gi=0,tl=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?be.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ye===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var a=nt===null?be.memoizedState:nt.next;if(a!==null)nt=a,Ye=e;else{if(e===null)throw be.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},nt===null?be.memoizedState=nt=e:nt=nt.next=e}return nt}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Or(e){var a=dr;return dr+=1,tl===null&&(tl=[]),e=Cm(tl,e,a),a=be,(nt===null?a.memoizedState:nt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?jp:id),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Or(e);if(e.$$typeof===N)return mt(e)}throw Error(l(438,String(e)))}function Iu(e){var a=null,r=be.updateQueue;if(r!==null&&(a=r.memoCache),a==null){var c=be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),r===null&&(r=Li(),be.updateQueue=r),r.memoCache=a,r=a.data[a.index],r===void 0)for(r=a.data[a.index]=Array(e),c=0;c<e;c++)r[c]=E;return a.index++,r}function Ma(e,a){return typeof a=="function"?a(e):a}function Wi(e){var a=et();return Fu(a,Ye,e)}function Fu(e,a,r){var c=e.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=r;var f=e.baseQueue,h=c.pending;if(h!==null){if(f!==null){var y=f.next;f.next=h.next,h.next=y}a.baseQueue=f=h,c.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{a=f.next;var w=y=null,R=null,Y=a,H=!1;do{var K=Y.lane&-536870913;if(K!==Y.lane?($e&K)===K:(qa&K)===K){var V=Y.revertLane;if(V===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),K===Hs&&(H=!0);else if((qa&V)===V){Y=Y.next,V===Hs&&(H=!0);continue}else K={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=K,y=h):R=R.next=K,be.lanes|=V,$n|=V;K=Y.action,ms&&r(h,K),h=Y.hasEagerState?Y.eagerState:r(h,K)}else V={lane:K,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=V,y=h):R=R.next=V,be.lanes|=K,$n|=K;Y=Y.next}while(Y!==null&&Y!==a);if(R===null?y=h:R.next=w,!At(h,e.memoizedState)&&(st=!0,H&&(r=Is,r!==null)))throw r;e.memoizedState=h,e.baseState=y,e.baseQueue=R,c.lastRenderedState=h}return f===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Ku(e){var a=et(),r=a.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var c=r.dispatch,f=r.pending,h=a.memoizedState;if(f!==null){r.pending=null;var y=f=f.next;do h=e(h,y.action),y=y.next;while(y!==f);At(h,a.memoizedState)||(st=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),r.lastRenderedState=h}return[h,c]}function Gm(e,a,r){var c=be,f=et(),h=Pe;if(h){if(r===void 0)throw Error(l(407));r=r()}else r=a();var y=!At((Ye||f).memoizedState,r);if(y&&(f.memoizedState=r,st=!0),f=f.queue,td(Wm.bind(null,c,f,e),[e]),f.getSnapshot!==a||y||nt!==null&&nt.memoizedState.tag&1){if(c.flags|=2048,al(9,{destroy:void 0},Dm.bind(null,c,f,r,a),null),Ge===null)throw Error(l(349));h||(qa&127)!==0||Lm(c,a,r)}return r}function Lm(e,a,r){e.flags|=16384,e={getSnapshot:a,value:r},a=be.updateQueue,a===null?(a=Li(),be.updateQueue=a,a.stores=[e]):(r=a.stores,r===null?a.stores=[e]:r.push(e))}function Dm(e,a,r,c){a.value=r,a.getSnapshot=c,Bm(a)&&Hm(e)}function Wm(e,a,r){return r(function(){Bm(a)&&Hm(e)})}function Bm(e){var a=e.getSnapshot;e=e.value;try{var r=a();return!At(e,r)}catch{return!0}}function Hm(e){var a=rs(e,2);a!==null&&Pt(a,e,2)}function Ju(e){var a=St();if(typeof e=="function"){var r=e;if(e=r(),ms){fn(!0);try{r()}finally{fn(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},a}function Im(e,a,r,c){return e.baseState=r,Fu(e,Ye,typeof c=="function"?c:Ma)}function a2(e,a,r,c,f){if(Ii(e))throw Error(l(485));if(e=a.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){h.listeners.push(y)}};z.T!==null?r(!0):h.isTransition=!1,c(h),r=a.pending,r===null?(h.next=a.pending=h,Fm(a,h)):(h.next=r.next,a.pending=r.next=h)}}function Fm(e,a){var r=a.action,c=a.payload,f=e.state;if(a.isTransition){var h=z.T,y={};z.T=y;try{var w=r(f,c),R=z.S;R!==null&&R(y,w),Km(e,a,w)}catch(Y){ed(e,a,Y)}finally{h!==null&&y.types!==null&&(h.types=y.types),z.T=h}}else try{h=r(f,c),Km(e,a,h)}catch(Y){ed(e,a,Y)}}function Km(e,a,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(c){Jm(e,a,c)},function(c){return ed(e,a,c)}):Jm(e,a,r)}function Jm(e,a,r){a.status="fulfilled",a.value=r,ep(a),e.state=r,a=e.pending,a!==null&&(r=a.next,r===a?e.pending=null:(r=r.next,a.next=r,Fm(e,r)))}function ed(e,a,r){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=r,ep(a),a=a.next;while(a!==c)}e.action=null}function ep(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function tp(e,a){return a}function ap(e,a){if(Pe){var r=Ge.formState;if(r!==null){e:{var c=be;if(Pe){if(Le){t:{for(var f=Le,h=na;f.nodeType!==8;){if(!h){f=null;break t}if(f=la(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Le=la(f.nextSibling),c=f.data==="F!";break e}}gn(c)}c=!1}c&&(a=r[0])}}return r=St(),r.memoizedState=r.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tp,lastRenderedState:a},r.queue=c,r=yp.bind(null,be,c),c.dispatch=r,c=Ju(!1),h=rd.bind(null,be,!1,c.queue),c=St(),f={state:a,dispatch:null,action:e,pending:null},c.queue=f,r=a2.bind(null,be,f,h,r),f.dispatch=r,c.memoizedState=e,[a,r,!1]}function np(e){var a=et();return sp(a,Ye,e)}function sp(e,a,r){if(a=Fu(e,a,tp)[0],e=Wi(Ma)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Or(a)}catch(y){throw y===Fs?Ai:y}else c=a;a=et();var f=a.queue,h=f.dispatch;return r!==a.memoizedState&&(be.flags|=2048,al(9,{destroy:void 0},n2.bind(null,f,r),null)),[c,h,e]}function n2(e,a){e.action=a}function lp(e){var a=et(),r=Ye;if(r!==null)return sp(a,r,e);et(),a=a.memoizedState,r=et();var c=r.queue.dispatch;return r.memoizedState=e,[a,c,!1]}function al(e,a,r,c){return e={tag:e,create:r,deps:c,inst:a,next:null},a=be.updateQueue,a===null&&(a=Li(),be.updateQueue=a),r=a.lastEffect,r===null?a.lastEffect=e.next=e:(c=r.next,r.next=e,e.next=c,a.lastEffect=e),e}function rp(){return et().memoizedState}function Bi(e,a,r,c){var f=St();be.flags|=e,f.memoizedState=al(1|a,{destroy:void 0},r,c===void 0?null:c)}function Hi(e,a,r,c){var f=et();c=c===void 0?null:c;var h=f.memoizedState.inst;Ye!==null&&c!==null&&Lu(c,Ye.memoizedState.deps)?f.memoizedState=al(a,h,r,c):(be.flags|=e,f.memoizedState=al(1|a,h,r,c))}function ip(e,a){Bi(8390656,8,e,a)}function td(e,a){Hi(2048,8,e,a)}function s2(e){be.flags|=4;var a=be.updateQueue;if(a===null)a=Li(),be.updateQueue=a,a.events=[e];else{var r=a.events;r===null?a.events=[e]:r.push(e)}}function op(e){var a=et().memoizedState;return s2({ref:a,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}function cp(e,a){return Hi(4,2,e,a)}function up(e,a){return Hi(4,4,e,a)}function dp(e,a){if(typeof a=="function"){e=e();var r=a(e);return function(){typeof r=="function"?r():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Op(e,a,r){r=r!=null?r.concat([e]):null,Hi(4,4,dp.bind(null,a,e),r)}function ad(){}function fp(e,a){var r=et();a=a===void 0?null:a;var c=r.memoizedState;return a!==null&&Lu(a,c[1])?c[0]:(r.memoizedState=[e,a],e)}function hp(e,a){var r=et();a=a===void 0?null:a;var c=r.memoizedState;if(a!==null&&Lu(a,c[1]))return c[0];if(c=e(),ms){fn(!0);try{e()}finally{fn(!1)}}return r.memoizedState=[c,a],c}function nd(e,a,r){return r===void 0||(qa&1073741824)!==0&&($e&261930)===0?e.memoizedState=a:(e.memoizedState=r,e=mx(),be.lanes|=e,$n|=e,r)}function mp(e,a,r,c){return At(r,a)?r:Js.current!==null?(e=nd(e,r,c),At(e,a)||(st=!0),e):(qa&42)===0||(qa&1073741824)!==0&&($e&261930)===0?(st=!0,e.memoizedState=r):(e=mx(),be.lanes|=e,$n|=e,a)}function pp(e,a,r,c,f){var h=B.p;B.p=h!==0&&8>h?h:8;var y=z.T,w={};z.T=w,rd(e,!1,a,r);try{var R=f(),Y=z.S;if(Y!==null&&Y(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=JQ(R,c);fr(e,a,H,Ut(e))}else fr(e,a,c,Ut(e))}catch(K){fr(e,a,{then:function(){},status:"rejected",reason:K},Ut())}finally{B.p=h,y!==null&&w.types!==null&&(y.types=w.types),z.T=y}}function l2(){}function sd(e,a,r,c){if(e.tag!==5)throw Error(l(476));var f=xp(e).queue;pp(e,f,a,I,r===null?l2:function(){return gp(e),r(c)})}function xp(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:I},next:null};var r={};return a.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:r},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function gp(e){var a=xp(e);a.next===null&&(a=e.alternate.memoizedState),fr(e,a.next.queue,{},Ut())}function ld(){return mt(Nr)}function bp(){return et().memoizedState}function vp(){return et().memoizedState}function r2(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var r=Ut();e=yn(r);var c=Sn(a,e,r);c!==null&&(Pt(c,a,r),or(c,a,r)),a={cache:Xu()},e.payload=a;return}a=a.return}}function i2(e,a,r){var c=Ut();r={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ii(e)?Sp(a,r):(r=Qu(e,a,r,c),r!==null&&(Pt(r,e,c),Qp(r,a,c)))}function yp(e,a,r){var c=Ut();fr(e,a,r,c)}function fr(e,a,r,c){var f={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ii(e))Sp(a,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var y=a.lastRenderedState,w=h(y,r);if(f.hasEagerState=!0,f.eagerState=w,At(w,y))return Ni(e,a,f,0),Ge===null&&Pi(),!1}catch{}finally{}if(r=Qu(e,a,f,c),r!==null)return Pt(r,e,c),Qp(r,a,c),!0}return!1}function rd(e,a,r,c){if(c={lane:2,revertLane:Ed(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ii(e)){if(a)throw Error(l(479))}else a=Qu(e,r,c,2),a!==null&&Pt(a,e,2)}function Ii(e){var a=e.alternate;return e===be||a!==null&&a===be}function Sp(e,a){el=Ui=!0;var r=e.pending;r===null?a.next=a:(a.next=r.next,r.next=a),e.pending=a}function Qp(e,a,r){if((r&4194048)!==0){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,Th(e,r)}}var hr={readContext:mt,use:Di,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};hr.useEffectEvent=Fe;var jp={readContext:mt,use:Di,useCallback:function(e,a){return St().memoizedState=[e,a===void 0?null:a],e},useContext:mt,useEffect:ip,useImperativeHandle:function(e,a,r){r=r!=null?r.concat([e]):null,Bi(4194308,4,dp.bind(null,a,e),r)},useLayoutEffect:function(e,a){return Bi(4194308,4,e,a)},useInsertionEffect:function(e,a){Bi(4,2,e,a)},useMemo:function(e,a){var r=St();a=a===void 0?null:a;var c=e();if(ms){fn(!0);try{e()}finally{fn(!1)}}return r.memoizedState=[c,a],c},useReducer:function(e,a,r){var c=St();if(r!==void 0){var f=r(a);if(ms){fn(!0);try{r(a)}finally{fn(!1)}}}else f=a;return c.memoizedState=c.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},c.queue=e,e=e.dispatch=i2.bind(null,be,e),[c.memoizedState,e]},useRef:function(e){var a=St();return e={current:e},a.memoizedState=e},useState:function(e){e=Ju(e);var a=e.queue,r=yp.bind(null,be,a);return a.dispatch=r,[e.memoizedState,r]},useDebugValue:ad,useDeferredValue:function(e,a){var r=St();return nd(r,e,a)},useTransition:function(){var e=Ju(!1);return e=pp.bind(null,be,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,r){var c=be,f=St();if(Pe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=a(),Ge===null)throw Error(l(349));($e&127)!==0||Lm(c,a,r)}f.memoizedState=r;var h={value:r,getSnapshot:a};return f.queue=h,ip(Wm.bind(null,c,h,e),[e]),c.flags|=2048,al(9,{destroy:void 0},Dm.bind(null,c,h,r,a),null),r},useId:function(){var e=St(),a=Ge.identifierPrefix;if(Pe){var r=Sa,c=ya;r=(c&~(1<<32-Zt(c)-1)).toString(32)+r,a="_"+a+"R_"+r,r=Gi++,0<r&&(a+="H"+r.toString(32)),a+="_"}else r=e2++,a="_"+a+"r_"+r.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:ld,useFormState:ap,useActionState:ap,useOptimistic:function(e){var a=St();a.memoizedState=a.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=r,a=rd.bind(null,be,!0,r),r.dispatch=a,[e,a]},useMemoCache:Iu,useCacheRefresh:function(){return St().memoizedState=r2.bind(null,be)},useEffectEvent:function(e){var a=St(),r={impl:e};return a.memoizedState=r,function(){if((Ze&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},id={readContext:mt,use:Di,useCallback:fp,useContext:mt,useEffect:td,useImperativeHandle:Op,useInsertionEffect:cp,useLayoutEffect:up,useMemo:hp,useReducer:Wi,useRef:rp,useState:function(){return Wi(Ma)},useDebugValue:ad,useDeferredValue:function(e,a){var r=et();return mp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Wi(Ma)[0],a=et().memoizedState;return[typeof e=="boolean"?e:Or(e),a]},useSyncExternalStore:Gm,useId:bp,useHostTransitionStatus:ld,useFormState:np,useActionState:np,useOptimistic:function(e,a){var r=et();return Im(r,Ye,e,a)},useMemoCache:Iu,useCacheRefresh:vp};id.useEffectEvent=op;var wp={readContext:mt,use:Di,useCallback:fp,useContext:mt,useEffect:td,useImperativeHandle:Op,useInsertionEffect:cp,useLayoutEffect:up,useMemo:hp,useReducer:Ku,useRef:rp,useState:function(){return Ku(Ma)},useDebugValue:ad,useDeferredValue:function(e,a){var r=et();return Ye===null?nd(r,e,a):mp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Ku(Ma)[0],a=et().memoizedState;return[typeof e=="boolean"?e:Or(e),a]},useSyncExternalStore:Gm,useId:bp,useHostTransitionStatus:ld,useFormState:lp,useActionState:lp,useOptimistic:function(e,a){var r=et();return Ye!==null?Im(r,Ye,e,a):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Iu,useCacheRefresh:vp};wp.useEffectEvent=op;function od(e,a,r,c){a=e.memoizedState,r=r(c,a),r=r==null?a:g({},a,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var cd={enqueueSetState:function(e,a,r){e=e._reactInternals;var c=Ut(),f=yn(c);f.payload=a,r!=null&&(f.callback=r),a=Sn(e,f,c),a!==null&&(Pt(a,e,c),or(a,e,c))},enqueueReplaceState:function(e,a,r){e=e._reactInternals;var c=Ut(),f=yn(c);f.tag=1,f.payload=a,r!=null&&(f.callback=r),a=Sn(e,f,c),a!==null&&(Pt(a,e,c),or(a,e,c))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var r=Ut(),c=yn(r);c.tag=2,a!=null&&(c.callback=a),a=Sn(e,c,r),a!==null&&(Pt(a,e,r),or(a,e,r))}};function kp(e,a,r,c,f,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,h,y):a.prototype&&a.prototype.isPureReactComponent?!er(r,c)||!er(f,h):!0}function $p(e,a,r,c){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(r,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(r,c),a.state!==e&&cd.enqueueReplaceState(a,a.state,null)}function ps(e,a){var r=a;if("ref"in a){r={};for(var c in a)c!=="ref"&&(r[c]=a[c])}if(e=e.defaultProps){r===a&&(r=g({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Tp(e){Ti(e)}function Pp(e){console.error(e)}function Np(e){Ti(e)}function Fi(e,a){try{var r=e.onUncaughtError;r(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function zp(e,a,r){try{var c=e.onCaughtError;c(r.value,{componentStack:r.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function ud(e,a,r){return r=yn(r),r.tag=3,r.payload={element:null},r.callback=function(){Fi(e,a)},r}function Rp(e){return e=yn(e),e.tag=3,e}function Cp(e,a,r,c){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var h=c.value;e.payload=function(){return f(h)},e.callback=function(){zp(a,r,c)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){zp(a,r,c),typeof f!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function o2(e,a,r,c,f){if(r.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=r.alternate,a!==null&&Bs(a,r,f,!0),r=qt.current,r!==null){switch(r.tag){case 31:case 13:return sa===null?co():r.alternate===null&&Ke===0&&(Ke=3),r.flags&=-257,r.flags|=65536,r.lanes=f,c===Ei?r.flags|=16384:(a=r.updateQueue,a===null?r.updateQueue=new Set([c]):a.add(c),_d(e,c,f)),!1;case 22:return r.flags|=65536,c===Ei?r.flags|=16384:(a=r.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},r.updateQueue=a):(r=a.retryQueue,r===null?a.retryQueue=new Set([c]):r.add(c)),_d(e,c,f)),!1}throw Error(l(435,r.tag))}return _d(e,c,f),co(),!1}if(Pe)return a=qt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,c!==Pu&&(e=Error(l(422),{cause:c}),nr(ea(e,r)))):(c!==Pu&&(a=Error(l(423),{cause:c}),nr(ea(a,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,c=ea(c,r),f=ud(e.stateNode,c,f),Mu(e,f),Ke!==4&&(Ke=2)),!1;var h=Error(l(520),{cause:c});if(h=ea(h,r),Sr===null?Sr=[h]:Sr.push(h),Ke!==4&&(Ke=2),a===null)return!0;c=ea(c,r),r=a;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=ud(r.stateNode,c,e),Mu(r,e),!1;case 1:if(a=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Tn===null||!Tn.has(h))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Rp(f),Cp(f,e,r,c),Mu(r,f),!1}r=r.return}while(r!==null);return!1}var dd=Error(l(461)),st=!1;function pt(e,a,r,c){a.child=e===null?Am(a,null,r,c):hs(a,e.child,r,c)}function Xp(e,a,r,c,f){r=r.render;var h=a.ref;if("ref"in c){var y={};for(var w in c)w!=="ref"&&(y[w]=c[w])}else y=c;return us(a),c=Du(e,a,r,y,h,f),w=Wu(),e!==null&&!st?(Bu(e,a,f),Ya(e,a,f)):(Pe&&w&&$u(a),a.flags|=1,pt(e,a,c,f),a.child)}function _p(e,a,r,c,f){if(e===null){var h=r.type;return typeof h=="function"&&!ju(h)&&h.defaultProps===void 0&&r.compare===null?(a.tag=15,a.type=h,Zp(e,a,h,c,f)):(e=Ri(r.type,null,c,a,a.mode,f),e.ref=a.ref,e.return=a,a.child=e)}if(h=e.child,!bd(e,f)){var y=h.memoizedProps;if(r=r.compare,r=r!==null?r:er,r(y,c)&&e.ref===a.ref)return Ya(e,a,f)}return a.flags|=1,e=_a(h,c),e.ref=a.ref,e.return=a,a.child=e}function Zp(e,a,r,c,f){if(e!==null){var h=e.memoizedProps;if(er(h,c)&&e.ref===a.ref)if(st=!1,a.pendingProps=c=h,bd(e,f))(e.flags&131072)!==0&&(st=!0);else return a.lanes=e.lanes,Ya(e,a,f)}return Od(e,a,r,c,f)}function Ap(e,a,r,c){var f=c.children,h=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(c=a.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~h}else c=0,a.child=null;return Ep(e,a,h,r,c)}if((r&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(a,h!==null?h.cachePool:null),h!==null?Mm(a,h):Vu(),Ym(a);else return c=a.lanes=536870912,Ep(e,a,h!==null?h.baseLanes|r:r,r,c)}else h!==null?(Zi(a,h.cachePool),Mm(a,h),jn(),a.memoizedState=null):(e!==null&&Zi(a,null),Vu(),jn());return pt(e,a,f,r),a.child}function mr(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ep(e,a,r,c,f){var h=Zu();return h=h===null?null:{parent:at._currentValue,pool:h},a.memoizedState={baseLanes:r,cachePool:h},e!==null&&Zi(a,null),Vu(),Ym(a),e!==null&&Bs(e,a,c,!0),a.childLanes=f,null}function Ki(e,a){return a=eo({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function qp(e,a,r){return hs(a,e.child,null,r),e=Ki(a,a.pendingProps),e.flags|=2,Mt(a),a.memoizedState=null,e}function c2(e,a,r){var c=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(Pe){if(c.mode==="hidden")return e=Ki(a,c),a.lanes=536870912,mr(null,e);if(Gu(a),(e=Le)?(e=Fx(e,na),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:pn!==null?{id:ya,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=a,a.child=r,ht=a,Le=null)):e=null,e===null)throw gn(a);return a.lanes=536870912,null}return Ki(a,c)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(Gu(a),f)if(a.flags&256)a.flags&=-257,a=qp(e,a,r);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(l(558));else if(st||Bs(e,a,r,!1),f=(r&e.childLanes)!==0,st||f){if(c=Ge,c!==null&&(y=Ph(c,r),y!==0&&y!==h.retryLane))throw h.retryLane=y,rs(e,y),Pt(c,e,y),dd;co(),a=qp(e,a,r)}else e=h.treeContext,Le=la(y.nextSibling),ht=a,Pe=!0,xn=null,na=!1,e!==null&&wm(a,e),a=Ki(a,c),a.flags|=4096;return a}return e=_a(e.child,{mode:c.mode,children:c.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Ji(e,a){var r=a.ref;if(r===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(a.flags|=4194816)}}function Od(e,a,r,c,f){return us(a),r=Du(e,a,r,c,void 0,f),c=Wu(),e!==null&&!st?(Bu(e,a,f),Ya(e,a,f)):(Pe&&c&&$u(a),a.flags|=1,pt(e,a,r,f),a.child)}function Mp(e,a,r,c,f,h){return us(a),a.updateQueue=null,r=Um(a,c,r,f),Vm(e),c=Wu(),e!==null&&!st?(Bu(e,a,h),Ya(e,a,h)):(Pe&&c&&$u(a),a.flags|=1,pt(e,a,r,h),a.child)}function Yp(e,a,r,c,f){if(us(a),a.stateNode===null){var h=Gs,y=r.contextType;typeof y=="object"&&y!==null&&(h=mt(y)),h=new r(c,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=cd,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=c,h.state=a.memoizedState,h.refs={},Eu(a),y=r.contextType,h.context=typeof y=="object"&&y!==null?mt(y):Gs,h.state=a.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(od(a,r,y,c),h.state=a.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&cd.enqueueReplaceState(h,h.state,null),ur(a,c,h,f),cr(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(e===null){h=a.stateNode;var w=a.memoizedProps,R=ps(r,w);h.props=R;var Y=h.context,H=r.contextType;y=Gs,typeof H=="object"&&H!==null&&(y=mt(H));var K=r.getDerivedStateFromProps;H=typeof K=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,H||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||Y!==y)&&$p(a,h,c,y),vn=!1;var V=a.memoizedState;h.state=V,ur(a,c,h,f),cr(),Y=a.memoizedState,w||V!==Y||vn?(typeof K=="function"&&(od(a,r,K,c),Y=a.memoizedState),(R=vn||kp(a,r,R,c,V,Y,y))?(H||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=Y),h.props=c,h.state=Y,h.context=y,c=R):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{h=a.stateNode,qu(e,a),y=a.memoizedProps,H=ps(r,y),h.props=H,K=a.pendingProps,V=h.context,Y=r.contextType,R=Gs,typeof Y=="object"&&Y!==null&&(R=mt(Y)),w=r.getDerivedStateFromProps,(Y=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==K||V!==R)&&$p(a,h,c,R),vn=!1,V=a.memoizedState,h.state=V,ur(a,c,h,f),cr();var G=a.memoizedState;y!==K||V!==G||vn||e!==null&&e.dependencies!==null&&Xi(e.dependencies)?(typeof w=="function"&&(od(a,r,w,c),G=a.memoizedState),(H=vn||kp(a,r,H,c,V,G,R)||e!==null&&e.dependencies!==null&&Xi(e.dependencies))?(Y||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(c,G,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(c,G,R)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=G),h.props=c,h.state=G,h.context=R,c=H):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),c=!1)}return h=c,Ji(e,a),c=(a.flags&128)!==0,h||c?(h=a.stateNode,r=c&&typeof r.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,e!==null&&c?(a.child=hs(a,e.child,null,f),a.child=hs(a,null,r,f)):pt(e,a,r,f),a.memoizedState=h.state,e=a.child):e=Ya(e,a,f),e}function Vp(e,a,r,c){return os(),a.flags|=256,pt(e,a,r,c),a.child}var fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hd(e){return{baseLanes:e,cachePool:zm()}}function md(e,a,r){return e=e!==null?e.childLanes&~r:0,a&&(e|=Vt),e}function Up(e,a,r){var c=a.pendingProps,f=!1,h=(a.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),y&&(f=!0,a.flags&=-129),y=(a.flags&32)!==0,a.flags&=-33,e===null){if(Pe){if(f?Qn(a):jn(),(e=Le)?(e=Fx(e,na),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:pn!==null?{id:ya,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=a,a.child=r,ht=a,Le=null)):e=null,e===null)throw gn(a);return Fd(e)?a.lanes=32:a.lanes=536870912,null}var w=c.children;return c=c.fallback,f?(jn(),f=a.mode,w=eo({mode:"hidden",children:w},f),c=is(c,f,r,null),w.return=a,c.return=a,w.sibling=c,a.child=w,c=a.child,c.memoizedState=hd(r),c.childLanes=md(e,y,r),a.memoizedState=fd,mr(null,c)):(Qn(a),pd(a,w))}var R=e.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(h)a.flags&256?(Qn(a),a.flags&=-257,a=xd(e,a,r)):a.memoizedState!==null?(jn(),a.child=e.child,a.flags|=128,a=null):(jn(),w=c.fallback,f=a.mode,c=eo({mode:"visible",children:c.children},f),w=is(w,f,r,null),w.flags|=2,c.return=a,w.return=a,c.sibling=w,a.child=c,hs(a,e.child,null,r),c=a.child,c.memoizedState=hd(r),c.childLanes=md(e,y,r),a.memoizedState=fd,a=mr(null,c));else if(Qn(a),Fd(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var Y=y.dgst;y=Y,c=Error(l(419)),c.stack="",c.digest=y,nr({value:c,source:null,stack:null}),a=xd(e,a,r)}else if(st||Bs(e,a,r,!1),y=(r&e.childLanes)!==0,st||y){if(y=Ge,y!==null&&(c=Ph(y,r),c!==0&&c!==R.retryLane))throw R.retryLane=c,rs(e,c),Pt(y,e,c),dd;Id(w)||co(),a=xd(e,a,r)}else Id(w)?(a.flags|=192,a.child=e.child,a=null):(e=R.treeContext,Le=la(w.nextSibling),ht=a,Pe=!0,xn=null,na=!1,e!==null&&wm(a,e),a=pd(a,c.children),a.flags|=4096);return a}return f?(jn(),w=c.fallback,f=a.mode,R=e.child,Y=R.sibling,c=_a(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,Y!==null?w=_a(Y,w):(w=is(w,f,r,null),w.flags|=2),w.return=a,c.return=a,c.sibling=w,a.child=c,mr(null,c),c=a.child,w=e.child.memoizedState,w===null?w=hd(r):(f=w.cachePool,f!==null?(R=at._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=zm(),w={baseLanes:w.baseLanes|r,cachePool:f}),c.memoizedState=w,c.childLanes=md(e,y,r),a.memoizedState=fd,mr(e.child,c)):(Qn(a),r=e.child,e=r.sibling,r=_a(r,{mode:"visible",children:c.children}),r.return=a,r.sibling=null,e!==null&&(y=a.deletions,y===null?(a.deletions=[e],a.flags|=16):y.push(e)),a.child=r,a.memoizedState=null,r)}function pd(e,a){return a=eo({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function eo(e,a){return e=Et(22,e,null,a),e.lanes=0,e}function xd(e,a,r){return hs(a,e.child,null,r),e=pd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Gp(e,a,r){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a),Ru(e.return,a,r)}function gd(e,a,r,c,f,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:r,tailMode:f,treeForkCount:h}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=r,y.tailMode=f,y.treeForkCount=h)}function Lp(e,a,r){var c=a.pendingProps,f=c.revealOrder,h=c.tail;c=c.children;var y=Je.current,w=(y&2)!==0;if(w?(y=y&1|2,a.flags|=128):y&=1,ve(Je,y),pt(e,a,c,r),c=Pe?ar:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gp(e,r,a);else if(e.tag===19)Gp(e,r,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=a.child,f=null;r!==null;)e=r.alternate,e!==null&&Vi(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=a.child,a.child=null):(f=r.sibling,r.sibling=null),gd(a,!1,f,r,h,c);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=a.child,a.child=null;f!==null;){if(e=f.alternate,e!==null&&Vi(e)===null){a.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}gd(a,!0,r,null,h,c);break;case"together":gd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Ya(e,a,r){if(e!==null&&(a.dependencies=e.dependencies),$n|=a.lanes,(r&a.childLanes)===0)if(e!==null){if(Bs(e,a,r,!1),(r&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(l(153));if(a.child!==null){for(e=a.child,r=_a(e,e.pendingProps),a.child=r,r.return=a;e.sibling!==null;)e=e.sibling,r=r.sibling=_a(e,e.pendingProps),r.return=a;r.sibling=null}return a.child}function bd(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Xi(e)))}function u2(e,a,r){switch(a.tag){case 3:Ot(a,a.stateNode.containerInfo),bn(a,at,e.memoizedState.cache),os();break;case 27:case 5:tt(a);break;case 4:Ot(a,a.stateNode.containerInfo);break;case 10:bn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Gu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Qn(a),a.flags|=128,null):(r&a.child.childLanes)!==0?Up(e,a,r):(Qn(a),e=Ya(e,a,r),e!==null?e.sibling:null);Qn(a);break;case 19:var f=(e.flags&128)!==0;if(c=(r&a.childLanes)!==0,c||(Bs(e,a,r,!1),c=(r&a.childLanes)!==0),f){if(c)return Lp(e,a,r);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ve(Je,Je.current),c)break;return null;case 22:return a.lanes=0,Ap(e,a,r,a.pendingProps);case 24:bn(a,at,e.memoizedState.cache)}return Ya(e,a,r)}function Dp(e,a,r){if(e!==null)if(e.memoizedProps!==a.pendingProps)st=!0;else{if(!bd(e,r)&&(a.flags&128)===0)return st=!1,u2(e,a,r);st=(e.flags&131072)!==0}else st=!1,Pe&&(a.flags&1048576)!==0&&jm(a,ar,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(e=Os(a.elementType),a.type=e,typeof e=="function")ju(e)?(c=ps(e,c),a.tag=1,a=Yp(null,a,e,c,r)):(a.tag=0,a=Od(null,a,e,c,r));else{if(e!=null){var f=e.$$typeof;if(f===Z){a.tag=11,a=Xp(null,a,e,c,r);break e}else if(f===X){a.tag=14,a=_p(null,a,e,c,r);break e}}throw a=ie(e)||e,Error(l(306,a,""))}}return a;case 0:return Od(e,a,a.type,a.pendingProps,r);case 1:return c=a.type,f=ps(c,a.pendingProps),Yp(e,a,c,f,r);case 3:e:{if(Ot(a,a.stateNode.containerInfo),e===null)throw Error(l(387));c=a.pendingProps;var h=a.memoizedState;f=h.element,qu(e,a),ur(a,c,null,r);var y=a.memoizedState;if(c=y.cache,bn(a,at,c),c!==h.cache&&Cu(a,[at],r,!0),cr(),c=y.element,h.isDehydrated)if(h={element:c,isDehydrated:!1,cache:y.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=Vp(e,a,c,r);break e}else if(c!==f){f=ea(Error(l(424)),a),nr(f),a=Vp(e,a,c,r);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=la(e.firstChild),ht=a,Pe=!0,xn=null,na=!0,r=Am(a,null,c,r),a.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(os(),c===f){a=Ya(e,a,r);break e}pt(e,a,c,r)}a=a.child}return a;case 26:return Ji(e,a),e===null?(r=ng(a.type,null,a.pendingProps,null))?a.memoizedState=r:Pe||(r=a.type,e=a.pendingProps,c=xo(oe.current).createElement(r),c[ft]=a,c[Qt]=e,xt(c,r,e),ut(c),a.stateNode=c):a.memoizedState=ng(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return tt(a),e===null&&Pe&&(c=a.stateNode=eg(a.type,a.pendingProps,oe.current),ht=a,na=!0,f=Le,Rn(a.type)?(Kd=f,Le=la(c.firstChild)):Le=f),pt(e,a,a.pendingProps.children,r),Ji(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&Pe&&((f=c=Le)&&(c=M2(c,a.type,a.pendingProps,na),c!==null?(a.stateNode=c,ht=a,Le=la(c.firstChild),na=!1,f=!0):f=!1),f||gn(a)),tt(a),f=a.type,h=a.pendingProps,y=e!==null?e.memoizedProps:null,c=h.children,Wd(f,h)?c=null:y!==null&&Wd(f,y)&&(a.flags|=32),a.memoizedState!==null&&(f=Du(e,a,t2,null,null,r),Nr._currentValue=f),Ji(e,a),pt(e,a,c,r),a.child;case 6:return e===null&&Pe&&((e=r=Le)&&(r=Y2(r,a.pendingProps,na),r!==null?(a.stateNode=r,ht=a,Le=null,e=!0):e=!1),e||gn(a)),null;case 13:return Up(e,a,r);case 4:return Ot(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=hs(a,null,c,r):pt(e,a,c,r),a.child;case 11:return Xp(e,a,a.type,a.pendingProps,r);case 7:return pt(e,a,a.pendingProps,r),a.child;case 8:return pt(e,a,a.pendingProps.children,r),a.child;case 12:return pt(e,a,a.pendingProps.children,r),a.child;case 10:return c=a.pendingProps,bn(a,a.type,c.value),pt(e,a,c.children,r),a.child;case 9:return f=a.type._context,c=a.pendingProps.children,us(a),f=mt(f),c=c(f),a.flags|=1,pt(e,a,c,r),a.child;case 14:return _p(e,a,a.type,a.pendingProps,r);case 15:return Zp(e,a,a.type,a.pendingProps,r);case 19:return Lp(e,a,r);case 31:return c2(e,a,r);case 22:return Ap(e,a,r,a.pendingProps);case 24:return us(a),c=mt(at),e===null?(f=Zu(),f===null&&(f=Ge,h=Xu(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=r),f=h),a.memoizedState={parent:c,cache:f},Eu(a),bn(a,at,f)):((e.lanes&r)!==0&&(qu(e,a),ur(a,null,null,r),cr()),f=e.memoizedState,h=a.memoizedState,f.parent!==c?(f={parent:c,cache:c},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),bn(a,at,c)):(c=h.cache,bn(a,at,c),c!==f.cache&&Cu(a,[at],r,!0))),pt(e,a,a.pendingProps.children,r),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function Va(e){e.flags|=4}function vd(e,a,r,c,f){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(bx())e.flags|=8192;else throw fs=Ei,Au}else e.flags&=-16777217}function Wp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!og(a))if(bx())e.flags|=8192;else throw fs=Ei,Au}function to(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?kh():536870912,e.lanes|=a,rl|=a)}function pr(e,a){if(!Pe)switch(e.tailMode){case"hidden":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var c=null;r!==null;)r.alternate!==null&&(c=r),r=r.sibling;c===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function De(e){var a=e.alternate!==null&&e.alternate.child===e.child,r=0,c=0;if(a)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=r,a}function d2(e,a,r){var c=a.pendingProps;switch(Tu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(a),null;case 1:return De(a),null;case 3:return r=a.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Ea(at),_e(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(a)?Va(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Nu())),De(a),null;case 26:var f=a.type,h=a.memoizedState;return e===null?(Va(a),h!==null?(De(a),Wp(a,h)):(De(a),vd(a,f,null,c,r))):h?h!==e.memoizedState?(Va(a),De(a),Wp(a,h)):(De(a),a.flags&=-16777217):(e=e.memoizedProps,e!==c&&Va(a),De(a),vd(a,f,e,c,r)),null;case 27:if(bt(a),r=oe.current,f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return De(a),null}e=Xe.current,Ws(a)?km(a):(e=eg(f,c,r),a.stateNode=e,Va(a))}return De(a),null;case 5:if(bt(a),f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return De(a),null}if(h=Xe.current,Ws(a))km(a);else{var y=xo(oe.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof c.is=="string"?y.createElement("select",{is:c.is}):y.createElement("select"),c.multiple?h.multiple=!0:c.size&&(h.size=c.size);break;default:h=typeof c.is=="string"?y.createElement(f,{is:c.is}):y.createElement(f)}}h[ft]=a,h[Qt]=c;e:for(y=a.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===a)break e;for(;y.sibling===null;){if(y.return===null||y.return===a)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}a.stateNode=h;e:switch(xt(h,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Va(a)}}return De(a),vd(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,r),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==c&&Va(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(l(166));if(e=oe.current,Ws(a)){if(e=a.stateNode,r=a.memoizedProps,c=null,f=ht,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}e[ft]=a,e=!!(e.nodeValue===r||c!==null&&c.suppressHydrationWarning===!0||Ux(e.nodeValue,r)),e||gn(a,!0)}else e=xo(e).createTextNode(c),e[ft]=a,a.stateNode=e}return De(a),null;case 31:if(r=a.memoizedState,e===null||e.memoizedState!==null){if(c=Ws(a),r!==null){if(e===null){if(!c)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;De(a),e=!1}else r=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return a.flags&256?(Mt(a),a):(Mt(a),null);if((a.flags&128)!==0)throw Error(l(558))}return De(a),null;case 13:if(c=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ws(a),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;De(a),f=!1}else f=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Mt(a),a):(Mt(a),null)}return Mt(a),(a.flags&128)!==0?(a.lanes=r,a):(r=c!==null,e=e!==null&&e.memoizedState!==null,r&&(c=a.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),h=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),h!==f&&(c.flags|=2048)),r!==e&&r&&(a.child.flags|=8192),to(a,a.updateQueue),De(a),null);case 4:return _e(),e===null&&Vd(a.stateNode.containerInfo),De(a),null;case 10:return Ea(a.type),De(a),null;case 19:if(Se(Je),c=a.memoizedState,c===null)return De(a),null;if(f=(a.flags&128)!==0,h=c.rendering,h===null)if(f)pr(c,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(h=Vi(e),h!==null){for(a.flags|=128,pr(c,!1),e=h.updateQueue,a.updateQueue=e,to(a,e),a.subtreeFlags=0,e=r,r=a.child;r!==null;)ym(r,e),r=r.sibling;return ve(Je,Je.current&1|2),Pe&&Za(a,c.treeForkCount),a.child}e=e.sibling}c.tail!==null&&Xt()>ro&&(a.flags|=128,f=!0,pr(c,!1),a.lanes=4194304)}else{if(!f)if(e=Vi(h),e!==null){if(a.flags|=128,f=!0,e=e.updateQueue,a.updateQueue=e,to(a,e),pr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Pe)return De(a),null}else 2*Xt()-c.renderingStartTime>ro&&r!==536870912&&(a.flags|=128,f=!0,pr(c,!1),a.lanes=4194304);c.isBackwards?(h.sibling=a.child,a.child=h):(e=c.last,e!==null?e.sibling=h:a.child=h,c.last=h)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Xt(),e.sibling=null,r=Je.current,ve(Je,f?r&1|2:r&1),Pe&&Za(a,c.treeForkCount),e):(De(a),null);case 22:case 23:return Mt(a),Uu(),c=a.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(r&536870912)!==0&&(a.flags&128)===0&&(De(a),a.subtreeFlags&6&&(a.flags|=8192)):De(a),r=a.updateQueue,r!==null&&to(a,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048),e!==null&&Se(ds),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),a.memoizedState.cache!==r&&(a.flags|=2048),Ea(at),De(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function O2(e,a){switch(Tu(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Ea(at),_e(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return bt(a),null;case 31:if(a.memoizedState!==null){if(Mt(a),a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Mt(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Se(Je),null;case 4:return _e(),null;case 10:return Ea(a.type),null;case 22:case 23:return Mt(a),Uu(),e!==null&&Se(ds),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Ea(at),null;case 25:return null;default:return null}}function Bp(e,a){switch(Tu(a),a.tag){case 3:Ea(at),_e();break;case 26:case 27:case 5:bt(a);break;case 4:_e();break;case 31:a.memoizedState!==null&&Mt(a);break;case 13:Mt(a);break;case 19:Se(Je);break;case 10:Ea(a.type);break;case 22:case 23:Mt(a),Uu(),e!==null&&Se(ds);break;case 24:Ea(at)}}function xr(e,a){try{var r=a.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){c=void 0;var h=r.create,y=r.inst;c=h(),y.destroy=c}r=r.next}while(r!==f)}}catch(w){Me(a,a.return,w)}}function wn(e,a,r){try{var c=a.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var h=f.next;c=h;do{if((c.tag&e)===e){var y=c.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,f=a;var R=r,Y=w;try{Y()}catch(H){Me(f,R,H)}}}c=c.next}while(c!==h)}}catch(H){Me(a,a.return,H)}}function Hp(e){var a=e.updateQueue;if(a!==null){var r=e.stateNode;try{qm(a,r)}catch(c){Me(e,e.return,c)}}}function Ip(e,a,r){r.props=ps(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(c){Me(e,a,c)}}function gr(e,a){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof r=="function"?e.refCleanup=r(c):r.current=c}}catch(f){Me(e,a,f)}}function Qa(e,a){var r=e.ref,c=e.refCleanup;if(r!==null)if(typeof c=="function")try{c()}catch(f){Me(e,a,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Me(e,a,f)}else r.current=null}function Fp(e){var a=e.type,r=e.memoizedProps,c=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":r.autoFocus&&c.focus();break e;case"img":r.src?c.src=r.src:r.srcSet&&(c.srcset=r.srcSet)}}catch(f){Me(e,e.return,f)}}function yd(e,a,r){try{var c=e.stateNode;X2(c,e.type,r,a),c[Qt]=a}catch(f){Me(e,e.return,f)}}function Kp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Rn(e.type)||e.tag===4}function Sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Rn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qd(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,a):(a=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.appendChild(e),r=r._reactRootContainer,r!=null||a.onclick!==null||(a.onclick=Ca));else if(c!==4&&(c===27&&Rn(e.type)&&(r=e.stateNode,a=null),e=e.child,e!==null))for(Qd(e,a,r),e=e.sibling;e!==null;)Qd(e,a,r),e=e.sibling}function ao(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?r.insertBefore(e,a):r.appendChild(e);else if(c!==4&&(c===27&&Rn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(ao(e,a,r),e=e.sibling;e!==null;)ao(e,a,r),e=e.sibling}function Jp(e){var a=e.stateNode,r=e.memoizedProps;try{for(var c=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);xt(a,c,r),a[ft]=e,a[Qt]=r}catch(h){Me(e,e.return,h)}}var Ua=!1,lt=!1,jd=!1,ex=typeof WeakSet=="function"?WeakSet:Set,dt=null;function f2(e,a){if(e=e.containerInfo,Ld=jo,e=Om(e),xu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var c=r.getSelection&&r.getSelection();if(c&&c.rangeCount!==0){r=c.anchorNode;var f=c.anchorOffset,h=c.focusNode;c=c.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var y=0,w=-1,R=-1,Y=0,H=0,K=e,V=null;t:for(;;){for(var G;K!==r||f!==0&&K.nodeType!==3||(w=y+f),K!==h||c!==0&&K.nodeType!==3||(R=y+c),K.nodeType===3&&(y+=K.nodeValue.length),(G=K.firstChild)!==null;)V=K,K=G;for(;;){if(K===e)break t;if(V===r&&++Y===f&&(w=y),V===h&&++H===c&&(R=y),(G=K.nextSibling)!==null)break;K=V,V=K.parentNode}K=G}r=w===-1||R===-1?null:{start:w,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dd={focusedElem:e,selectionRange:r},jo=!1,dt=a;dt!==null;)if(a=dt,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,dt=e;else for(;dt!==null;){switch(a=dt,h=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=a,f=h.memoizedProps,h=h.memoizedState,c=r.stateNode;try{var ce=ps(r.type,f);e=c.getSnapshotBeforeUpdate(ce,h),c.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Me(r,r.return,ge)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,r=e.nodeType,r===9)Hd(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=a.sibling,e!==null){e.return=a.return,dt=e;break}dt=a.return}}function tx(e,a,r){var c=r.flags;switch(r.tag){case 0:case 11:case 15:La(e,r),c&4&&xr(5,r);break;case 1:if(La(e,r),c&4)if(e=r.stateNode,a===null)try{e.componentDidMount()}catch(y){Me(r,r.return,y)}else{var f=ps(r.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(f,a,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Me(r,r.return,y)}}c&64&&Hp(r),c&512&&gr(r,r.return);break;case 3:if(La(e,r),c&64&&(e=r.updateQueue,e!==null)){if(a=null,r.child!==null)switch(r.child.tag){case 27:case 5:a=r.child.stateNode;break;case 1:a=r.child.stateNode}try{qm(e,a)}catch(y){Me(r,r.return,y)}}break;case 27:a===null&&c&4&&Jp(r);case 26:case 5:La(e,r),a===null&&c&4&&Fp(r),c&512&&gr(r,r.return);break;case 12:La(e,r);break;case 31:La(e,r),c&4&&sx(e,r);break;case 13:La(e,r),c&4&&lx(e,r),c&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=S2.bind(null,r),V2(e,r))));break;case 22:if(c=r.memoizedState!==null||Ua,!c){a=a!==null&&a.memoizedState!==null||lt,f=Ua;var h=lt;Ua=c,(lt=a)&&!h?Da(e,r,(r.subtreeFlags&8772)!==0):La(e,r),Ua=f,lt=h}break;case 30:break;default:La(e,r)}}function ax(e){var a=e.alternate;a!==null&&(e.alternate=null,ax(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&eu(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,wt=!1;function Ga(e,a,r){for(r=r.child;r!==null;)nx(e,a,r),r=r.sibling}function nx(e,a,r){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Vl,r)}catch{}switch(r.tag){case 26:lt||Qa(r,a),Ga(e,a,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:lt||Qa(r,a);var c=He,f=wt;Rn(r.type)&&(He=r.stateNode,wt=!1),Ga(e,a,r),$r(r.stateNode),He=c,wt=f;break;case 5:lt||Qa(r,a);case 6:if(c=He,f=wt,He=null,Ga(e,a,r),He=c,wt=f,He!==null)if(wt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(r.stateNode)}catch(h){Me(r,a,h)}else try{He.removeChild(r.stateNode)}catch(h){Me(r,a,h)}break;case 18:He!==null&&(wt?(e=He,Hx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),hl(e)):Hx(He,r.stateNode));break;case 4:c=He,f=wt,He=r.stateNode.containerInfo,wt=!0,Ga(e,a,r),He=c,wt=f;break;case 0:case 11:case 14:case 15:wn(2,r,a),lt||wn(4,r,a),Ga(e,a,r);break;case 1:lt||(Qa(r,a),c=r.stateNode,typeof c.componentWillUnmount=="function"&&Ip(r,a,c)),Ga(e,a,r);break;case 21:Ga(e,a,r);break;case 22:lt=(c=lt)||r.memoizedState!==null,Ga(e,a,r),lt=c;break;default:Ga(e,a,r)}}function sx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hl(e)}catch(r){Me(a,a.return,r)}}}function lx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hl(e)}catch(r){Me(a,a.return,r)}}function h2(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new ex),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new ex),a;default:throw Error(l(435,e.tag))}}function no(e,a){var r=h2(e);a.forEach(function(c){if(!r.has(c)){r.add(c);var f=Q2.bind(null,e,c);c.then(f,f)}})}function kt(e,a){var r=a.deletions;if(r!==null)for(var c=0;c<r.length;c++){var f=r[c],h=e,y=a,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Rn(w.type)){He=w.stateNode,wt=!1;break e}break;case 5:He=w.stateNode,wt=!1;break e;case 3:case 4:He=w.stateNode.containerInfo,wt=!0;break e}w=w.return}if(He===null)throw Error(l(160));nx(h,y,f),He=null,wt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)rx(a,e),a=a.sibling}var Oa=null;function rx(e,a){var r=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(a,e),$t(e),c&4&&(wn(3,e,e.return),xr(3,e),wn(5,e,e.return));break;case 1:kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),c&64&&Ua&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?c:r.concat(c))));break;case 26:var f=Oa;if(kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),c&4){var h=r!==null?r.memoizedState:null;if(c=e.memoizedState,r===null)if(c===null)if(e.stateNode===null){e:{c=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Ll]||h[ft]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(c),f.head.insertBefore(h,f.querySelector("head > title"))),xt(h,c,r),h[ft]=e,ut(h),c=h;break e;case"link":var y=rg("link","href",f).get(c+(r.href||""));if(y){for(var w=0;w<y.length;w++)if(h=y[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){y.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;case"meta":if(y=rg("meta","content",f).get(c+(r.content||""))){for(w=0;w<y.length;w++)if(h=y[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){y.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;default:throw Error(l(468,c))}h[ft]=e,ut(h),c=h}e.stateNode=c}else ig(f,e.type,e.stateNode);else e.stateNode=lg(f,c,e.memoizedProps);else h!==c?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,c===null?ig(f,e.type,e.stateNode):lg(f,c,e.memoizedProps)):c===null&&e.stateNode!==null&&yd(e,e.memoizedProps,r.memoizedProps)}break;case 27:kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),r!==null&&c&4&&yd(e,e.memoizedProps,r.memoizedProps);break;case 5:if(kt(a,e),$t(e),c&512&&(lt||r===null||Qa(r,r.return)),e.flags&32){f=e.stateNode;try{As(f,"")}catch(ce){Me(e,e.return,ce)}}c&4&&e.stateNode!=null&&(f=e.memoizedProps,yd(e,f,r!==null?r.memoizedProps:f)),c&1024&&(jd=!0);break;case 6:if(kt(a,e),$t(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,r=e.stateNode;try{r.nodeValue=c}catch(ce){Me(e,e.return,ce)}}break;case 3:if(vo=null,f=Oa,Oa=go(a.containerInfo),kt(a,e),Oa=f,$t(e),c&4&&r!==null&&r.memoizedState.isDehydrated)try{hl(a.containerInfo)}catch(ce){Me(e,e.return,ce)}jd&&(jd=!1,ix(e));break;case 4:c=Oa,Oa=go(e.stateNode.containerInfo),kt(a,e),$t(e),Oa=c;break;case 12:kt(a,e),$t(e);break;case 31:kt(a,e),$t(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 13:kt(a,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(lo=Xt()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 22:f=e.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,Y=Ua,H=lt;if(Ua=Y||f,lt=H||R,kt(a,e),lt=H,Ua=Y,$t(e),c&8192)e:for(a=e.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(r===null||R||Ua||lt||xs(e)),r=null,a=e;;){if(a.tag===5||a.tag===26){if(r===null){R=r=a;try{if(h=R.stateNode,f)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=R.stateNode;var K=R.memoizedProps.style,V=K!=null&&K.hasOwnProperty("display")?K.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ce){Me(R,R.return,ce)}}}else if(a.tag===6){if(r===null){R=a;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(ce){Me(R,R.return,ce)}}}else if(a.tag===18){if(r===null){R=a;try{var G=R.stateNode;f?Ix(G,!0):Ix(R.stateNode,!1)}catch(ce){Me(R,R.return,ce)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;r===a&&(r=null),a=a.return}r===a&&(r=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=e.updateQueue,c!==null&&(r=c.retryQueue,r!==null&&(c.retryQueue=null,no(e,r))));break;case 19:kt(a,e),$t(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,no(e,c)));break;case 30:break;case 21:break;default:kt(a,e),$t(e)}}function $t(e){var a=e.flags;if(a&2){try{for(var r,c=e.return;c!==null;){if(Kp(c)){r=c;break}c=c.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,h=Sd(e);ao(e,h,f);break;case 5:var y=r.stateNode;r.flags&32&&(As(y,""),r.flags&=-33);var w=Sd(e);ao(e,w,y);break;case 3:case 4:var R=r.stateNode.containerInfo,Y=Sd(e);Qd(e,Y,R);break;default:throw Error(l(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function ix(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;ix(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function La(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)tx(e,a.alternate,a),a=a.sibling}function xs(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:wn(4,a,a.return),xs(a);break;case 1:Qa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&Ip(a,a.return,r),xs(a);break;case 27:$r(a.stateNode);case 26:case 5:Qa(a,a.return),xs(a);break;case 22:a.memoizedState===null&&xs(a);break;case 30:xs(a);break;default:xs(a)}e=e.sibling}}function Da(e,a,r){for(r=r&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,f=e,h=a,y=h.flags;switch(h.tag){case 0:case 11:case 15:Da(f,h,r),xr(4,h);break;case 1:if(Da(f,h,r),c=h,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Y){Me(c,c.return,Y)}if(c=h,f=c.updateQueue,f!==null){var w=c.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Em(R[f],w)}catch(Y){Me(c,c.return,Y)}}r&&y&64&&Hp(h),gr(h,h.return);break;case 27:Jp(h);case 26:case 5:Da(f,h,r),r&&c===null&&y&4&&Fp(h),gr(h,h.return);break;case 12:Da(f,h,r);break;case 31:Da(f,h,r),r&&y&4&&sx(f,h);break;case 13:Da(f,h,r),r&&y&4&&lx(f,h);break;case 22:h.memoizedState===null&&Da(f,h,r),gr(h,h.return);break;case 30:break;default:Da(f,h,r)}a=a.sibling}}function wd(e,a){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&sr(r))}function kd(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&sr(e))}function fa(e,a,r,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ox(e,a,r,c),a=a.sibling}function ox(e,a,r,c){var f=a.flags;switch(a.tag){case 0:case 11:case 15:fa(e,a,r,c),f&2048&&xr(9,a);break;case 1:fa(e,a,r,c);break;case 3:fa(e,a,r,c),f&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&sr(e)));break;case 12:if(f&2048){fa(e,a,r,c),e=a.stateNode;try{var h=a.memoizedProps,y=h.id,w=h.onPostCommit;typeof w=="function"&&w(y,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Me(a,a.return,R)}}else fa(e,a,r,c);break;case 31:fa(e,a,r,c);break;case 13:fa(e,a,r,c);break;case 23:break;case 22:h=a.stateNode,y=a.alternate,a.memoizedState!==null?h._visibility&2?fa(e,a,r,c):br(e,a):h._visibility&2?fa(e,a,r,c):(h._visibility|=2,nl(e,a,r,c,(a.subtreeFlags&10256)!==0||!1)),f&2048&&wd(y,a);break;case 24:fa(e,a,r,c),f&2048&&kd(a.alternate,a);break;default:fa(e,a,r,c)}}function nl(e,a,r,c,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=e,y=a,w=r,R=c,Y=y.flags;switch(y.tag){case 0:case 11:case 15:nl(h,y,w,R,f),xr(8,y);break;case 23:break;case 22:var H=y.stateNode;y.memoizedState!==null?H._visibility&2?nl(h,y,w,R,f):br(h,y):(H._visibility|=2,nl(h,y,w,R,f)),f&&Y&2048&&wd(y.alternate,y);break;case 24:nl(h,y,w,R,f),f&&Y&2048&&kd(y.alternate,y);break;default:nl(h,y,w,R,f)}a=a.sibling}}function br(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var r=e,c=a,f=c.flags;switch(c.tag){case 22:br(r,c),f&2048&&wd(c.alternate,c);break;case 24:br(r,c),f&2048&&kd(c.alternate,c);break;default:br(r,c)}a=a.sibling}}var vr=8192;function sl(e,a,r){if(e.subtreeFlags&vr)for(e=e.child;e!==null;)cx(e,a,r),e=e.sibling}function cx(e,a,r){switch(e.tag){case 26:sl(e,a,r),e.flags&vr&&e.memoizedState!==null&&ej(r,Oa,e.memoizedState,e.memoizedProps);break;case 5:sl(e,a,r);break;case 3:case 4:var c=Oa;Oa=go(e.stateNode.containerInfo),sl(e,a,r),Oa=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=vr,vr=16777216,sl(e,a,r),vr=c):sl(e,a,r));break;default:sl(e,a,r)}}function ux(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function yr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,Ox(c,e)}ux(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dx(e),e=e.sibling}function dx(e){switch(e.tag){case 0:case 11:case 15:yr(e),e.flags&2048&&wn(9,e,e.return);break;case 3:yr(e);break;case 12:yr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,so(e)):yr(e);break;default:yr(e)}}function so(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,Ox(c,e)}ux(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:wn(8,a,a.return),so(a);break;case 22:r=a.stateNode,r._visibility&2&&(r._visibility&=-3,so(a));break;default:so(a)}e=e.sibling}}function Ox(e,a){for(;dt!==null;){var r=dt;switch(r.tag){case 0:case 11:case 15:wn(8,r,a);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var c=r.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:sr(r.memoizedState.cache)}if(c=r.child,c!==null)c.return=r,dt=c;else e:for(r=e;dt!==null;){c=dt;var f=c.sibling,h=c.return;if(ax(c),c===r){dt=null;break e}if(f!==null){f.return=h,dt=f;break e}dt=h}}}var m2={getCacheForType:function(e){var a=mt(at),r=a.data.get(e);return r===void 0&&(r=e(),a.data.set(e,r)),r},cacheSignal:function(){return mt(at).controller.signal}},p2=typeof WeakMap=="function"?WeakMap:Map,Ze=0,Ge=null,we=null,$e=0,qe=0,Yt=null,kn=!1,ll=!1,$d=!1,Wa=0,Ke=0,$n=0,gs=0,Td=0,Vt=0,rl=0,Sr=null,Tt=null,Pd=!1,lo=0,fx=0,ro=1/0,io=null,Tn=null,it=0,Pn=null,il=null,Ba=0,Nd=0,zd=null,hx=null,Qr=0,Rd=null;function Ut(){return(Ze&2)!==0&&$e!==0?$e&-$e:z.T!==null?Ed():Nh()}function mx(){if(Vt===0)if(($e&536870912)===0||Pe){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),Vt=e}else Vt=536870912;return e=qt.current,e!==null&&(e.flags|=32),Vt}function Pt(e,a,r){(e===Ge&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ol(e,0),Nn(e,$e,Vt,!1)),Gl(e,r),((Ze&2)===0||e!==Ge)&&(e===Ge&&((Ze&2)===0&&(gs|=r),Ke===4&&Nn(e,$e,Vt,!1)),ja(e))}function px(e,a,r){if((Ze&6)!==0)throw Error(l(327));var c=!r&&(a&127)===0&&(a&e.expiredLanes)===0||Ul(e,a),f=c?b2(e,a):Xd(e,a,!0),h=c;do{if(f===0){ll&&!c&&Nn(e,a,0,!1);break}else{if(r=e.current.alternate,h&&!x2(r)){f=Xd(e,a,!1),h=!1;continue}if(f===2){if(h=a,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){a=y;e:{var w=e;f=Sr;var R=w.current.memoizedState.isDehydrated;if(R&&(ol(w,y).flags|=256),y=Xd(w,y,!1),y!==2){if($d&&!R){w.errorRecoveryDisabledLanes|=h,gs|=h,f=4;break e}h=Tt,Tt=f,h!==null&&(Tt===null?Tt=h:Tt.push.apply(Tt,h))}f=y}if(h=!1,f!==2)continue}}if(f===1){ol(e,0),Nn(e,a,0,!0);break}e:{switch(c=e,h=f,h){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:Nn(c,a,Vt,!kn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(f=lo+300-Xt(),10<f)){if(Nn(c,a,Vt,!kn),xi(c,0,!0)!==0)break e;Ba=a,c.timeoutHandle=Wx(xx.bind(null,c,r,Tt,io,Pd,a,Vt,gs,rl,kn,h,"Throttled",-0,0),f);break e}xx(c,r,Tt,io,Pd,a,Vt,gs,rl,kn,h,null,-0,0)}}break}while(!0);ja(e)}function xx(e,a,r,c,f,h,y,w,R,Y,H,K,V,G){if(e.timeoutHandle=-1,K=a.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ca},cx(a,h,K);var ce=(h&62914560)===h?lo-Xt():(h&4194048)===h?fx-Xt():0;if(ce=tj(K,ce),ce!==null){Ba=h,e.cancelPendingCommit=ce(wx.bind(null,e,a,h,r,c,f,y,w,R,H,K,null,V,G)),Nn(e,h,y,!Y);return}}wx(e,a,h,r,c,f,y,w,R)}function x2(e){for(var a=e;;){var r=a.tag;if((r===0||r===11||r===15)&&a.flags&16384&&(r=a.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var c=0;c<r.length;c++){var f=r[c],h=f.getSnapshot;f=f.value;try{if(!At(h(),f))return!1}catch{return!1}}if(r=a.child,a.subtreeFlags&16384&&r!==null)r.return=a,a=r;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Nn(e,a,r,c){a&=~Td,a&=~gs,e.suspendedLanes|=a,e.pingedLanes&=~a,c&&(e.warmLanes|=a),c=e.expirationTimes;for(var f=a;0<f;){var h=31-Zt(f),y=1<<h;c[h]=-1,f&=~y}r!==0&&$h(e,r,a)}function oo(){return(Ze&6)===0?(jr(0),!1):!0}function Cd(){if(we!==null){if(qe===0)var e=we.return;else e=we,Aa=cs=null,Hu(e),Ks=null,rr=0,e=we;for(;e!==null;)Bp(e.alternate,e),e=e.return;we=null}}function ol(e,a){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,A2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ba=0,Cd(),Ge=e,we=r=_a(e.current,null),$e=a,qe=0,Yt=null,kn=!1,ll=Ul(e,a),$d=!1,rl=Vt=Td=gs=$n=Ke=0,Tt=Sr=null,Pd=!1,(a&8)!==0&&(a|=a&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=a;0<c;){var f=31-Zt(c),h=1<<f;a|=e[f],c&=~h}return Wa=a,Pi(),r}function gx(e,a){be=null,z.H=hr,a===Fs||a===Ai?(a=Xm(),qe=3):a===Au?(a=Xm(),qe=4):qe=a===dd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Yt=a,we===null&&(Ke=1,Fi(e,ea(a,e.current)))}function bx(){var e=qt.current;return e===null?!0:($e&4194048)===$e?sa===null:($e&62914560)===$e||($e&536870912)!==0?e===sa:!1}function vx(){var e=z.H;return z.H=hr,e===null?hr:e}function yx(){var e=z.A;return z.A=m2,e}function co(){Ke=4,kn||($e&4194048)!==$e&&qt.current!==null||(ll=!0),($n&134217727)===0&&(gs&134217727)===0||Ge===null||Nn(Ge,$e,Vt,!1)}function Xd(e,a,r){var c=Ze;Ze|=2;var f=vx(),h=yx();(Ge!==e||$e!==a)&&(io=null,ol(e,a)),a=!1;var y=Ke;e:do try{if(qe!==0&&we!==null){var w=we,R=Yt;switch(qe){case 8:Cd(),y=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(a=!0);var Y=qe;if(qe=0,Yt=null,cl(e,w,R,Y),r&&ll){y=0;break e}break;default:Y=qe,qe=0,Yt=null,cl(e,w,R,Y)}}g2(),y=Ke;break}catch(H){gx(e,H)}while(!0);return a&&e.shellSuspendCounter++,Aa=cs=null,Ze=c,z.H=f,z.A=h,we===null&&(Ge=null,$e=0,Pi()),y}function g2(){for(;we!==null;)Sx(we)}function b2(e,a){var r=Ze;Ze|=2;var c=vx(),f=yx();Ge!==e||$e!==a?(io=null,ro=Xt()+500,ol(e,a)):ll=Ul(e,a);e:do try{if(qe!==0&&we!==null){a=we;var h=Yt;t:switch(qe){case 1:qe=0,Yt=null,cl(e,a,h,1);break;case 2:case 9:if(Rm(h)){qe=0,Yt=null,Qx(a);break}a=function(){qe!==2&&qe!==9||Ge!==e||(qe=7),ja(e)},h.then(a,a);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Rm(h)?(qe=0,Yt=null,Qx(a)):(qe=0,Yt=null,cl(e,a,h,7));break;case 5:var y=null;switch(we.tag){case 26:y=we.memoizedState;case 5:case 27:var w=we;if(y?og(y):w.stateNode.complete){qe=0,Yt=null;var R=w.sibling;if(R!==null)we=R;else{var Y=w.return;Y!==null?(we=Y,uo(Y)):we=null}break t}}qe=0,Yt=null,cl(e,a,h,5);break;case 6:qe=0,Yt=null,cl(e,a,h,6);break;case 8:Cd(),Ke=6;break e;default:throw Error(l(462))}}v2();break}catch(H){gx(e,H)}while(!0);return Aa=cs=null,z.H=c,z.A=f,Ze=r,we!==null?0:(Ge=null,$e=0,Pi(),Ke)}function v2(){for(;we!==null&&!US();)Sx(we)}function Sx(e){var a=Dp(e.alternate,e,Wa);e.memoizedProps=e.pendingProps,a===null?uo(e):we=a}function Qx(e){var a=e,r=a.alternate;switch(a.tag){case 15:case 0:a=Mp(r,a,a.pendingProps,a.type,void 0,$e);break;case 11:a=Mp(r,a,a.pendingProps,a.type.render,a.ref,$e);break;case 5:Hu(a);default:Bp(r,a),a=we=ym(a,Wa),a=Dp(r,a,Wa)}e.memoizedProps=e.pendingProps,a===null?uo(e):we=a}function cl(e,a,r,c){Aa=cs=null,Hu(a),Ks=null,rr=0;var f=a.return;try{if(o2(e,f,a,r,$e)){Ke=1,Fi(e,ea(r,e.current)),we=null;return}}catch(h){if(f!==null)throw we=f,h;Ke=1,Fi(e,ea(r,e.current)),we=null;return}a.flags&32768?(Pe||c===1?e=!0:ll||($e&536870912)!==0?e=!1:(kn=e=!0,(c===2||c===9||c===3||c===6)&&(c=qt.current,c!==null&&c.tag===13&&(c.flags|=16384))),jx(a,e)):uo(a)}function uo(e){var a=e;do{if((a.flags&32768)!==0){jx(a,kn);return}e=a.return;var r=d2(a.alternate,a,Wa);if(r!==null){we=r;return}if(a=a.sibling,a!==null){we=a;return}we=a=e}while(a!==null);Ke===0&&(Ke=5)}function jx(e,a){do{var r=O2(e.alternate,e);if(r!==null){r.flags&=32767,we=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!a&&(e=e.sibling,e!==null)){we=e;return}we=e=r}while(e!==null);Ke=6,we=null}function wx(e,a,r,c,f,h,y,w,R){e.cancelPendingCommit=null;do Oo();while(it!==0);if((Ze&6)!==0)throw Error(l(327));if(a!==null){if(a===e.current)throw Error(l(177));if(h=a.lanes|a.childLanes,h|=Su,JS(e,r,h,y,w,R),e===Ge&&(we=Ge=null,$e=0),il=a,Pn=e,Ba=r,Nd=h,zd=f,hx=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,j2(fi,function(){return Nx(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null,f=B.p,B.p=2,y=Ze,Ze|=4;try{f2(e,a,r)}finally{Ze=y,B.p=f,z.T=c}}it=1,kx(),$x(),Tx()}}function kx(){if(it===1){it=0;var e=Pn,a=il,r=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{rx(a,e);var h=Dd,y=Om(e.containerInfo),w=h.focusedElem,R=h.selectionRange;if(y!==w&&w&&w.ownerDocument&&dm(w.ownerDocument.documentElement,w)){if(R!==null&&xu(w)){var Y=R.start,H=R.end;if(H===void 0&&(H=Y),"selectionStart"in w)w.selectionStart=Y,w.selectionEnd=Math.min(H,w.value.length);else{var K=w.ownerDocument||document,V=K&&K.defaultView||window;if(V.getSelection){var G=V.getSelection(),ce=w.textContent.length,ge=Math.min(R.start,ce),Ue=R.end===void 0?ge:Math.min(R.end,ce);!G.extend&&ge>Ue&&(y=Ue,Ue=ge,ge=y);var q=um(w,ge),_=um(w,Ue);if(q&&_&&(G.rangeCount!==1||G.anchorNode!==q.node||G.anchorOffset!==q.offset||G.focusNode!==_.node||G.focusOffset!==_.offset)){var M=K.createRange();M.setStart(q.node,q.offset),G.removeAllRanges(),ge>Ue?(G.addRange(M),G.extend(_.node,_.offset)):(M.setEnd(_.node,_.offset),G.addRange(M))}}}}for(K=[],G=w;G=G.parentNode;)G.nodeType===1&&K.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<K.length;w++){var F=K[w];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}jo=!!Ld,Dd=Ld=null}finally{Ze=f,B.p=c,z.T=r}}e.current=a,it=2}}function $x(){if(it===2){it=0;var e=Pn,a=il,r=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{tx(e,a.alternate,a)}finally{Ze=f,B.p=c,z.T=r}}it=3}}function Tx(){if(it===4||it===3){it=0,GS();var e=Pn,a=il,r=Ba,c=hx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?it=5:(it=0,il=Pn=null,Px(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Tn=null),Kc(r),a=a.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Vl,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=z.T,f=B.p,B.p=2,z.T=null;try{for(var h=e.onRecoverableError,y=0;y<c.length;y++){var w=c[y];h(w.value,{componentStack:w.stack})}}finally{z.T=a,B.p=f}}(Ba&3)!==0&&Oo(),ja(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===Rd?Qr++:(Qr=0,Rd=e):Qr=0,jr(0)}}function Px(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,sr(a)))}function Oo(){return kx(),$x(),Tx(),Nx()}function Nx(){if(it!==5)return!1;var e=Pn,a=Nd;Nd=0;var r=Kc(Ba),c=z.T,f=B.p;try{B.p=32>r?32:r,z.T=null,r=zd,zd=null;var h=Pn,y=Ba;if(it=0,il=Pn=null,Ba=0,(Ze&6)!==0)throw Error(l(331));var w=Ze;if(Ze|=4,dx(h.current),ox(h,h.current,y,r),Ze=w,jr(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Vl,h)}catch{}return!0}finally{B.p=f,z.T=c,Px(e,a)}}function zx(e,a,r){a=ea(r,a),a=ud(e.stateNode,a,2),e=Sn(e,a,2),e!==null&&(Gl(e,2),ja(e))}function Me(e,a,r){if(e.tag===3)zx(e,e,r);else for(;a!==null;){if(a.tag===3){zx(a,e,r);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Tn===null||!Tn.has(c))){e=ea(r,e),r=Rp(2),c=Sn(a,r,2),c!==null&&(Cp(r,c,a,e),Gl(c,2),ja(c));break}}a=a.return}}function _d(e,a,r){var c=e.pingCache;if(c===null){c=e.pingCache=new p2;var f=new Set;c.set(a,f)}else f=c.get(a),f===void 0&&(f=new Set,c.set(a,f));f.has(r)||($d=!0,f.add(r),e=y2.bind(null,e,a,r),a.then(e,e))}function y2(e,a,r){var c=e.pingCache;c!==null&&c.delete(a),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ge===e&&($e&r)===r&&(Ke===4||Ke===3&&($e&62914560)===$e&&300>Xt()-lo?(Ze&2)===0&&ol(e,0):Td|=r,rl===$e&&(rl=0)),ja(e)}function Rx(e,a){a===0&&(a=kh()),e=rs(e,a),e!==null&&(Gl(e,a),ja(e))}function S2(e){var a=e.memoizedState,r=0;a!==null&&(r=a.retryLane),Rx(e,r)}function Q2(e,a){var r=0;switch(e.tag){case 31:case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(a),Rx(e,r)}function j2(e,a){return Bc(e,a)}var fo=null,ul=null,Zd=!1,ho=!1,Ad=!1,zn=0;function ja(e){e!==ul&&e.next===null&&(ul===null?fo=ul=e:ul=ul.next=e),ho=!0,Zd||(Zd=!0,k2())}function jr(e,a){if(!Ad&&ho){Ad=!0;do for(var r=!1,c=fo;c!==null;){if(e!==0){var f=c.pendingLanes;if(f===0)var h=0;else{var y=c.suspendedLanes,w=c.pingedLanes;h=(1<<31-Zt(42|e)+1)-1,h&=f&~(y&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,Zx(c,h))}else h=$e,h=xi(c,c===Ge?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(h&3)===0||Ul(c,h)||(r=!0,Zx(c,h));c=c.next}while(r);Ad=!1}}function w2(){Cx()}function Cx(){ho=Zd=!1;var e=0;zn!==0&&Z2()&&(e=zn);for(var a=Xt(),r=null,c=fo;c!==null;){var f=c.next,h=Xx(c,a);h===0?(c.next=null,r===null?fo=f:r.next=f,f===null&&(ul=r)):(r=c,(e!==0||(h&3)!==0)&&(ho=!0)),c=f}it!==0&&it!==5||jr(e),zn!==0&&(zn=0)}function Xx(e,a){for(var r=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Zt(h),w=1<<y,R=f[y];R===-1?((w&r)===0||(w&c)!==0)&&(f[y]=KS(w,a)):R<=a&&(e.expiredLanes|=w),h&=~w}if(a=Ge,r=$e,r=xi(e,e===a?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,r===0||e===a&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&Hc(c),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Ul(e,r)){if(a=r&-r,a===e.callbackPriority)return a;switch(c!==null&&Hc(c),Kc(r)){case 2:case 8:r=jh;break;case 32:r=fi;break;case 268435456:r=wh;break;default:r=fi}return c=_x.bind(null,e),r=Bc(r,c),e.callbackPriority=a,e.callbackNode=r,a}return c!==null&&c!==null&&Hc(c),e.callbackPriority=2,e.callbackNode=null,2}function _x(e,a){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Oo()&&e.callbackNode!==r)return null;var c=$e;return c=xi(e,e===Ge?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(px(e,c,a),Xx(e,Xt()),e.callbackNode!=null&&e.callbackNode===r?_x.bind(null,e):null)}function Zx(e,a){if(Oo())return null;px(e,a,!0)}function k2(){E2(function(){(Ze&6)!==0?Bc(Qh,w2):Cx()})}function Ed(){if(zn===0){var e=Hs;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),zn=e}return zn}function Ax(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yi(""+e)}function Ex(e,a){var r=a.ownerDocument.createElement("input");return r.name=a.name,r.value=a.value,e.id&&r.setAttribute("form",e.id),a.parentNode.insertBefore(r,a),e=new FormData(e),r.parentNode.removeChild(r),e}function $2(e,a,r,c,f){if(a==="submit"&&r&&r.stateNode===f){var h=Ax((f[Qt]||null).action),y=c.submitter;y&&(a=(a=y[Qt]||null)?Ax(a.formAction):y.getAttribute("formAction"),a!==null&&(h=a,y=null));var w=new wi("action","action",null,c,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(zn!==0){var R=y?Ex(f,y):new FormData(f);sd(r,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(w.preventDefault(),R=y?Ex(f,y):new FormData(f),sd(r,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var qd=0;qd<yu.length;qd++){var Md=yu[qd],T2=Md.toLowerCase(),P2=Md[0].toUpperCase()+Md.slice(1);da(T2,"on"+P2)}da(mm,"onAnimationEnd"),da(pm,"onAnimationIteration"),da(xm,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(LQ,"onTransitionRun"),da(DQ,"onTransitionStart"),da(WQ,"onTransitionCancel"),da(gm,"onTransitionEnd"),_s("onMouseEnter",["mouseout","mouseover"]),_s("onMouseLeave",["mouseout","mouseover"]),_s("onPointerEnter",["pointerout","pointerover"]),_s("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),N2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wr));function qx(e,a){a=(a&4)!==0;for(var r=0;r<e.length;r++){var c=e[r],f=c.event;c=c.listeners;e:{var h=void 0;if(a)for(var y=c.length-1;0<=y;y--){var w=c[y],R=w.instance,Y=w.currentTarget;if(w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){Ti(H)}f.currentTarget=null,h=R}else for(y=0;y<c.length;y++){if(w=c[y],R=w.instance,Y=w.currentTarget,w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){Ti(H)}f.currentTarget=null,h=R}}}}function ke(e,a){var r=a[Jc];r===void 0&&(r=a[Jc]=new Set);var c=e+"__bubble";r.has(c)||(Mx(a,e,2,!1),r.add(c))}function Yd(e,a,r){var c=0;a&&(c|=4),Mx(r,e,c,a)}var mo="_reactListening"+Math.random().toString(36).slice(2);function Vd(e){if(!e[mo]){e[mo]=!0,Ch.forEach(function(r){r!=="selectionchange"&&(N2.has(r)||Yd(r,!1,e),Yd(r,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[mo]||(a[mo]=!0,Yd("selectionchange",!1,a))}}function Mx(e,a,r,c){switch(mg(a)){case 2:var f=sj;break;case 8:f=lj;break;default:f=nO}r=f.bind(null,a,r,e),f=void 0,!ou||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(a,r,{capture:!0,passive:f}):e.addEventListener(a,r,!0):f!==void 0?e.addEventListener(a,r,{passive:f}):e.addEventListener(a,r,!1)}function Ud(e,a,r,c,f){var h=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var y=c.tag;if(y===3||y===4){var w=c.stateNode.containerInfo;if(w===f)break;if(y===4)for(y=c.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;w!==null;){if(y=Rs(w),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){c=h=y;continue e}w=w.parentNode}}c=c.return}Lh(function(){var Y=h,H=ru(r),K=[];e:{var V=bm.get(e);if(V!==void 0){var G=wi,ce=e;switch(e){case"keypress":if(Qi(r)===0)break e;case"keydown":case"keyup":G=QQ;break;case"focusin":ce="focus",G=Ou;break;case"focusout":ce="blur",G=Ou;break;case"beforeblur":case"afterblur":G=Ou;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=dQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=kQ;break;case mm:case pm:case xm:G=hQ;break;case gm:G=TQ;break;case"scroll":case"scrollend":G=cQ;break;case"wheel":G=NQ;break;case"copy":case"cut":case"paste":G=pQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Ih;break;case"toggle":case"beforetoggle":G=RQ}var ge=(a&4)!==0,Ue=!ge&&(e==="scroll"||e==="scrollend"),q=ge?V!==null?V+"Capture":null:V;ge=[];for(var _=Y,M;_!==null;){var F=_;if(M=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||M===null||q===null||(F=Wl(_,q),F!=null&&ge.push(kr(_,F,M))),Ue)break;_=_.return}0<ge.length&&(V=new G(V,ce,null,r,H),K.push({event:V,listeners:ge}))}}if((a&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",V&&r!==lu&&(ce=r.relatedTarget||r.fromElement)&&(Rs(ce)||ce[zs]))break e;if((G||V)&&(V=H.window===H?H:(V=H.ownerDocument)?V.defaultView||V.parentWindow:window,G?(ce=r.relatedTarget||r.toElement,G=Y,ce=ce?Rs(ce):null,ce!==null&&(Ue=u(ce),ge=ce.tag,ce!==Ue||ge!==5&&ge!==27&&ge!==6)&&(ce=null)):(G=null,ce=Y),G!==ce)){if(ge=Bh,F="onMouseLeave",q="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Ih,F="onPointerLeave",q="onPointerEnter",_="pointer"),Ue=G==null?V:Dl(G),M=ce==null?V:Dl(ce),V=new ge(F,_+"leave",G,r,H),V.target=Ue,V.relatedTarget=M,F=null,Rs(H)===Y&&(ge=new ge(q,_+"enter",ce,r,H),ge.target=M,ge.relatedTarget=Ue,F=ge),Ue=F,G&&ce)t:{for(ge=z2,q=G,_=ce,M=0,F=q;F;F=ge(F))M++;F=0;for(var pe=_;pe;pe=ge(pe))F++;for(;0<M-F;)q=ge(q),M--;for(;0<F-M;)_=ge(_),F--;for(;M--;){if(q===_||_!==null&&q===_.alternate){ge=q;break t}q=ge(q),_=ge(_)}ge=null}else ge=null;G!==null&&Yx(K,V,G,ge,!1),ce!==null&&Ue!==null&&Yx(K,Ue,ce,ge,!0)}}e:{if(V=Y?Dl(Y):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var Re=sm;else if(am(V))if(lm)Re=VQ;else{Re=MQ;var Oe=qQ}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Y&&su(Y.elementType)&&(Re=sm):Re=YQ;if(Re&&(Re=Re(e,Y))){nm(K,Re,r,H);break e}Oe&&Oe(e,V,Y),e==="focusout"&&Y&&V.type==="number"&&Y.memoizedProps.value!=null&&nu(V,"number",V.value)}switch(Oe=Y?Dl(Y):window,e){case"focusin":(am(Oe)||Oe.contentEditable==="true")&&(Ys=Oe,gu=Y,tr=null);break;case"focusout":tr=gu=Ys=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,fm(K,r,H);break;case"selectionchange":if(GQ)break;case"keydown":case"keyup":fm(K,r,H)}var ye;if(hu)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ms?em(e,r)&&(Te="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Te="onCompositionStart");Te&&(Fh&&r.locale!=="ko"&&(Ms||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ms&&(ye=Dh()):(mn=H,cu="value"in mn?mn.value:mn.textContent,Ms=!0)),Oe=po(Y,Te),0<Oe.length&&(Te=new Hh(Te,e,null,r,H),K.push({event:Te,listeners:Oe}),ye?Te.data=ye:(ye=tm(r),ye!==null&&(Te.data=ye)))),(ye=XQ?_Q(e,r):ZQ(e,r))&&(Te=po(Y,"onBeforeInput"),0<Te.length&&(Oe=new Hh("onBeforeInput","beforeinput",null,r,H),K.push({event:Oe,listeners:Te}),Oe.data=ye)),$2(K,e,Y,r,H)}qx(K,a)})}function kr(e,a,r){return{instance:e,listener:a,currentTarget:r}}function po(e,a){for(var r=a+"Capture",c=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Wl(e,r),f!=null&&c.unshift(kr(e,f,h)),f=Wl(e,a),f!=null&&c.push(kr(e,f,h))),e.tag===3)return c;e=e.return}return[]}function z2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yx(e,a,r,c,f){for(var h=a._reactName,y=[];r!==null&&r!==c;){var w=r,R=w.alternate,Y=w.stateNode;if(w=w.tag,R!==null&&R===c)break;w!==5&&w!==26&&w!==27||Y===null||(R=Y,f?(Y=Wl(r,h),Y!=null&&y.unshift(kr(r,Y,R))):f||(Y=Wl(r,h),Y!=null&&y.push(kr(r,Y,R)))),r=r.return}y.length!==0&&e.push({event:a,listeners:y})}var R2=/\r\n?/g,C2=/\u0000|\uFFFD/g;function Vx(e){return(typeof e=="string"?e:""+e).replace(R2,`
|
|
25
|
+
`).replace(C2,"")}function Ux(e,a){return a=Vx(a),Vx(e)===a}function Ve(e,a,r,c,f,h){switch(r){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||As(e,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&As(e,""+c);break;case"className":bi(e,"class",c);break;case"tabIndex":bi(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":bi(e,r,c);break;case"style":Uh(e,c,h);break;case"data":if(a!=="object"){bi(e,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||r!=="href")){e.removeAttribute(r);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=yi(""+c),e.setAttribute(r,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(r==="formAction"?(a!=="input"&&Ve(e,a,"name",f.name,f,null),Ve(e,a,"formEncType",f.formEncType,f,null),Ve(e,a,"formMethod",f.formMethod,f,null),Ve(e,a,"formTarget",f.formTarget,f,null)):(Ve(e,a,"encType",f.encType,f,null),Ve(e,a,"method",f.method,f,null),Ve(e,a,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=yi(""+c),e.setAttribute(r,c);break;case"onClick":c!=null&&(e.onclick=Ca);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}r=yi(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""+c):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":c===!0?e.setAttribute(r,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,c):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(r,c):e.removeAttribute(r);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(r):e.setAttribute(r,c);break;case"popover":ke("beforetoggle",e),ke("toggle",e),gi(e,"popover",c);break;case"xlinkActuate":Ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Ra(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Ra(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Ra(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Ra(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":gi(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=iQ.get(r)||r,gi(e,r,c))}}function Gd(e,a,r,c,f,h){switch(r){case"style":Uh(e,c,h);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof c=="string"?As(e,c):(typeof c=="number"||typeof c=="bigint")&&As(e,""+c);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"onClick":c!=null&&(e.onclick=Ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xh.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),a=r.slice(2,f?r.length-7:void 0),h=e[Qt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(a,h,f),typeof c=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(a,c,f);break e}r in e?e[r]=c:c===!0?e.setAttribute(r,""):gi(e,r,c)}}}function xt(e,a,r){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var c=!1,f=!1,h;for(h in r)if(r.hasOwnProperty(h)){var y=r[h];if(y!=null)switch(h){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,h,y,r,null)}}f&&Ve(e,a,"srcSet",r.srcSet,r,null),c&&Ve(e,a,"src",r.src,r,null);return;case"input":ke("invalid",e);var w=h=y=f=null,R=null,Y=null;for(c in r)if(r.hasOwnProperty(c)){var H=r[c];if(H!=null)switch(c){case"name":f=H;break;case"type":y=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":h=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,a));break;default:Ve(e,a,c,H,r,null)}}qh(e,h,w,R,Y,y,f,!1);return;case"select":ke("invalid",e),c=y=h=null;for(f in r)if(r.hasOwnProperty(f)&&(w=r[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":y=w;break;case"multiple":c=w;default:Ve(e,a,f,w,r,null)}a=h,r=y,e.multiple=!!c,a!=null?Zs(e,!!c,a,!1):r!=null&&Zs(e,!!c,r,!0);return;case"textarea":ke("invalid",e),h=f=c=null;for(y in r)if(r.hasOwnProperty(y)&&(w=r[y],w!=null))switch(y){case"value":c=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,a,y,w,r,null)}Yh(e,c,f,h);return;case"option":for(R in r)if(r.hasOwnProperty(R)&&(c=r[R],c!=null))switch(R){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ve(e,a,R,c,r,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(c=0;c<wr.length;c++)ke(wr[c],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in r)if(r.hasOwnProperty(Y)&&(c=r[Y],c!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,Y,c,r,null)}return;default:if(su(a)){for(H in r)r.hasOwnProperty(H)&&(c=r[H],c!==void 0&&Gd(e,a,H,c,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(c=r[w],c!=null&&Ve(e,a,w,c,r,null))}function X2(e,a,r,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,y=null,w=null,R=null,Y=null,H=null;for(G in r){var K=r[G];if(r.hasOwnProperty(G)&&K!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=K;default:c.hasOwnProperty(G)||Ve(e,a,G,null,c,K)}}for(var V in c){var G=c[V];if(K=r[V],c.hasOwnProperty(V)&&(G!=null||K!=null))switch(V){case"type":h=G;break;case"name":f=G;break;case"checked":Y=G;break;case"defaultChecked":H=G;break;case"value":y=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,a));break;default:G!==K&&Ve(e,a,V,G,c,K)}}au(e,y,w,R,Y,H,h,f);return;case"select":G=y=w=V=null;for(h in r)if(R=r[h],r.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":G=R;default:c.hasOwnProperty(h)||Ve(e,a,h,null,c,R)}for(f in c)if(h=c[f],R=r[f],c.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":V=h;break;case"defaultValue":w=h;break;case"multiple":y=h;default:h!==R&&Ve(e,a,f,h,c,R)}a=w,r=y,c=G,V!=null?Zs(e,!!r,V,!1):!!c!=!!r&&(a!=null?Zs(e,!!r,a,!0):Zs(e,!!r,r?[]:"",!1));return;case"textarea":G=V=null;for(w in r)if(f=r[w],r.hasOwnProperty(w)&&f!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,a,w,null,c,f)}for(y in c)if(f=c[y],h=r[y],c.hasOwnProperty(y)&&(f!=null||h!=null))switch(y){case"value":V=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==h&&Ve(e,a,y,f,c,h)}Mh(e,V,G);return;case"option":for(var ce in r)if(V=r[ce],r.hasOwnProperty(ce)&&V!=null&&!c.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Ve(e,a,ce,null,c,V)}for(R in c)if(V=c[R],G=r[R],c.hasOwnProperty(R)&&V!==G&&(V!=null||G!=null))switch(R){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ve(e,a,R,V,c,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in r)V=r[ge],r.hasOwnProperty(ge)&&V!=null&&!c.hasOwnProperty(ge)&&Ve(e,a,ge,null,c,V);for(Y in c)if(V=c[Y],G=r[Y],c.hasOwnProperty(Y)&&V!==G&&(V!=null||G!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,a));break;default:Ve(e,a,Y,V,c,G)}return;default:if(su(a)){for(var Ue in r)V=r[Ue],r.hasOwnProperty(Ue)&&V!==void 0&&!c.hasOwnProperty(Ue)&&Gd(e,a,Ue,void 0,c,V);for(H in c)V=c[H],G=r[H],!c.hasOwnProperty(H)||V===G||V===void 0&&G===void 0||Gd(e,a,H,V,c,G);return}}for(var q in r)V=r[q],r.hasOwnProperty(q)&&V!=null&&!c.hasOwnProperty(q)&&Ve(e,a,q,null,c,V);for(K in c)V=c[K],G=r[K],!c.hasOwnProperty(K)||V===G||V==null&&G==null||Ve(e,a,K,V,c,G)}function Gx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,r=performance.getEntriesByType("resource"),c=0;c<r.length;c++){var f=r[c],h=f.transferSize,y=f.initiatorType,w=f.duration;if(h&&w&&Gx(y)){for(y=0,w=f.responseEnd,c+=1;c<r.length;c++){var R=r[c],Y=R.startTime;if(Y>w)break;var H=R.transferSize,K=R.initiatorType;H&&Gx(K)&&(R=R.responseEnd,y+=H*(R<w?1:(w-Y)/(R-Y)))}if(--c,a+=8*(h+y)/(f.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ld=null,Dd=null;function xo(e){return e.nodeType===9?e:e.ownerDocument}function Lx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dx(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Wd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Bd=null;function Z2(){var e=window.event;return e&&e.type==="popstate"?e===Bd?!1:(Bd=e,!0):(Bd=null,!1)}var Wx=typeof setTimeout=="function"?setTimeout:void 0,A2=typeof clearTimeout=="function"?clearTimeout:void 0,Bx=typeof Promise=="function"?Promise:void 0,E2=typeof queueMicrotask=="function"?queueMicrotask:typeof Bx<"u"?function(e){return Bx.resolve(null).then(e).catch(q2)}:Wx;function q2(e){setTimeout(function(){throw e})}function Rn(e){return e==="head"}function Hx(e,a){var r=a,c=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(c===0){e.removeChild(f),hl(a);return}c--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")c++;else if(r==="html")$r(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,$r(r);for(var h=r.firstChild;h;){var y=h.nextSibling,w=h.nodeName;h[Ll]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=y}}else r==="body"&&$r(e.ownerDocument.body);r=f}while(r);hl(a)}function Ix(e,a){var r=e;e=0;do{var c=r.nextSibling;if(r.nodeType===1?a?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(a?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=c}while(r)}function Hd(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var r=a;switch(a=a.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Hd(r),eu(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function M2(e,a,r,c){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Ll])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=la(e.nextSibling),e===null)break}return null}function Y2(e,a,r){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=la(e.nextSibling),e===null))return null;return e}function Fx(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=la(e.nextSibling),e===null))return null;return e}function Id(e){return e.data==="$?"||e.data==="$~"}function Fd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function V2(e,a){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||r.readyState!=="loading")a();else{var c=function(){a(),r.removeEventListener("DOMContentLoaded",c)};r.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function la(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var Kd=null;function Kx(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(a===0)return la(e.nextSibling);a--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||a++}e=e.nextSibling}return null}function Jx(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(a===0)return e;a--}else r!=="/$"&&r!=="/&"||a++}e=e.previousSibling}return null}function eg(e,a,r){switch(a=xo(r),e){case"html":if(e=a.documentElement,!e)throw Error(l(452));return e;case"head":if(e=a.head,!e)throw Error(l(453));return e;case"body":if(e=a.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function $r(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);eu(e)}var ra=new Map,tg=new Set;function go(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ha=B.d;B.d={f:U2,r:G2,D:L2,C:D2,L:W2,m:B2,X:I2,S:H2,M:F2};function U2(){var e=Ha.f(),a=oo();return e||a}function G2(e){var a=Cs(e);a!==null&&a.tag===5&&a.type==="form"?gp(a):Ha.r(e)}var dl=typeof document>"u"?null:document;function ag(e,a,r){var c=dl;if(c&&typeof a=="string"&&a){var f=Kt(a);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),tg.has(f)||(tg.add(f),e={rel:e,crossOrigin:r,href:a},c.querySelector(f)===null&&(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function L2(e){Ha.D(e),ag("dns-prefetch",e,null)}function D2(e,a){Ha.C(e,a),ag("preconnect",e,a)}function W2(e,a,r){Ha.L(e,a,r);var c=dl;if(c&&e&&a){var f='link[rel="preload"][as="'+Kt(a)+'"]';a==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+Kt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+Kt(r.imageSizes)+'"]')):f+='[href="'+Kt(e)+'"]';var h=f;switch(a){case"style":h=Ol(e);break;case"script":h=fl(e)}ra.has(h)||(e=g({rel:"preload",href:a==="image"&&r&&r.imageSrcSet?void 0:e,as:a},r),ra.set(h,e),c.querySelector(f)!==null||a==="style"&&c.querySelector(Tr(h))||a==="script"&&c.querySelector(Pr(h))||(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function B2(e,a){Ha.m(e,a);var r=dl;if(r&&e){var c=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Kt(c)+'"][href="'+Kt(e)+'"]',h=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=fl(e)}if(!ra.has(h)&&(e=g({rel:"modulepreload",href:e},a),ra.set(h,e),r.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Pr(h)))return}c=r.createElement("link"),xt(c,"link",e),ut(c),r.head.appendChild(c)}}}function H2(e,a,r){Ha.S(e,a,r);var c=dl;if(c&&e){var f=Xs(c).hoistableStyles,h=Ol(e);a=a||"default";var y=f.get(h);if(!y){var w={loading:0,preload:null};if(y=c.querySelector(Tr(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":a},r),(r=ra.get(h))&&Jd(e,r);var R=y=c.createElement("link");ut(R),xt(R,"link",e),R._p=new Promise(function(Y,H){R.onload=Y,R.onerror=H}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,bo(y,a,c)}y={type:"stylesheet",instance:y,count:1,state:w},f.set(h,y)}}}function I2(e,a){Ha.X(e,a);var r=dl;if(r&&e){var c=Xs(r).hoistableScripts,f=fl(e),h=c.get(f);h||(h=r.querySelector(Pr(f)),h||(e=g({src:e,async:!0},a),(a=ra.get(f))&&eO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function F2(e,a){Ha.M(e,a);var r=dl;if(r&&e){var c=Xs(r).hoistableScripts,f=fl(e),h=c.get(f);h||(h=r.querySelector(Pr(f)),h||(e=g({src:e,async:!0,type:"module"},a),(a=ra.get(f))&&eO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function ng(e,a,r,c){var f=(f=oe.current)?go(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(a=Ol(r.href),r=Xs(f).hoistableStyles,c=r.get(a),c||(c={type:"style",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ol(r.href);var h=Xs(f).hoistableStyles,y=h.get(e);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=f.querySelector(Tr(e)))&&!h._p&&(y.instance=h,y.state.loading=5),ra.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},ra.set(e,r),h||K2(f,e,r,y.state))),a&&c===null)throw Error(l(528,""));return y}if(a&&c!==null)throw Error(l(529,""));return null;case"script":return a=r.async,r=r.src,typeof r=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=fl(r),r=Xs(f).hoistableScripts,c=r.get(a),c||(c={type:"script",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ol(e){return'href="'+Kt(e)+'"'}function Tr(e){return'link[rel="stylesheet"]['+e+"]"}function sg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function K2(e,a,r,c){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=e.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),xt(a,"link",r),ut(a),e.head.appendChild(a))}function fl(e){return'[src="'+Kt(e)+'"]'}function Pr(e){return"script[async]"+e}function lg(e,a,r){if(a.count++,a.instance===null)switch(a.type){case"style":var c=e.querySelector('style[data-href~="'+Kt(r.href)+'"]');if(c)return a.instance=c,ut(c),c;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),ut(c),xt(c,"style",f),bo(c,r.precedence,e),a.instance=c;case"stylesheet":f=Ol(r.href);var h=e.querySelector(Tr(f));if(h)return a.state.loading|=4,a.instance=h,ut(h),h;c=sg(r),(f=ra.get(f))&&Jd(c,f),h=(e.ownerDocument||e).createElement("link"),ut(h);var y=h;return y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),xt(h,"link",c),a.state.loading|=4,bo(h,r.precedence,e),a.instance=h;case"script":return h=fl(r.src),(f=e.querySelector(Pr(h)))?(a.instance=f,ut(f),f):(c=r,(f=ra.get(h))&&(c=g({},r),eO(c,f)),e=e.ownerDocument||e,f=e.createElement("script"),ut(f),xt(f,"link",c),e.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,bo(c,r.precedence,e));return a.instance}function bo(e,a,r){for(var c=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,h=f,y=0;y<c.length;y++){var w=c[y];if(w.dataset.precedence===a)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(a=r.nodeType===9?r.head:r,a.insertBefore(e,a.firstChild))}function Jd(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function eO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var vo=null;function rg(e,a,r){if(vo===null){var c=new Map,f=vo=new Map;f.set(r,c)}else f=vo,c=f.get(r),c||(c=new Map,f.set(r,c));if(c.has(e))return c;for(c.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var h=r[f];if(!(h[Ll]||h[ft]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(a)||"";y=e+y;var w=c.get(y);w?w.push(h):c.set(y,[h])}}return c}function ig(e,a,r){e=e.ownerDocument||e,e.head.insertBefore(r,a==="title"?e.querySelector("head > title"):null)}function J2(e,a,r){if(r===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function og(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ej(e,a,r,c){if(r.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=Ol(c.href),h=a.querySelector(Tr(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=yo.bind(e),a.then(e,e)),r.state.loading|=4,r.instance=h,ut(h);return}h=a.ownerDocument||a,c=sg(c),(f=ra.get(f))&&Jd(c,f),h=h.createElement("link"),ut(h);var y=h;y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),xt(h,"link",c),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,a),(a=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yo.bind(e),a.addEventListener("load",r),a.addEventListener("error",r))}}var tO=0;function tj(e,a){return e.stylesheets&&e.count===0&&Qo(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var c=setTimeout(function(){if(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+a);0<e.imgBytes&&tO===0&&(tO=62500*_2());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>tO?50:800)+a);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var So=null;function Qo(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,So=new Map,a.forEach(aj,e),So=null,yo.call(e))}function aj(e,a){if(!(a.state.loading&4)){var r=So.get(e);if(r)var c=r.get(null);else{r=new Map,So.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var y=f[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),c=y)}c&&r.set(null,c)}f=a.instance,y=f.getAttribute("data-precedence"),h=r.get(y)||c,h===c&&r.set(null,f),r.set(y,f),this.count++,c=yo.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),a.state.loading|=4}}var Nr={$$typeof:N,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function nj(e,a,r,c,f,h,y,w,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function cg(e,a,r,c,f,h,y,w,R,Y,H,K){return e=new nj(e,a,r,y,R,Y,H,K,w),a=1,h===!0&&(a|=24),h=Et(3,null,null,a),e.current=h,h.stateNode=e,a=Xu(),a.refCount++,e.pooledCache=a,a.refCount++,h.memoizedState={element:c,isDehydrated:r,cache:a},Eu(h),e}function ug(e){return e?(e=Gs,e):Gs}function dg(e,a,r,c,f,h){f=ug(f),c.context===null?c.context=f:c.pendingContext=f,c=yn(a),c.payload={element:r},h=h===void 0?null:h,h!==null&&(c.callback=h),r=Sn(e,c,a),r!==null&&(Pt(r,e,a),or(r,e,a))}function Og(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<a?r:a}}function aO(e,a){Og(e,a),(e=e.alternate)&&Og(e,a)}function fg(e){if(e.tag===13||e.tag===31){var a=rs(e,67108864);a!==null&&Pt(a,e,67108864),aO(e,67108864)}}function hg(e){if(e.tag===13||e.tag===31){var a=Ut();a=Fc(a);var r=rs(e,a);r!==null&&Pt(r,e,a),aO(e,a)}}var jo=!0;function sj(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=2,nO(e,a,r,c)}finally{B.p=h,z.T=f}}function lj(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=8,nO(e,a,r,c)}finally{B.p=h,z.T=f}}function nO(e,a,r,c){if(jo){var f=sO(c);if(f===null)Ud(e,a,c,wo,r),pg(e,c);else if(ij(f,e,a,r,c))c.stopPropagation();else if(pg(e,c),a&4&&-1<rj.indexOf(e)){for(;f!==null;){var h=Cs(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=ts(h.pendingLanes);if(y!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var R=1<<31-Zt(y);w.entanglements[1]|=R,y&=~R}ja(h),(Ze&6)===0&&(ro=Xt()+500,jr(0))}}break;case 31:case 13:w=rs(h,2),w!==null&&Pt(w,h,2),oo(),aO(h,2)}if(h=sO(c),h===null&&Ud(e,a,c,wo,r),h===f)break;f=h}f!==null&&c.stopPropagation()}else Ud(e,a,c,null,r)}}function sO(e){return e=ru(e),lO(e)}var wo=null;function lO(e){if(wo=null,e=Rs(e),e!==null){var a=u(e);if(a===null)e=null;else{var r=a.tag;if(r===13){if(e=d(a),e!==null)return e;e=null}else if(r===31){if(e=O(a),e!==null)return e;e=null}else if(r===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return wo=e,null}function mg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(LS()){case Qh:return 2;case jh:return 8;case fi:case DS:return 32;case wh:return 268435456;default:return 32}default:return 32}}var rO=!1,Cn=null,Xn=null,_n=null,zr=new Map,Rr=new Map,Zn=[],rj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pg(e,a){switch(e){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":zr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(a.pointerId)}}function Cr(e,a,r,c,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:a,domEventName:r,eventSystemFlags:c,nativeEvent:h,targetContainers:[f]},a!==null&&(a=Cs(a),a!==null&&fg(a)),e):(e.eventSystemFlags|=c,a=e.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),e)}function ij(e,a,r,c,f){switch(a){case"focusin":return Cn=Cr(Cn,e,a,r,c,f),!0;case"dragenter":return Xn=Cr(Xn,e,a,r,c,f),!0;case"mouseover":return _n=Cr(_n,e,a,r,c,f),!0;case"pointerover":var h=f.pointerId;return zr.set(h,Cr(zr.get(h)||null,e,a,r,c,f)),!0;case"gotpointercapture":return h=f.pointerId,Rr.set(h,Cr(Rr.get(h)||null,e,a,r,c,f)),!0}return!1}function xg(e){var a=Rs(e.target);if(a!==null){var r=u(a);if(r!==null){if(a=r.tag,a===13){if(a=d(r),a!==null){e.blockedOn=a,zh(e.priority,function(){hg(r)});return}}else if(a===31){if(a=O(r),a!==null){e.blockedOn=a,zh(e.priority,function(){hg(r)});return}}else if(a===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ko(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var r=sO(e.nativeEvent);if(r===null){r=e.nativeEvent;var c=new r.constructor(r.type,r);lu=c,r.target.dispatchEvent(c),lu=null}else return a=Cs(r),a!==null&&fg(a),e.blockedOn=r,!1;a.shift()}return!0}function gg(e,a,r){ko(e)&&r.delete(a)}function oj(){rO=!1,Cn!==null&&ko(Cn)&&(Cn=null),Xn!==null&&ko(Xn)&&(Xn=null),_n!==null&&ko(_n)&&(_n=null),zr.forEach(gg),Rr.forEach(gg)}function $o(e,a){e.blockedOn===a&&(e.blockedOn=null,rO||(rO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,oj)))}var To=null;function bg(e){To!==e&&(To=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){To===e&&(To=null);for(var a=0;a<e.length;a+=3){var r=e[a],c=e[a+1],f=e[a+2];if(typeof c!="function"){if(lO(c||r)===null)continue;break}var h=Cs(r);h!==null&&(e.splice(a,3),a-=3,sd(h,{pending:!0,data:f,method:r.method,action:c},c,f))}}))}function hl(e){function a(R){return $o(R,e)}Cn!==null&&$o(Cn,e),Xn!==null&&$o(Xn,e),_n!==null&&$o(_n,e),zr.forEach(a),Rr.forEach(a);for(var r=0;r<Zn.length;r++){var c=Zn[r];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Zn.length&&(r=Zn[0],r.blockedOn===null);)xg(r),r.blockedOn===null&&Zn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(c=0;c<r.length;c+=3){var f=r[c],h=r[c+1],y=f[Qt]||null;if(typeof h=="function")y||bg(r);else if(y){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,y=h[Qt]||null)w=y.formAction;else if(lO(f)!==null)continue}else w=y.action;typeof w=="function"?r[c+1]=w:(r.splice(c,3),c-=3),bg(r)}}}function vg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),c||setTimeout(r,20)}function r(){if(!c&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(r,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function iO(e){this._internalRoot=e}Po.prototype.render=iO.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(l(409));var r=a.current,c=Ut();dg(r,c,e,a,null,null)},Po.prototype.unmount=iO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;dg(e.current,2,null,e,null,null),oo(),a[zs]=null}};function Po(e){this._internalRoot=e}Po.prototype.unstable_scheduleHydration=function(e){if(e){var a=Nh();e={blockedOn:null,target:e,priority:a};for(var r=0;r<Zn.length&&a!==0&&a<Zn[r].priority;r++);Zn.splice(r,0,e),r===0&&xg(e)}};var yg=n.version;if(yg!=="19.2.4")throw Error(l(527,yg,"19.2.4"));B.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(a),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var cj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var No=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!No.isDisabled&&No.supportsFiber)try{Vl=No.inject(cj),_t=No}catch{}}return Xr.createRoot=function(e,a){if(!o(e))throw Error(l(299));var r=!1,c="",f=Tp,h=Pp,y=Np;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError)),a=cg(e,1,!1,null,null,r,c,null,f,h,y,vg),e[zs]=a.current,Vd(e),new iO(a)},Xr.hydrateRoot=function(e,a,r){if(!o(e))throw Error(l(299));var c=!1,f="",h=Tp,y=Pp,w=Np,R=null;return r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),a=cg(e,1,!0,a,r??null,c,f,R,h,y,w,vg),a.context=ug(null),r=a.current,c=Ut(),c=Fc(c),f=yn(c),f.callback=null,Sn(r,f,c),r=c,a.current.lanes=r,Gl(a,r),ja(a),e[zs]=a.current,Vd(e),new Po(a)},Xr.version="19.2.4",Xr}var kg;function Ij(){if(kg)return oO.exports;kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),oO.exports=Hj(),oO.exports}var Fj=Ij();const Kj="/api";class Jj extends Error{constructor(n,s,l){super(n),this.name="ApiError",this.status=s,this.body=l}}async function _r(t,n,s){const l=`${Kj}${n}`,o={method:t,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const u=await fetch(l,o),d=await u.text();let O;try{O=JSON.parse(d)}catch{O=d}if(!u.ok)throw new Jj((O==null?void 0:O.error)||(O==null?void 0:O.message)||`Request failed: ${u.status}`,u.status,O);return O}const ee={get:t=>_r("GET",t),post:(t,n)=>_r("POST",t,n),put:(t,n)=>_r("PUT",t,n),patch:(t,n)=>_r("PATCH",t,n),delete:(t,n)=>_r("DELETE",t,n)},ew=`ws://${window.location.hostname}:${window.location.port||31415}`;let tw=0;function tf(t,n={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(n))}catch{return n}}function bl(t,n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}const $g="0.22.27";tf("groove:storeVersion")!==$g&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),bl("groove:storeVersion",$g));const D=Oj((t,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,commandPaletteOpen:!1,detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:tf("groove:activityLog"),chatHistory:tf("groove:chatHistory"),tokenTimeline:{},dashTelemetry:{},ccChartTimeline:[],pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const s=new WebSocket(ew);t({ws:s}),s.onopen=()=>{t({connected:!0}),ee.get("/status").then(l=>{const o={};l.host&&l.host!=="127.0.0.1"&&(o.daemonHost=l.host);const u=window.location.port||"80";String(l.port)!==u&&(o.tunneled=!0),Object.keys(o).length>0&&t(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=l=>{var u,d,O;const o=JSON.parse(l.data);switch(o.type){case"state":{const m={...n().tokenTimeline},p=Date.now();for(const x of o.data){m[x.id]||(m[x.id]=[]);const g=m[x.id],b=g[g.length-1];(!b||x.tokensUsed!==b.v||p-b.t>5e3)&&(g.push({t:p,v:x.tokensUsed||0}),g.length>200&&(m[x.id]=g.slice(-200)))}t({agents:o.data,tokenTimeline:m,hydrated:!0});break}case"agent:output":{const{agentId:m,data:p}=o;let x="",g="";if(typeof p.data=="string"?x=p.data:Array.isArray(p.data)&&(x=p.data.filter(b=>b.type==="text").map(b=>b.text).join(`
|
|
26
26
|
`),g=p.data.filter(b=>b.type==="tool_use").map(b=>{var S,Q,k;return`${b.name}: ${typeof b.input=="string"?b.input.slice(0,80):((S=b.input)==null?void 0:S.command)||((Q=b.input)==null?void 0:Q.path)||((k=b.input)==null?void 0:k.pattern)||JSON.stringify(b.input||"").slice(0,80)}`}).join(`
|
|
27
27
|
`)),p.contextUsage!==void 0||p.tokensUsed!==void 0){const b=n().agents.map(S=>{if(S.id!==m)return S;const Q={};return p.contextUsage!==void 0&&(Q.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&(Q.tokensUsed=p.tokensUsed),{...S,...Q}});t({agents:b})}if((p.subtype==="assistant"||p.type==="result")&&x&&x.trim()){const b={...n().chatHistory};b[m]||(b[m]=[]);const S=[...b[m]],Q=S[S.length-1];Q&&Q.from==="agent"&&Date.now()-Q.timestamp<8e3&&p.subtype==="assistant"?S[S.length-1]={...Q,text:Q.text+`
|
|
28
28
|
|
|
29
|
-
`+x.trim(),timestamp:Date.now()}:S.push({from:"agent",text:x.trim(),timestamp:Date.now()}),b[m]=S.slice(-100),t({chatHistory:b}),bl("groove:chatHistory",b)}if(g&&g.trim()){const b={...n().activityLog};b[m]||(b[m]=[]),b[m]=[...b[m].slice(-200),{timestamp:Date.now(),text:g.trim(),type:p.type,subtype:"tool"}],t({activityLog:b}),bl("groove:activityLog",b)}break}case"agent:exit":{const m=n().agents.find(S=>S.id===o.agentId),p=(m==null?void 0:m.name)||o.agentId,x=o.status==="killed"||o.code===143||o.code===137,g=o.status==="completed"?`${p} completed`:x?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":x?"info":"warning";n().addToast(b,g),(m==null?void 0:m.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":n().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const m=n().detailPanel;(m==null?void 0:m.type)==="agent"&&m.agentId===o.oldAgentId&&o.newAgentId&&t(p=>{var b,S;const x={...p.chatHistory},g={...p.tokenTimeline};return(b=x[o.oldAgentId])!=null&&b.length&&(x[o.newAgentId]=[...x[o.oldAgentId]]),(S=g[o.oldAgentId])!=null&&S.length&&(g[o.newAgentId]=[...g[o.oldAgentId]]),{chatHistory:x,tokenTimeline:g,detailPanel:{type:"agent",agentId:o.newAgentId}}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const m=n().editorRecentSaves[o.path];if(m&&Date.now()-m<2e3)break;t(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":t(m=>({pendingApprovals:[...m.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((u=o.data)==null?void 0:u.agentName)||"agent"}`,(O=(d=o.data)==null?void 0:d.action)==null?void 0:O.description);break;case"approval:resolved":{const m=o.data;t(p=>({pendingApprovals:p.pendingApprovals.filter(x=>x.id!==m.id),resolvedApprovals:[m,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":t({gateways:o.data||[]});break}},s.onclose=()=>{t({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){t({activeView:s})},async fetchTeams(){try{const s=await ee.get("/teams"),l=s.teams||[],o=s.defaultTeamId,{activeTeamId:u}=n(),O=l.map(m=>m.id).includes(u)?u:o;t({teams:l,activeTeamId:O}),O&&localStorage.setItem("groove:activeTeamId",O)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,l){try{const o={name:s};l&&(o.workingDir=l);const u=await ee.post("/teams",o);return t({activeTeamId:u.id}),localStorage.setItem("groove:activeTeamId",u.id),n().addToast("success",`Team "${s}" created`),u}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const l=n().teams.find(o=>o.id===s);if(l!=null&&l.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await ee.delete(`/teams/${s}`),n().addToast("info",`Team "${l==null?void 0:l.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},async renameTeam(s,l){try{const o=await ee.patch(`/teams/${s}`,{name:l});return t(u=>({teams:u.teams.map(d=>d.id===s?o:d)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(s){t({detailPanel:s})},closeDetail(){t({detailPanel:null})},selectAgent(s){t({detailPanel:{type:"agent",agentId:s}})},clearSelection(){t({detailPanel:null})},toggleCommandPalette(){t(s=>({commandPaletteOpen:!s.commandPaletteOpen}))},setDetailPanelWidth(s){t({detailPanelWidth:s}),localStorage.setItem("groove:detailWidth",String(s))},setTerminalVisible(s){t({terminalVisible:s}),localStorage.setItem("groove:terminalVisible",String(s))},setTerminalHeight(s){t({terminalHeight:s}),localStorage.setItem("groove:terminalHeight",String(s))},setTerminalFullHeight(s){t({terminalFullHeight:s})},addToast(s,l,o){const u=++tw;t(d=>({toasts:[...d.toasts,{id:u,type:s,message:l,detail:o}]}))},removeToast(s){t(l=>({toasts:l.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await ee.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await ee.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const l=setInterval(async()=>{var o,u;try{const d=await ee.get("/auth/status");d.authenticated&&(clearInterval(l),t({marketplaceAuthenticated:!0,marketplaceUser:d.user}),n().addToast("success",`Signed in as ${((o=d.user)==null?void 0:o.displayName)||((u=d.user)==null?void 0:u.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(l),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await ee.post("/auth/logout"),t({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(s){n().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const l=await ee.post("/auth/checkout",{skillId:s});return l.url&&window.open(l.url,"_blank"),l}catch(l){throw n().addToast("error","Checkout failed",l.message),l}},async fetchApprovals(){try{const s=await ee.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await ee.post(`/approvals/${s}/approve`),t(l=>({pendingApprovals:l.pendingApprovals.filter(o=>o.id!==s)})),n().addToast("success","Approved")}catch(l){n().addToast("error","Approve failed",l.message)}},async rejectRequest(s,l=""){try{await ee.post(`/approvals/${s}/reject`,{reason:l}),t(o=>({pendingApprovals:o.pendingApprovals.filter(u=>u.id!==s)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const l=await ee.get("/recommended-team");l&&((s=l.agents)!=null&&s.length)?t({recommendedTeam:l}):t({recommendedTeam:null})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(){try{t({recommendedTeam:null}),n().addToast("info","Launching team...");const s=await ee.post("/recommended-team/launch");return n().addToast("success",`Launched ${s.launched} agents`,s.phase2Pending?`${s.phase2Pending} QC agents queued`:void 0),ee.post("/cleanup").catch(()=>{}),s}catch(s){throw n().addToast("error","Launch failed",s.message),s}},async fetchJournalist(){try{const s=await ee.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await ee.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),t({journalistStatus:s}),s}catch(s){throw n().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const l=n().activeTeamId,o=await ee.post("/agents",{...s,teamId:l});return n().addToast("success",`Spawned ${o.name}`),o}catch(l){throw n().addToast("error","Spawn failed",l.message),l}},async killAgent(s,l=!1){try{await ee.delete(`/agents/${s}?purge=${l}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await ee.post(`/agents/${s}/rotate`)}catch(l){throw n().addToast("error","Rotation failed",l.message),l}},async fetchProviders(){return ee.get("/providers")},addChatMessage(s,l,o,u=!1){t(d=>{const O={...d.chatHistory};return O[s]||(O[s]=[]),O[s]=[...O[s].slice(-100),{from:l,text:o,timestamp:Date.now(),isQuery:u}],bl("groove:chatHistory",O),{chatHistory:O}})},async instructAgent(s,l){var d,O;const o=n().agents.find(m=>m.id===s);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",m.response),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}}n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/instruct`,{message:l});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=n()[p][s];x!=null&&x.length&&t(g=>({[p]:{...g[p],[m.id]:[...x]}}))}return(d=n().chatHistory[s])!=null&&d.length&&bl("groove:chatHistory",n().chatHistory),(O=n().activityLog[s])!=null&&O.length&&bl("groove:activityLog",n().activityLog),n().selectAgent(m.id),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}},async queryAgent(s,l){n().addChatMessage(s,"user",l,!0);try{const o=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",o.response),o}catch(o){throw n().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var u;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){t(d=>({editorActiveFile:s,editorOpenTabs:d.editorOpenTabs.includes(s)?d.editorOpenTabs:[...d.editorOpenTabs,s]}));return}const l=(u=s.split(".").pop())==null?void 0:u.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(l)){t(d=>({editorActiveFile:s,editorOpenTabs:[...d.editorOpenTabs,s]}));return}try{const d=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(d.binary){n().addToast("warning","Binary file — cannot open");return}t(m=>({editorFiles:{...m.editorFiles,[s]:{content:d.content,originalContent:d.content,language:d.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:m.editorOpenTabs.includes(s)?m.editorOpenTabs:[...m.editorOpenTabs,s]}));const O=n().ws;(O==null?void 0:O.readyState)===1&&O.send(JSON.stringify({type:"editor:watch",path:s}))}catch(d){n().addToast("error","Failed to open file",d.message)}},closeFile(s){t(o=>{const u=o.editorOpenTabs.filter(p=>p!==s),d={...o.editorFiles};delete d[s];const O={...o.editorChangedFiles};delete O[s];let m=o.editorActiveFile;if(m===s){const p=o.editorOpenTabs.indexOf(s);m=u[Math.min(p,u.length-1)]||null}return{editorOpenTabs:u,editorFiles:d,editorChangedFiles:O,editorActiveFile:m}});const l=n().ws;(l==null?void 0:l.readyState)===1&&l.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,l){t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:l}}}))},async saveFile(s){const l=n().editorFiles[s];if(l)try{await ee.post("/files/write",{path:s,content:l.content}),t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:l.content}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const l=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(l.binary)return;t(o=>({editorFiles:{...o.editorFiles,[s]:{content:l.content,originalContent:l.content,language:l.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(l=>{const o={...l.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const l=await ee.get(`/files/tree?path=${encodeURIComponent(s)}`);t(o=>({editorTreeCache:{...o.editorTreeCache,[s]:l.entries}}))}catch{}},async createFile(s){try{await ee.post("/files/create",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","File created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async createDir(s){try{await ee.post("/files/mkdir",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","Folder created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async deleteFile(s){try{await ee.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),t(o=>{const u={...o.editorTreeCache};return delete u[s],{editorTreeCache:u}}),n().addToast("success","Deleted"),!0}catch(l){return n().addToast("error","Delete failed",l.message),!1}},async renameFile(s,l){try{await ee.post("/files/rename",{oldPath:s,newPath:l}),t(d=>{const O=d.editorOpenTabs.map(x=>x===s?l:x),m={...d.editorFiles};m[s]&&(m[l]=m[s],delete m[s]);const p=d.editorActiveFile===s?l:d.editorActiveFile;return{editorOpenTabs:O,editorFiles:m,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),u!==o&&await n().fetchTreeDir(u),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function aw(t){v.useEffect(()=>{function n(s){for(const l of t){const o=l.meta?s.metaKey||s.ctrlKey:!0,u=l.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===l.key.toLowerCase()&&o&&u){s.preventDefault(),l.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}function Ee(t,n,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t==null||t(o),s===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function $g(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function $0(...t){return n=>{let s=!1;const l=t.map(o=>{const u=$g(o,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():$g(t[o],null)}}}}function rt(...t){return v.useCallback($0(...t),t)}function nw(t,n){const s=v.createContext(n),l=u=>{const{children:d,...O}=u,m=v.useMemo(()=>O,Object.values(O));return i.jsx(s.Provider,{value:m,children:d})};l.displayName=t+"Provider";function o(u){const d=v.useContext(s);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[l,o]}function Ps(t,n=[]){let s=[];function l(u,d){const O=v.createContext(d),m=s.length;s=[...s,d];const p=g=>{var j;const{scope:b,children:S,...Q}=g,k=((j=b==null?void 0:b[t])==null?void 0:j[m])||O,$=v.useMemo(()=>Q,Object.values(Q));return i.jsx(k.Provider,{value:$,children:S})};p.displayName=u+"Provider";function x(g,b){var k;const S=((k=b==null?void 0:b[t])==null?void 0:k[m])||O,Q=v.useContext(S);if(Q)return Q;if(d!==void 0)return d;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[p,x]}const o=()=>{const u=s.map(d=>v.createContext(d));return function(O){const m=(O==null?void 0:O[t])||u;return v.useMemo(()=>({[`__scope${t}`]:{...O,[t]:m}}),[O,m])}};return o.scopeName=t,[l,sw(o,...n)]}function sw(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=l.reduce((O,{useScope:m,scopeName:p})=>{const g=m(u)[`__scope${p}`];return{...O,...g}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return s.scopeName=n.scopeName,s}function ec(t){const n=lw(t),s=v.forwardRef((l,o)=>{const{children:u,...d}=l,O=v.Children.toArray(u),m=O.find(iw);if(m){const p=m.props.children,x=O.map(g=>g===m?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return i.jsx(n,{...d,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return i.jsx(n,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}function lw(t){const n=v.forwardRef((s,l)=>{const{children:o,...u}=s;if(v.isValidElement(o)){const d=cw(o),O=ow(u,o.props);return o.type!==v.Fragment&&(O.ref=l?$0(l,d):d),v.cloneElement(o,O)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var T0=Symbol("radix.slottable");function rw(t){const n=({children:s})=>i.jsx(i.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=T0,n}function iw(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===T0}function ow(t,n){const s={...n};for(const l in n){const o=t[l],u=n[l];/^on[A-Z]/.test(l)?o&&u?s[l]=(...O)=>{const m=u(...O);return o(...O),m}:o&&(s[l]=o):l==="style"?s[l]={...o,...u}:l==="className"&&(s[l]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function cw(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var uw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=uw.reduce((t,n)=>{const s=ec(`Primitive.${n}`),l=v.forwardRef((o,u)=>{const{asChild:d,...O}=o,m=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(m,{...O,ref:u})});return l.displayName=`Primitive.${n}`,{...t,[n]:l}},{});function dw(t,n){t&&b0.flushSync(()=>t.dispatchEvent(n))}function zt(t){const n=v.useRef(t);return v.useEffect(()=>{n.current=t}),v.useMemo(()=>(...s)=>{var l;return(l=n.current)==null?void 0:l.call(n,...s)},[])}function Ow(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t);v.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return n.addEventListener("keydown",l,{capture:!0}),()=>n.removeEventListener("keydown",l,{capture:!0})},[s,n])}var fw="DismissableLayer",tf="dismissableLayer.update",hw="dismissableLayer.pointerDownOutside",mw="dismissableLayer.focusOutside",Tg,P0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tf=v.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:O,...m}=t,p=v.useContext(P0),[x,g]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),Q=rt(n,X=>g(X)),k=Array.from(p.layers),[$]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf($),P=x?k.indexOf(x):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,Z=P>=j,U=gw(X=>{const T=X.target,G=[...p.branches].some(E=>E.contains(T));!Z||G||(o==null||o(X),d==null||d(X),X.defaultPrevented||O==null||O())},b),C=bw(X=>{const T=X.target;[...p.branches].some(E=>E.contains(T))||(u==null||u(X),d==null||d(X),X.defaultPrevented||O==null||O())},b);return Ow(X=>{P===p.layers.size-1&&(l==null||l(X),!X.defaultPrevented&&O&&(X.preventDefault(),O()))},b),v.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Tg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Pg(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Tg)}},[x,b,s,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Pg())},[x,p]),v.useEffect(()=>{const X=()=>S({});return document.addEventListener(tf,X),()=>document.removeEventListener(tf,X)},[]),i.jsx(Be.div,{...m,ref:Q,style:{pointerEvents:N?Z?"auto":"none":void 0,...t.style},onFocusCapture:Ee(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Ee(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ee(t.onPointerDownCapture,U.onPointerDownCapture)})});Tf.displayName=fw;var pw="DismissableLayerBranch",xw=v.forwardRef((t,n)=>{const s=v.useContext(P0),l=v.useRef(null),o=rt(n,l);return v.useEffect(()=>{const u=l.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),i.jsx(Be.div,{...t,ref:o})});xw.displayName=pw;function gw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const u=O=>{if(O.target&&!l.current){let m=function(){N0(hw,s,p,{discrete:!0})};const p={originalEvent:O};O.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=m,n.addEventListener("click",o.current,{once:!0})):m()}else n.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>l.current=!0}}function bw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1);return v.useEffect(()=>{const o=u=>{u.target&&!l.current&&N0(mw,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Pg(){const t=new CustomEvent(tf);document.dispatchEvent(t)}function N0(t,n,s,{discrete:l}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&o.addEventListener(t,n,{once:!0}),l?dw(o,u):o.dispatchEvent(u)}var ln=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},vw=p0[" useId ".trim().toString()]||(()=>{}),yw=0;function Sl(t){const[n,s]=v.useState(vw());return ln(()=>{s(l=>l??String(yw++))},[t]),t||(n?`radix-${n}`:"")}const Sw=["top","right","bottom","left"],Bn=Math.min,Wt=Math.max,tc=Math.round,zo=Math.floor,$a=t=>({x:t,y:t}),Qw={left:"right",right:"left",bottom:"top",top:"bottom"};function af(t,n,s){return Wt(t,Bn(n,s))}function rn(t,n){return typeof t=="function"?t(n):t}function on(t){return t.split("-")[0]}function Zl(t){return t.split("-")[1]}function Pf(t){return t==="x"?"y":"x"}function Nf(t){return t==="y"?"height":"width"}function ka(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function zf(t){return Pf(ka(t))}function jw(t,n,s){s===void 0&&(s=!1);const l=Zl(t),o=zf(t),u=Nf(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=ac(d)),[d,ac(d)]}function ww(t){const n=ac(t);return[nf(t),n,nf(n)]}function nf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ng=["left","right"],zg=["right","left"],kw=["top","bottom"],$w=["bottom","top"];function Tw(t,n,s){switch(t){case"top":case"bottom":return s?n?zg:Ng:n?Ng:zg;case"left":case"right":return n?kw:$w;default:return[]}}function Pw(t,n,s,l){const o=Zl(t);let u=Tw(on(t),s==="start",l);return o&&(u=u.map(d=>d+"-"+o),n&&(u=u.concat(u.map(nf)))),u}function ac(t){const n=on(t);return Qw[n]+t.slice(n.length)}function Nw(t){return{top:0,right:0,bottom:0,left:0,...t}}function z0(t){return typeof t!="number"?Nw(t):{top:t,right:t,bottom:t,left:t}}function nc(t){const{x:n,y:s,width:l,height:o}=t;return{width:l,height:o,top:s,left:n,right:n+l,bottom:s+o,x:n,y:s}}function Rg(t,n,s){let{reference:l,floating:o}=t;const u=ka(n),d=zf(n),O=Nf(d),m=on(n),p=u==="y",x=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,b=l[O]/2-o[O]/2;let S;switch(m){case"top":S={x,y:l.y-o.height};break;case"bottom":S={x,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-o.width,y:g};break;default:S={x:l.x,y:l.y}}switch(Zl(n)){case"start":S[d]-=b*(s&&p?-1:1);break;case"end":S[d]+=b*(s&&p?-1:1);break}return S}async function zw(t,n){var s;n===void 0&&(n={});const{x:l,y:o,platform:u,rects:d,elements:O,strategy:m}=t,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=rn(n,t),Q=z0(S),$=O[b?g==="floating"?"reference":"floating":g],j=nc(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement($)))==null||s?$:$.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(O.floating)),boundary:p,rootBoundary:x,strategy:m})),P=g==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(O.floating)),Z=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},U=nc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:O,rect:P,offsetParent:N,strategy:m}):P);return{top:(j.top-U.top+Q.top)/Z.y,bottom:(U.bottom-j.bottom+Q.bottom)/Z.y,left:(j.left-U.left+Q.left)/Z.x,right:(U.right-j.right+Q.right)/Z.x}}const Rw=50,Cw=async(t,n,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,O=d.detectOverflow?d:{...d,detectOverflow:zw},m=await(d.isRTL==null?void 0:d.isRTL(n));let p=await d.getElementRects({reference:t,floating:n,strategy:o}),{x,y:g}=Rg(p,l,m),b=l,S=0;const Q={};for(let k=0;k<u.length;k++){const $=u[k];if(!$)continue;const{name:j,fn:P}=$,{x:N,y:Z,data:U,reset:C}=await P({x,y:g,initialPlacement:l,placement:b,strategy:o,middlewareData:Q,rects:p,platform:O,elements:{reference:t,floating:n}});x=N??x,g=Z??g,Q[j]={...Q[j],...U},C&&S<Rw&&(S++,typeof C=="object"&&(C.placement&&(b=C.placement),C.rects&&(p=C.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:o}):C.rects),{x,y:g}=Rg(p,b,m)),k=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},Xw=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:l,placement:o,rects:u,platform:d,elements:O,middlewareData:m}=n,{element:p,padding:x=0}=rn(t,n)||{};if(p==null)return{};const g=z0(x),b={x:s,y:l},S=zf(o),Q=Nf(S),k=await d.getDimensions(p),$=S==="y",j=$?"top":"left",P=$?"bottom":"right",N=$?"clientHeight":"clientWidth",Z=u.reference[Q]+u.reference[S]-b[S]-u.floating[Q],U=b[S]-u.reference[S],C=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let X=C?C[N]:0;(!X||!await(d.isElement==null?void 0:d.isElement(C)))&&(X=O.floating[N]||u.floating[Q]);const T=Z/2-U/2,G=X/2-k[Q]/2-1,E=Bn(g[j],G),se=Bn(g[P],G),re=E,ge=X-k[Q]-se,de=X/2-k[Q]/2+T,K=af(re,de,ge),z=!m.arrow&&Zl(o)!=null&&de!==K&&u.reference[Q]/2-(de<re?E:se)-k[Q]/2<0,B=z?de<re?de-re:de-ge:0;return{[S]:b[S]+B,data:{[S]:K,centerOffset:de-K-B,...z&&{alignmentOffset:B}},reset:z}}}),_w=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,l;const{placement:o,middlewareData:u,rects:d,initialPlacement:O,platform:m,elements:p}=n,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:k=!0,...$}=rn(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const j=on(o),P=ka(O),N=on(O)===O,Z=await(m.isRTL==null?void 0:m.isRTL(p.floating)),U=b||(N||!k?[ac(O)]:ww(O)),C=Q!=="none";!b&&C&&U.push(...Pw(O,k,Q,Z));const X=[O,...U],T=await m.detectOverflow(n,$),G=[];let E=((l=u.flip)==null?void 0:l.overflows)||[];if(x&&G.push(T[j]),g){const de=jw(o,d,Z);G.push(T[de[0]],T[de[1]])}if(E=[...E,{placement:o,overflows:G}],!G.every(de=>de<=0)){var se,re;const de=(((se=u.flip)==null?void 0:se.index)||0)+1,K=X[de];if(K&&(!(g==="alignment"?P!==ka(K):!1)||E.every(J=>ka(J.placement)===P?J.overflows[0]>0:!0)))return{data:{index:de,overflows:E},reset:{placement:K}};let z=(re=E.filter(B=>B.overflows[0]<=0).sort((B,J)=>B.overflows[1]-J.overflows[1])[0])==null?void 0:re.placement;if(!z)switch(S){case"bestFit":{var ge;const B=(ge=E.filter(J=>{if(C){const fe=ka(J.placement);return fe===P||fe==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(fe=>fe>0).reduce((fe,te)=>fe+te,0)]).sort((J,fe)=>J[1]-fe[1])[0])==null?void 0:ge[0];B&&(z=B);break}case"initialPlacement":z=O;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Cg(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Xg(t){return Sw.some(n=>t[n]>=0)}const Zw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s,platform:l}=n,{strategy:o="referenceHidden",...u}=rn(t,n);switch(o){case"referenceHidden":{const d=await l.detectOverflow(n,{...u,elementContext:"reference"}),O=Cg(d,s.reference);return{data:{referenceHiddenOffsets:O,referenceHidden:Xg(O)}}}case"escaped":{const d=await l.detectOverflow(n,{...u,altBoundary:!0}),O=Cg(d,s.floating);return{data:{escapedOffsets:O,escaped:Xg(O)}}}default:return{}}}}},R0=new Set(["left","top"]);async function Aw(t,n){const{placement:s,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=on(s),O=Zl(s),m=ka(s)==="y",p=R0.has(d)?-1:1,x=u&&m?-1:1,g=rn(n,t);let{mainAxis:b,crossAxis:S,alignmentAxis:Q}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return O&&typeof Q=="number"&&(S=O==="end"?Q*-1:Q),m?{x:S*x,y:b*p}:{x:b*p,y:S*x}}const Ew=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,l;const{x:o,y:u,placement:d,middlewareData:O}=n,m=await Aw(n,t);return d===((s=O.offset)==null?void 0:s.placement)&&(l=O.arrow)!=null&&l.alignmentOffset?{}:{x:o+m.x,y:u+m.y,data:{...m,placement:d}}}}},qw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:l,placement:o,platform:u}=n,{mainAxis:d=!0,crossAxis:O=!1,limiter:m={fn:j=>{let{x:P,y:N}=j;return{x:P,y:N}}},...p}=rn(t,n),x={x:s,y:l},g=await u.detectOverflow(n,p),b=ka(on(o)),S=Pf(b);let Q=x[S],k=x[b];if(d){const j=S==="y"?"top":"left",P=S==="y"?"bottom":"right",N=Q+g[j],Z=Q-g[P];Q=af(N,Q,Z)}if(O){const j=b==="y"?"top":"left",P=b==="y"?"bottom":"right",N=k+g[j],Z=k-g[P];k=af(N,k,Z)}const $=m.fn({...n,[S]:Q,[b]:k});return{...$,data:{x:$.x-s,y:$.y-l,enabled:{[S]:d,[b]:O}}}}}},Mw=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:l,placement:o,rects:u,middlewareData:d}=n,{offset:O=0,mainAxis:m=!0,crossAxis:p=!0}=rn(t,n),x={x:s,y:l},g=ka(o),b=Pf(g);let S=x[b],Q=x[g];const k=rn(O,n),$=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const N=b==="y"?"height":"width",Z=u.reference[b]-u.floating[N]+$.mainAxis,U=u.reference[b]+u.reference[N]-$.mainAxis;S<Z?S=Z:S>U&&(S=U)}if(p){var j,P;const N=b==="y"?"width":"height",Z=R0.has(on(o)),U=u.reference[g]-u.floating[N]+(Z&&((j=d.offset)==null?void 0:j[g])||0)+(Z?0:$.crossAxis),C=u.reference[g]+u.reference[N]+(Z?0:((P=d.offset)==null?void 0:P[g])||0)-(Z?$.crossAxis:0);Q<U?Q=U:Q>C&&(Q=C)}return{[b]:S,[g]:Q}}}},Yw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,l;const{placement:o,rects:u,platform:d,elements:O}=n,{apply:m=()=>{},...p}=rn(t,n),x=await d.detectOverflow(n,p),g=on(o),b=Zl(o),S=ka(o)==="y",{width:Q,height:k}=u.floating;let $,j;g==="top"||g==="bottom"?($=g,j=b===(await(d.isRTL==null?void 0:d.isRTL(O.floating))?"start":"end")?"left":"right"):(j=g,$=b==="end"?"top":"bottom");const P=k-x.top-x.bottom,N=Q-x.left-x.right,Z=Bn(k-x[$],P),U=Bn(Q-x[j],N),C=!n.middlewareData.shift;let X=Z,T=U;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&(T=N),(l=n.middlewareData.shift)!=null&&l.enabled.y&&(X=P),C&&!b){const E=Wt(x.left,0),se=Wt(x.right,0),re=Wt(x.top,0),ge=Wt(x.bottom,0);S?T=Q-2*(E!==0||se!==0?E+se:Wt(x.left,x.right)):X=k-2*(re!==0||ge!==0?re+ge:Wt(x.top,x.bottom))}await m({...n,availableWidth:T,availableHeight:X});const G=await d.getDimensions(O.floating);return Q!==G.width||k!==G.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function Al(t){return C0(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Pa(t){var n;return(n=(C0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function C0(t){return wc()?t instanceof Node||t instanceof Bt(t).Node:!1}function pa(t){return wc()?t instanceof Element||t instanceof Bt(t).Element:!1}function un(t){return wc()?t instanceof HTMLElement||t instanceof Bt(t).HTMLElement:!1}function _g(t){return!wc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function li(t){const{overflow:n,overflowX:s,overflowY:l,display:o}=xa(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+s)&&o!=="inline"&&o!=="contents"}function Vw(t){return/^(table|td|th)$/.test(Al(t))}function kc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Uw=/transform|translate|scale|rotate|perspective|filter/,Gw=/paint|layout|strict|content/,bs=t=>!!t&&t!=="none";let dO;function Rf(t){const n=pa(t)?xa(t):t;return bs(n.transform)||bs(n.translate)||bs(n.scale)||bs(n.rotate)||bs(n.perspective)||!Cf()&&(bs(n.backdropFilter)||bs(n.filter))||Uw.test(n.willChange||"")||Gw.test(n.contain||"")}function Lw(t){let n=Hn(t);for(;un(n)&&!$l(n);){if(Rf(n))return n;if(kc(n))return null;n=Hn(n)}return null}function Cf(){return dO==null&&(dO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dO}function $l(t){return/^(html|body|#document)$/.test(Al(t))}function xa(t){return Bt(t).getComputedStyle(t)}function $c(t){return pa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Hn(t){if(Al(t)==="html")return t;const n=t.assignedSlot||t.parentNode||_g(t)&&t.host||Pa(t);return _g(n)?n.host:n}function X0(t){const n=Hn(t);return $l(n)?t.ownerDocument?t.ownerDocument.body:t.body:un(n)&&li(n)?n:X0(n)}function Dr(t,n,s){var l;n===void 0&&(n=[]),s===void 0&&(s=!0);const o=X0(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),d=Bt(o);if(u){const O=sf(d);return n.concat(d,d.visualViewport||[],li(o)?o:[],O&&s?Dr(O):[])}else return n.concat(o,Dr(o,[],s))}function sf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _0(t){const n=xa(t);let s=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=un(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:l,O=tc(s)!==u||tc(l)!==d;return O&&(s=u,l=d),{width:s,height:l,$:O}}function Xf(t){return pa(t)?t:t.contextElement}function Ql(t){const n=Xf(t);if(!un(n))return $a(1);const s=n.getBoundingClientRect(),{width:l,height:o,$:u}=_0(n);let d=(u?tc(s.width):s.width)/l,O=(u?tc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!O||!Number.isFinite(O))&&(O=1),{x:d,y:O}}const Dw=$a(0);function Z0(t){const n=Bt(t);return!Cf()||!n.visualViewport?Dw:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Ww(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==Bt(t)?!1:n}function js(t,n,s,l){n===void 0&&(n=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=Xf(t);let d=$a(1);n&&(l?pa(l)&&(d=Ql(l)):d=Ql(t));const O=Ww(u,s,l)?Z0(u):$a(0);let m=(o.left+O.x)/d.x,p=(o.top+O.y)/d.y,x=o.width/d.x,g=o.height/d.y;if(u){const b=Bt(u),S=l&&pa(l)?Bt(l):l;let Q=b,k=sf(Q);for(;k&&l&&S!==Q;){const $=Ql(k),j=k.getBoundingClientRect(),P=xa(k),N=j.left+(k.clientLeft+parseFloat(P.paddingLeft))*$.x,Z=j.top+(k.clientTop+parseFloat(P.paddingTop))*$.y;m*=$.x,p*=$.y,x*=$.x,g*=$.y,m+=N,p+=Z,Q=Bt(k),k=sf(Q)}}return nc({width:x,height:g,x:m,y:p})}function Tc(t,n){const s=$c(t).scrollLeft;return n?n.left+s:js(Pa(t)).left+s}function A0(t,n){const s=t.getBoundingClientRect(),l=s.left+n.scrollLeft-Tc(t,s),o=s.top+n.scrollTop;return{x:l,y:o}}function Bw(t){let{elements:n,rect:s,offsetParent:l,strategy:o}=t;const u=o==="fixed",d=Pa(l),O=n?kc(n.floating):!1;if(l===d||O&&u)return s;let m={scrollLeft:0,scrollTop:0},p=$a(1);const x=$a(0),g=un(l);if((g||!g&&!u)&&((Al(l)!=="body"||li(d))&&(m=$c(l)),g)){const S=js(l);p=Ql(l),x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}const b=d&&!g&&!u?A0(d,m):$a(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-m.scrollLeft*p.x+x.x+b.x,y:s.y*p.y-m.scrollTop*p.y+x.y+b.y}}function Hw(t){return Array.from(t.getClientRects())}function Iw(t){const n=Pa(t),s=$c(t),l=t.ownerDocument.body,o=Wt(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),u=Wt(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+Tc(t);const O=-s.scrollTop;return xa(l).direction==="rtl"&&(d+=Wt(n.clientWidth,l.clientWidth)-o),{width:o,height:u,x:d,y:O}}const Zg=25;function Fw(t,n){const s=Bt(t),l=Pa(t),o=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,O=0,m=0;if(o){u=o.width,d=o.height;const x=Cf();(!x||x&&n==="fixed")&&(O=o.offsetLeft,m=o.offsetTop)}const p=Tc(l);if(p<=0){const x=l.ownerDocument,g=x.body,b=getComputedStyle(g),S=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(l.clientWidth-g.clientWidth-S);Q<=Zg&&(u-=Q)}else p<=Zg&&(u+=p);return{width:u,height:d,x:O,y:m}}function Kw(t,n){const s=js(t,!0,n==="fixed"),l=s.top+t.clientTop,o=s.left+t.clientLeft,u=un(t)?Ql(t):$a(1),d=t.clientWidth*u.x,O=t.clientHeight*u.y,m=o*u.x,p=l*u.y;return{width:d,height:O,x:m,y:p}}function Ag(t,n,s){let l;if(n==="viewport")l=Fw(t,s);else if(n==="document")l=Iw(Pa(t));else if(pa(n))l=Kw(n,s);else{const o=Z0(t);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return nc(l)}function E0(t,n){const s=Hn(t);return s===n||!pa(s)||$l(s)?!1:xa(s).position==="fixed"||E0(s,n)}function Jw(t,n){const s=n.get(t);if(s)return s;let l=Dr(t,[],!1).filter(O=>pa(O)&&Al(O)!=="body"),o=null;const u=xa(t).position==="fixed";let d=u?Hn(t):t;for(;pa(d)&&!$l(d);){const O=xa(d),m=Rf(d);!m&&O.position==="fixed"&&(o=null),(u?!m&&!o:!m&&O.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||li(d)&&!m&&E0(t,d))?l=l.filter(x=>x!==d):o=O,d=Hn(d)}return n.set(t,l),l}function ek(t){let{element:n,boundary:s,rootBoundary:l,strategy:o}=t;const d=[...s==="clippingAncestors"?kc(n)?[]:Jw(n,this._c):[].concat(s),l],O=Ag(n,d[0],o);let m=O.top,p=O.right,x=O.bottom,g=O.left;for(let b=1;b<d.length;b++){const S=Ag(n,d[b],o);m=Wt(S.top,m),p=Bn(S.right,p),x=Bn(S.bottom,x),g=Wt(S.left,g)}return{width:p-g,height:x-m,x:g,y:m}}function tk(t){const{width:n,height:s}=_0(t);return{width:n,height:s}}function ak(t,n,s){const l=un(n),o=Pa(n),u=s==="fixed",d=js(t,!0,u,n);let O={scrollLeft:0,scrollTop:0};const m=$a(0);function p(){m.x=Tc(o)}if(l||!l&&!u)if((Al(n)!=="body"||li(o))&&(O=$c(n)),l){const S=js(n,!0,u,n);m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}else o&&p();u&&!l&&o&&p();const x=o&&!l&&!u?A0(o,O):$a(0),g=d.left+O.scrollLeft-m.x-x.x,b=d.top+O.scrollTop-m.y-x.y;return{x:g,y:b,width:d.width,height:d.height}}function OO(t){return xa(t).position==="static"}function Eg(t,n){if(!un(t)||xa(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return Pa(t)===s&&(s=s.ownerDocument.body),s}function q0(t,n){const s=Bt(t);if(kc(t))return s;if(!un(t)){let o=Hn(t);for(;o&&!$l(o);){if(pa(o)&&!OO(o))return o;o=Hn(o)}return s}let l=Eg(t,n);for(;l&&Vw(l)&&OO(l);)l=Eg(l,n);return l&&$l(l)&&OO(l)&&!Rf(l)?s:l||Lw(t)||s}const nk=async function(t){const n=this.getOffsetParent||q0,s=this.getDimensions,l=await s(t.floating);return{reference:ak(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function sk(t){return xa(t).direction==="rtl"}const lk={convertOffsetParentRelativeRectToViewportRelativeRect:Bw,getDocumentElement:Pa,getClippingRect:ek,getOffsetParent:q0,getElementRects:nk,getClientRects:Hw,getDimensions:tk,getScale:Ql,isElement:pa,isRTL:sk};function M0(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function rk(t,n){let s=null,l;const o=Pa(t);function u(){var O;clearTimeout(l),(O=s)==null||O.disconnect(),s=null}function d(O,m){O===void 0&&(O=!1),m===void 0&&(m=1),u();const p=t.getBoundingClientRect(),{left:x,top:g,width:b,height:S}=p;if(O||n(),!b||!S)return;const Q=zo(g),k=zo(o.clientWidth-(x+b)),$=zo(o.clientHeight-(g+S)),j=zo(x),N={rootMargin:-Q+"px "+-k+"px "+-$+"px "+-j+"px",threshold:Wt(0,Bn(1,m))||1};let Z=!0;function U(C){const X=C[0].intersectionRatio;if(X!==m){if(!Z)return d();X?d(!1,X):l=setTimeout(()=>{d(!1,1e-7)},1e3)}X===1&&!M0(p,t.getBoundingClientRect())&&d(),Z=!1}try{s=new IntersectionObserver(U,{...N,root:o.ownerDocument})}catch{s=new IntersectionObserver(U,N)}s.observe(t)}return d(!0),u}function ik(t,n,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:O=typeof IntersectionObserver=="function",animationFrame:m=!1}=l,p=Xf(t),x=o||u?[...p?Dr(p):[],...n?Dr(n):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),u&&j.addEventListener("resize",s)});const g=p&&O?rk(p,s):null;let b=-1,S=null;d&&(S=new ResizeObserver(j=>{let[P]=j;P&&P.target===p&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=S)==null||N.observe(n)})),s()}),p&&!m&&S.observe(p),n&&S.observe(n));let Q,k=m?js(t):null;m&&$();function $(){const j=js(t);k&&!M0(k,j)&&s(),k=j,Q=requestAnimationFrame($)}return s(),()=>{var j;x.forEach(P=>{o&&P.removeEventListener("scroll",s),u&&P.removeEventListener("resize",s)}),g==null||g(),(j=S)==null||j.disconnect(),S=null,m&&cancelAnimationFrame(Q)}}const ok=Ew,ck=qw,uk=_w,dk=Yw,Ok=Zw,qg=Xw,fk=Mw,hk=(t,n,s)=>{const l=new Map,o={platform:lk,...s},u={...o.platform,_c:l};return Cw(t,n,{...o,platform:u})};var mk=typeof document<"u",pk=function(){},Do=mk?v.useLayoutEffect:pk;function sc(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let s,l,o;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(l=s;l--!==0;)if(!sc(t[l],n[l]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(n).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(n,o[l]))return!1;for(l=s;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!sc(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function Y0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Mg(t,n){const s=Y0(t);return Math.round(n*s)/s}function fO(t){const n=v.useRef(t);return Do(()=>{n.current=t}),n}function xk(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:d}={},transform:O=!0,whileElementsMounted:m,open:p}=t,[x,g]=v.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(l);sc(b,l)||S(l);const[Q,k]=v.useState(null),[$,j]=v.useState(null),P=v.useCallback(J=>{J!==C.current&&(C.current=J,k(J))},[]),N=v.useCallback(J=>{J!==X.current&&(X.current=J,j(J))},[]),Z=u||Q,U=d||$,C=v.useRef(null),X=v.useRef(null),T=v.useRef(x),G=m!=null,E=fO(m),se=fO(o),re=fO(p),ge=v.useCallback(()=>{if(!C.current||!X.current)return;const J={placement:n,strategy:s,middleware:b};se.current&&(J.platform=se.current),hk(C.current,X.current,J).then(fe=>{const te={...fe,isPositioned:re.current!==!1};de.current&&!sc(T.current,te)&&(T.current=te,b0.flushSync(()=>{g(te)}))})},[b,n,s,se,re]);Do(()=>{p===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[p]);const de=v.useRef(!1);Do(()=>(de.current=!0,()=>{de.current=!1}),[]),Do(()=>{if(Z&&(C.current=Z),U&&(X.current=U),Z&&U){if(E.current)return E.current(Z,U,ge);ge()}},[Z,U,ge,E,G]);const K=v.useMemo(()=>({reference:C,floating:X,setReference:P,setFloating:N}),[P,N]),z=v.useMemo(()=>({reference:Z,floating:U}),[Z,U]),B=v.useMemo(()=>{const J={position:s,left:0,top:0};if(!z.floating)return J;const fe=Mg(z.floating,x.x),te=Mg(z.floating,x.y);return O?{...J,transform:"translate("+fe+"px, "+te+"px)",...Y0(z.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:fe,top:te}},[s,O,z.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ge,refs:K,elements:z,floatingStyles:B}),[x,ge,K,z,B])}const gk=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:l,padding:o}=typeof t=="function"?t(s):t;return l&&n(l)?l.current!=null?qg({element:l.current,padding:o}).fn(s):{}:l?qg({element:l,padding:o}).fn(s):{}}}},bk=(t,n)=>{const s=ok(t);return{name:s.name,fn:s.fn,options:[t,n]}},vk=(t,n)=>{const s=ck(t);return{name:s.name,fn:s.fn,options:[t,n]}},yk=(t,n)=>({fn:fk(t).fn,options:[t,n]}),Sk=(t,n)=>{const s=uk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Qk=(t,n)=>{const s=dk(t);return{name:s.name,fn:s.fn,options:[t,n]}},jk=(t,n)=>{const s=Ok(t);return{name:s.name,fn:s.fn,options:[t,n]}},wk=(t,n)=>{const s=gk(t);return{name:s.name,fn:s.fn,options:[t,n]}};var kk="Arrow",V0=v.forwardRef((t,n)=>{const{children:s,width:l=10,height:o=5,...u}=t;return i.jsx(Be.svg,{...u,ref:n,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});V0.displayName=kk;var $k=V0;function Tk(t){const[n,s]=v.useState(void 0);return ln(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,O;if("borderBoxSize"in u){const m=u.borderBoxSize,p=Array.isArray(m)?m[0]:m;d=p.inlineSize,O=p.blockSize}else d=t.offsetWidth,O=t.offsetHeight;s({width:d,height:O})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else s(void 0)},[t]),n}var _f="Popper",[U0,G0]=Ps(_f),[Pk,L0]=U0(_f),D0=t=>{const{__scopePopper:n,children:s}=t,[l,o]=v.useState(null);return i.jsx(Pk,{scope:n,anchor:l,onAnchorChange:o,children:s})};D0.displayName=_f;var W0="PopperAnchor",B0=v.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:l,...o}=t,u=L0(W0,s),d=v.useRef(null),O=rt(n,d),m=v.useRef(null);return v.useEffect(()=>{const p=m.current;m.current=(l==null?void 0:l.current)||d.current,p!==m.current&&u.onAnchorChange(m.current)}),l?null:i.jsx(Be.div,{...o,ref:O})});B0.displayName=W0;var Zf="PopperContent",[Nk,zk]=U0(Zf),H0=v.forwardRef((t,n)=>{var ze,Ot,_e,tt,bt,vt;const{__scopePopper:s,side:l="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:O=0,avoidCollisions:m=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:Q,...k}=t,$=L0(Zf,s),[j,P]=v.useState(null),N=rt(n,It=>P(It)),[Z,U]=v.useState(null),C=Tk(Z),X=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,G=l+(u!=="center"?"-"+u:""),E=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},se=Array.isArray(p)?p:[p],re=se.length>0,ge={padding:E,boundary:se.filter(Ck),altBoundary:re},{refs:de,floatingStyles:K,placement:z,isPositioned:B,middlewareData:J}=xk({strategy:"fixed",placement:G,whileElementsMounted:(...It)=>ik(...It,{animationFrame:S==="always"}),elements:{reference:$.anchor},middleware:[bk({mainAxis:o+T,alignmentAxis:d}),m&&vk({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?yk():void 0,...ge}),m&&Sk({...ge}),Qk({...ge,apply:({elements:It,rects:yt,availableWidth:Ml,availableHeight:Yl})=>{const{width:Wc,height:Oi}=yt.reference,On=It.floating.style;On.setProperty("--radix-popper-available-width",`${Ml}px`),On.setProperty("--radix-popper-available-height",`${Yl}px`),On.setProperty("--radix-popper-anchor-width",`${Wc}px`),On.setProperty("--radix-popper-anchor-height",`${Oi}px`)}}),Z&&wk({element:Z,padding:O}),Xk({arrowWidth:X,arrowHeight:T}),b&&jk({strategy:"referenceHidden",...ge})]}),[fe,te]=K0(z),Ae=zt(Q);ln(()=>{B&&(Ae==null||Ae())},[B,Ae]);const Se=(ze=J.arrow)==null?void 0:ze.x,ve=(Ot=J.arrow)==null?void 0:Ot.y,Xe=((_e=J.arrow)==null?void 0:_e.centerOffset)!==0,[D,ie]=v.useState();return ln(()=>{j&&ie(window.getComputedStyle(j).zIndex)},[j]),i.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:B?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:D,"--radix-popper-transform-origin":[(tt=J.transformOrigin)==null?void 0:tt.x,(bt=J.transformOrigin)==null?void 0:bt.y].join(" "),...((vt=J.hide)==null?void 0:vt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i.jsx(Nk,{scope:s,placedSide:fe,onArrowChange:U,arrowX:Se,arrowY:ve,shouldHideArrow:Xe,children:i.jsx(Be.div,{"data-side":fe,"data-align":te,...k,ref:N,style:{...k.style,animation:B?void 0:"none"}})})})});H0.displayName=Zf;var I0="PopperArrow",Rk={top:"bottom",right:"left",bottom:"top",left:"right"},F0=v.forwardRef(function(n,s){const{__scopePopper:l,...o}=n,u=zk(I0,l),d=Rk[u.placedSide];return i.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:i.jsx($k,{...o,ref:s,style:{...o.style,display:"block"}})})});F0.displayName=I0;function Ck(t){return t!==null}var Xk=t=>({name:"transformOrigin",options:t,fn(n){var $,j,P;const{placement:s,rects:l,middlewareData:o}=n,d=(($=o.arrow)==null?void 0:$.centerOffset)!==0,O=d?0:t.arrowWidth,m=d?0:t.arrowHeight,[p,x]=K0(s),g={start:"0%",center:"50%",end:"100%"}[x],b=(((j=o.arrow)==null?void 0:j.x)??0)+O/2,S=(((P=o.arrow)==null?void 0:P.y)??0)+m/2;let Q="",k="";return p==="bottom"?(Q=d?g:`${b}px`,k=`${-m}px`):p==="top"?(Q=d?g:`${b}px`,k=`${l.floating.height+m}px`):p==="right"?(Q=`${-m}px`,k=d?g:`${S}px`):p==="left"&&(Q=`${l.floating.width+m}px`,k=d?g:`${S}px`),{data:{x:Q,y:k}}}});function K0(t){const[n,s="center"]=t.split("-");return[n,s]}var _k=D0,Zk=B0,Ak=H0,Ek=F0,qk="Portal",Af=v.forwardRef((t,n)=>{var O;const{container:s,...l}=t,[o,u]=v.useState(!1);ln(()=>u(!0),[]);const d=s||o&&((O=globalThis==null?void 0:globalThis.document)==null?void 0:O.body);return d?hj.createPortal(i.jsx(Be.div,{...l,ref:n}),d):null});Af.displayName=qk;function Mk(t,n){return v.useReducer((s,l)=>n[s][l]??s,t)}var ba=t=>{const{present:n,children:s}=t,l=Yk(n),o=typeof s=="function"?s({present:l.isPresent}):v.Children.only(s),u=rt(l.ref,Vk(o));return typeof s=="function"||l.isPresent?v.cloneElement(o,{ref:u}):null};ba.displayName="Presence";function Yk(t){const[n,s]=v.useState(),l=v.useRef(null),o=v.useRef(t),u=v.useRef("none"),d=t?"mounted":"unmounted",[O,m]=Mk(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Ro(l.current);u.current=O==="mounted"?p:"none"},[O]),ln(()=>{const p=l.current,x=o.current;if(x!==t){const b=u.current,S=Ro(p);t?m("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?m("UNMOUNT"):m(x&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,m]),ln(()=>{if(n){let p;const x=n.ownerDocument.defaultView??window,g=S=>{const k=Ro(l.current).includes(CSS.escape(S.animationName));if(S.target===n&&k&&(m("ANIMATION_END"),!o.current)){const $=n.style.animationFillMode;n.style.animationFillMode="forwards",p=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=$)})}},b=S=>{S.target===n&&(u.current=Ro(l.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{x.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(O),ref:v.useCallback(p=>{l.current=p?getComputedStyle(p):null,s(p)},[])}}function Ro(t){return(t==null?void 0:t.animationName)||"none"}function Vk(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Uk=p0[" useInsertionEffect ".trim().toString()]||ln;function Pc({prop:t,defaultProp:n,onChange:s=()=>{},caller:l}){const[o,u,d]=Gk({defaultProp:n,onChange:s}),O=t!==void 0,m=O?t:o;{const x=v.useRef(t!==void 0);v.useEffect(()=>{const g=x.current;g!==O&&console.warn(`${l} is changing from ${g?"controlled":"uncontrolled"} to ${O?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=O},[O,l])}const p=v.useCallback(x=>{var g;if(O){const b=Lk(x)?x(t):x;b!==t&&((g=d.current)==null||g.call(d,b))}else u(x)},[O,t,u,d]);return[m,p]}function Gk({defaultProp:t,onChange:n}){const[s,l]=v.useState(t),o=v.useRef(s),u=v.useRef(n);return Uk(()=>{u.current=n},[n]),v.useEffect(()=>{var d;o.current!==s&&((d=u.current)==null||d.call(u,s),o.current=s)},[s,o]),[s,l,u]}function Lk(t){return typeof t=="function"}var Dk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Wk="VisuallyHidden",J0=v.forwardRef((t,n)=>i.jsx(Be.span,{...t,ref:n,style:{...Dk,...t.style}}));J0.displayName=Wk;var Bk=J0,[Nc]=Ps("Tooltip",[G0]),zc=G0(),eb="TooltipProvider",Hk=700,lf="tooltip.open",[Ik,Ef]=Nc(eb),tb=t=>{const{__scopeTooltip:n,delayDuration:s=Hk,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:u}=t,d=v.useRef(!0),O=v.useRef(!1),m=v.useRef(0);return v.useEffect(()=>{const p=m.current;return()=>window.clearTimeout(p)},[]),i.jsx(Ik,{scope:n,isOpenDelayedRef:d,delayDuration:s,onOpen:v.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:O,onPointerInTransitChange:v.useCallback(p=>{O.current=p},[]),disableHoverableContent:o,children:u})};tb.displayName=eb;var Wr="Tooltip",[Fk,ri]=Nc(Wr),ab=t=>{const{__scopeTooltip:n,children:s,open:l,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:O}=t,m=Ef(Wr,t.__scopeTooltip),p=zc(n),[x,g]=v.useState(null),b=Sl(),S=v.useRef(0),Q=d??m.disableHoverableContent,k=O??m.delayDuration,$=v.useRef(!1),[j,P]=Pc({prop:l,defaultProp:o??!1,onChange:X=>{X?(m.onOpen(),document.dispatchEvent(new CustomEvent(lf))):m.onClose(),u==null||u(X)},caller:Wr}),N=v.useMemo(()=>j?$.current?"delayed-open":"instant-open":"closed",[j]),Z=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,$.current=!1,P(!0)},[P]),U=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,P(!1)},[P]),C=v.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{$.current=!0,P(!0),S.current=0},k)},[k,P]);return v.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),i.jsx(_k,{...p,children:i.jsx(Fk,{scope:n,contentId:b,open:j,stateAttribute:N,trigger:x,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{m.isOpenDelayedRef.current?C():Z()},[m.isOpenDelayedRef,C,Z]),onTriggerLeave:v.useCallback(()=>{Q?U():(window.clearTimeout(S.current),S.current=0)},[U,Q]),onOpen:Z,onClose:U,disableHoverableContent:Q,children:s})})};ab.displayName=Wr;var rf="TooltipTrigger",nb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=ri(rf,s),u=Ef(rf,s),d=zc(s),O=v.useRef(null),m=rt(n,O,o.onTriggerChange),p=v.useRef(!1),x=v.useRef(!1),g=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),i.jsx(Zk,{asChild:!0,...d,children:i.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:m,onPointerMove:Ee(t.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Ee(t.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Ee(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ee(t.onBlur,o.onClose),onClick:Ee(t.onClick,o.onClose)})})});nb.displayName=rf;var qf="TooltipPortal",[Kk,Jk]=Nc(qf,{forceMount:void 0}),sb=t=>{const{__scopeTooltip:n,forceMount:s,children:l,container:o}=t,u=ri(qf,n);return i.jsx(Kk,{scope:n,forceMount:s,children:i.jsx(ba,{present:s||u.open,children:i.jsx(Af,{asChild:!0,container:o,children:l})})})};sb.displayName=qf;var Tl="TooltipContent",lb=v.forwardRef((t,n)=>{const s=Jk(Tl,t.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...u}=t,d=ri(Tl,t.__scopeTooltip);return i.jsx(ba,{present:l||d.open,children:d.disableHoverableContent?i.jsx(rb,{side:o,...u,ref:n}):i.jsx(e$,{side:o,...u,ref:n})})}),e$=v.forwardRef((t,n)=>{const s=ri(Tl,t.__scopeTooltip),l=Ef(Tl,t.__scopeTooltip),o=v.useRef(null),u=rt(n,o),[d,O]=v.useState(null),{trigger:m,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=l,b=v.useCallback(()=>{O(null),g(!1)},[g]),S=v.useCallback((Q,k)=>{const $=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},P=s$(j,$.getBoundingClientRect()),N=l$(j,P),Z=r$(k.getBoundingClientRect()),U=o$([...N,...Z]);O(U),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(m&&x){const Q=$=>S($,x),k=$=>S($,m);return m.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",k),()=>{m.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",k)}}},[m,x,S,b]),v.useEffect(()=>{if(d){const Q=k=>{const $=k.target,j={x:k.clientX,y:k.clientY},P=(m==null?void 0:m.contains($))||(x==null?void 0:x.contains($)),N=!i$(j,d);P?b():N&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[m,x,d,p,b]),i.jsx(rb,{...t,ref:u})}),[t$,a$]=Nc(Wr,{isInside:!1}),n$=rw("TooltipContent"),rb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...O}=t,m=ri(Tl,s),p=zc(s),{onClose:x}=m;return v.useEffect(()=>(document.addEventListener(lf,x),()=>document.removeEventListener(lf,x)),[x]),v.useEffect(()=>{if(m.trigger){const g=b=>{const S=b.target;S!=null&&S.contains(m.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[m.trigger,x]),i.jsx(Tf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:i.jsxs(Ak,{"data-state":m.stateAttribute,...p,...O,ref:n,style:{...O.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(n$,{children:l}),i.jsx(t$,{scope:s,isInside:!0,children:i.jsx(Bk,{id:m.contentId,role:"tooltip",children:o||l})})]})})});lb.displayName=Tl;var ib="TooltipArrow",ob=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=zc(s);return a$(ib,s).isInside?null:i.jsx(Ek,{...o,...l,ref:n})});ob.displayName=ib;function s$(t,n){const s=Math.abs(n.top-t.y),l=Math.abs(n.bottom-t.y),o=Math.abs(n.right-t.x),u=Math.abs(n.left-t.x);switch(Math.min(s,l,o,u)){case u:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function l$(t,n,s=5){const l=[];switch(n){case"top":l.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":l.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":l.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":l.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return l}function r$(t){const{top:n,right:s,bottom:l,left:o}=t;return[{x:o,y:n},{x:s,y:n},{x:s,y:l},{x:o,y:l}]}function i$(t,n){const{x:s,y:l}=t;let o=!1;for(let u=0,d=n.length-1;u<n.length;d=u++){const O=n[u],m=n[d],p=O.x,x=O.y,g=m.x,b=m.y;x>l!=b>l&&s<(g-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function o$(t){const n=t.slice();return n.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),c$(n)}function c$(t){if(t.length<=1)return t.slice();const n=[];for(let l=0;l<t.length;l++){const o=t[l];for(;n.length>=2;){const u=n[n.length-1],d=n[n.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}n.pop();const s=[];for(let l=t.length-1;l>=0;l--){const o=t[l];for(;s.length>=2;){const u=s[s.length-1],d=s[s.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),n.length===1&&s.length===1&&n[0].x===s[0].x&&n[0].y===s[0].y?n:n.concat(s)}var u$=tb,d$=ab,O$=nb,f$=sb,h$=lb,m$=ob;function cb(t){var n,s,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(s=cb(t[n]))&&(l&&(l+=" "),l+=s)}else for(s in t)t[s]&&(l&&(l+=" "),l+=s);return l}function p$(){for(var t,n,s=0,l="",o=arguments.length;s<o;s++)(t=arguments[s])&&(n=cb(t))&&(l&&(l+=" "),l+=n);return l}const x$=(t,n)=>{const s=new Array(t.length+n.length);for(let l=0;l<t.length;l++)s[l]=t[l];for(let l=0;l<n.length;l++)s[t.length+l]=n[l];return s},g$=(t,n)=>({classGroupId:t,validator:n}),ub=(t=new Map,n=null,s)=>({nextPart:t,validators:n,classGroupId:s}),lc="-",Yg=[],b$="arbitrary..",v$=t=>{const n=S$(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return y$(d);const O=d.split(lc),m=O[0]===""&&O.length>1?1:0;return db(O,m,n)},getConflictingClassGroupIds:(d,O)=>{if(O){const m=l[d],p=s[d];return m?p?x$(p,m):m:p||Yg}return s[d]||Yg}}},db=(t,n,s)=>{if(t.length-n===0)return s.classGroupId;const o=t[n],u=s.nextPart.get(o);if(u){const p=db(t,n+1,u);if(p)return p}const d=s.validators;if(d===null)return;const O=n===0?t.join(lc):t.slice(n).join(lc),m=d.length;for(let p=0;p<m;p++){const x=d[p];if(x.validator(O))return x.classGroupId}},y$=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),s=n.indexOf(":"),l=n.slice(0,s);return l?b$+l:void 0})(),S$=t=>{const{theme:n,classGroups:s}=t;return Q$(s,n)},Q$=(t,n)=>{const s=ub();for(const l in t){const o=t[l];Mf(o,s,l,n)}return s},Mf=(t,n,s,l)=>{const o=t.length;for(let u=0;u<o;u++){const d=t[u];j$(d,n,s,l)}},j$=(t,n,s,l)=>{if(typeof t=="string"){w$(t,n,s);return}if(typeof t=="function"){k$(t,n,s,l);return}$$(t,n,s,l)},w$=(t,n,s)=>{const l=t===""?n:Ob(n,t);l.classGroupId=s},k$=(t,n,s,l)=>{if(T$(t)){Mf(t(l),n,s,l);return}n.validators===null&&(n.validators=[]),n.validators.push(g$(s,t))},$$=(t,n,s,l)=>{const o=Object.entries(t),u=o.length;for(let d=0;d<u;d++){const[O,m]=o[d];Mf(m,Ob(n,O),s,l)}},Ob=(t,n)=>{let s=t;const l=n.split(lc),o=l.length;for(let u=0;u<o;u++){const d=l[u];let O=s.nextPart.get(d);O||(O=ub(),s.nextPart.set(d,O)),s=O}return s},T$=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,P$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),l=Object.create(null);const o=(u,d)=>{s[u]=d,n++,n>t&&(n=0,l=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=l[u])!==void 0)return o(u,d),d},set(u,d){u in s?s[u]=d:o(u,d)}}},of="!",Vg=":",N$=[],Ug=(t,n,s,l,o)=>({modifiers:t,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:l,isExternal:o}),z$=t=>{const{prefix:n,experimentalParseClassName:s}=t;let l=o=>{const u=[];let d=0,O=0,m=0,p;const x=o.length;for(let k=0;k<x;k++){const $=o[k];if(d===0&&O===0){if($===Vg){u.push(o.slice(m,k)),m=k+1;continue}if($==="/"){p=k;continue}}$==="["?d++:$==="]"?d--:$==="("?O++:$===")"&&O--}const g=u.length===0?o:o.slice(m);let b=g,S=!1;g.endsWith(of)?(b=g.slice(0,-1),S=!0):g.startsWith(of)&&(b=g.slice(1),S=!0);const Q=p&&p>m?p-m:void 0;return Ug(u,S,b,Q)};if(n){const o=n+Vg,u=l;l=d=>d.startsWith(o)?u(d.slice(o.length)):Ug(N$,!1,d,void 0,!0)}if(s){const o=l;l=u=>s({className:u,parseClassName:o})}return l},R$=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((s,l)=>{n.set(s,1e6+l)}),s=>{const l=[];let o=[];for(let u=0;u<s.length;u++){const d=s[u],O=d[0]==="[",m=n.has(d);O||m?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(d)):o.push(d)}return o.length>0&&(o.sort(),l.push(...o)),l}},C$=t=>({cache:P$(t.cacheSize),parseClassName:z$(t),sortModifiers:R$(t),...v$(t)}),X$=/\s+/,_$=(t,n)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=n,d=[],O=t.trim().split(X$);let m="";for(let p=O.length-1;p>=0;p-=1){const x=O[p],{isExternal:g,modifiers:b,hasImportantModifier:S,baseClassName:Q,maybePostfixModifierPosition:k}=s(x);if(g){m=x+(m.length>0?" "+m:m);continue}let $=!!k,j=l($?Q.substring(0,k):Q);if(!j){if(!$){m=x+(m.length>0?" "+m:m);continue}if(j=l(Q),!j){m=x+(m.length>0?" "+m:m);continue}$=!1}const P=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=S?P+of:P,Z=N+j;if(d.indexOf(Z)>-1)continue;d.push(Z);const U=o(j,$);for(let C=0;C<U.length;++C){const X=U[C];d.push(N+X)}m=x+(m.length>0?" "+m:m)}return m},Z$=(...t)=>{let n=0,s,l,o="";for(;n<t.length;)(s=t[n++])&&(l=fb(s))&&(o&&(o+=" "),o+=l);return o},fb=t=>{if(typeof t=="string")return t;let n,s="";for(let l=0;l<t.length;l++)t[l]&&(n=fb(t[l]))&&(s&&(s+=" "),s+=n);return s},A$=(t,...n)=>{let s,l,o,u;const d=m=>{const p=n.reduce((x,g)=>g(x),t());return s=C$(p),l=s.cache.get,o=s.cache.set,u=O,O(m)},O=m=>{const p=l(m);if(p)return p;const x=_$(m,s);return o(m,x),x};return u=d,(...m)=>u(Z$(...m))},E$=[],ot=t=>{const n=s=>s[t]||E$;return n.isThemeGetter=!0,n},hb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,q$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,U$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=t=>q$.test(t),Qe=t=>!!t&&!Number.isNaN(Number(t)),qn=t=>!!t&&Number.isInteger(Number(t)),hO=t=>t.endsWith("%")&&Qe(t.slice(0,-1)),Ia=t=>M$.test(t),pb=()=>!0,L$=t=>Y$.test(t)&&!V$.test(t),Yf=()=>!1,D$=t=>U$.test(t),W$=t=>G$.test(t),B$=t=>!ce(t)&&!ue(t),H$=t=>Jn(t,bb,Yf),ce=t=>hb.test(t),vs=t=>Jn(t,vb,L$),Gg=t=>Jn(t,n5,Qe),I$=t=>Jn(t,Sb,pb),F$=t=>Jn(t,yb,Yf),Lg=t=>Jn(t,xb,Yf),K$=t=>Jn(t,gb,W$),Co=t=>Jn(t,Qb,D$),ue=t=>mb.test(t),Zr=t=>Ns(t,vb),J$=t=>Ns(t,yb),Dg=t=>Ns(t,xb),e5=t=>Ns(t,bb),t5=t=>Ns(t,gb),Xo=t=>Ns(t,Qb,!0),a5=t=>Ns(t,Sb,!0),Jn=(t,n,s)=>{const l=hb.exec(t);return l?l[1]?n(l[1]):s(l[2]):!1},Ns=(t,n,s=!1)=>{const l=mb.exec(t);return l?l[1]?n(l[1]):s:!1},xb=t=>t==="position"||t==="percentage",gb=t=>t==="image"||t==="url",bb=t=>t==="length"||t==="size"||t==="bg-size",vb=t=>t==="length",n5=t=>t==="number",yb=t=>t==="family-name",Sb=t=>t==="number"||t==="weight",Qb=t=>t==="shadow",s5=()=>{const t=ot("color"),n=ot("font"),s=ot("text"),l=ot("font-weight"),o=ot("tracking"),u=ot("leading"),d=ot("breakpoint"),O=ot("container"),m=ot("spacing"),p=ot("radius"),x=ot("shadow"),g=ot("inset-shadow"),b=ot("text-shadow"),S=ot("drop-shadow"),Q=ot("blur"),k=ot("perspective"),$=ot("aspect"),j=ot("ease"),P=ot("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...Z(),ue,ce],C=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],T=()=>[ue,ce,m],G=()=>[En,"full","auto",...T()],E=()=>[qn,"none","subgrid",ue,ce],se=()=>["auto",{span:["full",qn,ue,ce]},qn,ue,ce],re=()=>[qn,"auto",ue,ce],ge=()=>["auto","min","max","fr",ue,ce],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...T()],B=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],J=()=>[En,"screen","full","dvw","lvw","svw","min","max","fit",...T()],fe=()=>[En,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],te=()=>[t,ue,ce],Ae=()=>[...Z(),Dg,Lg,{position:[ue,ce]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",e5,H$,{size:[ue,ce]}],Xe=()=>[hO,Zr,vs],D=()=>["","none","full",p,ue,ce],ie=()=>["",Qe,Zr,vs],ze=()=>["solid","dashed","dotted","double"],Ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Qe,hO,Dg,Lg],tt=()=>["","none",Q,ue,ce],bt=()=>["none",Qe,ue,ce],vt=()=>["none",Qe,ue,ce],It=()=>[Qe,ue,ce],yt=()=>[En,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ia],breakpoint:[Ia],color:[pb],container:[Ia],"drop-shadow":[Ia],ease:["in","out","in-out"],font:[B$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ia],shadow:[Ia],spacing:["px",Qe],text:[Ia],"text-shadow":[Ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,ce,ue,$]}],container:["container"],columns:[{columns:[Qe,ce,ue,O]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[qn,"auto",ue,ce]}],basis:[{basis:[En,"full","auto",O,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,En,"auto","initial","none",ce]}],grow:[{grow:["",Qe,ue,ce]}],shrink:[{shrink:["",Qe,ue,ce]}],order:[{order:[qn,"first","last","none",ue,ce]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[O,"screen",...B()]}],"min-w":[{"min-w":[O,"screen","none",...B()]}],"max-w":[{"max-w":[O,"screen","none","prose",{screen:[d]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",s,Zr,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,a5,I$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hO,ce]}],"font-family":[{font:[J$,F$,n]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ue,ce]}],"line-clamp":[{"line-clamp":[Qe,"none",ue,Gg]}],leading:[{leading:[u,...T()]}],"list-image":[{"list-image":["none",ue,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ue,vs]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[Qe,"auto",ue,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qn,ue,ce],radial:["",ue,ce],conic:[qn,ue,ce]},t5,K$]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:Xe()}],"gradient-via-pos":[{via:Xe()}],"gradient-to-pos":[{to:Xe()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ue,ce]}],"outline-w":[{outline:["",Qe,Zr,vs]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",x,Xo,Co]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",g,Xo,Co]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[Qe,vs]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",b,Xo,Co]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[Qe,ue,ce]}],"mix-blend":[{"mix-blend":[...Ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ot()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ue,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,ce]}],filter:[{filter:["","none",ue,ce]}],blur:[{blur:tt()}],brightness:[{brightness:[Qe,ue,ce]}],contrast:[{contrast:[Qe,ue,ce]}],"drop-shadow":[{"drop-shadow":["","none",S,Xo,Co]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",Qe,ue,ce]}],"hue-rotate":[{"hue-rotate":[Qe,ue,ce]}],invert:[{invert:["",Qe,ue,ce]}],saturate:[{saturate:[Qe,ue,ce]}],sepia:[{sepia:["",Qe,ue,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,ce]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ue,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ue,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ue,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ue,ce]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ue,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ue,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ue,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ue,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ue,ce]}],ease:[{ease:["linear","initial",j,ue,ce]}],delay:[{delay:[Qe,ue,ce]}],animate:[{animate:["none",P,ue,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ue,ce]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:It()}],"skew-x":[{"skew-x":It()}],"skew-y":[{"skew-y":It()}],transform:[{transform:[ue,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,ce]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[Qe,Zr,vs,Gg]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l5=A$(s5);function le(...t){return l5(p$(t))}function r5({children:t}){return i.jsx(u$,{delayDuration:300,children:t})}function Wg({children:t,content:n,side:s="top",className:l}){return n?i.jsxs(d$,{children:[i.jsx(O$,{asChild:!0,children:t}),i.jsx(f$,{children:i.jsxs(h$,{side:s,sideOffset:6,className:le("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",l),children:[n,i.jsx(m$,{className:"fill-surface-4"})]})})]}):t}/**
|
|
29
|
+
`+x.trim(),timestamp:Date.now()}:S.push({from:"agent",text:x.trim(),timestamp:Date.now()}),b[m]=S.slice(-100),t({chatHistory:b}),bl("groove:chatHistory",b)}if(g&&g.trim()){const b={...n().activityLog};b[m]||(b[m]=[]),b[m]=[...b[m].slice(-200),{timestamp:Date.now(),text:g.trim(),type:p.type,subtype:"tool"}],t({activityLog:b}),bl("groove:activityLog",b)}break}case"agent:exit":{const m=n().agents.find(S=>S.id===o.agentId),p=(m==null?void 0:m.name)||o.agentId,x=o.status==="killed"||o.code===143||o.code===137,g=o.status==="completed"?`${p} completed`:x?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":x?"info":"warning";n().addToast(b,g),(m==null?void 0:m.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":n().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const m=n().detailPanel;(m==null?void 0:m.type)==="agent"&&m.agentId===o.oldAgentId&&o.newAgentId&&t(p=>{var b,S;const x={...p.chatHistory},g={...p.tokenTimeline};return(b=x[o.oldAgentId])!=null&&b.length&&(x[o.newAgentId]=[...x[o.oldAgentId]]),(S=g[o.oldAgentId])!=null&&S.length&&(g[o.newAgentId]=[...g[o.oldAgentId]]),{chatHistory:x,tokenTimeline:g,detailPanel:{type:"agent",agentId:o.newAgentId}}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const m=n().editorRecentSaves[o.path];if(m&&Date.now()-m<2e3)break;t(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":t(m=>({pendingApprovals:[...m.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((u=o.data)==null?void 0:u.agentName)||"agent"}`,(O=(d=o.data)==null?void 0:d.action)==null?void 0:O.description);break;case"approval:resolved":{const m=o.data;t(p=>({pendingApprovals:p.pendingApprovals.filter(x=>x.id!==m.id),resolvedApprovals:[m,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":t({gateways:o.data||[]});break}},s.onclose=()=>{t({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){t({activeView:s})},async fetchTeams(){try{const s=await ee.get("/teams"),l=s.teams||[],o=s.defaultTeamId,{activeTeamId:u}=n(),O=l.map(m=>m.id).includes(u)?u:o;t({teams:l,activeTeamId:O}),O&&localStorage.setItem("groove:activeTeamId",O)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,l){try{const o={name:s};l&&(o.workingDir=l);const u=await ee.post("/teams",o);return t({activeTeamId:u.id}),localStorage.setItem("groove:activeTeamId",u.id),n().addToast("success",`Team "${s}" created`),u}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const l=n().teams.find(o=>o.id===s);if(l!=null&&l.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await ee.delete(`/teams/${s}`),n().addToast("info",`Team "${l==null?void 0:l.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},async renameTeam(s,l){try{const o=await ee.patch(`/teams/${s}`,{name:l});return t(u=>({teams:u.teams.map(d=>d.id===s?o:d)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(s){t({detailPanel:s})},closeDetail(){t({detailPanel:null})},selectAgent(s){t({detailPanel:{type:"agent",agentId:s}})},clearSelection(){t({detailPanel:null})},toggleCommandPalette(){t(s=>({commandPaletteOpen:!s.commandPaletteOpen}))},setDetailPanelWidth(s){t({detailPanelWidth:s}),localStorage.setItem("groove:detailWidth",String(s))},setTerminalVisible(s){t({terminalVisible:s}),localStorage.setItem("groove:terminalVisible",String(s))},setTerminalHeight(s){t({terminalHeight:s}),localStorage.setItem("groove:terminalHeight",String(s))},setTerminalFullHeight(s){t({terminalFullHeight:s})},addToast(s,l,o){const u=++tw;t(d=>({toasts:[...d.toasts,{id:u,type:s,message:l,detail:o}]}))},removeToast(s){t(l=>({toasts:l.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await ee.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await ee.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const l=setInterval(async()=>{var o,u;try{const d=await ee.get("/auth/status");d.authenticated&&(clearInterval(l),t({marketplaceAuthenticated:!0,marketplaceUser:d.user}),n().addToast("success",`Signed in as ${((o=d.user)==null?void 0:o.displayName)||((u=d.user)==null?void 0:u.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(l),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await ee.post("/auth/logout"),t({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(s){n().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const l=await ee.post("/auth/checkout",{skillId:s});return l.url&&window.open(l.url,"_blank"),l}catch(l){throw n().addToast("error","Checkout failed",l.message),l}},async fetchApprovals(){try{const s=await ee.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await ee.post(`/approvals/${s}/approve`),t(l=>({pendingApprovals:l.pendingApprovals.filter(o=>o.id!==s)})),n().addToast("success","Approved")}catch(l){n().addToast("error","Approve failed",l.message)}},async rejectRequest(s,l=""){try{await ee.post(`/approvals/${s}/reject`,{reason:l}),t(o=>({pendingApprovals:o.pendingApprovals.filter(u=>u.id!==s)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const l=await ee.get("/recommended-team");l&&((s=l.agents)!=null&&s.length)?t({recommendedTeam:l}):t({recommendedTeam:null})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(){try{t({recommendedTeam:null}),n().addToast("info","Launching team...");const s=await ee.post("/recommended-team/launch");return n().addToast("success",`Launched ${s.launched} agents`,s.phase2Pending?`${s.phase2Pending} QC agents queued`:void 0),ee.post("/cleanup").catch(()=>{}),s}catch(s){throw n().addToast("error","Launch failed",s.message),s}},async fetchJournalist(){try{const s=await ee.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await ee.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),t({journalistStatus:s}),s}catch(s){throw n().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const l=n().activeTeamId,o=await ee.post("/agents",{...s,teamId:l});return n().addToast("success",`Spawned ${o.name}`),o}catch(l){throw n().addToast("error","Spawn failed",l.message),l}},async killAgent(s,l=!1){try{await ee.delete(`/agents/${s}?purge=${l}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await ee.post(`/agents/${s}/rotate`)}catch(l){throw n().addToast("error","Rotation failed",l.message),l}},async fetchProviders(){return ee.get("/providers")},addChatMessage(s,l,o,u=!1){t(d=>{const O={...d.chatHistory};return O[s]||(O[s]=[]),O[s]=[...O[s].slice(-100),{from:l,text:o,timestamp:Date.now(),isQuery:u}],bl("groove:chatHistory",O),{chatHistory:O}})},async instructAgent(s,l){var d,O;const o=n().agents.find(m=>m.id===s);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",m.response),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}}n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/instruct`,{message:l});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=n()[p][s];x!=null&&x.length&&t(g=>({[p]:{...g[p],[m.id]:[...x]}}))}return(d=n().chatHistory[s])!=null&&d.length&&bl("groove:chatHistory",n().chatHistory),(O=n().activityLog[s])!=null&&O.length&&bl("groove:activityLog",n().activityLog),n().selectAgent(m.id),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}},async queryAgent(s,l){n().addChatMessage(s,"user",l,!0);try{const o=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",o.response),o}catch(o){throw n().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var u;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){t(d=>({editorActiveFile:s,editorOpenTabs:d.editorOpenTabs.includes(s)?d.editorOpenTabs:[...d.editorOpenTabs,s]}));return}const l=(u=s.split(".").pop())==null?void 0:u.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(l)){t(d=>({editorActiveFile:s,editorOpenTabs:[...d.editorOpenTabs,s]}));return}try{const d=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(d.binary){n().addToast("warning","Binary file — cannot open");return}t(m=>({editorFiles:{...m.editorFiles,[s]:{content:d.content,originalContent:d.content,language:d.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:m.editorOpenTabs.includes(s)?m.editorOpenTabs:[...m.editorOpenTabs,s]}));const O=n().ws;(O==null?void 0:O.readyState)===1&&O.send(JSON.stringify({type:"editor:watch",path:s}))}catch(d){n().addToast("error","Failed to open file",d.message)}},closeFile(s){t(o=>{const u=o.editorOpenTabs.filter(p=>p!==s),d={...o.editorFiles};delete d[s];const O={...o.editorChangedFiles};delete O[s];let m=o.editorActiveFile;if(m===s){const p=o.editorOpenTabs.indexOf(s);m=u[Math.min(p,u.length-1)]||null}return{editorOpenTabs:u,editorFiles:d,editorChangedFiles:O,editorActiveFile:m}});const l=n().ws;(l==null?void 0:l.readyState)===1&&l.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,l){t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:l}}}))},async saveFile(s){const l=n().editorFiles[s];if(l)try{await ee.post("/files/write",{path:s,content:l.content}),t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:l.content}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const l=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(l.binary)return;t(o=>({editorFiles:{...o.editorFiles,[s]:{content:l.content,originalContent:l.content,language:l.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(l=>{const o={...l.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const l=await ee.get(`/files/tree?path=${encodeURIComponent(s)}`);t(o=>({editorTreeCache:{...o.editorTreeCache,[s]:l.entries}}))}catch{}},async createFile(s){try{await ee.post("/files/create",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","File created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async createDir(s){try{await ee.post("/files/mkdir",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","Folder created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async deleteFile(s){try{await ee.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),t(o=>{const u={...o.editorTreeCache};return delete u[s],{editorTreeCache:u}}),n().addToast("success","Deleted"),!0}catch(l){return n().addToast("error","Delete failed",l.message),!1}},async renameFile(s,l){try{await ee.post("/files/rename",{oldPath:s,newPath:l}),t(d=>{const O=d.editorOpenTabs.map(x=>x===s?l:x),m={...d.editorFiles};m[s]&&(m[l]=m[s],delete m[s]);const p=d.editorActiveFile===s?l:d.editorActiveFile;return{editorOpenTabs:O,editorFiles:m,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),u!==o&&await n().fetchTreeDir(u),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function aw(t){v.useEffect(()=>{function n(s){for(const l of t){const o=l.meta?s.metaKey||s.ctrlKey:!0,u=l.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===l.key.toLowerCase()&&o&&u){s.preventDefault(),l.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}function Ee(t,n,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t==null||t(o),s===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Tg(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function $0(...t){return n=>{let s=!1;const l=t.map(o=>{const u=Tg(o,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():Tg(t[o],null)}}}}function rt(...t){return v.useCallback($0(...t),t)}function nw(t,n){const s=v.createContext(n),l=u=>{const{children:d,...O}=u,m=v.useMemo(()=>O,Object.values(O));return i.jsx(s.Provider,{value:m,children:d})};l.displayName=t+"Provider";function o(u){const d=v.useContext(s);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[l,o]}function Ps(t,n=[]){let s=[];function l(u,d){const O=v.createContext(d),m=s.length;s=[...s,d];const p=g=>{var j;const{scope:b,children:S,...Q}=g,k=((j=b==null?void 0:b[t])==null?void 0:j[m])||O,T=v.useMemo(()=>Q,Object.values(Q));return i.jsx(k.Provider,{value:T,children:S})};p.displayName=u+"Provider";function x(g,b){var k;const S=((k=b==null?void 0:b[t])==null?void 0:k[m])||O,Q=v.useContext(S);if(Q)return Q;if(d!==void 0)return d;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[p,x]}const o=()=>{const u=s.map(d=>v.createContext(d));return function(O){const m=(O==null?void 0:O[t])||u;return v.useMemo(()=>({[`__scope${t}`]:{...O,[t]:m}}),[O,m])}};return o.scopeName=t,[l,sw(o,...n)]}function sw(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=l.reduce((O,{useScope:m,scopeName:p})=>{const g=m(u)[`__scope${p}`];return{...O,...g}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return s.scopeName=n.scopeName,s}function ec(t){const n=lw(t),s=v.forwardRef((l,o)=>{const{children:u,...d}=l,O=v.Children.toArray(u),m=O.find(iw);if(m){const p=m.props.children,x=O.map(g=>g===m?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return i.jsx(n,{...d,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return i.jsx(n,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}function lw(t){const n=v.forwardRef((s,l)=>{const{children:o,...u}=s;if(v.isValidElement(o)){const d=cw(o),O=ow(u,o.props);return o.type!==v.Fragment&&(O.ref=l?$0(l,d):d),v.cloneElement(o,O)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var T0=Symbol("radix.slottable");function rw(t){const n=({children:s})=>i.jsx(i.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=T0,n}function iw(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===T0}function ow(t,n){const s={...n};for(const l in n){const o=t[l],u=n[l];/^on[A-Z]/.test(l)?o&&u?s[l]=(...O)=>{const m=u(...O);return o(...O),m}:o&&(s[l]=o):l==="style"?s[l]={...o,...u}:l==="className"&&(s[l]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function cw(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var uw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=uw.reduce((t,n)=>{const s=ec(`Primitive.${n}`),l=v.forwardRef((o,u)=>{const{asChild:d,...O}=o,m=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(m,{...O,ref:u})});return l.displayName=`Primitive.${n}`,{...t,[n]:l}},{});function dw(t,n){t&&b0.flushSync(()=>t.dispatchEvent(n))}function zt(t){const n=v.useRef(t);return v.useEffect(()=>{n.current=t}),v.useMemo(()=>(...s)=>{var l;return(l=n.current)==null?void 0:l.call(n,...s)},[])}function Ow(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t);v.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return n.addEventListener("keydown",l,{capture:!0}),()=>n.removeEventListener("keydown",l,{capture:!0})},[s,n])}var fw="DismissableLayer",af="dismissableLayer.update",hw="dismissableLayer.pointerDownOutside",mw="dismissableLayer.focusOutside",Pg,P0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pf=v.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:O,...m}=t,p=v.useContext(P0),[x,g]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),Q=rt(n,X=>g(X)),k=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(T),P=x?k.indexOf(x):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,Z=P>=j,U=gw(X=>{const $=X.target,W=[...p.branches].some(E=>E.contains($));!Z||W||(o==null||o(X),d==null||d(X),X.defaultPrevented||O==null||O())},b),C=bw(X=>{const $=X.target;[...p.branches].some(E=>E.contains($))||(u==null||u(X),d==null||d(X),X.defaultPrevented||O==null||O())},b);return Ow(X=>{P===p.layers.size-1&&(l==null||l(X),!X.defaultPrevented&&O&&(X.preventDefault(),O()))},b),v.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Pg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Ng(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Pg)}},[x,b,s,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Ng())},[x,p]),v.useEffect(()=>{const X=()=>S({});return document.addEventListener(af,X),()=>document.removeEventListener(af,X)},[]),i.jsx(Be.div,{...m,ref:Q,style:{pointerEvents:N?Z?"auto":"none":void 0,...t.style},onFocusCapture:Ee(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Ee(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ee(t.onPointerDownCapture,U.onPointerDownCapture)})});Pf.displayName=fw;var pw="DismissableLayerBranch",xw=v.forwardRef((t,n)=>{const s=v.useContext(P0),l=v.useRef(null),o=rt(n,l);return v.useEffect(()=>{const u=l.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),i.jsx(Be.div,{...t,ref:o})});xw.displayName=pw;function gw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const u=O=>{if(O.target&&!l.current){let m=function(){N0(hw,s,p,{discrete:!0})};const p={originalEvent:O};O.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=m,n.addEventListener("click",o.current,{once:!0})):m()}else n.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>l.current=!0}}function bw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1);return v.useEffect(()=>{const o=u=>{u.target&&!l.current&&N0(mw,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ng(){const t=new CustomEvent(af);document.dispatchEvent(t)}function N0(t,n,s,{discrete:l}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&o.addEventListener(t,n,{once:!0}),l?dw(o,u):o.dispatchEvent(u)}var ln=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},vw=p0[" useId ".trim().toString()]||(()=>{}),yw=0;function Sl(t){const[n,s]=v.useState(vw());return ln(()=>{s(l=>l??String(yw++))},[t]),t||(n?`radix-${n}`:"")}const Sw=["top","right","bottom","left"],Bn=Math.min,Wt=Math.max,tc=Math.round,zo=Math.floor,$a=t=>({x:t,y:t}),Qw={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(t,n,s){return Wt(t,Bn(n,s))}function rn(t,n){return typeof t=="function"?t(n):t}function on(t){return t.split("-")[0]}function Zl(t){return t.split("-")[1]}function Nf(t){return t==="x"?"y":"x"}function zf(t){return t==="y"?"height":"width"}function ka(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function Rf(t){return Nf(ka(t))}function jw(t,n,s){s===void 0&&(s=!1);const l=Zl(t),o=Rf(t),u=zf(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=ac(d)),[d,ac(d)]}function ww(t){const n=ac(t);return[sf(t),n,sf(n)]}function sf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const zg=["left","right"],Rg=["right","left"],kw=["top","bottom"],$w=["bottom","top"];function Tw(t,n,s){switch(t){case"top":case"bottom":return s?n?Rg:zg:n?zg:Rg;case"left":case"right":return n?kw:$w;default:return[]}}function Pw(t,n,s,l){const o=Zl(t);let u=Tw(on(t),s==="start",l);return o&&(u=u.map(d=>d+"-"+o),n&&(u=u.concat(u.map(sf)))),u}function ac(t){const n=on(t);return Qw[n]+t.slice(n.length)}function Nw(t){return{top:0,right:0,bottom:0,left:0,...t}}function z0(t){return typeof t!="number"?Nw(t):{top:t,right:t,bottom:t,left:t}}function nc(t){const{x:n,y:s,width:l,height:o}=t;return{width:l,height:o,top:s,left:n,right:n+l,bottom:s+o,x:n,y:s}}function Cg(t,n,s){let{reference:l,floating:o}=t;const u=ka(n),d=Rf(n),O=zf(d),m=on(n),p=u==="y",x=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,b=l[O]/2-o[O]/2;let S;switch(m){case"top":S={x,y:l.y-o.height};break;case"bottom":S={x,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-o.width,y:g};break;default:S={x:l.x,y:l.y}}switch(Zl(n)){case"start":S[d]-=b*(s&&p?-1:1);break;case"end":S[d]+=b*(s&&p?-1:1);break}return S}async function zw(t,n){var s;n===void 0&&(n={});const{x:l,y:o,platform:u,rects:d,elements:O,strategy:m}=t,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=rn(n,t),Q=z0(S),T=O[b?g==="floating"?"reference":"floating":g],j=nc(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(T)))==null||s?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(O.floating)),boundary:p,rootBoundary:x,strategy:m})),P=g==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(O.floating)),Z=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},U=nc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:O,rect:P,offsetParent:N,strategy:m}):P);return{top:(j.top-U.top+Q.top)/Z.y,bottom:(U.bottom-j.bottom+Q.bottom)/Z.y,left:(j.left-U.left+Q.left)/Z.x,right:(U.right-j.right+Q.right)/Z.x}}const Rw=50,Cw=async(t,n,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,O=d.detectOverflow?d:{...d,detectOverflow:zw},m=await(d.isRTL==null?void 0:d.isRTL(n));let p=await d.getElementRects({reference:t,floating:n,strategy:o}),{x,y:g}=Cg(p,l,m),b=l,S=0;const Q={};for(let k=0;k<u.length;k++){const T=u[k];if(!T)continue;const{name:j,fn:P}=T,{x:N,y:Z,data:U,reset:C}=await P({x,y:g,initialPlacement:l,placement:b,strategy:o,middlewareData:Q,rects:p,platform:O,elements:{reference:t,floating:n}});x=N??x,g=Z??g,Q[j]={...Q[j],...U},C&&S<Rw&&(S++,typeof C=="object"&&(C.placement&&(b=C.placement),C.rects&&(p=C.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:o}):C.rects),{x,y:g}=Cg(p,b,m)),k=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},Xw=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:l,placement:o,rects:u,platform:d,elements:O,middlewareData:m}=n,{element:p,padding:x=0}=rn(t,n)||{};if(p==null)return{};const g=z0(x),b={x:s,y:l},S=Rf(o),Q=zf(S),k=await d.getDimensions(p),T=S==="y",j=T?"top":"left",P=T?"bottom":"right",N=T?"clientHeight":"clientWidth",Z=u.reference[Q]+u.reference[S]-b[S]-u.floating[Q],U=b[S]-u.reference[S],C=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let X=C?C[N]:0;(!X||!await(d.isElement==null?void 0:d.isElement(C)))&&(X=O.floating[N]||u.floating[Q]);const $=Z/2-U/2,W=X/2-k[Q]/2-1,E=Bn(g[j],W),ne=Bn(g[P],W),re=E,xe=X-k[Q]-ne,ie=X/2-k[Q]/2+$,J=nf(re,ie,xe),z=!m.arrow&&Zl(o)!=null&&ie!==J&&u.reference[Q]/2-(ie<re?E:ne)-k[Q]/2<0,B=z?ie<re?ie-re:ie-xe:0;return{[S]:b[S]+B,data:{[S]:J,centerOffset:ie-J-B,...z&&{alignmentOffset:B}},reset:z}}}),_w=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,l;const{placement:o,middlewareData:u,rects:d,initialPlacement:O,platform:m,elements:p}=n,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:k=!0,...T}=rn(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const j=on(o),P=ka(O),N=on(O)===O,Z=await(m.isRTL==null?void 0:m.isRTL(p.floating)),U=b||(N||!k?[ac(O)]:ww(O)),C=Q!=="none";!b&&C&&U.push(...Pw(O,k,Q,Z));const X=[O,...U],$=await m.detectOverflow(n,T),W=[];let E=((l=u.flip)==null?void 0:l.overflows)||[];if(x&&W.push($[j]),g){const ie=jw(o,d,Z);W.push($[ie[0]],$[ie[1]])}if(E=[...E,{placement:o,overflows:W}],!W.every(ie=>ie<=0)){var ne,re;const ie=(((ne=u.flip)==null?void 0:ne.index)||0)+1,J=X[ie];if(J&&(!(g==="alignment"?P!==ka(J):!1)||E.every(I=>ka(I.placement)===P?I.overflows[0]>0:!0)))return{data:{index:ie,overflows:E},reset:{placement:J}};let z=(re=E.filter(B=>B.overflows[0]<=0).sort((B,I)=>B.overflows[1]-I.overflows[1])[0])==null?void 0:re.placement;if(!z)switch(S){case"bestFit":{var xe;const B=(xe=E.filter(I=>{if(C){const fe=ka(I.placement);return fe===P||fe==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(fe=>fe>0).reduce((fe,te)=>fe+te,0)]).sort((I,fe)=>I[1]-fe[1])[0])==null?void 0:xe[0];B&&(z=B);break}case"initialPlacement":z=O;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Xg(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function _g(t){return Sw.some(n=>t[n]>=0)}const Zw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s,platform:l}=n,{strategy:o="referenceHidden",...u}=rn(t,n);switch(o){case"referenceHidden":{const d=await l.detectOverflow(n,{...u,elementContext:"reference"}),O=Xg(d,s.reference);return{data:{referenceHiddenOffsets:O,referenceHidden:_g(O)}}}case"escaped":{const d=await l.detectOverflow(n,{...u,altBoundary:!0}),O=Xg(d,s.floating);return{data:{escapedOffsets:O,escaped:_g(O)}}}default:return{}}}}},R0=new Set(["left","top"]);async function Aw(t,n){const{placement:s,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=on(s),O=Zl(s),m=ka(s)==="y",p=R0.has(d)?-1:1,x=u&&m?-1:1,g=rn(n,t);let{mainAxis:b,crossAxis:S,alignmentAxis:Q}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return O&&typeof Q=="number"&&(S=O==="end"?Q*-1:Q),m?{x:S*x,y:b*p}:{x:b*p,y:S*x}}const Ew=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,l;const{x:o,y:u,placement:d,middlewareData:O}=n,m=await Aw(n,t);return d===((s=O.offset)==null?void 0:s.placement)&&(l=O.arrow)!=null&&l.alignmentOffset?{}:{x:o+m.x,y:u+m.y,data:{...m,placement:d}}}}},qw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:l,placement:o,platform:u}=n,{mainAxis:d=!0,crossAxis:O=!1,limiter:m={fn:j=>{let{x:P,y:N}=j;return{x:P,y:N}}},...p}=rn(t,n),x={x:s,y:l},g=await u.detectOverflow(n,p),b=ka(on(o)),S=Nf(b);let Q=x[S],k=x[b];if(d){const j=S==="y"?"top":"left",P=S==="y"?"bottom":"right",N=Q+g[j],Z=Q-g[P];Q=nf(N,Q,Z)}if(O){const j=b==="y"?"top":"left",P=b==="y"?"bottom":"right",N=k+g[j],Z=k-g[P];k=nf(N,k,Z)}const T=m.fn({...n,[S]:Q,[b]:k});return{...T,data:{x:T.x-s,y:T.y-l,enabled:{[S]:d,[b]:O}}}}}},Mw=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:l,placement:o,rects:u,middlewareData:d}=n,{offset:O=0,mainAxis:m=!0,crossAxis:p=!0}=rn(t,n),x={x:s,y:l},g=ka(o),b=Nf(g);let S=x[b],Q=x[g];const k=rn(O,n),T=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const N=b==="y"?"height":"width",Z=u.reference[b]-u.floating[N]+T.mainAxis,U=u.reference[b]+u.reference[N]-T.mainAxis;S<Z?S=Z:S>U&&(S=U)}if(p){var j,P;const N=b==="y"?"width":"height",Z=R0.has(on(o)),U=u.reference[g]-u.floating[N]+(Z&&((j=d.offset)==null?void 0:j[g])||0)+(Z?0:T.crossAxis),C=u.reference[g]+u.reference[N]+(Z?0:((P=d.offset)==null?void 0:P[g])||0)-(Z?T.crossAxis:0);Q<U?Q=U:Q>C&&(Q=C)}return{[b]:S,[g]:Q}}}},Yw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,l;const{placement:o,rects:u,platform:d,elements:O}=n,{apply:m=()=>{},...p}=rn(t,n),x=await d.detectOverflow(n,p),g=on(o),b=Zl(o),S=ka(o)==="y",{width:Q,height:k}=u.floating;let T,j;g==="top"||g==="bottom"?(T=g,j=b===(await(d.isRTL==null?void 0:d.isRTL(O.floating))?"start":"end")?"left":"right"):(j=g,T=b==="end"?"top":"bottom");const P=k-x.top-x.bottom,N=Q-x.left-x.right,Z=Bn(k-x[T],P),U=Bn(Q-x[j],N),C=!n.middlewareData.shift;let X=Z,$=U;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&($=N),(l=n.middlewareData.shift)!=null&&l.enabled.y&&(X=P),C&&!b){const E=Wt(x.left,0),ne=Wt(x.right,0),re=Wt(x.top,0),xe=Wt(x.bottom,0);S?$=Q-2*(E!==0||ne!==0?E+ne:Wt(x.left,x.right)):X=k-2*(re!==0||xe!==0?re+xe:Wt(x.top,x.bottom))}await m({...n,availableWidth:$,availableHeight:X});const W=await d.getDimensions(O.floating);return Q!==W.width||k!==W.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function Al(t){return C0(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Pa(t){var n;return(n=(C0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function C0(t){return wc()?t instanceof Node||t instanceof Bt(t).Node:!1}function pa(t){return wc()?t instanceof Element||t instanceof Bt(t).Element:!1}function un(t){return wc()?t instanceof HTMLElement||t instanceof Bt(t).HTMLElement:!1}function Zg(t){return!wc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function li(t){const{overflow:n,overflowX:s,overflowY:l,display:o}=xa(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+s)&&o!=="inline"&&o!=="contents"}function Vw(t){return/^(table|td|th)$/.test(Al(t))}function kc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Uw=/transform|translate|scale|rotate|perspective|filter/,Gw=/paint|layout|strict|content/,bs=t=>!!t&&t!=="none";let dO;function Cf(t){const n=pa(t)?xa(t):t;return bs(n.transform)||bs(n.translate)||bs(n.scale)||bs(n.rotate)||bs(n.perspective)||!Xf()&&(bs(n.backdropFilter)||bs(n.filter))||Uw.test(n.willChange||"")||Gw.test(n.contain||"")}function Lw(t){let n=Hn(t);for(;un(n)&&!$l(n);){if(Cf(n))return n;if(kc(n))return null;n=Hn(n)}return null}function Xf(){return dO==null&&(dO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dO}function $l(t){return/^(html|body|#document)$/.test(Al(t))}function xa(t){return Bt(t).getComputedStyle(t)}function $c(t){return pa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Hn(t){if(Al(t)==="html")return t;const n=t.assignedSlot||t.parentNode||Zg(t)&&t.host||Pa(t);return Zg(n)?n.host:n}function X0(t){const n=Hn(t);return $l(n)?t.ownerDocument?t.ownerDocument.body:t.body:un(n)&&li(n)?n:X0(n)}function Dr(t,n,s){var l;n===void 0&&(n=[]),s===void 0&&(s=!0);const o=X0(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),d=Bt(o);if(u){const O=lf(d);return n.concat(d,d.visualViewport||[],li(o)?o:[],O&&s?Dr(O):[])}else return n.concat(o,Dr(o,[],s))}function lf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _0(t){const n=xa(t);let s=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=un(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:l,O=tc(s)!==u||tc(l)!==d;return O&&(s=u,l=d),{width:s,height:l,$:O}}function _f(t){return pa(t)?t:t.contextElement}function Ql(t){const n=_f(t);if(!un(n))return $a(1);const s=n.getBoundingClientRect(),{width:l,height:o,$:u}=_0(n);let d=(u?tc(s.width):s.width)/l,O=(u?tc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!O||!Number.isFinite(O))&&(O=1),{x:d,y:O}}const Dw=$a(0);function Z0(t){const n=Bt(t);return!Xf()||!n.visualViewport?Dw:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Ww(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==Bt(t)?!1:n}function js(t,n,s,l){n===void 0&&(n=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=_f(t);let d=$a(1);n&&(l?pa(l)&&(d=Ql(l)):d=Ql(t));const O=Ww(u,s,l)?Z0(u):$a(0);let m=(o.left+O.x)/d.x,p=(o.top+O.y)/d.y,x=o.width/d.x,g=o.height/d.y;if(u){const b=Bt(u),S=l&&pa(l)?Bt(l):l;let Q=b,k=lf(Q);for(;k&&l&&S!==Q;){const T=Ql(k),j=k.getBoundingClientRect(),P=xa(k),N=j.left+(k.clientLeft+parseFloat(P.paddingLeft))*T.x,Z=j.top+(k.clientTop+parseFloat(P.paddingTop))*T.y;m*=T.x,p*=T.y,x*=T.x,g*=T.y,m+=N,p+=Z,Q=Bt(k),k=lf(Q)}}return nc({width:x,height:g,x:m,y:p})}function Tc(t,n){const s=$c(t).scrollLeft;return n?n.left+s:js(Pa(t)).left+s}function A0(t,n){const s=t.getBoundingClientRect(),l=s.left+n.scrollLeft-Tc(t,s),o=s.top+n.scrollTop;return{x:l,y:o}}function Bw(t){let{elements:n,rect:s,offsetParent:l,strategy:o}=t;const u=o==="fixed",d=Pa(l),O=n?kc(n.floating):!1;if(l===d||O&&u)return s;let m={scrollLeft:0,scrollTop:0},p=$a(1);const x=$a(0),g=un(l);if((g||!g&&!u)&&((Al(l)!=="body"||li(d))&&(m=$c(l)),g)){const S=js(l);p=Ql(l),x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}const b=d&&!g&&!u?A0(d,m):$a(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-m.scrollLeft*p.x+x.x+b.x,y:s.y*p.y-m.scrollTop*p.y+x.y+b.y}}function Hw(t){return Array.from(t.getClientRects())}function Iw(t){const n=Pa(t),s=$c(t),l=t.ownerDocument.body,o=Wt(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),u=Wt(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+Tc(t);const O=-s.scrollTop;return xa(l).direction==="rtl"&&(d+=Wt(n.clientWidth,l.clientWidth)-o),{width:o,height:u,x:d,y:O}}const Ag=25;function Fw(t,n){const s=Bt(t),l=Pa(t),o=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,O=0,m=0;if(o){u=o.width,d=o.height;const x=Xf();(!x||x&&n==="fixed")&&(O=o.offsetLeft,m=o.offsetTop)}const p=Tc(l);if(p<=0){const x=l.ownerDocument,g=x.body,b=getComputedStyle(g),S=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(l.clientWidth-g.clientWidth-S);Q<=Ag&&(u-=Q)}else p<=Ag&&(u+=p);return{width:u,height:d,x:O,y:m}}function Kw(t,n){const s=js(t,!0,n==="fixed"),l=s.top+t.clientTop,o=s.left+t.clientLeft,u=un(t)?Ql(t):$a(1),d=t.clientWidth*u.x,O=t.clientHeight*u.y,m=o*u.x,p=l*u.y;return{width:d,height:O,x:m,y:p}}function Eg(t,n,s){let l;if(n==="viewport")l=Fw(t,s);else if(n==="document")l=Iw(Pa(t));else if(pa(n))l=Kw(n,s);else{const o=Z0(t);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return nc(l)}function E0(t,n){const s=Hn(t);return s===n||!pa(s)||$l(s)?!1:xa(s).position==="fixed"||E0(s,n)}function Jw(t,n){const s=n.get(t);if(s)return s;let l=Dr(t,[],!1).filter(O=>pa(O)&&Al(O)!=="body"),o=null;const u=xa(t).position==="fixed";let d=u?Hn(t):t;for(;pa(d)&&!$l(d);){const O=xa(d),m=Cf(d);!m&&O.position==="fixed"&&(o=null),(u?!m&&!o:!m&&O.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||li(d)&&!m&&E0(t,d))?l=l.filter(x=>x!==d):o=O,d=Hn(d)}return n.set(t,l),l}function ek(t){let{element:n,boundary:s,rootBoundary:l,strategy:o}=t;const d=[...s==="clippingAncestors"?kc(n)?[]:Jw(n,this._c):[].concat(s),l],O=Eg(n,d[0],o);let m=O.top,p=O.right,x=O.bottom,g=O.left;for(let b=1;b<d.length;b++){const S=Eg(n,d[b],o);m=Wt(S.top,m),p=Bn(S.right,p),x=Bn(S.bottom,x),g=Wt(S.left,g)}return{width:p-g,height:x-m,x:g,y:m}}function tk(t){const{width:n,height:s}=_0(t);return{width:n,height:s}}function ak(t,n,s){const l=un(n),o=Pa(n),u=s==="fixed",d=js(t,!0,u,n);let O={scrollLeft:0,scrollTop:0};const m=$a(0);function p(){m.x=Tc(o)}if(l||!l&&!u)if((Al(n)!=="body"||li(o))&&(O=$c(n)),l){const S=js(n,!0,u,n);m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}else o&&p();u&&!l&&o&&p();const x=o&&!l&&!u?A0(o,O):$a(0),g=d.left+O.scrollLeft-m.x-x.x,b=d.top+O.scrollTop-m.y-x.y;return{x:g,y:b,width:d.width,height:d.height}}function OO(t){return xa(t).position==="static"}function qg(t,n){if(!un(t)||xa(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return Pa(t)===s&&(s=s.ownerDocument.body),s}function q0(t,n){const s=Bt(t);if(kc(t))return s;if(!un(t)){let o=Hn(t);for(;o&&!$l(o);){if(pa(o)&&!OO(o))return o;o=Hn(o)}return s}let l=qg(t,n);for(;l&&Vw(l)&&OO(l);)l=qg(l,n);return l&&$l(l)&&OO(l)&&!Cf(l)?s:l||Lw(t)||s}const nk=async function(t){const n=this.getOffsetParent||q0,s=this.getDimensions,l=await s(t.floating);return{reference:ak(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function sk(t){return xa(t).direction==="rtl"}const lk={convertOffsetParentRelativeRectToViewportRelativeRect:Bw,getDocumentElement:Pa,getClippingRect:ek,getOffsetParent:q0,getElementRects:nk,getClientRects:Hw,getDimensions:tk,getScale:Ql,isElement:pa,isRTL:sk};function M0(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function rk(t,n){let s=null,l;const o=Pa(t);function u(){var O;clearTimeout(l),(O=s)==null||O.disconnect(),s=null}function d(O,m){O===void 0&&(O=!1),m===void 0&&(m=1),u();const p=t.getBoundingClientRect(),{left:x,top:g,width:b,height:S}=p;if(O||n(),!b||!S)return;const Q=zo(g),k=zo(o.clientWidth-(x+b)),T=zo(o.clientHeight-(g+S)),j=zo(x),N={rootMargin:-Q+"px "+-k+"px "+-T+"px "+-j+"px",threshold:Wt(0,Bn(1,m))||1};let Z=!0;function U(C){const X=C[0].intersectionRatio;if(X!==m){if(!Z)return d();X?d(!1,X):l=setTimeout(()=>{d(!1,1e-7)},1e3)}X===1&&!M0(p,t.getBoundingClientRect())&&d(),Z=!1}try{s=new IntersectionObserver(U,{...N,root:o.ownerDocument})}catch{s=new IntersectionObserver(U,N)}s.observe(t)}return d(!0),u}function ik(t,n,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:O=typeof IntersectionObserver=="function",animationFrame:m=!1}=l,p=_f(t),x=o||u?[...p?Dr(p):[],...n?Dr(n):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),u&&j.addEventListener("resize",s)});const g=p&&O?rk(p,s):null;let b=-1,S=null;d&&(S=new ResizeObserver(j=>{let[P]=j;P&&P.target===p&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=S)==null||N.observe(n)})),s()}),p&&!m&&S.observe(p),n&&S.observe(n));let Q,k=m?js(t):null;m&&T();function T(){const j=js(t);k&&!M0(k,j)&&s(),k=j,Q=requestAnimationFrame(T)}return s(),()=>{var j;x.forEach(P=>{o&&P.removeEventListener("scroll",s),u&&P.removeEventListener("resize",s)}),g==null||g(),(j=S)==null||j.disconnect(),S=null,m&&cancelAnimationFrame(Q)}}const ok=Ew,ck=qw,uk=_w,dk=Yw,Ok=Zw,Mg=Xw,fk=Mw,hk=(t,n,s)=>{const l=new Map,o={platform:lk,...s},u={...o.platform,_c:l};return Cw(t,n,{...o,platform:u})};var mk=typeof document<"u",pk=function(){},Do=mk?v.useLayoutEffect:pk;function sc(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let s,l,o;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(l=s;l--!==0;)if(!sc(t[l],n[l]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(n).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(n,o[l]))return!1;for(l=s;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!sc(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function Y0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Yg(t,n){const s=Y0(t);return Math.round(n*s)/s}function fO(t){const n=v.useRef(t);return Do(()=>{n.current=t}),n}function xk(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:d}={},transform:O=!0,whileElementsMounted:m,open:p}=t,[x,g]=v.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(l);sc(b,l)||S(l);const[Q,k]=v.useState(null),[T,j]=v.useState(null),P=v.useCallback(I=>{I!==C.current&&(C.current=I,k(I))},[]),N=v.useCallback(I=>{I!==X.current&&(X.current=I,j(I))},[]),Z=u||Q,U=d||T,C=v.useRef(null),X=v.useRef(null),$=v.useRef(x),W=m!=null,E=fO(m),ne=fO(o),re=fO(p),xe=v.useCallback(()=>{if(!C.current||!X.current)return;const I={placement:n,strategy:s,middleware:b};ne.current&&(I.platform=ne.current),hk(C.current,X.current,I).then(fe=>{const te={...fe,isPositioned:re.current!==!1};ie.current&&!sc($.current,te)&&($.current=te,b0.flushSync(()=>{g(te)}))})},[b,n,s,ne,re]);Do(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(I=>({...I,isPositioned:!1})))},[p]);const ie=v.useRef(!1);Do(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Do(()=>{if(Z&&(C.current=Z),U&&(X.current=U),Z&&U){if(E.current)return E.current(Z,U,xe);xe()}},[Z,U,xe,E,W]);const J=v.useMemo(()=>({reference:C,floating:X,setReference:P,setFloating:N}),[P,N]),z=v.useMemo(()=>({reference:Z,floating:U}),[Z,U]),B=v.useMemo(()=>{const I={position:s,left:0,top:0};if(!z.floating)return I;const fe=Yg(z.floating,x.x),te=Yg(z.floating,x.y);return O?{...I,transform:"translate("+fe+"px, "+te+"px)",...Y0(z.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:fe,top:te}},[s,O,z.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:xe,refs:J,elements:z,floatingStyles:B}),[x,xe,J,z,B])}const gk=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:l,padding:o}=typeof t=="function"?t(s):t;return l&&n(l)?l.current!=null?Mg({element:l.current,padding:o}).fn(s):{}:l?Mg({element:l,padding:o}).fn(s):{}}}},bk=(t,n)=>{const s=ok(t);return{name:s.name,fn:s.fn,options:[t,n]}},vk=(t,n)=>{const s=ck(t);return{name:s.name,fn:s.fn,options:[t,n]}},yk=(t,n)=>({fn:fk(t).fn,options:[t,n]}),Sk=(t,n)=>{const s=uk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Qk=(t,n)=>{const s=dk(t);return{name:s.name,fn:s.fn,options:[t,n]}},jk=(t,n)=>{const s=Ok(t);return{name:s.name,fn:s.fn,options:[t,n]}},wk=(t,n)=>{const s=gk(t);return{name:s.name,fn:s.fn,options:[t,n]}};var kk="Arrow",V0=v.forwardRef((t,n)=>{const{children:s,width:l=10,height:o=5,...u}=t;return i.jsx(Be.svg,{...u,ref:n,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});V0.displayName=kk;var $k=V0;function Tk(t){const[n,s]=v.useState(void 0);return ln(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,O;if("borderBoxSize"in u){const m=u.borderBoxSize,p=Array.isArray(m)?m[0]:m;d=p.inlineSize,O=p.blockSize}else d=t.offsetWidth,O=t.offsetHeight;s({width:d,height:O})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else s(void 0)},[t]),n}var Zf="Popper",[U0,G0]=Ps(Zf),[Pk,L0]=U0(Zf),D0=t=>{const{__scopePopper:n,children:s}=t,[l,o]=v.useState(null);return i.jsx(Pk,{scope:n,anchor:l,onAnchorChange:o,children:s})};D0.displayName=Zf;var W0="PopperAnchor",B0=v.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:l,...o}=t,u=L0(W0,s),d=v.useRef(null),O=rt(n,d),m=v.useRef(null);return v.useEffect(()=>{const p=m.current;m.current=(l==null?void 0:l.current)||d.current,p!==m.current&&u.onAnchorChange(m.current)}),l?null:i.jsx(Be.div,{...o,ref:O})});B0.displayName=W0;var Af="PopperContent",[Nk,zk]=U0(Af),H0=v.forwardRef((t,n)=>{var ze,Ot,_e,tt,bt,vt;const{__scopePopper:s,side:l="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:O=0,avoidCollisions:m=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:Q,...k}=t,T=L0(Af,s),[j,P]=v.useState(null),N=rt(n,It=>P(It)),[Z,U]=v.useState(null),C=Tk(Z),X=(C==null?void 0:C.width)??0,$=(C==null?void 0:C.height)??0,W=l+(u!=="center"?"-"+u:""),E=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ne=Array.isArray(p)?p:[p],re=ne.length>0,xe={padding:E,boundary:ne.filter(Ck),altBoundary:re},{refs:ie,floatingStyles:J,placement:z,isPositioned:B,middlewareData:I}=xk({strategy:"fixed",placement:W,whileElementsMounted:(...It)=>ik(...It,{animationFrame:S==="always"}),elements:{reference:T.anchor},middleware:[bk({mainAxis:o+$,alignmentAxis:d}),m&&vk({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?yk():void 0,...xe}),m&&Sk({...xe}),Qk({...xe,apply:({elements:It,rects:yt,availableWidth:Ml,availableHeight:Yl})=>{const{width:Wc,height:Oi}=yt.reference,On=It.floating.style;On.setProperty("--radix-popper-available-width",`${Ml}px`),On.setProperty("--radix-popper-available-height",`${Yl}px`),On.setProperty("--radix-popper-anchor-width",`${Wc}px`),On.setProperty("--radix-popper-anchor-height",`${Oi}px`)}}),Z&&wk({element:Z,padding:O}),Xk({arrowWidth:X,arrowHeight:$}),b&&jk({strategy:"referenceHidden",...xe})]}),[fe,te]=K0(z),Ae=zt(Q);ln(()=>{B&&(Ae==null||Ae())},[B,Ae]);const Se=(ze=I.arrow)==null?void 0:ze.x,ve=(Ot=I.arrow)==null?void 0:Ot.y,Xe=((_e=I.arrow)==null?void 0:_e.centerOffset)!==0,[L,oe]=v.useState();return ln(()=>{j&&oe(window.getComputedStyle(j).zIndex)},[j]),i.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:B?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:L,"--radix-popper-transform-origin":[(tt=I.transformOrigin)==null?void 0:tt.x,(bt=I.transformOrigin)==null?void 0:bt.y].join(" "),...((vt=I.hide)==null?void 0:vt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i.jsx(Nk,{scope:s,placedSide:fe,onArrowChange:U,arrowX:Se,arrowY:ve,shouldHideArrow:Xe,children:i.jsx(Be.div,{"data-side":fe,"data-align":te,...k,ref:N,style:{...k.style,animation:B?void 0:"none"}})})})});H0.displayName=Af;var I0="PopperArrow",Rk={top:"bottom",right:"left",bottom:"top",left:"right"},F0=v.forwardRef(function(n,s){const{__scopePopper:l,...o}=n,u=zk(I0,l),d=Rk[u.placedSide];return i.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:i.jsx($k,{...o,ref:s,style:{...o.style,display:"block"}})})});F0.displayName=I0;function Ck(t){return t!==null}var Xk=t=>({name:"transformOrigin",options:t,fn(n){var T,j,P;const{placement:s,rects:l,middlewareData:o}=n,d=((T=o.arrow)==null?void 0:T.centerOffset)!==0,O=d?0:t.arrowWidth,m=d?0:t.arrowHeight,[p,x]=K0(s),g={start:"0%",center:"50%",end:"100%"}[x],b=(((j=o.arrow)==null?void 0:j.x)??0)+O/2,S=(((P=o.arrow)==null?void 0:P.y)??0)+m/2;let Q="",k="";return p==="bottom"?(Q=d?g:`${b}px`,k=`${-m}px`):p==="top"?(Q=d?g:`${b}px`,k=`${l.floating.height+m}px`):p==="right"?(Q=`${-m}px`,k=d?g:`${S}px`):p==="left"&&(Q=`${l.floating.width+m}px`,k=d?g:`${S}px`),{data:{x:Q,y:k}}}});function K0(t){const[n,s="center"]=t.split("-");return[n,s]}var _k=D0,Zk=B0,Ak=H0,Ek=F0,qk="Portal",Ef=v.forwardRef((t,n)=>{var O;const{container:s,...l}=t,[o,u]=v.useState(!1);ln(()=>u(!0),[]);const d=s||o&&((O=globalThis==null?void 0:globalThis.document)==null?void 0:O.body);return d?hj.createPortal(i.jsx(Be.div,{...l,ref:n}),d):null});Ef.displayName=qk;function Mk(t,n){return v.useReducer((s,l)=>n[s][l]??s,t)}var ba=t=>{const{present:n,children:s}=t,l=Yk(n),o=typeof s=="function"?s({present:l.isPresent}):v.Children.only(s),u=rt(l.ref,Vk(o));return typeof s=="function"||l.isPresent?v.cloneElement(o,{ref:u}):null};ba.displayName="Presence";function Yk(t){const[n,s]=v.useState(),l=v.useRef(null),o=v.useRef(t),u=v.useRef("none"),d=t?"mounted":"unmounted",[O,m]=Mk(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Ro(l.current);u.current=O==="mounted"?p:"none"},[O]),ln(()=>{const p=l.current,x=o.current;if(x!==t){const b=u.current,S=Ro(p);t?m("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?m("UNMOUNT"):m(x&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,m]),ln(()=>{if(n){let p;const x=n.ownerDocument.defaultView??window,g=S=>{const k=Ro(l.current).includes(CSS.escape(S.animationName));if(S.target===n&&k&&(m("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",p=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},b=S=>{S.target===n&&(u.current=Ro(l.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{x.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(O),ref:v.useCallback(p=>{l.current=p?getComputedStyle(p):null,s(p)},[])}}function Ro(t){return(t==null?void 0:t.animationName)||"none"}function Vk(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Uk=p0[" useInsertionEffect ".trim().toString()]||ln;function Pc({prop:t,defaultProp:n,onChange:s=()=>{},caller:l}){const[o,u,d]=Gk({defaultProp:n,onChange:s}),O=t!==void 0,m=O?t:o;{const x=v.useRef(t!==void 0);v.useEffect(()=>{const g=x.current;g!==O&&console.warn(`${l} is changing from ${g?"controlled":"uncontrolled"} to ${O?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=O},[O,l])}const p=v.useCallback(x=>{var g;if(O){const b=Lk(x)?x(t):x;b!==t&&((g=d.current)==null||g.call(d,b))}else u(x)},[O,t,u,d]);return[m,p]}function Gk({defaultProp:t,onChange:n}){const[s,l]=v.useState(t),o=v.useRef(s),u=v.useRef(n);return Uk(()=>{u.current=n},[n]),v.useEffect(()=>{var d;o.current!==s&&((d=u.current)==null||d.call(u,s),o.current=s)},[s,o]),[s,l,u]}function Lk(t){return typeof t=="function"}var Dk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Wk="VisuallyHidden",J0=v.forwardRef((t,n)=>i.jsx(Be.span,{...t,ref:n,style:{...Dk,...t.style}}));J0.displayName=Wk;var Bk=J0,[Nc]=Ps("Tooltip",[G0]),zc=G0(),eb="TooltipProvider",Hk=700,rf="tooltip.open",[Ik,qf]=Nc(eb),tb=t=>{const{__scopeTooltip:n,delayDuration:s=Hk,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:u}=t,d=v.useRef(!0),O=v.useRef(!1),m=v.useRef(0);return v.useEffect(()=>{const p=m.current;return()=>window.clearTimeout(p)},[]),i.jsx(Ik,{scope:n,isOpenDelayedRef:d,delayDuration:s,onOpen:v.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:O,onPointerInTransitChange:v.useCallback(p=>{O.current=p},[]),disableHoverableContent:o,children:u})};tb.displayName=eb;var Wr="Tooltip",[Fk,ri]=Nc(Wr),ab=t=>{const{__scopeTooltip:n,children:s,open:l,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:O}=t,m=qf(Wr,t.__scopeTooltip),p=zc(n),[x,g]=v.useState(null),b=Sl(),S=v.useRef(0),Q=d??m.disableHoverableContent,k=O??m.delayDuration,T=v.useRef(!1),[j,P]=Pc({prop:l,defaultProp:o??!1,onChange:X=>{X?(m.onOpen(),document.dispatchEvent(new CustomEvent(rf))):m.onClose(),u==null||u(X)},caller:Wr}),N=v.useMemo(()=>j?T.current?"delayed-open":"instant-open":"closed",[j]),Z=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,T.current=!1,P(!0)},[P]),U=v.useCallback(()=>{window.clearTimeout(S.current),S.current=0,P(!1)},[P]),C=v.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{T.current=!0,P(!0),S.current=0},k)},[k,P]);return v.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),i.jsx(_k,{...p,children:i.jsx(Fk,{scope:n,contentId:b,open:j,stateAttribute:N,trigger:x,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{m.isOpenDelayedRef.current?C():Z()},[m.isOpenDelayedRef,C,Z]),onTriggerLeave:v.useCallback(()=>{Q?U():(window.clearTimeout(S.current),S.current=0)},[U,Q]),onOpen:Z,onClose:U,disableHoverableContent:Q,children:s})})};ab.displayName=Wr;var of="TooltipTrigger",nb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=ri(of,s),u=qf(of,s),d=zc(s),O=v.useRef(null),m=rt(n,O,o.onTriggerChange),p=v.useRef(!1),x=v.useRef(!1),g=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),i.jsx(Zk,{asChild:!0,...d,children:i.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:m,onPointerMove:Ee(t.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Ee(t.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Ee(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ee(t.onBlur,o.onClose),onClick:Ee(t.onClick,o.onClose)})})});nb.displayName=of;var Mf="TooltipPortal",[Kk,Jk]=Nc(Mf,{forceMount:void 0}),sb=t=>{const{__scopeTooltip:n,forceMount:s,children:l,container:o}=t,u=ri(Mf,n);return i.jsx(Kk,{scope:n,forceMount:s,children:i.jsx(ba,{present:s||u.open,children:i.jsx(Ef,{asChild:!0,container:o,children:l})})})};sb.displayName=Mf;var Tl="TooltipContent",lb=v.forwardRef((t,n)=>{const s=Jk(Tl,t.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...u}=t,d=ri(Tl,t.__scopeTooltip);return i.jsx(ba,{present:l||d.open,children:d.disableHoverableContent?i.jsx(rb,{side:o,...u,ref:n}):i.jsx(e$,{side:o,...u,ref:n})})}),e$=v.forwardRef((t,n)=>{const s=ri(Tl,t.__scopeTooltip),l=qf(Tl,t.__scopeTooltip),o=v.useRef(null),u=rt(n,o),[d,O]=v.useState(null),{trigger:m,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=l,b=v.useCallback(()=>{O(null),g(!1)},[g]),S=v.useCallback((Q,k)=>{const T=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},P=s$(j,T.getBoundingClientRect()),N=l$(j,P),Z=r$(k.getBoundingClientRect()),U=o$([...N,...Z]);O(U),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(m&&x){const Q=T=>S(T,x),k=T=>S(T,m);return m.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",k),()=>{m.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",k)}}},[m,x,S,b]),v.useEffect(()=>{if(d){const Q=k=>{const T=k.target,j={x:k.clientX,y:k.clientY},P=(m==null?void 0:m.contains(T))||(x==null?void 0:x.contains(T)),N=!i$(j,d);P?b():N&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[m,x,d,p,b]),i.jsx(rb,{...t,ref:u})}),[t$,a$]=Nc(Wr,{isInside:!1}),n$=rw("TooltipContent"),rb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...O}=t,m=ri(Tl,s),p=zc(s),{onClose:x}=m;return v.useEffect(()=>(document.addEventListener(rf,x),()=>document.removeEventListener(rf,x)),[x]),v.useEffect(()=>{if(m.trigger){const g=b=>{const S=b.target;S!=null&&S.contains(m.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[m.trigger,x]),i.jsx(Pf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:i.jsxs(Ak,{"data-state":m.stateAttribute,...p,...O,ref:n,style:{...O.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(n$,{children:l}),i.jsx(t$,{scope:s,isInside:!0,children:i.jsx(Bk,{id:m.contentId,role:"tooltip",children:o||l})})]})})});lb.displayName=Tl;var ib="TooltipArrow",ob=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=zc(s);return a$(ib,s).isInside?null:i.jsx(Ek,{...o,...l,ref:n})});ob.displayName=ib;function s$(t,n){const s=Math.abs(n.top-t.y),l=Math.abs(n.bottom-t.y),o=Math.abs(n.right-t.x),u=Math.abs(n.left-t.x);switch(Math.min(s,l,o,u)){case u:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function l$(t,n,s=5){const l=[];switch(n){case"top":l.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":l.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":l.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":l.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return l}function r$(t){const{top:n,right:s,bottom:l,left:o}=t;return[{x:o,y:n},{x:s,y:n},{x:s,y:l},{x:o,y:l}]}function i$(t,n){const{x:s,y:l}=t;let o=!1;for(let u=0,d=n.length-1;u<n.length;d=u++){const O=n[u],m=n[d],p=O.x,x=O.y,g=m.x,b=m.y;x>l!=b>l&&s<(g-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function o$(t){const n=t.slice();return n.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),c$(n)}function c$(t){if(t.length<=1)return t.slice();const n=[];for(let l=0;l<t.length;l++){const o=t[l];for(;n.length>=2;){const u=n[n.length-1],d=n[n.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}n.pop();const s=[];for(let l=t.length-1;l>=0;l--){const o=t[l];for(;s.length>=2;){const u=s[s.length-1],d=s[s.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),n.length===1&&s.length===1&&n[0].x===s[0].x&&n[0].y===s[0].y?n:n.concat(s)}var u$=tb,d$=ab,O$=nb,f$=sb,h$=lb,m$=ob;function cb(t){var n,s,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(s=cb(t[n]))&&(l&&(l+=" "),l+=s)}else for(s in t)t[s]&&(l&&(l+=" "),l+=s);return l}function p$(){for(var t,n,s=0,l="",o=arguments.length;s<o;s++)(t=arguments[s])&&(n=cb(t))&&(l&&(l+=" "),l+=n);return l}const x$=(t,n)=>{const s=new Array(t.length+n.length);for(let l=0;l<t.length;l++)s[l]=t[l];for(let l=0;l<n.length;l++)s[t.length+l]=n[l];return s},g$=(t,n)=>({classGroupId:t,validator:n}),ub=(t=new Map,n=null,s)=>({nextPart:t,validators:n,classGroupId:s}),lc="-",Vg=[],b$="arbitrary..",v$=t=>{const n=S$(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return y$(d);const O=d.split(lc),m=O[0]===""&&O.length>1?1:0;return db(O,m,n)},getConflictingClassGroupIds:(d,O)=>{if(O){const m=l[d],p=s[d];return m?p?x$(p,m):m:p||Vg}return s[d]||Vg}}},db=(t,n,s)=>{if(t.length-n===0)return s.classGroupId;const o=t[n],u=s.nextPart.get(o);if(u){const p=db(t,n+1,u);if(p)return p}const d=s.validators;if(d===null)return;const O=n===0?t.join(lc):t.slice(n).join(lc),m=d.length;for(let p=0;p<m;p++){const x=d[p];if(x.validator(O))return x.classGroupId}},y$=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),s=n.indexOf(":"),l=n.slice(0,s);return l?b$+l:void 0})(),S$=t=>{const{theme:n,classGroups:s}=t;return Q$(s,n)},Q$=(t,n)=>{const s=ub();for(const l in t){const o=t[l];Yf(o,s,l,n)}return s},Yf=(t,n,s,l)=>{const o=t.length;for(let u=0;u<o;u++){const d=t[u];j$(d,n,s,l)}},j$=(t,n,s,l)=>{if(typeof t=="string"){w$(t,n,s);return}if(typeof t=="function"){k$(t,n,s,l);return}$$(t,n,s,l)},w$=(t,n,s)=>{const l=t===""?n:Ob(n,t);l.classGroupId=s},k$=(t,n,s,l)=>{if(T$(t)){Yf(t(l),n,s,l);return}n.validators===null&&(n.validators=[]),n.validators.push(g$(s,t))},$$=(t,n,s,l)=>{const o=Object.entries(t),u=o.length;for(let d=0;d<u;d++){const[O,m]=o[d];Yf(m,Ob(n,O),s,l)}},Ob=(t,n)=>{let s=t;const l=n.split(lc),o=l.length;for(let u=0;u<o;u++){const d=l[u];let O=s.nextPart.get(d);O||(O=ub(),s.nextPart.set(d,O)),s=O}return s},T$=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,P$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),l=Object.create(null);const o=(u,d)=>{s[u]=d,n++,n>t&&(n=0,l=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=l[u])!==void 0)return o(u,d),d},set(u,d){u in s?s[u]=d:o(u,d)}}},cf="!",Ug=":",N$=[],Gg=(t,n,s,l,o)=>({modifiers:t,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:l,isExternal:o}),z$=t=>{const{prefix:n,experimentalParseClassName:s}=t;let l=o=>{const u=[];let d=0,O=0,m=0,p;const x=o.length;for(let k=0;k<x;k++){const T=o[k];if(d===0&&O===0){if(T===Ug){u.push(o.slice(m,k)),m=k+1;continue}if(T==="/"){p=k;continue}}T==="["?d++:T==="]"?d--:T==="("?O++:T===")"&&O--}const g=u.length===0?o:o.slice(m);let b=g,S=!1;g.endsWith(cf)?(b=g.slice(0,-1),S=!0):g.startsWith(cf)&&(b=g.slice(1),S=!0);const Q=p&&p>m?p-m:void 0;return Gg(u,S,b,Q)};if(n){const o=n+Ug,u=l;l=d=>d.startsWith(o)?u(d.slice(o.length)):Gg(N$,!1,d,void 0,!0)}if(s){const o=l;l=u=>s({className:u,parseClassName:o})}return l},R$=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((s,l)=>{n.set(s,1e6+l)}),s=>{const l=[];let o=[];for(let u=0;u<s.length;u++){const d=s[u],O=d[0]==="[",m=n.has(d);O||m?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(d)):o.push(d)}return o.length>0&&(o.sort(),l.push(...o)),l}},C$=t=>({cache:P$(t.cacheSize),parseClassName:z$(t),sortModifiers:R$(t),...v$(t)}),X$=/\s+/,_$=(t,n)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=n,d=[],O=t.trim().split(X$);let m="";for(let p=O.length-1;p>=0;p-=1){const x=O[p],{isExternal:g,modifiers:b,hasImportantModifier:S,baseClassName:Q,maybePostfixModifierPosition:k}=s(x);if(g){m=x+(m.length>0?" "+m:m);continue}let T=!!k,j=l(T?Q.substring(0,k):Q);if(!j){if(!T){m=x+(m.length>0?" "+m:m);continue}if(j=l(Q),!j){m=x+(m.length>0?" "+m:m);continue}T=!1}const P=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=S?P+cf:P,Z=N+j;if(d.indexOf(Z)>-1)continue;d.push(Z);const U=o(j,T);for(let C=0;C<U.length;++C){const X=U[C];d.push(N+X)}m=x+(m.length>0?" "+m:m)}return m},Z$=(...t)=>{let n=0,s,l,o="";for(;n<t.length;)(s=t[n++])&&(l=fb(s))&&(o&&(o+=" "),o+=l);return o},fb=t=>{if(typeof t=="string")return t;let n,s="";for(let l=0;l<t.length;l++)t[l]&&(n=fb(t[l]))&&(s&&(s+=" "),s+=n);return s},A$=(t,...n)=>{let s,l,o,u;const d=m=>{const p=n.reduce((x,g)=>g(x),t());return s=C$(p),l=s.cache.get,o=s.cache.set,u=O,O(m)},O=m=>{const p=l(m);if(p)return p;const x=_$(m,s);return o(m,x),x};return u=d,(...m)=>u(Z$(...m))},E$=[],ot=t=>{const n=s=>s[t]||E$;return n.isThemeGetter=!0,n},hb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,q$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,U$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,En=t=>q$.test(t),Qe=t=>!!t&&!Number.isNaN(Number(t)),qn=t=>!!t&&Number.isInteger(Number(t)),hO=t=>t.endsWith("%")&&Qe(t.slice(0,-1)),Ia=t=>M$.test(t),pb=()=>!0,L$=t=>Y$.test(t)&&!V$.test(t),Vf=()=>!1,D$=t=>U$.test(t),W$=t=>G$.test(t),B$=t=>!ue(t)&&!de(t),H$=t=>Jn(t,bb,Vf),ue=t=>hb.test(t),vs=t=>Jn(t,vb,L$),Lg=t=>Jn(t,n5,Qe),I$=t=>Jn(t,Sb,pb),F$=t=>Jn(t,yb,Vf),Dg=t=>Jn(t,xb,Vf),K$=t=>Jn(t,gb,W$),Co=t=>Jn(t,Qb,D$),de=t=>mb.test(t),Zr=t=>Ns(t,vb),J$=t=>Ns(t,yb),Wg=t=>Ns(t,xb),e5=t=>Ns(t,bb),t5=t=>Ns(t,gb),Xo=t=>Ns(t,Qb,!0),a5=t=>Ns(t,Sb,!0),Jn=(t,n,s)=>{const l=hb.exec(t);return l?l[1]?n(l[1]):s(l[2]):!1},Ns=(t,n,s=!1)=>{const l=mb.exec(t);return l?l[1]?n(l[1]):s:!1},xb=t=>t==="position"||t==="percentage",gb=t=>t==="image"||t==="url",bb=t=>t==="length"||t==="size"||t==="bg-size",vb=t=>t==="length",n5=t=>t==="number",yb=t=>t==="family-name",Sb=t=>t==="number"||t==="weight",Qb=t=>t==="shadow",s5=()=>{const t=ot("color"),n=ot("font"),s=ot("text"),l=ot("font-weight"),o=ot("tracking"),u=ot("leading"),d=ot("breakpoint"),O=ot("container"),m=ot("spacing"),p=ot("radius"),x=ot("shadow"),g=ot("inset-shadow"),b=ot("text-shadow"),S=ot("drop-shadow"),Q=ot("blur"),k=ot("perspective"),T=ot("aspect"),j=ot("ease"),P=ot("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...Z(),de,ue],C=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],$=()=>[de,ue,m],W=()=>[En,"full","auto",...$()],E=()=>[qn,"none","subgrid",de,ue],ne=()=>["auto",{span:["full",qn,de,ue]},qn,de,ue],re=()=>[qn,"auto",de,ue],xe=()=>["auto","min","max","fr",de,ue],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...$()],B=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],I=()=>[En,"screen","full","dvw","lvw","svw","min","max","fit",...$()],fe=()=>[En,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],te=()=>[t,de,ue],Ae=()=>[...Z(),Wg,Dg,{position:[de,ue]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",e5,H$,{size:[de,ue]}],Xe=()=>[hO,Zr,vs],L=()=>["","none","full",p,de,ue],oe=()=>["",Qe,Zr,vs],ze=()=>["solid","dashed","dotted","double"],Ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Qe,hO,Wg,Dg],tt=()=>["","none",Q,de,ue],bt=()=>["none",Qe,de,ue],vt=()=>["none",Qe,de,ue],It=()=>[Qe,de,ue],yt=()=>[En,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ia],breakpoint:[Ia],color:[pb],container:[Ia],"drop-shadow":[Ia],ease:["in","out","in-out"],font:[B$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ia],shadow:[Ia],spacing:["px",Qe],text:[Ia],"text-shadow":[Ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,ue,de,T]}],container:["container"],columns:[{columns:[Qe,ue,de,O]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[qn,"auto",de,ue]}],basis:[{basis:[En,"full","auto",O,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,En,"auto","initial","none",ue]}],grow:[{grow:["",Qe,de,ue]}],shrink:[{shrink:["",Qe,de,ue]}],order:[{order:[qn,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":xe()}],"auto-rows":[{"auto-rows":xe()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[O,"screen",...B()]}],"min-w":[{"min-w":[O,"screen","none",...B()]}],"max-w":[{"max-w":[O,"screen","none","prose",{screen:[d]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",s,Zr,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,a5,I$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hO,ue]}],"font-family":[{font:[J$,F$,n]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,ue]}],"line-clamp":[{"line-clamp":[Qe,"none",de,Lg]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",de,vs]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[Qe,"auto",de,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qn,de,ue],radial:["",de,ue],conic:[qn,de,ue]},t5,K$]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:Xe()}],"gradient-via-pos":[{via:Xe()}],"gradient-to-pos":[{to:Xe()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,de,ue]}],"outline-w":[{outline:["",Qe,Zr,vs]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",x,Xo,Co]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",g,Xo,Co]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[Qe,vs]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",b,Xo,Co]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[Qe,de,ue]}],"mix-blend":[{"mix-blend":[...Ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ot()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:tt()}],brightness:[{brightness:[Qe,de,ue]}],contrast:[{contrast:[Qe,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",S,Xo,Co]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",Qe,de,ue]}],"hue-rotate":[{"hue-rotate":[Qe,de,ue]}],invert:[{invert:["",Qe,de,ue]}],saturate:[{saturate:[Qe,de,ue]}],sepia:[{sepia:["",Qe,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Qe,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",de,ue]}],ease:[{ease:["linear","initial",j,de,ue]}],delay:[{delay:[Qe,de,ue]}],animate:[{animate:["none",P,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,de,ue]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:vt()}],"scale-x":[{"scale-x":vt()}],"scale-y":[{"scale-y":vt()}],"scale-z":[{"scale-z":vt()}],"scale-3d":["scale-3d"],skew:[{skew:It()}],"skew-x":[{"skew-x":It()}],"skew-y":[{"skew-y":It()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ue]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[Qe,Zr,vs,Lg]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l5=A$(s5);function le(...t){return l5(p$(t))}function r5({children:t}){return i.jsx(u$,{delayDuration:300,children:t})}function Bg({children:t,content:n,side:s="top",className:l}){return n?i.jsxs(d$,{children:[i.jsx(O$,{asChild:!0,children:t}),i.jsx(f$,{children:i.jsxs(h$,{side:s,sideOffset:6,className:le("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",l),children:[n,i.jsx(m$,{className:"fill-surface-4"})]})})]}):t}/**
|
|
30
30
|
* @license lucide-react v1.7.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
@@ -46,7 +46,7 @@ Error generating stack: `+c.message+`
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the ISC license.
|
|
48
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const
|
|
49
|
+
*/const Hg=t=>{const n=o5(t);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
50
50
|
* @license lucide-react v1.7.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
@@ -56,12 +56,12 @@ Error generating stack: `+c.message+`
|
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const c5=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},u5=v.createContext({}),d5=()=>v.useContext(u5),O5=v.forwardRef(({color:t,size:n,strokeWidth:s,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...O},m)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:S=""}=d5()??{},Q=l??g?Number(s??x)*24/Number(n??p):s??x;return v.createElement("svg",{ref:m,...mO,width:n??p??mO.width,height:n??p??mO.height,stroke:t??b,strokeWidth:Q,className:jb("lucide",S,o),...!u&&!c5(O)&&{"aria-hidden":"true"},...O},[...d.map(([k
|
|
59
|
+
*/const c5=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},u5=v.createContext({}),d5=()=>v.useContext(u5),O5=v.forwardRef(({color:t,size:n,strokeWidth:s,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...O},m)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:S=""}=d5()??{},Q=l??g?Number(s??x)*24/Number(n??p):s??x;return v.createElement("svg",{ref:m,...mO,width:n??p??mO.width,height:n??p??mO.height,stroke:t??b,strokeWidth:Q,className:jb("lucide",S,o),...!u&&!c5(O)&&{"aria-hidden":"true"},...O},[...d.map(([k,T])=>v.createElement(k,T)),...Array.isArray(u)?u:[u]])});/**
|
|
60
60
|
* @license lucide-react v1.7.0 - ISC
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const ae=(t,n)=>{const s=v.forwardRef(({className:l,...o},u)=>v.createElement(O5,{ref:u,iconNode:n,className:jb(`lucide-${i5(
|
|
64
|
+
*/const ae=(t,n)=>{const s=v.forwardRef(({className:l,...o},u)=>v.createElement(O5,{ref:u,iconNode:n,className:jb(`lucide-${i5(Hg(t))}`,`lucide-${t}`,l),...o}));return s.displayName=Hg(t),s};/**
|
|
65
65
|
* @license lucide-react v1.7.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
@@ -91,7 +91,7 @@ Error generating stack: `+c.message+`
|
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const S5=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],
|
|
94
|
+
*/const S5=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ig=ae("calendar",S5);/**
|
|
95
95
|
* @license lucide-react v1.7.0 - ISC
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
@@ -131,7 +131,7 @@ Error generating stack: `+c.message+`
|
|
|
131
131
|
*
|
|
132
132
|
* This source code is licensed under the ISC license.
|
|
133
133
|
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const N5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],
|
|
134
|
+
*/const N5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uf=ae("circle-check",N5);/**
|
|
135
135
|
* @license lucide-react v1.7.0 - ISC
|
|
136
136
|
*
|
|
137
137
|
* This source code is licensed under the ISC license.
|
|
@@ -161,12 +161,12 @@ Error generating stack: `+c.message+`
|
|
|
161
161
|
*
|
|
162
162
|
* This source code is licensed under the ISC license.
|
|
163
163
|
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const A5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],
|
|
164
|
+
*/const A5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],df=ae("copy",A5);/**
|
|
165
165
|
* @license lucide-react v1.7.0 - ISC
|
|
166
166
|
*
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const E5=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],
|
|
169
|
+
*/const E5=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Uf=ae("cpu",E5);/**
|
|
170
170
|
* @license lucide-react v1.7.0 - ISC
|
|
171
171
|
*
|
|
172
172
|
* This source code is licensed under the ISC license.
|
|
@@ -181,7 +181,7 @@ Error generating stack: `+c.message+`
|
|
|
181
181
|
*
|
|
182
182
|
* This source code is licensed under the ISC license.
|
|
183
183
|
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const U5=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],
|
|
184
|
+
*/const U5=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Gf=ae("download",U5);/**
|
|
185
185
|
* @license lucide-react v1.7.0 - ISC
|
|
186
186
|
*
|
|
187
187
|
* This source code is licensed under the ISC license.
|
|
@@ -191,7 +191,7 @@ Error generating stack: `+c.message+`
|
|
|
191
191
|
*
|
|
192
192
|
* This source code is licensed under the ISC license.
|
|
193
193
|
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const L5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],
|
|
194
|
+
*/const L5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Lf=ae("eye-off",L5);/**
|
|
195
195
|
* @license lucide-react v1.7.0 - ISC
|
|
196
196
|
*
|
|
197
197
|
* This source code is licensed under the ISC license.
|
|
@@ -286,17 +286,17 @@ Error generating stack: `+c.message+`
|
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the ISC license.
|
|
288
288
|
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const xT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],
|
|
289
|
+
*/const xT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Fg=ae("layers",xT);/**
|
|
290
290
|
* @license lucide-react v1.7.0 - ISC
|
|
291
291
|
*
|
|
292
292
|
* This source code is licensed under the ISC license.
|
|
293
293
|
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/const gT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],
|
|
294
|
+
*/const gT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Df=ae("loader-circle",gT);/**
|
|
295
295
|
* @license lucide-react v1.7.0 - ISC
|
|
296
296
|
*
|
|
297
297
|
* This source code is licensed under the ISC license.
|
|
298
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const bT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],
|
|
299
|
+
*/const bT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Wf=ae("log-in",bT);/**
|
|
300
300
|
* @license lucide-react v1.7.0 - ISC
|
|
301
301
|
*
|
|
302
302
|
* This source code is licensed under the ISC license.
|
|
@@ -336,7 +336,7 @@ Error generating stack: `+c.message+`
|
|
|
336
336
|
*
|
|
337
337
|
* This source code is licensed under the ISC license.
|
|
338
338
|
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const zT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],
|
|
339
|
+
*/const zT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Bf=ae("monitor",zT);/**
|
|
340
340
|
* @license lucide-react v1.7.0 - ISC
|
|
341
341
|
*
|
|
342
342
|
* This source code is licensed under the ISC license.
|
|
@@ -361,7 +361,7 @@ Error generating stack: `+c.message+`
|
|
|
361
361
|
*
|
|
362
362
|
* This source code is licensed under the ISC license.
|
|
363
363
|
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/const ZT=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],
|
|
364
|
+
*/const ZT=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],Kg=ae("plug-zap",ZT);/**
|
|
365
365
|
* @license lucide-react v1.7.0 - ISC
|
|
366
366
|
*
|
|
367
367
|
* This source code is licensed under the ISC license.
|
|
@@ -381,7 +381,7 @@ Error generating stack: `+c.message+`
|
|
|
381
381
|
*
|
|
382
382
|
* This source code is licensed under the ISC license.
|
|
383
383
|
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
-
*/const MT=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],
|
|
384
|
+
*/const MT=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Hf=ae("radio",MT);/**
|
|
385
385
|
* @license lucide-react v1.7.0 - ISC
|
|
386
386
|
*
|
|
387
387
|
* This source code is licensed under the ISC license.
|
|
@@ -411,7 +411,7 @@ Error generating stack: `+c.message+`
|
|
|
411
411
|
*
|
|
412
412
|
* This source code is licensed under the ISC license.
|
|
413
413
|
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/const WT=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],
|
|
414
|
+
*/const WT=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],If=ae("send",WT);/**
|
|
415
415
|
* @license lucide-react v1.7.0 - ISC
|
|
416
416
|
*
|
|
417
417
|
* This source code is licensed under the ISC license.
|
|
@@ -446,7 +446,7 @@ Error generating stack: `+c.message+`
|
|
|
446
446
|
*
|
|
447
447
|
* This source code is licensed under the ISC license.
|
|
448
448
|
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
-
*/const tP=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],
|
|
449
|
+
*/const tP=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],Ff=ae("skull",tP);/**
|
|
450
450
|
* @license lucide-react v1.7.0 - ISC
|
|
451
451
|
*
|
|
452
452
|
* This source code is licensed under the ISC license.
|
|
@@ -466,7 +466,7 @@ Error generating stack: `+c.message+`
|
|
|
466
466
|
*
|
|
467
467
|
* This source code is licensed under the ISC license.
|
|
468
468
|
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
-
*/const lP=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],
|
|
469
|
+
*/const lP=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],Kf=ae("test-tube",lP);/**
|
|
470
470
|
* @license lucide-react v1.7.0 - ISC
|
|
471
471
|
*
|
|
472
472
|
* This source code is licensed under the ISC license.
|
|
@@ -516,7 +516,7 @@ Error generating stack: `+c.message+`
|
|
|
516
516
|
*
|
|
517
517
|
* This source code is licensed under the ISC license.
|
|
518
518
|
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
-
*/const bP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Na=ae("zap",bP),vP={success:Br,error:cn,info:zb,warning:_c},yP={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},SP={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},QP={success:3e3,error:0,info:5e3,warning:5e3};function jP({toast:t}){const n=W(o=>o.removeToast),s=vP[t.type]||zb,l=QP[t.type];return v.useEffect(()=>{if(!l)return;const o=setTimeout(()=>n(t.id),l);return()=>clearTimeout(o)},[t.id,l,n]),i.jsxs(g0.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:le("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",yP[t.type]),children:[i.jsx(s,{size:16,className:le("flex-shrink-0",SP[t.type])}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&i.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),i.jsx("button",{onClick:o=>{o.stopPropagation(),n(t.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:i.jsx(Rt,{size:14})})]})}function wP(){const t=W(n=>n.toasts);return i.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:i.jsx(x0,{mode:"popLayout",children:t.slice(-3).map(n=>i.jsx(jP,{toast:n},n.id))})})}const kP=[{id:"agents",icon:Xb,label:"Agents"},{id:"editor",icon:dn,label:"Editor"},{id:"dashboard",icon:Rc,label:"Dashboard"},{id:"marketplace",icon:Ab,label:"Marketplace"},{id:"teams",icon:Zc,label:"Teams"}],$P=[{id:"journalist",icon:Ir,label:"Journalist",panel:!0},{id:"settings",icon:Mb,label:"Settings",nav:!0}];function TP({activeView:t,detailPanel:n,onNavigate:s,onTogglePanel:l}){return i.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[i.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:kP.map(o=>i.jsx(Wg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>s(o.id),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",t===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:t===o.id?2:1.5})})},o.id))}),i.jsx("div",{className:"flex-1"}),i.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:$P.map(o=>{const u=o.panel?(n==null?void 0:n.type)===o.id:t===o.id;return i.jsx(Wg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>o.panel?l(o.id):s((o.nav,o.id)),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",u?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:u?2:1.5})})},o.id)})})]})}const PP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function NP({activeView:t,connected:n,daemonHost:s,editorActiveFile:l,onOpenCommandPalette:o,onSpawn:u}){const d=["Groove",PP[t]||t];return t==="editor"&&l&&d.push(l.split("/").pop()),i.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&i.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:s}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsxs("button",{onClick:o,className:le("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[i.jsx(ql,{size:14,className:"flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:d.map((O,m)=>i.jsxs("span",{className:"flex items-center gap-1",children:[m>0&&i.jsx(ii,{size:11,className:"text-text-4"}),i.jsx("span",{className:le(m===d.length-1?"text-text-2":"text-text-4"),children:O})]},m))}),n&&i.jsxs("button",{onClick:u,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[i.jsx(Fn,{size:14}),"Spawn"]})]})}const zP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function Kf(t){return zP[t]||"var(--color-text-3)"}const RP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"}};function Lb(t){const n=(t||"").toLowerCase();return RP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function Pl({status:t,size:n="md",className:s}){const l=t==="running"||t==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return i.jsx("span",{className:le("rounded-full inline-block flex-shrink-0",l&&"animate-pulse",o,s),style:{background:Kf(t)}})}function ct(t){return t==null||isNaN(t)?"0":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(t).toLocaleString()}function Ac(t){return t==null||isNaN(t)?"$0":t>=1e3?"$"+(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t>=1||t>=.01?"$"+t.toFixed(2):"$"+t.toFixed(3)}function Nl(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function Ec(t){if(!t||t<0)return"0s";const n=Math.floor(t/86400),s=Math.floor(t%86400/3600),l=Math.floor(t%3600/60),o=Math.floor(t%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${l}m`:l>0?`${l}m ${o}s`:`${o}s`}function Ct(t){if(!t)return"";const n=(Date.now()-new Date(t).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function CP({connected:t,agentCount:n,runningCount:s,uptime:l,terminalVisible:o,onToggleTerminal:u}){return i.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(Pl,{status:t?"running":"crashed",size:"sm"}),i.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&l>0&&i.jsxs("span",{className:"text-text-4",children:["Up ",Ec(l)]}),t&&n>0&&i.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),i.jsx("div",{className:"flex-1"}),i.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[i.jsx(x5,{size:12}),i.jsx("span",{children:"Docs"})]}),i.jsxs("button",{onClick:u,className:le("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[i.jsx(ui,{size:12}),i.jsx("span",{children:"Terminal"}),i.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function XP({children:t,width:n,onWidthChange:s,onClose:l,className:o}){const u=v.useRef(!1),d=v.useRef(0),O=v.useRef(0),m=v.useCallback(p=>{p.preventDefault(),u.current=!0,d.current=p.clientX,O.current=n;function x(b){if(!u.current)return;const S=d.current-b.clientX,Q=Math.min(Math.max(O.current+S,380),window.innerWidth*.65);s(Q)}function g(){u.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g)}document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)},[n,s]);return i.jsxs("aside",{className:le("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[i.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:m}),i.jsx("button",{onClick:l,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:14})}),i.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const _P=[{id:"nav:agents",label:"Go to Agents",icon:Xb,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:dn,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Rc,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Ab,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:Zc,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:Fn,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:ui,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:Ir,category:"Actions",action:t=>{var n;((n=t.detailPanel)==null?void 0:n.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function ZP(){const t=W(S=>S.commandPaletteOpen),n=W(S=>S.toggleCommandPalette),s=W(S=>S.agents),l=W,[o,u]=v.useState(""),[d,O]=v.useState(0),m=v.useRef(null),p=v.useMemo(()=>{const S=s.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:ci,category:"Agents",action:k=>{k.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:El,category:"Agents",action:k=>{k.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:If,category:"Agents",action:k=>{k.killAgent(Q.id)}}]:[]]);return[..._P,...S]},[s]),x=v.useMemo(()=>{if(!o.trim())return p.slice(0,12);const S=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(S)||Q.category.toLowerCase().includes(S)).slice(0,12)},[p,o]);v.useEffect(()=>{t&&(u(""),O(0),setTimeout(()=>{var S;return(S=m.current)==null?void 0:S.focus()},50))},[t]),v.useEffect(()=>{d>=x.length&&O(Math.max(0,x.length-1))},[x.length,d]);function g(S){S.action(l.getState()),n()}function b(S){S.key==="ArrowDown"?(S.preventDefault(),O(Q=>Math.min(Q+1,x.length-1))):S.key==="ArrowUp"?(S.preventDefault(),O(Q=>Math.max(Q-1,0))):S.key==="Enter"&&x[d]?(S.preventDefault(),g(x[d])):S.key==="Escape"&&n()}return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),i.jsx(x0,{children:i.jsxs(g0.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[i.jsx(ql,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("input",{ref:m,value:o,onChange:S=>{u(S.target.value),O(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),i.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&i.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((S,Q)=>i.jsxs("button",{onClick:()=>g(S),onMouseEnter:()=>O(Q),className:le("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===d?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[i.jsx(S.icon,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:S.label}),i.jsx("span",{className:"text-2xs text-text-4",children:S.category}),S.shortcut&&i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:S.shortcut})]},S.id))]})]})})]}):null}function AP({children:t,detailContent:n,terminalContent:s}){const l=W(C=>C.activeView),o=W(C=>C.detailPanel),u=W(C=>C.connected),d=W(C=>C.tunneled),O=W(C=>C.daemonHost),m=W(C=>C.agents),p=W(C=>C.editorActiveFile),x=W(C=>C.detailPanelWidth),g=W(C=>C.terminalVisible),b=W(C=>C.terminalFullHeight),S=W(C=>C.setActiveView),Q=W(C=>C.openDetail),k=W(C=>C.closeDetail),$=W(C=>C.setDetailPanelWidth),j=W(C=>C.setTerminalVisible),P=W(C=>C.toggleCommandPalette),N=v.useMemo(()=>m.filter(C=>C.status==="running").length,[m]),Z=v.useMemo(()=>[{key:"k",meta:!0,handler:()=>W.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>W.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const C=W.getState();C.setTerminalVisible(!C.terminalVisible)}},{key:"n",meta:!0,handler:()=>W.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>W.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>W.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>W.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>W.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>W.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const C=W.getState();C.commandPaletteOpen?C.toggleCommandPalette():C.detailPanel&&C.closeDetail()}}],[]);aw(Z);const U=o&&o.type!=="spawn";return i.jsx(r5,{children:i.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[i.jsx(NP,{activeView:l,connected:u,tunneled:d,daemonHost:O,editorActiveFile:p,onOpenCommandPalette:P,onSpawn:()=>Q({type:"spawn"})}),i.jsxs("div",{className:"flex-1 flex min-h-0",children:[i.jsx(TP,{activeView:l,detailPanel:o,onNavigate:S,onTogglePanel:C=>{(o==null?void 0:o.type)===C?k():Q({type:C})}}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&i.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),U&&i.jsx(XP,{width:x,onWidthChange:$,onClose:k,children:n})]}),i.jsx(CP,{connected:u,agentCount:m.length,runningCount:N,terminalVisible:g,onToggleTerminal:()=>j(!g)}),i.jsx(ZP,{}),i.jsx(wP,{})]})})}const EP=[];function qP(t){if(!t||t==="auto")return"auto";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):t.startsWith("gpt-")?t.toUpperCase().replace("GPT-","GPT-"):t}function MP(t){if(!t)return null;const n=t.toLowerCase();return n.includes("read")?"READ":n.includes("edit")||n.includes("writ")?"WRITE":n.includes("search")||n.includes("grep")||n.includes("glob")?"SEARCH":n.includes("bash")||n.includes("exec")||n.includes("running")?"EXEC":n.includes("test")?"TEST":n.includes("error")||n.includes("fail")?"ERR":n.includes("complet")||n.includes("done")?"DONE":"WORK"}function YP(t){if(!t)return"";const n=Math.floor((Date.now()-t)/1e3);return n<60?`${n}s`:n<3600?`${Math.floor(n/60)}m`:`${Math.floor(n/3600)}h`}function VP({agent:t}){const s=(W(l=>l.activityLog[t.id])||EP).slice(-8);return i.jsx("div",{className:"absolute left-full top-0 ml-2 z-50 pointer-events-none",style:{width:220,animation:"tooltip-slide-in 0.15s ease-out"},children:i.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&i.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:i.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?i.jsxs("div",{children:[i.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:i.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((l,o)=>{var O;const u=MP(l.text),d=((O=l.text)==null?void 0:O.length)>45?l.text.slice(0,45)+"...":l.text;return i.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[i.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:YP(l.timestamp)}),u&&i.jsx("span",{className:le("text-[7px] font-mono w-7 flex-shrink-0 text-center rounded-sm px-0.5 py-px",u==="ERR"?"text-[#e06c75] bg-[#e06c75]/10":"text-[#505862] bg-[#505862]/10"),children:u}),i.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:d})]},o)}),i.jsx("div",{className:"h-1.5"})]}):i.jsx("div",{className:"px-2.5 py-3",children:i.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const UP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},Db=v.memo(({data:t,selected:n})=>{const{agent:s}=t,l=s.status==="running"||s.status==="starting",o=Math.round((s.contextUsage||0)*100),u=Kf(s.status),d=s.tokensUsed||0,[O,m]=v.useState(!1);return i.jsxs("div",{className:"relative",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[i.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${n?"#2e323a":"#262a32"}`,borderRadius:4},children:[i.jsx(Gn,{id:"top",type:"target",position:Ln.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"bottom",type:"target",position:Ln.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"left",type:"target",position:Ln.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"right",type:"target",position:Ln.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),l&&i.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:i.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),i.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),i.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:u,background:u+"12"},children:UP[s.status]||s.status})]}),i.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[i.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),i.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),i.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:qP(s.model)})]})]}),i.jsxs("div",{className:"px-3 pt-1 pb-2",children:[i.jsxs("div",{className:"flex items-baseline gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:ct(d)}),i.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),i.jsx("span",{className:"flex-1"}),i.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),i.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm bg-[#262a32] overflow-hidden",children:i.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}})})]})]}),O&&i.jsx(VP,{agent:s})]})});Db.displayName="AgentNode";const Wb=v.memo(({data:t})=>{const{agentCount:n,runningCount:s}=t,l=s>0,o={background:"transparent",border:0,width:2,height:2};return i.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[i.jsx("div",{className:le("absolute inset-0 rounded-full transition-all duration-500",l&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${l?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),i.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:l?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:l?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),i.jsx("div",{className:le("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",l?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:i.jsx("img",{src:"/favicon.png",alt:"G",className:le("h-7 w-7 rounded-full transition-opacity",l?"opacity-90":"opacity-60")})}),n>0&&i.jsx("div",{className:le("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",l?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),i.jsx(Gn,{id:"bottom",type:"source",position:Ln.Bottom,style:o}),i.jsx(Gn,{id:"right",type:"source",position:Ln.Right,style:o}),i.jsx(Gn,{id:"left",type:"source",position:Ln.Left,style:o}),i.jsx(Gn,{id:"top",type:"source",position:Ln.Top,style:o})]})});Wb.displayName="RootNode";const GP={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},LP={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},je=v.forwardRef(({className:t,variant:n="secondary",size:s="md",children:l,...o},u)=>i.jsx("button",{ref:u,className:le("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",GP[n],LP[s],t),...o,children:l}));je.displayName="Button";const DP={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function We({children:t,variant:n="default",className:s,dot:l,...o}){return i.jsxs("span",{className:le("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",DP[n],s),...o,children:[l&&i.jsx("span",{className:le("w-1.5 h-1.5 rounded-full",l==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const WP={agentNode:Db,rootNode:Wb},Kg=220,Jg=82,_o=260,e1=130,Mn=4,Fa="__groove_root__";function bO(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function BP(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function HP(){const t=W(N=>N.teams),n=W(N=>N.activeTeamId),s=W(N=>N.agents),l=W(N=>N.switchTeam),o=W(N=>N.createTeam),u=W(N=>N.deleteTeam),d=W(N=>N.renameTeam),[O,m]=v.useState(!1),[p,x]=v.useState(""),[g,b]=v.useState(null),[S,Q]=v.useState(""),k=v.useRef(!1);function $(){const N=p.trim();!N||k.current||(k.current=!0,x(""),m(!1),o(N).finally(()=>{k.current=!1}))}function j(N){b(N.id),Q(N.name)}function P(){const N=S.trim();if(!N||!g){b(null);return}d(g,N),b(null)}return i.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[t.map(N=>{const Z=s.filter(T=>T.teamId===N.id).length,U=N.id===n,C=g===N.id,X=s.filter(T=>T.teamId===N.id&&(T.status==="running"||T.status==="starting")).length;return i.jsxs("div",{onClick:()=>!C&&l(N.id),onDoubleClick:()=>j(N),className:le("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",U?"bg-surface-0 text-text-0 font-semibold border-x border-x-border":"text-text-3 hover:text-text-1 hover:bg-surface-3/50"),children:[U&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),i.jsx(Zc,{size:13,className:U?"text-accent":"text-text-4"}),C?i.jsx("input",{value:S,onChange:T=>Q(T.target.value),onKeyDown:T=>{T.key==="Enter"&&P(),T.key==="Escape"&&b(null)},onBlur:P,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:T=>T.stopPropagation()}):i.jsx("span",{className:"truncate max-w-[120px]",children:N.name}),Z>0&&!C&&i.jsx("span",{className:le("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",X>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:Z}),!C&&i.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[i.jsx("button",{onClick:T=>{T.stopPropagation(),j(N)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:i.jsx(Cc,{size:10})}),!N.isDefault&&i.jsx("button",{onClick:T=>{T.stopPropagation(),u(N.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:i.jsx(Rt,{size:10})})]}),U&&i.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-surface-0"})]},N.id)}),O?i.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[i.jsx("input",{value:p,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&$(),N.key==="Escape"&&(m(!1),x(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:$,disabled:!p.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(oa,{size:12})}),i.jsx("button",{onClick:()=>{m(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsx("button",{onClick:()=>m(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:i.jsx(Fn,{size:14})})]})}function IP(){const t=W(C=>C.agents),n=W(C=>C.activeTeamId),s=W(C=>C.tokenTimeline),l=W(C=>C.selectAgent),o=W(C=>C.closeDetail),u=v.useMemo(()=>t.filter(C=>C.teamId===n),[t,n]),{fitView:d}=pj(),[O,m]=v.useState(0),p=v.useMemo(()=>{const C=bO(),X=u.filter(G=>G.status==="running").length,T=[{id:Fa,type:"rootNode",position:C[Fa]||{x:0,y:0},data:{agentCount:u.length,runningCount:X},draggable:!0,selectable:!1}];return u.forEach((G,E)=>{const se=G.name||G.id,re=Math.floor(E/Mn),ge=E%Mn,K=-((Math.min(u.length-re*Mn,Mn)-1)*_o)/2;T.push({id:G.id,type:"agentNode",position:C[se]||{x:K+ge*_o,y:140+re*e1},data:{agent:G,timeline:s[G.id]||[]},draggable:!0,selectable:!0})}),T},[u,s]),x=v.useMemo(()=>{const C=bO(),X=C[Fa]||{x:0,y:0};return u.map((T,G)=>{const E=T.name||T.id,se=Math.floor(G/Mn),re=G%Mn,de=-((Math.min(u.length-se*Mn,Mn)-1)*_o)/2,K=C[E]||{x:de+re*_o,y:140+se*e1},z=K.x+Kg/2-X.x,B=K.y+Jg/2-X.y;let J,fe;return Math.abs(B)>Math.abs(z)?(J=B>0?"bottom":"top",fe=B>0?"top":"bottom"):(J=z>0?"right":"left",fe=z>0?"left":"right"),{id:`e-${Fa}-${T.id}`,source:Fa,target:T.id,sourceHandle:J,targetHandle:fe,type:"default",animated:T.status==="running"}})},[u]),[g,b,S]=xj(p),[Q,k,$]=gj(x),j=v.useRef(new Set);v.useEffect(()=>{b(C=>{const X=new Map(C.map(T=>[T.id,T]));return new Set(p.map(T=>T.id)),p.map(T=>{const G=X.get(T.id);return G?{...G,data:T.data}:T})})},[p,b]),v.useEffect(()=>{k(x)},[x,k]),v.useEffect(()=>{const C=new Set(u.map(T=>T.id)),X=u.length>0&&[...C].some(T=>!j.current.has(T));j.current=C,O===0&&u.length>0?setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:0}),50):X&&setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:300}),100),m(u.length)},[u.length,u,O,d]);const P=v.useCallback((C,X)=>{X.id!==Fa&&l(X.id)},[l]),N=v.useCallback(()=>{o()},[o]),Z=v.useCallback((C,X)=>{const T=g.find(E=>E.id===Fa);if(!T)return;const G=T.position;k(E=>E.map(se=>{const re=se.source===X.id,ge=se.target===X.id;if(!re&&!ge)return se;const de=X.position,K=de.x+Kg/2-G.x,z=de.y+Jg/2-G.y;let B,J;return Math.abs(z)>Math.abs(K)?(B=z>0?"bottom":"top",J=z>0?"top":"bottom"):(B=K>0?"right":"left",J=K>0?"left":"right"),{...se,sourceHandle:B,targetHandle:J}}))},[g,k]),U=v.useCallback((C,X)=>{const T=u.find(se=>se.id===X.id),G=X.id===Fa?Fa:(T==null?void 0:T.name)||X.id,E=bO();E[G]=X.position,BP(E)},[u]);return i.jsx(bj,{nodes:g,edges:Q,nodeTypes:WP,onNodesChange:S,onEdgesChange:$,onNodeClick:P,onPaneClick:N,onNodeDrag:Z,onNodeDragStop:U,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:i.jsx(vj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function FP({onPlanner:t,onSpawn:n}){return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[i.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[i.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),i.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),i.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),i.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[i.jsxs("button",{onClick:t,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(Na,{size:24,className:"text-accent"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),i.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),i.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),i.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(Fn,{size:20,className:"text-text-1"})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),i.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),i.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),i.jsx("span",{className:"mx-1.5",children:"command palette"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),i.jsx("span",{className:"mx-1.5",children:"spawn"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),i.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const KP={backend:qb,frontend:Wf,fullstack:dn,testing:Ff,security:Fr};function JP(){var p;const t=W(x=>x.recommendedTeam),n=W(x=>x.launchRecommendedTeam);W(x=>x.checkRecommendedTeam);const[s,l]=v.useState(!1);if(!((p=t==null?void 0:t.agents)!=null&&p.length))return null;const o=t.agents,u=o.filter(x=>!x.phase||x.phase===1),d=o.filter(x=>x.phase===2);async function O(){l(!0);try{await n()}catch{}l(!1)}function m(){W.setState({recommendedTeam:null})}return i.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:i.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[i.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Eb,{size:16,className:"text-accent"}),i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),i.jsx("button",{onClick:m,className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:14})})]}),i.jsxs("div",{className:"px-4 py-3 space-y-2",children:[i.jsx("div",{className:"flex flex-wrap gap-2",children:u.map((x,g)=>{var S;const b=KP[x.role]||dn;return i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[i.jsx(b,{size:12,className:"text-text-2"}),i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans capitalize",children:x.name||x.role}),((S=x.scope)==null?void 0:S.length)>0&&i.jsxs("span",{className:"text-2xs text-text-4 font-mono",children:[x.scope[0],x.scope.length>1?` +${x.scope.length-1}`:""]})]},g)})}),d.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[i.jsx(Fr,{size:10}),i.jsxs("span",{children:[d.length," QC agent",d.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),i.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:i.jsxs(je,{variant:"primary",size:"md",onClick:O,disabled:s,className:"w-full gap-2",children:[i.jsx(Na,{size:14}),s?"Launching...":`Launch ${u.length} Agent${u.length>1?"s":""}`]})})]})})}function t1(){const t=W(b=>b.agents),n=W(b=>b.activeTeamId),s=W(b=>b.openDetail),l=W(b=>b.spawnAgent),o=W(b=>b.selectAgent);W(b=>b.recommendedTeam);const u=W(b=>b.checkRecommendedTeam);v.useEffect(()=>{if(!t.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const S=setInterval(()=>u(),5e3);return()=>clearInterval(S)},[t,u]);async function d(){try{const b=await l({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const O=t.filter(b=>b.teamId===n),m=W(b=>b.hydrated),[p,x]=v.useState(!0);v.useEffect(()=>{const b=setTimeout(()=>x(!1),1200);return()=>clearTimeout(b)},[]);const g=p||!m;return i.jsxs("div",{className:"flex flex-col h-full relative",children:[i.jsx(HP,{}),i.jsx("div",{className:"flex-1 min-h-0",children:g?i.jsxs("div",{className:le("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&m?"opacity-0":"opacity-100"),children:[i.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:i.jsx(Na,{size:16,className:"text-accent animate-pulse"})})]}),i.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):O.length===0?i.jsx(FP,{onPlanner:d,onSpawn:()=>s({type:"spawn"})}):i.jsx(mj,{children:i.jsx(IP,{})})}),i.jsx(JP,{})]})}var eN=v.createContext(void 0);function Jf(t){const n=v.useContext(eN);return t||n||"ltr"}function tN(t,[n,s]){return Math.min(s,Math.max(n,t))}function aN(t,n){return v.useReducer((s,l)=>n[s][l]??s,t)}var eh="ScrollArea",[Bb]=Ps(eh),[nN,ca]=Bb(eh),Hb=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,type:l="hover",dir:o,scrollHideDelay:u=600,...d}=t,[O,m]=v.useState(null),[p,x]=v.useState(null),[g,b]=v.useState(null),[S,Q]=v.useState(null),[k,$]=v.useState(null),[j,P]=v.useState(0),[N,Z]=v.useState(0),[U,C]=v.useState(!1),[X,T]=v.useState(!1),G=rt(n,se=>m(se)),E=Jf(o);return i.jsx(nN,{scope:s,type:l,dir:E,scrollHideDelay:u,scrollArea:O,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:S,onScrollbarXChange:Q,scrollbarXEnabled:U,onScrollbarXEnabledChange:C,scrollbarY:k,onScrollbarYChange:$,scrollbarYEnabled:X,onScrollbarYEnabledChange:T,onCornerWidthChange:P,onCornerHeightChange:Z,children:i.jsx(Be.div,{dir:E,...d,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...t.style}})})});Hb.displayName=eh;var Ib="ScrollAreaViewport",Fb=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,children:l,nonce:o,...u}=t,d=ca(Ib,s),O=v.useRef(null),m=rt(n,O,d.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),i.jsx(Be.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...t.style},children:i.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});Fb.displayName=Ib;var za="ScrollAreaScrollbar",Kb=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:d}=o,O=t.orientation==="horizontal";return v.useEffect(()=>(O?u(!0):d(!0),()=>{O?u(!1):d(!1)}),[O,u,d]),o.type==="hover"?i.jsx(sN,{...l,ref:n,forceMount:s}):o.type==="scroll"?i.jsx(lN,{...l,ref:n,forceMount:s}):o.type==="auto"?i.jsx(Jb,{...l,ref:n,forceMount:s}):o.type==="always"?i.jsx(th,{...l,ref:n}):null});Kb.displayName=za;var sN=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),[u,d]=v.useState(!1);return v.useEffect(()=>{const O=o.scrollArea;let m=0;if(O){const p=()=>{window.clearTimeout(m),d(!0)},x=()=>{m=window.setTimeout(()=>d(!1),o.scrollHideDelay)};return O.addEventListener("pointerenter",p),O.addEventListener("pointerleave",x),()=>{window.clearTimeout(m),O.removeEventListener("pointerenter",p),O.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),i.jsx(ba,{present:s||u,children:i.jsx(Jb,{"data-state":u?"visible":"hidden",...l,ref:n})})}),lN=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),u=t.orientation==="horizontal",d=Mc(()=>m("SCROLL_END"),100),[O,m]=aN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(O==="idle"){const p=window.setTimeout(()=>m("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[O,o.scrollHideDelay,m]),v.useEffect(()=>{const p=o.viewport,x=u?"scrollLeft":"scrollTop";if(p){let g=p[x];const b=()=>{const S=p[x];g!==S&&(m("SCROLL"),d()),g=S};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,u,m,d]),i.jsx(ba,{present:s||O!=="hidden",children:i.jsx(th,{"data-state":O==="hidden"?"hidden":"visible",...l,ref:n,onPointerEnter:Ee(t.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:Ee(t.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),Jb=v.forwardRef((t,n)=>{const s=ca(za,t.__scopeScrollArea),{forceMount:l,...o}=t,[u,d]=v.useState(!1),O=t.orientation==="horizontal",m=Mc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;d(O?p:x)}},10);return zl(s.viewport,m),zl(s.content,m),i.jsx(ba,{present:l||u,children:i.jsx(th,{"data-state":u?"visible":"hidden",...o,ref:n})})}),th=v.forwardRef((t,n)=>{const{orientation:s="vertical",...l}=t,o=ca(za,t.__scopeScrollArea),u=v.useRef(null),d=v.useRef(0),[O,m]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=sv(O.viewport,O.content),x={...l,sizes:O,onSizesChange:m,hasThumb:p>0&&p<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:b=>d.current=b};function g(b,S){return dN(b,d.current,O,S)}return s==="horizontal"?i.jsx(rN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollLeft,S=a1(b,O,o.dir);u.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):s==="vertical"?i.jsx(iN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollTop,S=a1(b,O);u.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),rN=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=ca(za,t.__scopeScrollArea),[d,O]=v.useState(),m=v.useRef(null),p=rt(n,m,u.onScrollbarXChange);return v.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(tv,{"data-orientation":"horizontal",...o,ref:p,sizes:s,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.x),onDragScroll:x=>t.onDragScroll(x.x),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollLeft+x.deltaX;t.onWheelScroll(b),rv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:Oc(d.paddingLeft),paddingEnd:Oc(d.paddingRight)}})}})}),iN=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=ca(za,t.__scopeScrollArea),[d,O]=v.useState(),m=v.useRef(null),p=rt(n,m,u.onScrollbarYChange);return v.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(tv,{"data-orientation":"vertical",...o,ref:p,sizes:s,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.y),onDragScroll:x=>t.onDragScroll(x.y),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollTop+x.deltaY;t.onWheelScroll(b),rv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:Oc(d.paddingTop),paddingEnd:Oc(d.paddingBottom)}})}})}),[oN,ev]=Bb(za),tv=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,sizes:l,hasThumb:o,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:O,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=t,S=ca(za,s),[Q,k]=v.useState(null),$=rt(n,G=>k(G)),j=v.useRef(null),P=v.useRef(""),N=S.viewport,Z=l.content-l.viewport,U=zt(x),C=zt(m),X=Mc(g,10);function T(G){if(j.current){const E=G.clientX-j.current.left,se=G.clientY-j.current.top;p({x:E,y:se})}}return v.useEffect(()=>{const G=E=>{const se=E.target;(Q==null?void 0:Q.contains(se))&&U(E,Z)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[N,Q,Z,U]),v.useEffect(C,[l,C]),zl(Q,X),zl(S.content,X),i.jsx(oN,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:zt(u),onThumbPointerUp:zt(d),onThumbPositionChange:C,onThumbPointerDown:zt(O),children:i.jsx(Be.div,{...b,ref:$,style:{position:"absolute",...b.style},onPointerDown:Ee(t.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),j.current=Q.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),T(G))}),onPointerMove:Ee(t.onPointerMove,T),onPointerUp:Ee(t.onPointerUp,G=>{const E=G.target;E.hasPointerCapture(G.pointerId)&&E.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),j.current=null})})})}),dc="ScrollAreaThumb",av=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ev(dc,t.__scopeScrollArea);return i.jsx(ba,{present:s||o.hasThumb,children:i.jsx(cN,{ref:n,...l})})}),cN=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,style:l,...o}=t,u=ca(dc,s),d=ev(dc,s),{onThumbPositionChange:O}=d,m=rt(n,g=>d.onThumbChange(g)),p=v.useRef(void 0),x=Mc(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const g=u.viewport;if(g){const b=()=>{if(x(),!p.current){const S=ON(g,O);p.current=S,O()}};return O(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[u.viewport,x,O]),i.jsx(Be.div,{"data-state":d.hasThumb?"visible":"hidden",...o,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:Ee(t.onPointerDownCapture,g=>{const S=g.target.getBoundingClientRect(),Q=g.clientX-S.left,k=g.clientY-S.top;d.onThumbPointerDown({x:Q,y:k})}),onPointerUp:Ee(t.onPointerUp,d.onThumbPointerUp)})});av.displayName=dc;var ah="ScrollAreaCorner",nv=v.forwardRef((t,n)=>{const s=ca(ah,t.__scopeScrollArea),l=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&l?i.jsx(uN,{...t,ref:n}):null});nv.displayName=ah;var uN=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,...l}=t,o=ca(ah,s),[u,d]=v.useState(0),[O,m]=v.useState(0),p=!!(u&&O);return zl(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),m(x)}),zl(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),d(x)}),p?i.jsx(Be.div,{...l,ref:n,style:{width:u,height:O,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Oc(t){return t?parseInt(t,10):0}function sv(t,n){const s=t/n;return isNaN(s)?0:s}function qc(t){const n=sv(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=(t.scrollbar.size-s)*n;return Math.max(l,18)}function dN(t,n,s,l="ltr"){const o=qc(s),u=o/2,d=n||u,O=o-d,m=s.scrollbar.paddingStart+d,p=s.scrollbar.size-s.scrollbar.paddingEnd-O,x=s.content-s.viewport,g=l==="ltr"?[0,x]:[x*-1,0];return lv([m,p],g)(t)}function a1(t,n,s="ltr"){const l=qc(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,u=n.scrollbar.size-o,d=n.content-n.viewport,O=u-l,m=s==="ltr"?[0,d]:[d*-1,0],p=tN(t,m);return lv([0,d],[0,O])(p)}function lv(t,n){return s=>{if(t[0]===t[1]||n[0]===n[1])return n[0];const l=(n[1]-n[0])/(t[1]-t[0]);return n[0]+l*(s-t[0])}}function rv(t,n){return t>0&&t<n}var ON=(t,n=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},l=0;return(function o(){const u={left:t.scrollLeft,top:t.scrollTop},d=s.left!==u.left,O=s.top!==u.top;(d||O)&&n(),s=u,l=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(l)};function Mc(t,n){const s=zt(t),l=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(s,n)},[s,n])}function zl(t,n){const s=zt(n);ln(()=>{let l=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(s)});return o.observe(t),()=>{window.cancelAnimationFrame(l),o.unobserve(t)}}},[t,s])}var fN=Hb,hN=Fb,n1=Kb,s1=av,mN=nv;function Ht({children:t,className:n,...s}){return i.jsxs(fN,{className:le("overflow-hidden",n),...s,children:[i.jsx(hN,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(n1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(n1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(mN,{})]})}const pN={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function xN(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return pN[n]||"text-text-3"}function gN({x:t,y:n,items:s,onClose:l}){const o=v.useRef(null);return v.useEffect(()=>{function u(d){o.current&&!o.current.contains(d.target)&&l()}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[l]),i.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:t,top:n},children:s.map((u,d)=>u.separator?i.jsx("div",{className:"h-px bg-border-subtle my-1"},d):i.jsxs("button",{onClick:()=>{u.action(),l()},className:le("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",u.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[u.icon&&i.jsx(u.icon,{size:12,className:u.danger?"text-danger":"text-text-3"}),u.label]},d))})}function fc({defaultValue:t="",placeholder:n,onSubmit:s,onCancel:l,depth:o=0}){const[u,d]=v.useState(t),O=v.useRef(null);v.useEffect(()=>{var p,x;(p=O.current)==null||p.focus(),t&&((x=O.current)==null||x.select())},[t]);function m(p){if(p.key==="Enter"){const x=u.trim();x&&s(x)}p.key==="Escape"&&l()}return i.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:i.jsx("input",{ref:O,value:u,onChange:p=>d(p.target.value),onKeyDown:m,onBlur:l,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function iv({entry:t,depth:n=0,activePath:s,onFileClick:l,onDirToggle:o,expanded:u,onContextMenu:d}){const O=t.type==="dir",m=s===t.path,p=u.has(t.path),x=n*16+8;function g(b){b.preventDefault(),b.stopPropagation(),d(b,t)}return i.jsxs("button",{onClick:()=>O?o(t.path):l(t.path),onContextMenu:g,className:le("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",m&&"bg-accent/10 text-text-0",!m&&"text-text-1"),style:{paddingLeft:x},children:[O?i.jsxs(i.Fragment,{children:[p?i.jsx(In,{size:12,className:"text-text-4 flex-shrink-0"}):i.jsx(ii,{size:12,className:"text-text-4 flex-shrink-0"}),p?i.jsx(Hr,{size:14,className:"text-accent flex-shrink-0"}):i.jsx(rT,{size:14,className:"text-text-3 flex-shrink-0"})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"w-3"}),i.jsx(F5,{size:14,className:le("flex-shrink-0",xN(t.name))})]}),i.jsx("span",{className:"truncate",children:t.name})]})}function ov({dirPath:t,depth:n,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p}){const x=d[t]||[];return v.useEffect(()=>{o.has(t)&&!d[t]&&O(t)},[o,t,d,O]),o.has(t)?i.jsxs(i.Fragment,{children:[(p==null?void 0:p.parentPath)===t&&i.jsx(fc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),x.map(g=>i.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?i.jsx(fc,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):i.jsx(iv,{entry:g,depth:n,activePath:s,onFileClick:l,onDirToggle:u,expanded:o,onContextMenu:m}),g.type==="dir"&&i.jsx(ov,{dirPath:g.path,depth:n+1,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p})]},g.path))]}):null}function bN({rootDir:t}){const n=W(T=>T.editorTreeCache),s=W(T=>T.editorActiveFile),l=W(T=>T.openFile),o=W(T=>T.fetchTreeDir),u=W(T=>T.addToast),[d,O]=v.useState(new Set([""])),[m,p]=v.useState(""),[x,g]=v.useState(null),[b,S]=v.useState(null);v.useEffect(()=>{o("")},[o,t]);function Q(T){O(G=>{const E=new Set(G);return E.has(T)?E.delete(T):E.add(T),E})}function k(T,G){g({x:T.clientX,y:T.clientY,entry:G})}function $(T){T.preventDefault(),g({x:T.clientX,y:T.clientY,entry:{type:"dir",path:"",name:"root"}})}function j(T){const G=T.split("/");return G.pop(),G.join("/")}async function P(T){O(G=>new Set([...G,T])),S({type:"file",parentPath:T,onSubmit:async G=>{const E=T?`${T}/${G}`:G;try{await ee.post("/files/create",{path:E,content:""}),o(T),l(E),u("success",`Created ${G}`)}catch(se){u("error","Create failed",se.message)}S(null)},onCancel:()=>S(null)})}async function N(T){O(G=>new Set([...G,T])),S({type:"folder",parentPath:T,onSubmit:async G=>{const E=T?`${T}/${G}`:G;try{await ee.post("/files/mkdir",{path:E}),o(T),O(se=>new Set([...se,E])),u("success",`Created ${G}/`)}catch(se){u("error","Create folder failed",se.message)}S(null)},onCancel:()=>S(null)})}async function Z(T){S({type:"rename",renamePath:T.path,onSubmit:async G=>{const E=j(T.path),se=E?`${E}/${G}`:G;try{await ee.post("/files/rename",{oldPath:T.path,newPath:se}),o(E),u("success",`Renamed to ${G}`)}catch(re){u("error","Rename failed",re.message)}S(null)},onCancel:()=>S(null)})}async function U(T){const G=T.type==="dir"?`folder "${T.name}" and all contents`:`"${T.name}"`;if(window.confirm(`Delete ${G}?`))try{await ee.delete(`/files/delete?path=${encodeURIComponent(T.path)}`),o(j(T.path)),u("success",`Deleted ${T.name}`)}catch(E){u("error","Delete failed",E.message)}}function C(T){const G=T.type==="dir",E=[];return G&&(E.push({icon:pO,label:"New File",action:()=>P(T.path)}),E.push({icon:xO,label:"New Folder",action:()=>N(T.path)})),T.name!=="root"?(E.length>0&&E.push({separator:!0}),E.push({icon:Cc,label:"Rename",action:()=>Z(T)}),E.push({icon:Xc,label:"Delete",danger:!0,action:()=>U(T)})):(E.length=0,E.push({icon:pO,label:"New File",action:()=>P("")}),E.push({icon:xO,label:"New Folder",action:()=>N("")})),E}const X=n[""]||[];return i.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:$,children:[i.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(ql,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),i.jsx("input",{value:m,onChange:T=>p(T.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),i.jsx("button",{onClick:()=>P(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:i.jsx(pO,{size:12})}),i.jsx("button",{onClick:()=>N(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:i.jsx(xO,{size:12})}),i.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:i.jsx(es,{size:12})})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&i.jsx(fc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),X.filter(T=>!m||T.name.toLowerCase().includes(m.toLowerCase())).map(T=>i.jsxs("div",{children:[(b==null?void 0:b.renamePath)===T.path?i.jsx(fc,{defaultValue:T.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):i.jsx(iv,{entry:T,depth:0,activePath:s,onFileClick:l,onDirToggle:Q,expanded:d,onContextMenu:k}),T.type==="dir"&&i.jsx(ov,{dirPath:T.path,depth:1,activePath:s,onFileClick:l,expanded:d,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:k,inlineInput:b})]},T.path))]})}),x&&i.jsx(gN,{x:x.x,y:x.y,items:C(x.entry),onClose:()=>g(null)})]})}function vN(){const t=W(u=>u.editorOpenTabs),n=W(u=>u.editorActiveFile),s=W(u=>u.editorFiles),l=W(u=>u.setActiveFile),o=W(u=>u.closeFile);return t.length===0?null:i.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:t.map(u=>{const d=u===n,O=s[u],m=O&&O.content!==O.originalContent,p=u.split("/").pop();return i.jsxs("div",{className:le("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",d?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>l(u),children:[i.jsx("span",{className:"truncate max-w-[120px]",children:p}),m&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),i.jsx("button",{onClick:x=>{x.stopPropagation(),o(u)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:i.jsx(Rt,{size:12})})]},u)})})}var l1={};class hc{constructor(n,s,l,o,u,d,O,m,p,x=0,g){this.p=n,this.stack=s,this.state=l,this.reducePos=o,this.pos=u,this.score=d,this.buffer=O,this.bufferBase=m,this.curContext=p,this.lookAhead=x,this.parent=g}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,l=0){let o=n.parser.context;return new hc(n,[],s,l,l,0,[],0,o?new r1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var s;let l=n>>19,o=n&65535,{parser:u}=this.p,d=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),O=u.dynamicPrecedence(o);if(O&&(this.score+=O),l==0){this.pushState(u.getGoto(this.state,o,!0),this.reducePos),o<u.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,d?8:4,!0),this.reduceContext(o,this.reducePos);return}let m=this.stack.length-(l-1)*3-(n&262144?6:0),p=m?this.stack[m-2]:this.p.ranges[0].from,x=this.reducePos-p;x>=2e3&&!(!((s=this.p.parser.nodeSet.types[o])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=x):this.p.lastBigReductionSize<x&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=x));let g=m?this.stack[m-1]:0,b=this.bufferBase+this.buffer.length-g;if(o<u.minRepeatTerm||n&131072){let S=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,S,b+4,!0)}if(n&262144)this.state=this.stack[m];else{let S=this.stack[m-3];this.state=u.getGoto(S,o,!0)}for(;this.stack.length>m;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,s,l,o=4,u=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let d=this,O=this.buffer.length;if(O==0&&d.parent&&(O=d.bufferBase-d.parent.bufferBase,d=d.parent),O>0&&d.buffer[O-4]==0&&d.buffer[O-1]>-1){if(s==l)return;if(d.buffer[O-2]>=s){d.buffer[O-2]=l;return}}}if(!u||this.pos==l)this.buffer.push(n,s,l,o);else{let d=this.buffer.length;if(d>0&&(this.buffer[d-4]!=0||this.buffer[d-1]<0)){let O=!1;for(let m=d;m>0&&this.buffer[m-2]>l;m-=4)if(this.buffer[m-1]>=0){O=!0;break}if(O)for(;d>0&&this.buffer[d-2]>l;)this.buffer[d]=this.buffer[d-4],this.buffer[d+1]=this.buffer[d-3],this.buffer[d+2]=this.buffer[d-2],this.buffer[d+3]=this.buffer[d-1],d-=4,o>4&&(o-=4)}this.buffer[d]=n,this.buffer[d+1]=s,this.buffer[d+2]=l,this.buffer[d+3]=o}}shift(n,s,l,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let u=n,{parser:d}=this.p;this.pos=o;let O=d.stateFlag(u,1);!O&&(o>l||s<=d.maxNode)&&(this.reducePos=o),this.pushState(u,O?l:Math.min(l,this.reducePos)),this.shiftContext(s,l),s<=d.maxNode&&this.buffer.push(s,l,o,4)}else this.pos=o,this.shiftContext(s,l),s<=this.p.parser.maxNode&&this.buffer.push(s,l,o,4)}apply(n,s,l,o){n&65536?this.reduce(n):this.shift(n,s,l,o)}useNode(n,s){let l=this.p.reused.length-1;(l<0||this.p.reused[l]!=n)&&(this.p.reused.push(n),l++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(s,o),this.buffer.push(l,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,s=n.buffer.length;for(;s>0&&n.buffer[s-2]>n.reducePos;)s-=4;let l=n.buffer.slice(s),o=n.bufferBase+s;for(;n&&o==n.bufferBase;)n=n.parent;return new hc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,l,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let l=n<=this.p.parser.maxNode;l&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,l?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new yN(this);;){let l=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(l==0)return!1;if((l&65536)==0)return!0;s.reduce(l)}}recoverByInsert(n){if(this.stack.length>=300)return[];let s=this.p.parser.nextStates(this.state);if(s.length>8||this.stack.length>=120){let o=[];for(let u=0,d;u<s.length;u+=2)(d=s[u+1])!=this.state&&this.p.parser.hasAction(d,n)&&o.push(s[u],d);if(this.stack.length<120)for(let u=0;o.length<8&&u<s.length;u+=2){let d=s[u+1];o.some((O,m)=>m&1&&O==d)||o.push(s[u],d)}s=o}let l=[];for(let o=0;o<s.length&&l.length<4;o+=2){let u=s[o+1];if(u==this.state)continue;let d=this.split();d.pushState(u,this.pos),d.storeNode(0,d.pos,d.pos,4,!0),d.shiftContext(s[o],this.pos),d.reducePos=this.pos,d.score-=200,l.push(d)}return l}forceReduce(){let{parser:n}=this.p,s=n.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!n.validAction(this.state,s)){let l=s>>19,o=s&65535,u=this.stack.length-l*3;if(u<0||n.getGoto(this.stack[u],o,!1)<0){let d=this.findForcedReduction();if(d==null)return!1;s=d}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(s),!0}findForcedReduction(){let{parser:n}=this.p,s=[],l=(o,u)=>{if(!s.includes(o))return s.push(o),n.allActions(o,d=>{if(!(d&393216))if(d&65536){let O=(d>>19)-u;if(O>1){let m=d&65535,p=this.stack.length-O*3;if(p>=0&&n.getGoto(this.stack[p],m,!1)>=0)return O<<19|65536|m}}else{let O=l(d,u+1);if(O!=null)return O}})};return l(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=n.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(s)))}reduceContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(s)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let s=new r1(this.curContext.tracker,n);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class r1{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class yN{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,l=n>>19;l==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(l-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class mc{constructor(n,s,l){this.stack=n,this.pos=s,this.index=l,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new mc(n,s,s-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new mc(this.stack,this.pos,this.index)}}function Mr(t,n=Uint16Array){if(typeof t!="string")return t;let s=null;for(let l=0,o=0;l<t.length;){let u=0;for(;;){let d=t.charCodeAt(l++),O=!1;if(d==126){u=65535;break}d>=92&&d--,d>=34&&d--;let m=d-32;if(m>=46&&(m-=46,O=!0),u+=m,O)break;u*=46}s?s[o++]=u:s=new n(u)}return s}class Wo{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const i1=new Wo;class SN{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=i1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(n,s){let l=this.range,o=this.rangeIndex,u=this.pos+n;for(;u<l.from;){if(!o)return null;let d=this.ranges[--o];u-=l.from-d.to,l=d}for(;s<0?u>l.to:u>=l.to;){if(o==this.ranges.length-1)return null;let d=this.ranges[++o];u+=d.from-l.to,l=d}return u}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let s of this.ranges)if(s.to>n)return Math.max(n,s.from);return this.end}peek(n){let s=this.chunkOff+n,l,o;if(s>=0&&s<this.chunk.length)l=this.pos+n,o=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(n,1);if(u==null)return-1;if(l=u,l>=this.chunk2Pos&&l<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(l-this.chunk2Pos);else{let d=this.rangeIndex,O=this.range;for(;O.to<=l;)O=this.ranges[++d];this.chunk2=this.input.chunk(this.chunk2Pos=l),l+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.to-l)),o=this.chunk2.charCodeAt(0)}}return l>=this.token.lookAhead&&(this.token.lookAhead=l+1),o}acceptToken(n,s=0){let l=s?this.resolveOffset(s,-1):this.pos;if(l==null||l<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=l}acceptTokenTo(n,s){this.token.value=n,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),s=this.pos+n.length;this.chunk=s>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,s){if(s?(this.token=s,s.start=n,s.lookAhead=n+1,s.value=s.extended=-1):this.token=i1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,s){if(n>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,s-this.chunkPos);if(n>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,s-this.chunk2Pos);if(n>=this.range.from&&s<=this.range.to)return this.input.read(n,s);let l="";for(let o of this.ranges){if(o.from>=s)break;o.to>n&&(l+=this.input.read(Math.max(o.from,n),Math.min(o.to,s)))}return l}}class jl{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:l}=s.p;cv(this.data,n,s,this.id,l.data,l.tokenPrecTable)}}jl.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class pc{constructor(n,s,l){this.precTable=s,this.elseToken=l,this.data=typeof n=="string"?Mr(n):n}token(n,s){let l=n.pos,o=0;for(;;){let u=n.next<0,d=n.resolveOffset(1,1);if(cv(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(u||o++,d==null)break;n.reset(d,n.token)}o&&(n.reset(l,n.token),n.acceptToken(this.elseToken,o))}}pc.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class gt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function cv(t,n,s,l,o,u){let d=0,O=1<<l,{dialect:m}=s.p.parser;e:for(;(O&t[d])!=0;){let p=t[d+1];for(let S=d+3;S<p;S+=2)if((t[S+1]&O)>0){let Q=t[S];if(m.allows(Q)&&(n.token.value==-1||n.token.value==Q||QN(Q,n.token.value,o,u))){n.acceptToken(Q);break}}let x=n.next,g=0,b=t[d+2];if(n.next<0&&b>g&&t[p+b*3-3]==65535){d=t[p+b*3-1];continue e}for(;g<b;){let S=g+b>>1,Q=p+S+(S<<1),k=t[Q],$=t[Q+1]||65536;if(x<k)b=S;else if(x>=$)g=S+1;else{d=t[Q+2],n.advance();continue e}}break}}function o1(t,n,s){for(let l=n,o;(o=t[l])!=65535;l++)if(o==s)return l-n;return-1}function QN(t,n,s,l){let o=o1(s,l,n);return o<0||o1(s,l,t)<o}const Gt=typeof process<"u"&&l1&&/\bparse\b/.test(l1.LOG);let vO=null;function c1(t,n,s){let l=t.cursor(Qc.IncludeAnonymous);for(l.moveTo(n);;)if(!(s<0?l.childBefore(n):l.childAfter(n)))for(;;){if((s<0?l.to<n:l.from>n)&&!l.type.isError)return s<0?Math.max(0,Math.min(l.to-1,n-25)):Math.min(t.length,Math.max(l.from+1,n+25));if(s<0?l.prevSibling():l.nextSibling())break;if(!l.parent())return s<0?0:t.length}}let jN=class{constructor(n,s){this.fragments=n,this.nodeSet=s,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?c1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?c1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let l=this.trees[s],o=this.index[s];if(o==l.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=l.children[o],d=this.start[s]+l.positions[o];if(d>n)return this.nextStart=d,null;if(u instanceof ma){if(d==n){if(d<this.safeFrom)return null;let O=d+u.length;if(O<=this.safeTo){let m=u.prop(sn.lookAhead);if(!m||O+m<this.fragment.to)return u}}this.index[s]++,d+u.length>=Math.max(this.safeFrom,n)&&(this.trees.push(u),this.start.push(d),this.index.push(0))}else this.index[s]++,this.nextStart=d+u.length}}};class wN{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(l=>new Wo)}getActions(n){let s=0,l=null,{parser:o}=n.p,{tokenizers:u}=o,d=o.stateSlot(n.state,3),O=n.curContext?n.curContext.hash:0,m=0;for(let p=0;p<u.length;p++){if((1<<p&d)==0)continue;let x=u[p],g=this.tokens[p];if(!(l&&!x.fallback)&&((x.contextual||g.start!=n.pos||g.mask!=d||g.context!=O)&&(this.updateCachedToken(g,x,n),g.mask=d,g.context=O),g.lookAhead>g.end+25&&(m=Math.max(g.lookAhead,m)),g.value!=0)){let b=s;if(g.extended>-1&&(s=this.addActions(n,g.extended,g.end,s)),s=this.addActions(n,g.value,g.end,s),!x.extend&&(l=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return m&&n.setLookAhead(m),!l&&n.pos==this.stream.end&&(l=new Wo,l.value=n.p.parser.eofTerm,l.start=l.end=n.pos,s=this.addActions(n,l.value,l.end,s)),this.mainToken=l,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new Wo,{pos:l,p:o}=n;return s.start=l,s.end=Math.min(l+1,o.stream.end),s.value=l==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(n,s,l){let o=this.stream.clipPos(l.pos);if(s.token(this.stream.reset(o,n),l),n.value>-1){let{parser:u}=l.p;for(let d=0;d<u.specialized.length;d++)if(u.specialized[d]==n.value){let O=u.specializers[d](this.stream.read(n.start,n.end),l);if(O>=0&&l.p.parser.dialect.allows(O>>1)){(O&1)==0?n.value=O>>1:n.extended=O>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,s,l,o){for(let u=0;u<o;u+=3)if(this.actions[u]==n)return o;return this.actions[o++]=n,this.actions[o++]=s,this.actions[o++]=l,o}addActions(n,s,l,o){let{state:u}=n,{parser:d}=n.p,{data:O}=d;for(let m=0;m<2;m++)for(let p=d.stateSlot(u,m?2:1);;p+=3){if(O[p]==65535)if(O[p+1]==1)p=nn(O,p+2);else{o==0&&O[p+1]==2&&(o=this.putAction(nn(O,p+2),s,l,o));break}O[p]==s&&(o=this.putAction(nn(O,p+1),s,l,o))}return o}}class kN{constructor(n,s,l,o){this.parser=n,this.input=s,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new SN(s,o),this.tokens=new wN(n,this.stream),this.topTerm=n.top[1];let{from:u}=o[0];this.stacks=[hc.start(this,n.top[0],u)],this.fragments=l.length&&this.stream.end-u>n.bufferLength*4?new jN(l,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,l=this.stacks=[],o,u;if(this.bigReductionCount>300&&n.length==1){let[d]=n;for(;d.forceReduce()&&d.stack.length&&d.stack[d.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let d=0;d<n.length;d++){let O=n[d];for(;;){if(this.tokens.mainToken=null,O.pos>s)l.push(O);else{if(this.advanceStack(O,l,n))continue;{o||(o=[],u=[]),o.push(O);let m=this.tokens.getMainToken(O);u.push(m.value,m.end)}}break}}if(!l.length){let d=o&&TN(o);if(d)return Gt&&console.log("Finish with "+this.stackID(d)),this.stackToTree(d);if(this.parser.strict)throw Gt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&o){let d=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,u,l);if(d)return Gt&&console.log("Force-finish "+this.stackID(d)),this.stackToTree(d.forceAll())}if(this.recovering){let d=this.recovering==1?1:this.recovering*3;if(l.length>d)for(l.sort((O,m)=>m.score-O.score);l.length>d;)l.pop();l.some(O=>O.reducePos>s)&&this.recovering--}else if(l.length>1){e:for(let d=0;d<l.length-1;d++){let O=l[d];for(let m=d+1;m<l.length;m++){let p=l[m];if(O.sameState(p)||O.buffer.length>500&&p.buffer.length>500)if((O.score-p.score||O.buffer.length-p.buffer.length)>0)l.splice(m--,1);else{l.splice(d--,1);continue e}}}l.length>12&&(l.sort((d,O)=>O.score-d.score),l.splice(12,l.length-12))}this.minStackPos=l[0].pos;for(let d=1;d<l.length;d++)l[d].pos<this.minStackPos&&(this.minStackPos=l[d].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,s,l){let o=n.pos,{parser:u}=this,d=Gt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,x=p?n.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?u.getGoto(n.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(sn.contextHash)||0)==x))return n.useNode(g,b),Gt&&console.log(d+this.stackID(n)+` (via reuse of ${u.getName(g.type.id)})`),!0;if(!(g instanceof ma)||g.children.length==0||g.positions[0]>0)break;let S=g.children[0];if(S instanceof ma&&g.positions[0]==0)g=S;else break}}let O=u.stateSlot(n.state,4);if(O>0)return n.reduce(O),Gt&&console.log(d+this.stackID(n)+` (via always-reduce ${u.getName(O&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let m=this.tokens.getActions(n);for(let p=0;p<m.length;){let x=m[p++],g=m[p++],b=m[p++],S=p==m.length||!l,Q=S?n:n.split(),k=this.tokens.mainToken;if(Q.apply(x,g,k?k.start:Q.pos,b),Gt&&console.log(d+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${u.getName(x&65535)}`} for ${u.getName(g)} @ ${o}${Q==n?"":", split"})`),S)return!0;Q.pos>o?s.push(Q):l.push(Q)}return!1}advanceFully(n,s){let l=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>l)return u1(n,s),!0}}runRecovery(n,s,l){let o=null,u=!1;for(let d=0;d<n.length;d++){let O=n[d],m=s[d<<1],p=s[(d<<1)+1],x=Gt?this.stackID(O)+" -> ":"";if(O.deadEnd&&(u||(u=!0,O.restart(),Gt&&console.log(x+this.stackID(O)+" (restarted)"),this.advanceFully(O,l))))continue;let g=O.split(),b=x;for(let S=0;S<10&&g.forceReduce()&&(Gt&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,l));S++)Gt&&(b=this.stackID(g)+" -> ");for(let S of O.recoverByInsert(m))Gt&&console.log(x+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,l);this.stream.end>O.pos?(p==O.pos&&(p++,m=0),O.recoverByDelete(m,p),Gt&&console.log(x+this.stackID(O)+` (via recover-delete ${this.parser.getName(m)})`),u1(O,l)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(n){return n.close(),ma.build({buffer:mc.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let s=(vO||(vO=new WeakMap)).get(n);return s||vO.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function u1(t,n){for(let s=0;s<n.length;s++){let l=n[s];if(l.pos==t.pos&&l.sameState(t)){n[s].score<t.score&&(n[s]=t);return}}n.push(t)}class $N{constructor(n,s,l){this.source=n,this.flags=s,this.disabled=l}allows(n){return!this.disabled||this.disabled[n]==0}}const yO=t=>t;class nh{constructor(n){this.start=n.start,this.shift=n.shift||yO,this.reduce=n.reduce||yO,this.reuse=n.reuse||yO,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class Kn extends v0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let s=n.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let O=0;O<n.repeatNodeCount;O++)s.push("");let l=Object.keys(n.topRules).map(O=>n.topRules[O][1]),o=[];for(let O=0;O<s.length;O++)o.push([]);function u(O,m,p){o[O].push([m,m.deserialize(String(p))])}if(n.nodeProps)for(let O of n.nodeProps){let m=O[0];typeof m=="string"&&(m=sn[m]);for(let p=1;p<O.length;){let x=O[p++];if(x>=0)u(x,m,O[p++]);else{let g=O[p+-x];for(let b=-x;b>0;b--)u(O[p++],m,g);p++}}}this.nodeSet=new kf(s.map((O,m)=>ni.define({name:m>=this.minRepeatTerm?void 0:O,id:m,props:o[m],top:l.indexOf(m)>-1,error:m==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(m)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=yj;let d=Mr(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let O=0;O<this.specializerSpecs.length;O++)this.specialized[O]=this.specializerSpecs[O].term;this.specializers=this.specializerSpecs.map(d1),this.states=Mr(n.states,Uint32Array),this.data=Mr(n.stateData),this.goto=Mr(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(O=>typeof O=="number"?new jl(d,O):O),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,s,l){let o=new kN(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}getGoto(n,s,l=!1){let o=this.goto;if(s>=o[0])return-1;for(let u=o[s+1];;){let d=o[u++],O=d&1,m=o[u++];if(O&&l)return m;for(let p=u+(d>>1);u<p;u++)if(o[u]==n)return m;if(O)return-1}}hasAction(n,s){let l=this.data;for(let o=0;o<2;o++)for(let u=this.stateSlot(n,o?2:1),d;;u+=3){if((d=l[u])==65535)if(l[u+1]==1)d=l[u=nn(l,u+2)];else{if(l[u+1]==2)return nn(l,u+2);break}if(d==s||d==0)return nn(l,u+1)}return 0}stateSlot(n,s){return this.states[n*6+s]}stateFlag(n,s){return(this.stateSlot(n,0)&s)>0}validAction(n,s){return!!this.allActions(n,l=>l==s?!0:null)}allActions(n,s){let l=this.stateSlot(n,4),o=l?s(l):void 0;for(let u=this.stateSlot(n,1);o==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=nn(this.data,u+2);else break;o=s(nn(this.data,u+1))}return o}nextStates(n){let s=[];for(let l=this.stateSlot(n,1);;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=nn(this.data,l+2);else break;if((this.data[l+2]&1)==0){let o=this.data[l+1];s.some((u,d)=>d&1&&u==o)||s.push(this.data[l],o)}}return s}configure(n){let s=Object.assign(Object.create(Kn.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let l=this.topRules[n.top];if(!l)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=l}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(l=>{let o=n.tokenizers.find(u=>u.from==l);return o?o.to:l})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((l,o)=>{let u=n.specializers.find(O=>O.from==l.external);if(!u)return l;let d=Object.assign(Object.assign({},l),{external:u.to});return s.specializers[o]=d1(d),d})),n.contextTracker&&(s.context=n.contextTracker),n.dialect&&(s.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(s.strict=n.strict),n.wrap&&(s.wrappers=s.wrappers.concat(n.wrap)),n.bufferLength!=null&&(s.bufferLength=n.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let s=this.dynamicPrecedences;return s==null?0:s[n]||0}parseDialect(n){let s=Object.keys(this.dialects),l=s.map(()=>!1);if(n)for(let u of n.split(" ")){let d=s.indexOf(u);d>=0&&(l[d]=!0)}let o=null;for(let u=0;u<s.length;u++)if(!l[u])for(let d=this.dialects[s[u]],O;(O=this.data[d++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[O]=1;return new $N(n,l,o)}static deserialize(n){return new Kn(n)}}function nn(t,n){return t[n]|t[n+1]<<16}function TN(t){let n=null;for(let s of t){let l=s.p.stoppedAt;(s.pos==s.p.stream.end||l!=null&&s.pos>l)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function d1(t){if(t.external){let n=t.extend?1:0;return(s,l)=>t.external(s,l)<<1|n}return t.get}const PN=316,NN=317,O1=1,zN=2,RN=3,CN=4,XN=318,_N=320,ZN=321,AN=5,EN=6,qN=0,df=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uv=125,MN=59,Of=47,YN=42,VN=43,UN=45,GN=60,LN=44,DN=63,WN=46,BN=91,HN=new nh({start:!1,shift(t,n){return n==AN||n==EN||n==_N?t:n==ZN},strict:!1}),IN=new gt((t,n)=>{let{next:s}=t;(s==uv||s==-1||n.context)&&t.acceptToken(XN)},{contextual:!0,fallback:!0}),FN=new gt((t,n)=>{let{next:s}=t,l;df.indexOf(s)>-1||s==Of&&((l=t.peek(1))==Of||l==YN)||s!=uv&&s!=MN&&s!=-1&&!n.context&&t.acceptToken(PN)},{contextual:!0}),KN=new gt((t,n)=>{t.next==BN&&!n.context&&t.acceptToken(NN)},{contextual:!0}),JN=new gt((t,n)=>{let{next:s}=t;if(s==VN||s==UN){if(t.advance(),s==t.next){t.advance();let l=!n.context&&n.canShift(O1);t.acceptToken(l?O1:zN)}}else s==DN&&t.peek(1)==WN&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(RN))},{contextual:!0});function SO(t,n){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!n&&t>=48&&t<=57}const e3=new gt((t,n)=>{if(t.next!=GN||!n.dialectEnabled(qN)||(t.advance(),t.next==Of))return;let s=0;for(;df.indexOf(t.next)>-1;)t.advance(),s++;if(SO(t.next,!0)){for(t.advance(),s++;SO(t.next,!1);)t.advance(),s++;for(;df.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==LN)return;for(let l=0;;l++){if(l==7){if(!SO(t.next,!0))return;break}if(t.next!="extends".charCodeAt(l))break;t.advance(),s++}}t.acceptToken(CN,-s)}),t3=$s({"get set async static":A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":A.operatorKeyword,"let var const using function class extends":A.definitionKeyword,"import export from":A.moduleKeyword,"with debugger new":A.keyword,TemplateString:A.special(A.string),super:A.atom,BooleanLiteral:A.bool,this:A.self,null:A.null,Star:A.modifier,VariableName:A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.function(A.variableName),VariableDefinition:A.definition(A.variableName),Label:A.labelName,PropertyName:A.propertyName,PrivatePropertyName:A.special(A.propertyName),"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),"FunctionDeclaration/VariableDefinition":A.function(A.definition(A.variableName)),"ClassDeclaration/VariableDefinition":A.definition(A.className),"NewExpression/VariableName":A.className,PropertyDefinition:A.definition(A.propertyName),PrivatePropertyDefinition:A.definition(A.special(A.propertyName)),UpdateOp:A.updateOperator,"LineComment Hashbang":A.lineComment,BlockComment:A.blockComment,Number:A.number,String:A.string,Escape:A.escape,ArithOp:A.arithmeticOperator,LogicOp:A.logicOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,RegExp:A.regexp,Equals:A.definitionOperator,Arrow:A.function(A.punctuation),": Spread":A.punctuation,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,"InterpolationStart InterpolationEnd":A.special(A.brace),".":A.derefOperator,", ;":A.separator,"@":A.meta,TypeName:A.typeName,TypeDefinition:A.definition(A.typeName),"type enum interface implements namespace module declare":A.definitionKeyword,"abstract global Privacy readonly override":A.modifier,"is keyof unique infer asserts":A.operatorKeyword,JSXAttributeValue:A.attributeValue,JSXText:A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.attributeName,"JSXBuiltin/JSXIdentifier":A.standard(A.tagName)}),a3={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},n3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},s3={__proto__:null,"<":193},l3=Kn.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_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ypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:HN,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[t3],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HU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'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[FN,KN,JN,e3,2,3,4,5,6,7,8,9,10,11,12,13,14,IN,new pc("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new pc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>a3[t]||-1},{term:343,get:t=>n3[t]||-1},{term:95,get:t=>s3[t]||-1}],tokenPrec:15201}),dv=[Ie("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ie("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ie("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ie("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ie("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ie(`try {
|
|
519
|
+
*/const bP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Na=ae("zap",bP),vP={success:Br,error:cn,info:zb,warning:_c},yP={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},SP={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},QP={success:3e3,error:0,info:5e3,warning:5e3};function jP({toast:t}){const n=D(o=>o.removeToast),s=vP[t.type]||zb,l=QP[t.type];return v.useEffect(()=>{if(!l)return;const o=setTimeout(()=>n(t.id),l);return()=>clearTimeout(o)},[t.id,l,n]),i.jsxs(g0.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:le("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",yP[t.type]),children:[i.jsx(s,{size:16,className:le("flex-shrink-0",SP[t.type])}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&i.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),i.jsx("button",{onClick:o=>{o.stopPropagation(),n(t.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:i.jsx(Rt,{size:14})})]})}function wP(){const t=D(n=>n.toasts);return i.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:i.jsx(x0,{mode:"popLayout",children:t.slice(-3).map(n=>i.jsx(jP,{toast:n},n.id))})})}const kP=[{id:"agents",icon:Xb,label:"Agents"},{id:"editor",icon:dn,label:"Editor"},{id:"dashboard",icon:Rc,label:"Dashboard"},{id:"marketplace",icon:Ab,label:"Marketplace"},{id:"teams",icon:Zc,label:"Teams"}],$P=[{id:"journalist",icon:Ir,label:"Journalist",panel:!0},{id:"settings",icon:Mb,label:"Settings",nav:!0}];function TP({activeView:t,detailPanel:n,onNavigate:s,onTogglePanel:l}){return i.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[i.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:kP.map(o=>i.jsx(Bg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>s(o.id),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",t===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:t===o.id?2:1.5})})},o.id))}),i.jsx("div",{className:"flex-1"}),i.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:$P.map(o=>{const u=o.panel?(n==null?void 0:n.type)===o.id:t===o.id;return i.jsx(Bg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>o.panel?l(o.id):s((o.nav,o.id)),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",u?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:u?2:1.5})})},o.id)})})]})}const PP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function NP({activeView:t,connected:n,daemonHost:s,editorActiveFile:l,onOpenCommandPalette:o,onSpawn:u}){const d=["Groove",PP[t]||t];return t==="editor"&&l&&d.push(l.split("/").pop()),i.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&i.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:s}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsxs("button",{onClick:o,className:le("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[i.jsx(ql,{size:14,className:"flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:d.map((O,m)=>i.jsxs("span",{className:"flex items-center gap-1",children:[m>0&&i.jsx(ii,{size:11,className:"text-text-4"}),i.jsx("span",{className:le(m===d.length-1?"text-text-2":"text-text-4"),children:O})]},m))}),n&&i.jsxs("button",{onClick:u,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[i.jsx(Fn,{size:14}),"Spawn"]})]})}const zP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function Jf(t){return zP[t]||"var(--color-text-3)"}const RP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"}};function Lb(t){const n=(t||"").toLowerCase();return RP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function Pl({status:t,size:n="md",className:s}){const l=t==="running"||t==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return i.jsx("span",{className:le("rounded-full inline-block flex-shrink-0",l&&"animate-pulse",o,s),style:{background:Jf(t)}})}function ct(t){return t==null||isNaN(t)?"0":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(t).toLocaleString()}function Ac(t){return t==null||isNaN(t)?"$0":t>=1e3?"$"+(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t>=1||t>=.01?"$"+t.toFixed(2):"$"+t.toFixed(3)}function Nl(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function Ec(t){if(!t||t<0)return"0s";const n=Math.floor(t/86400),s=Math.floor(t%86400/3600),l=Math.floor(t%3600/60),o=Math.floor(t%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${l}m`:l>0?`${l}m ${o}s`:`${o}s`}function Ct(t){if(!t)return"";const n=(Date.now()-new Date(t).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function CP({connected:t,agentCount:n,runningCount:s,uptime:l,terminalVisible:o,onToggleTerminal:u}){return i.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(Pl,{status:t?"running":"crashed",size:"sm"}),i.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&l>0&&i.jsxs("span",{className:"text-text-4",children:["Up ",Ec(l)]}),t&&n>0&&i.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),i.jsx("div",{className:"flex-1"}),i.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[i.jsx(x5,{size:12}),i.jsx("span",{children:"Docs"})]}),i.jsxs("button",{onClick:u,className:le("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[i.jsx(ui,{size:12}),i.jsx("span",{children:"Terminal"}),i.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function XP({children:t,width:n,onWidthChange:s,onClose:l,className:o}){const u=v.useRef(!1),d=v.useRef(0),O=v.useRef(0),m=v.useCallback(p=>{p.preventDefault(),u.current=!0,d.current=p.clientX,O.current=n;function x(b){if(!u.current)return;const S=d.current-b.clientX,Q=Math.min(Math.max(O.current+S,380),window.innerWidth*.65);s(Q)}function g(){u.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g)}document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)},[n,s]);return i.jsxs("aside",{className:le("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[i.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:m}),i.jsx("button",{onClick:l,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:14})}),i.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const _P=[{id:"nav:agents",label:"Go to Agents",icon:Xb,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:dn,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Rc,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Ab,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:Zc,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:Fn,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:ui,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:Ir,category:"Actions",action:t=>{var n;((n=t.detailPanel)==null?void 0:n.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function ZP(){const t=D(S=>S.commandPaletteOpen),n=D(S=>S.toggleCommandPalette),s=D(S=>S.agents),l=D,[o,u]=v.useState(""),[d,O]=v.useState(0),m=v.useRef(null),p=v.useMemo(()=>{const S=s.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:ci,category:"Agents",action:k=>{k.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:El,category:"Agents",action:k=>{k.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:Ff,category:"Agents",action:k=>{k.killAgent(Q.id)}}]:[]]);return[..._P,...S]},[s]),x=v.useMemo(()=>{if(!o.trim())return p.slice(0,12);const S=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(S)||Q.category.toLowerCase().includes(S)).slice(0,12)},[p,o]);v.useEffect(()=>{t&&(u(""),O(0),setTimeout(()=>{var S;return(S=m.current)==null?void 0:S.focus()},50))},[t]),v.useEffect(()=>{d>=x.length&&O(Math.max(0,x.length-1))},[x.length,d]);function g(S){S.action(l.getState()),n()}function b(S){S.key==="ArrowDown"?(S.preventDefault(),O(Q=>Math.min(Q+1,x.length-1))):S.key==="ArrowUp"?(S.preventDefault(),O(Q=>Math.max(Q-1,0))):S.key==="Enter"&&x[d]?(S.preventDefault(),g(x[d])):S.key==="Escape"&&n()}return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),i.jsx(x0,{children:i.jsxs(g0.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[i.jsx(ql,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("input",{ref:m,value:o,onChange:S=>{u(S.target.value),O(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),i.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&i.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((S,Q)=>i.jsxs("button",{onClick:()=>g(S),onMouseEnter:()=>O(Q),className:le("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===d?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[i.jsx(S.icon,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:S.label}),i.jsx("span",{className:"text-2xs text-text-4",children:S.category}),S.shortcut&&i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:S.shortcut})]},S.id))]})]})})]}):null}function AP({children:t,detailContent:n,terminalContent:s}){const l=D(C=>C.activeView),o=D(C=>C.detailPanel),u=D(C=>C.connected),d=D(C=>C.tunneled),O=D(C=>C.daemonHost),m=D(C=>C.agents),p=D(C=>C.editorActiveFile),x=D(C=>C.detailPanelWidth),g=D(C=>C.terminalVisible),b=D(C=>C.terminalFullHeight),S=D(C=>C.setActiveView),Q=D(C=>C.openDetail),k=D(C=>C.closeDetail),T=D(C=>C.setDetailPanelWidth),j=D(C=>C.setTerminalVisible),P=D(C=>C.toggleCommandPalette),N=v.useMemo(()=>m.filter(C=>C.status==="running").length,[m]),Z=v.useMemo(()=>[{key:"k",meta:!0,handler:()=>D.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>D.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const C=D.getState();C.setTerminalVisible(!C.terminalVisible)}},{key:"n",meta:!0,handler:()=>D.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>D.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>D.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>D.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>D.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>D.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const C=D.getState();C.commandPaletteOpen?C.toggleCommandPalette():C.detailPanel&&C.closeDetail()}}],[]);aw(Z);const U=o&&o.type!=="spawn";return i.jsx(r5,{children:i.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[i.jsx(NP,{activeView:l,connected:u,tunneled:d,daemonHost:O,editorActiveFile:p,onOpenCommandPalette:P,onSpawn:()=>Q({type:"spawn"})}),i.jsxs("div",{className:"flex-1 flex min-h-0",children:[i.jsx(TP,{activeView:l,detailPanel:o,onNavigate:S,onTogglePanel:C=>{(o==null?void 0:o.type)===C?k():Q({type:C})}}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&i.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),U&&i.jsx(XP,{width:x,onWidthChange:T,onClose:k,children:n})]}),i.jsx(CP,{connected:u,agentCount:m.length,runningCount:N,terminalVisible:g,onToggleTerminal:()=>j(!g)}),i.jsx(ZP,{}),i.jsx(wP,{})]})})}const EP=[];function qP(t){if(!t||t==="auto")return"auto";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):t.startsWith("gpt-")?t.toUpperCase().replace("GPT-","GPT-"):t}function MP(t){if(!t)return null;const n=t.toLowerCase();return n.includes("read")?"READ":n.includes("edit")||n.includes("writ")?"WRITE":n.includes("search")||n.includes("grep")||n.includes("glob")?"SEARCH":n.includes("bash")||n.includes("exec")||n.includes("running")?"EXEC":n.includes("test")?"TEST":n.includes("error")||n.includes("fail")?"ERR":n.includes("complet")||n.includes("done")?"DONE":"WORK"}function YP(t){if(!t)return"";const n=Math.floor((Date.now()-t)/1e3);return n<60?`${n}s`:n<3600?`${Math.floor(n/60)}m`:`${Math.floor(n/3600)}h`}function VP({agent:t}){const s=(D(l=>l.activityLog[t.id])||EP).slice(-8);return i.jsx("div",{className:"absolute left-full top-0 ml-2 z-50 pointer-events-none",style:{width:220,animation:"tooltip-slide-in 0.15s ease-out"},children:i.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&i.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:i.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?i.jsxs("div",{children:[i.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:i.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((l,o)=>{var O;const u=MP(l.text),d=((O=l.text)==null?void 0:O.length)>45?l.text.slice(0,45)+"...":l.text;return i.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[i.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:YP(l.timestamp)}),u&&i.jsx("span",{className:le("text-[7px] font-mono w-7 flex-shrink-0 text-center rounded-sm px-0.5 py-px",u==="ERR"?"text-[#e06c75] bg-[#e06c75]/10":"text-[#505862] bg-[#505862]/10"),children:u}),i.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:d})]},o)}),i.jsx("div",{className:"h-1.5"})]}):i.jsx("div",{className:"px-2.5 py-3",children:i.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const UP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},Db=v.memo(({data:t,selected:n})=>{const{agent:s}=t,l=s.status==="running"||s.status==="starting",o=Math.round((s.contextUsage||0)*100),u=Jf(s.status),d=s.tokensUsed||0,[O,m]=v.useState(!1);return i.jsxs("div",{className:"relative",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[i.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${n?"#2e323a":"#262a32"}`,borderRadius:4},children:[i.jsx(Gn,{id:"top",type:"target",position:Ln.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"bottom",type:"target",position:Ln.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"left",type:"target",position:Ln.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Gn,{id:"right",type:"target",position:Ln.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),l&&i.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:i.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),i.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),i.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:u,background:u+"12"},children:UP[s.status]||s.status})]}),i.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[i.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),i.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),i.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:qP(s.model)})]})]}),i.jsxs("div",{className:"px-3 pt-1 pb-2",children:[i.jsxs("div",{className:"flex items-baseline gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:ct(d)}),i.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),i.jsx("span",{className:"flex-1"}),i.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),i.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm bg-[#262a32] overflow-hidden",children:i.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}})})]})]}),O&&i.jsx(VP,{agent:s})]})});Db.displayName="AgentNode";const Wb=v.memo(({data:t})=>{const{agentCount:n,runningCount:s}=t,l=s>0,o={background:"transparent",border:0,width:2,height:2};return i.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[i.jsx("div",{className:le("absolute inset-0 rounded-full transition-all duration-500",l&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${l?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),i.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:l?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:l?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),i.jsx("div",{className:le("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",l?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:i.jsx("img",{src:"/favicon.png",alt:"G",className:le("h-7 w-7 rounded-full transition-opacity",l?"opacity-90":"opacity-60")})}),n>0&&i.jsx("div",{className:le("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",l?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),i.jsx(Gn,{id:"bottom",type:"source",position:Ln.Bottom,style:o}),i.jsx(Gn,{id:"right",type:"source",position:Ln.Right,style:o}),i.jsx(Gn,{id:"left",type:"source",position:Ln.Left,style:o}),i.jsx(Gn,{id:"top",type:"source",position:Ln.Top,style:o})]})});Wb.displayName="RootNode";const GP={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},LP={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},je=v.forwardRef(({className:t,variant:n="secondary",size:s="md",children:l,...o},u)=>i.jsx("button",{ref:u,className:le("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",GP[n],LP[s],t),...o,children:l}));je.displayName="Button";const DP={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function We({children:t,variant:n="default",className:s,dot:l,...o}){return i.jsxs("span",{className:le("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",DP[n],s),...o,children:[l&&i.jsx("span",{className:le("w-1.5 h-1.5 rounded-full",l==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const WP={agentNode:Db,rootNode:Wb},Jg=220,e1=82,_o=260,bO=130,Mn=4,Fa="__groove_root__";function vO(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function BP(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function HP(){const t=D(N=>N.teams),n=D(N=>N.activeTeamId),s=D(N=>N.agents),l=D(N=>N.switchTeam),o=D(N=>N.createTeam),u=D(N=>N.deleteTeam),d=D(N=>N.renameTeam),[O,m]=v.useState(!1),[p,x]=v.useState(""),[g,b]=v.useState(null),[S,Q]=v.useState(""),k=v.useRef(!1);function T(){const N=p.trim();!N||k.current||(k.current=!0,x(""),m(!1),o(N).finally(()=>{k.current=!1}))}function j(N){b(N.id),Q(N.name)}function P(){const N=S.trim();if(!N||!g){b(null);return}d(g,N),b(null)}return i.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[t.map(N=>{const Z=s.filter($=>$.teamId===N.id).length,U=N.id===n,C=g===N.id,X=s.filter($=>$.teamId===N.id&&($.status==="running"||$.status==="starting")).length;return i.jsxs("div",{onClick:()=>!C&&l(N.id),onDoubleClick:()=>j(N),className:le("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",U?"bg-surface-0 text-text-0 font-semibold border-x border-x-border":"text-text-3 hover:text-text-1 hover:bg-surface-3/50"),children:[U&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),i.jsx(Zc,{size:13,className:U?"text-accent":"text-text-4"}),C?i.jsx("input",{value:S,onChange:$=>Q($.target.value),onKeyDown:$=>{$.key==="Enter"&&P(),$.key==="Escape"&&b(null)},onBlur:P,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:$=>$.stopPropagation()}):i.jsx("span",{className:"truncate max-w-[120px]",children:N.name}),Z>0&&!C&&i.jsx("span",{className:le("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",X>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:Z}),!C&&i.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[i.jsx("button",{onClick:$=>{$.stopPropagation(),j(N)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:i.jsx(Cc,{size:10})}),!N.isDefault&&i.jsx("button",{onClick:$=>{$.stopPropagation(),u(N.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:i.jsx(Rt,{size:10})})]}),U&&i.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-surface-0"})]},N.id)}),O?i.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[i.jsx("input",{value:p,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&T(),N.key==="Escape"&&(m(!1),x(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:T,disabled:!p.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(oa,{size:12})}),i.jsx("button",{onClick:()=>{m(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsx("button",{onClick:()=>m(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:i.jsx(Fn,{size:14})})]})}function IP(){const t=D(C=>C.agents),n=D(C=>C.activeTeamId),s=D(C=>C.tokenTimeline),l=D(C=>C.selectAgent),o=D(C=>C.closeDetail),u=v.useMemo(()=>t.filter(C=>C.teamId===n),[t,n]),{fitView:d}=pj(),[O,m]=v.useState(0),p=v.useMemo(()=>{const C=vO(),X=u.filter(re=>re.status==="running").length,$=[{id:Fa,type:"rootNode",position:C[Fa]||{x:0,y:0},data:{agentCount:u.length,runningCount:X},draggable:!0,selectable:!1}],W=new Set,E=(re,xe)=>`${Math.round(re/100)},${Math.round(xe/100)}`,ne=[];u.forEach((re,xe)=>{const ie=re.name||re.id;if(C[ie]){const J=C[ie];W.add(E(J.x,J.y)),$.push({id:re.id,type:"agentNode",position:J,data:{agent:re,timeline:s[re.id]||[]},draggable:!0,selectable:!0})}else ne.push({agent:re,index:xe})});for(const{agent:re,index:xe}of ne){const ie=Math.floor(xe/Mn),J=xe%Mn;let I={x:-((Math.min(u.length-ie*Mn,Mn)-1)*_o)/2+J*_o,y:140+ie*bO};for(;W.has(E(I.x,I.y));)I={x:I.x,y:I.y+bO};W.add(E(I.x,I.y)),$.push({id:re.id,type:"agentNode",position:I,data:{agent:re,timeline:s[re.id]||[]},draggable:!0,selectable:!0})}return $},[u,s]),x=v.useMemo(()=>{const C=vO(),X=C[Fa]||{x:0,y:0};return u.map(($,W)=>{const E=$.name||$.id,ne=Math.floor(W/Mn),re=W%Mn,ie=-((Math.min(u.length-ne*Mn,Mn)-1)*_o)/2,J=C[E]||{x:ie+re*_o,y:140+ne*bO},z=J.x+Jg/2-X.x,B=J.y+e1/2-X.y;let I,fe;return Math.abs(B)>Math.abs(z)?(I=B>0?"bottom":"top",fe=B>0?"top":"bottom"):(I=z>0?"right":"left",fe=z>0?"left":"right"),{id:`e-${Fa}-${$.id}`,source:Fa,target:$.id,sourceHandle:I,targetHandle:fe,type:"default",animated:$.status==="running"}})},[u]),[g,b,S]=xj(p),[Q,k,T]=gj(x),j=v.useRef(new Set);v.useEffect(()=>{b(C=>{const X=new Map(C.map($=>[$.id,$]));return new Set(p.map($=>$.id)),p.map($=>{const W=X.get($.id);return W?{...W,data:$.data}:$})})},[p,b]),v.useEffect(()=>{k(x)},[x,k]),v.useEffect(()=>{const C=new Set(u.map($=>$.id)),X=u.length>0&&[...C].some($=>!j.current.has($));j.current=C,O===0&&u.length>0?setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:0}),50):X&&setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:300}),100),m(u.length)},[u.length,u,O,d]);const P=v.useCallback((C,X)=>{X.id!==Fa&&l(X.id)},[l]),N=v.useCallback(()=>{o()},[o]),Z=v.useCallback((C,X)=>{const $=g.find(E=>E.id===Fa);if(!$)return;const W=$.position;k(E=>E.map(ne=>{const re=ne.source===X.id,xe=ne.target===X.id;if(!re&&!xe)return ne;const ie=X.position,J=ie.x+Jg/2-W.x,z=ie.y+e1/2-W.y;let B,I;return Math.abs(z)>Math.abs(J)?(B=z>0?"bottom":"top",I=z>0?"top":"bottom"):(B=J>0?"right":"left",I=J>0?"left":"right"),{...ne,sourceHandle:B,targetHandle:I}}))},[g,k]),U=v.useCallback((C,X)=>{const $=u.find(ne=>ne.id===X.id),W=X.id===Fa?Fa:($==null?void 0:$.name)||X.id,E=vO();E[W]=X.position,BP(E)},[u]);return i.jsx(bj,{nodes:g,edges:Q,nodeTypes:WP,onNodesChange:S,onEdgesChange:T,onNodeClick:P,onPaneClick:N,onNodeDrag:Z,onNodeDragStop:U,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:i.jsx(vj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function FP({onPlanner:t,onSpawn:n}){return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[i.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[i.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),i.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),i.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),i.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[i.jsxs("button",{onClick:t,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(Na,{size:24,className:"text-accent"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),i.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),i.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),i.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(Fn,{size:20,className:"text-text-1"})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),i.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),i.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),i.jsx("span",{className:"mx-1.5",children:"command palette"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),i.jsx("span",{className:"mx-1.5",children:"spawn"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),i.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const KP={backend:qb,frontend:Bf,fullstack:dn,testing:Kf,security:Fr};function JP(){var p;const t=D(x=>x.recommendedTeam),n=D(x=>x.launchRecommendedTeam);D(x=>x.checkRecommendedTeam);const[s,l]=v.useState(!1);if(!((p=t==null?void 0:t.agents)!=null&&p.length))return null;const o=t.agents,u=o.filter(x=>!x.phase||x.phase===1),d=o.filter(x=>x.phase===2);async function O(){l(!0);try{await n()}catch{}l(!1)}function m(){D.setState({recommendedTeam:null})}return i.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:i.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[i.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Eb,{size:16,className:"text-accent"}),i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),i.jsx("button",{onClick:m,className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:14})})]}),i.jsxs("div",{className:"px-4 py-3 space-y-2",children:[i.jsx("div",{className:"flex flex-wrap gap-2",children:u.map((x,g)=>{var S;const b=KP[x.role]||dn;return i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[i.jsx(b,{size:12,className:"text-text-2"}),i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans capitalize",children:x.name||x.role}),((S=x.scope)==null?void 0:S.length)>0&&i.jsxs("span",{className:"text-2xs text-text-4 font-mono",children:[x.scope[0],x.scope.length>1?` +${x.scope.length-1}`:""]})]},g)})}),d.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[i.jsx(Fr,{size:10}),i.jsxs("span",{children:[d.length," QC agent",d.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),i.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:i.jsxs(je,{variant:"primary",size:"md",onClick:O,disabled:s,className:"w-full gap-2",children:[i.jsx(Na,{size:14}),s?"Launching...":`Launch ${u.length} Agent${u.length>1?"s":""}`]})})]})})}function t1(){const t=D(b=>b.agents),n=D(b=>b.activeTeamId),s=D(b=>b.openDetail),l=D(b=>b.spawnAgent),o=D(b=>b.selectAgent);D(b=>b.recommendedTeam);const u=D(b=>b.checkRecommendedTeam);v.useEffect(()=>{if(!t.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const S=setInterval(()=>u(),5e3);return()=>clearInterval(S)},[t,u]);async function d(){try{const b=await l({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const O=t.filter(b=>b.teamId===n),m=D(b=>b.hydrated),[p,x]=v.useState(!0);v.useEffect(()=>{const b=setTimeout(()=>x(!1),1200);return()=>clearTimeout(b)},[]);const g=p||!m;return i.jsxs("div",{className:"flex flex-col h-full relative",children:[i.jsx(HP,{}),i.jsx("div",{className:"flex-1 min-h-0",children:g?i.jsxs("div",{className:le("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&m?"opacity-0":"opacity-100"),children:[i.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:i.jsx(Na,{size:16,className:"text-accent animate-pulse"})})]}),i.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):O.length===0?i.jsx(FP,{onPlanner:d,onSpawn:()=>s({type:"spawn"})}):i.jsx(mj,{children:i.jsx(IP,{})})}),i.jsx(JP,{})]})}var eN=v.createContext(void 0);function eh(t){const n=v.useContext(eN);return t||n||"ltr"}function tN(t,[n,s]){return Math.min(s,Math.max(n,t))}function aN(t,n){return v.useReducer((s,l)=>n[s][l]??s,t)}var th="ScrollArea",[Bb]=Ps(th),[nN,ca]=Bb(th),Hb=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,type:l="hover",dir:o,scrollHideDelay:u=600,...d}=t,[O,m]=v.useState(null),[p,x]=v.useState(null),[g,b]=v.useState(null),[S,Q]=v.useState(null),[k,T]=v.useState(null),[j,P]=v.useState(0),[N,Z]=v.useState(0),[U,C]=v.useState(!1),[X,$]=v.useState(!1),W=rt(n,ne=>m(ne)),E=eh(o);return i.jsx(nN,{scope:s,type:l,dir:E,scrollHideDelay:u,scrollArea:O,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:S,onScrollbarXChange:Q,scrollbarXEnabled:U,onScrollbarXEnabledChange:C,scrollbarY:k,onScrollbarYChange:T,scrollbarYEnabled:X,onScrollbarYEnabledChange:$,onCornerWidthChange:P,onCornerHeightChange:Z,children:i.jsx(Be.div,{dir:E,...d,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...t.style}})})});Hb.displayName=th;var Ib="ScrollAreaViewport",Fb=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,children:l,nonce:o,...u}=t,d=ca(Ib,s),O=v.useRef(null),m=rt(n,O,d.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),i.jsx(Be.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...t.style},children:i.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});Fb.displayName=Ib;var za="ScrollAreaScrollbar",Kb=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:d}=o,O=t.orientation==="horizontal";return v.useEffect(()=>(O?u(!0):d(!0),()=>{O?u(!1):d(!1)}),[O,u,d]),o.type==="hover"?i.jsx(sN,{...l,ref:n,forceMount:s}):o.type==="scroll"?i.jsx(lN,{...l,ref:n,forceMount:s}):o.type==="auto"?i.jsx(Jb,{...l,ref:n,forceMount:s}):o.type==="always"?i.jsx(ah,{...l,ref:n}):null});Kb.displayName=za;var sN=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),[u,d]=v.useState(!1);return v.useEffect(()=>{const O=o.scrollArea;let m=0;if(O){const p=()=>{window.clearTimeout(m),d(!0)},x=()=>{m=window.setTimeout(()=>d(!1),o.scrollHideDelay)};return O.addEventListener("pointerenter",p),O.addEventListener("pointerleave",x),()=>{window.clearTimeout(m),O.removeEventListener("pointerenter",p),O.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),i.jsx(ba,{present:s||u,children:i.jsx(Jb,{"data-state":u?"visible":"hidden",...l,ref:n})})}),lN=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ca(za,t.__scopeScrollArea),u=t.orientation==="horizontal",d=Mc(()=>m("SCROLL_END"),100),[O,m]=aN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(O==="idle"){const p=window.setTimeout(()=>m("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[O,o.scrollHideDelay,m]),v.useEffect(()=>{const p=o.viewport,x=u?"scrollLeft":"scrollTop";if(p){let g=p[x];const b=()=>{const S=p[x];g!==S&&(m("SCROLL"),d()),g=S};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,u,m,d]),i.jsx(ba,{present:s||O!=="hidden",children:i.jsx(ah,{"data-state":O==="hidden"?"hidden":"visible",...l,ref:n,onPointerEnter:Ee(t.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:Ee(t.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),Jb=v.forwardRef((t,n)=>{const s=ca(za,t.__scopeScrollArea),{forceMount:l,...o}=t,[u,d]=v.useState(!1),O=t.orientation==="horizontal",m=Mc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;d(O?p:x)}},10);return zl(s.viewport,m),zl(s.content,m),i.jsx(ba,{present:l||u,children:i.jsx(ah,{"data-state":u?"visible":"hidden",...o,ref:n})})}),ah=v.forwardRef((t,n)=>{const{orientation:s="vertical",...l}=t,o=ca(za,t.__scopeScrollArea),u=v.useRef(null),d=v.useRef(0),[O,m]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=sv(O.viewport,O.content),x={...l,sizes:O,onSizesChange:m,hasThumb:p>0&&p<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:b=>d.current=b};function g(b,S){return dN(b,d.current,O,S)}return s==="horizontal"?i.jsx(rN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollLeft,S=a1(b,O,o.dir);u.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):s==="vertical"?i.jsx(iN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollTop,S=a1(b,O);u.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),rN=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=ca(za,t.__scopeScrollArea),[d,O]=v.useState(),m=v.useRef(null),p=rt(n,m,u.onScrollbarXChange);return v.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(tv,{"data-orientation":"horizontal",...o,ref:p,sizes:s,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.x),onDragScroll:x=>t.onDragScroll(x.x),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollLeft+x.deltaX;t.onWheelScroll(b),rv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:Oc(d.paddingLeft),paddingEnd:Oc(d.paddingRight)}})}})}),iN=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=ca(za,t.__scopeScrollArea),[d,O]=v.useState(),m=v.useRef(null),p=rt(n,m,u.onScrollbarYChange);return v.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(tv,{"data-orientation":"vertical",...o,ref:p,sizes:s,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.y),onDragScroll:x=>t.onDragScroll(x.y),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollTop+x.deltaY;t.onWheelScroll(b),rv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:Oc(d.paddingTop),paddingEnd:Oc(d.paddingBottom)}})}})}),[oN,ev]=Bb(za),tv=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,sizes:l,hasThumb:o,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:O,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=t,S=ca(za,s),[Q,k]=v.useState(null),T=rt(n,W=>k(W)),j=v.useRef(null),P=v.useRef(""),N=S.viewport,Z=l.content-l.viewport,U=zt(x),C=zt(m),X=Mc(g,10);function $(W){if(j.current){const E=W.clientX-j.current.left,ne=W.clientY-j.current.top;p({x:E,y:ne})}}return v.useEffect(()=>{const W=E=>{const ne=E.target;(Q==null?void 0:Q.contains(ne))&&U(E,Z)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[N,Q,Z,U]),v.useEffect(C,[l,C]),zl(Q,X),zl(S.content,X),i.jsx(oN,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:zt(u),onThumbPointerUp:zt(d),onThumbPositionChange:C,onThumbPointerDown:zt(O),children:i.jsx(Be.div,{...b,ref:T,style:{position:"absolute",...b.style},onPointerDown:Ee(t.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),j.current=Q.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),$(W))}),onPointerMove:Ee(t.onPointerMove,$),onPointerUp:Ee(t.onPointerUp,W=>{const E=W.target;E.hasPointerCapture(W.pointerId)&&E.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=P.current,S.viewport&&(S.viewport.style.scrollBehavior=""),j.current=null})})})}),dc="ScrollAreaThumb",av=v.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=ev(dc,t.__scopeScrollArea);return i.jsx(ba,{present:s||o.hasThumb,children:i.jsx(cN,{ref:n,...l})})}),cN=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,style:l,...o}=t,u=ca(dc,s),d=ev(dc,s),{onThumbPositionChange:O}=d,m=rt(n,g=>d.onThumbChange(g)),p=v.useRef(void 0),x=Mc(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const g=u.viewport;if(g){const b=()=>{if(x(),!p.current){const S=ON(g,O);p.current=S,O()}};return O(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[u.viewport,x,O]),i.jsx(Be.div,{"data-state":d.hasThumb?"visible":"hidden",...o,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:Ee(t.onPointerDownCapture,g=>{const S=g.target.getBoundingClientRect(),Q=g.clientX-S.left,k=g.clientY-S.top;d.onThumbPointerDown({x:Q,y:k})}),onPointerUp:Ee(t.onPointerUp,d.onThumbPointerUp)})});av.displayName=dc;var nh="ScrollAreaCorner",nv=v.forwardRef((t,n)=>{const s=ca(nh,t.__scopeScrollArea),l=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&l?i.jsx(uN,{...t,ref:n}):null});nv.displayName=nh;var uN=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,...l}=t,o=ca(nh,s),[u,d]=v.useState(0),[O,m]=v.useState(0),p=!!(u&&O);return zl(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),m(x)}),zl(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),d(x)}),p?i.jsx(Be.div,{...l,ref:n,style:{width:u,height:O,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Oc(t){return t?parseInt(t,10):0}function sv(t,n){const s=t/n;return isNaN(s)?0:s}function qc(t){const n=sv(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=(t.scrollbar.size-s)*n;return Math.max(l,18)}function dN(t,n,s,l="ltr"){const o=qc(s),u=o/2,d=n||u,O=o-d,m=s.scrollbar.paddingStart+d,p=s.scrollbar.size-s.scrollbar.paddingEnd-O,x=s.content-s.viewport,g=l==="ltr"?[0,x]:[x*-1,0];return lv([m,p],g)(t)}function a1(t,n,s="ltr"){const l=qc(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,u=n.scrollbar.size-o,d=n.content-n.viewport,O=u-l,m=s==="ltr"?[0,d]:[d*-1,0],p=tN(t,m);return lv([0,d],[0,O])(p)}function lv(t,n){return s=>{if(t[0]===t[1]||n[0]===n[1])return n[0];const l=(n[1]-n[0])/(t[1]-t[0]);return n[0]+l*(s-t[0])}}function rv(t,n){return t>0&&t<n}var ON=(t,n=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},l=0;return(function o(){const u={left:t.scrollLeft,top:t.scrollTop},d=s.left!==u.left,O=s.top!==u.top;(d||O)&&n(),s=u,l=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(l)};function Mc(t,n){const s=zt(t),l=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(s,n)},[s,n])}function zl(t,n){const s=zt(n);ln(()=>{let l=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(s)});return o.observe(t),()=>{window.cancelAnimationFrame(l),o.unobserve(t)}}},[t,s])}var fN=Hb,hN=Fb,n1=Kb,s1=av,mN=nv;function Ht({children:t,className:n,...s}){return i.jsxs(fN,{className:le("overflow-hidden",n),...s,children:[i.jsx(hN,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(n1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(n1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(mN,{})]})}const pN={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function xN(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return pN[n]||"text-text-3"}function gN({x:t,y:n,items:s,onClose:l}){const o=v.useRef(null);return v.useEffect(()=>{function u(d){o.current&&!o.current.contains(d.target)&&l()}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[l]),i.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:t,top:n},children:s.map((u,d)=>u.separator?i.jsx("div",{className:"h-px bg-border-subtle my-1"},d):i.jsxs("button",{onClick:()=>{u.action(),l()},className:le("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",u.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[u.icon&&i.jsx(u.icon,{size:12,className:u.danger?"text-danger":"text-text-3"}),u.label]},d))})}function fc({defaultValue:t="",placeholder:n,onSubmit:s,onCancel:l,depth:o=0}){const[u,d]=v.useState(t),O=v.useRef(null);v.useEffect(()=>{var p,x;(p=O.current)==null||p.focus(),t&&((x=O.current)==null||x.select())},[t]);function m(p){if(p.key==="Enter"){const x=u.trim();x&&s(x)}p.key==="Escape"&&l()}return i.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:i.jsx("input",{ref:O,value:u,onChange:p=>d(p.target.value),onKeyDown:m,onBlur:l,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function iv({entry:t,depth:n=0,activePath:s,onFileClick:l,onDirToggle:o,expanded:u,onContextMenu:d}){const O=t.type==="dir",m=s===t.path,p=u.has(t.path),x=n*16+8;function g(b){b.preventDefault(),b.stopPropagation(),d(b,t)}return i.jsxs("button",{onClick:()=>O?o(t.path):l(t.path),onContextMenu:g,className:le("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",m&&"bg-accent/10 text-text-0",!m&&"text-text-1"),style:{paddingLeft:x},children:[O?i.jsxs(i.Fragment,{children:[p?i.jsx(In,{size:12,className:"text-text-4 flex-shrink-0"}):i.jsx(ii,{size:12,className:"text-text-4 flex-shrink-0"}),p?i.jsx(Hr,{size:14,className:"text-accent flex-shrink-0"}):i.jsx(rT,{size:14,className:"text-text-3 flex-shrink-0"})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"w-3"}),i.jsx(F5,{size:14,className:le("flex-shrink-0",xN(t.name))})]}),i.jsx("span",{className:"truncate",children:t.name})]})}function ov({dirPath:t,depth:n,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p}){const x=d[t]||[];return v.useEffect(()=>{o.has(t)&&!d[t]&&O(t)},[o,t,d,O]),o.has(t)?i.jsxs(i.Fragment,{children:[(p==null?void 0:p.parentPath)===t&&i.jsx(fc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),x.map(g=>i.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?i.jsx(fc,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):i.jsx(iv,{entry:g,depth:n,activePath:s,onFileClick:l,onDirToggle:u,expanded:o,onContextMenu:m}),g.type==="dir"&&i.jsx(ov,{dirPath:g.path,depth:n+1,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p})]},g.path))]}):null}function bN({rootDir:t}){const n=D($=>$.editorTreeCache),s=D($=>$.editorActiveFile),l=D($=>$.openFile),o=D($=>$.fetchTreeDir),u=D($=>$.addToast),[d,O]=v.useState(new Set([""])),[m,p]=v.useState(""),[x,g]=v.useState(null),[b,S]=v.useState(null);v.useEffect(()=>{o("")},[o,t]);function Q($){O(W=>{const E=new Set(W);return E.has($)?E.delete($):E.add($),E})}function k($,W){g({x:$.clientX,y:$.clientY,entry:W})}function T($){$.preventDefault(),g({x:$.clientX,y:$.clientY,entry:{type:"dir",path:"",name:"root"}})}function j($){const W=$.split("/");return W.pop(),W.join("/")}async function P($){O(W=>new Set([...W,$])),S({type:"file",parentPath:$,onSubmit:async W=>{const E=$?`${$}/${W}`:W;try{await ee.post("/files/create",{path:E,content:""}),o($),l(E),u("success",`Created ${W}`)}catch(ne){u("error","Create failed",ne.message)}S(null)},onCancel:()=>S(null)})}async function N($){O(W=>new Set([...W,$])),S({type:"folder",parentPath:$,onSubmit:async W=>{const E=$?`${$}/${W}`:W;try{await ee.post("/files/mkdir",{path:E}),o($),O(ne=>new Set([...ne,E])),u("success",`Created ${W}/`)}catch(ne){u("error","Create folder failed",ne.message)}S(null)},onCancel:()=>S(null)})}async function Z($){S({type:"rename",renamePath:$.path,onSubmit:async W=>{const E=j($.path),ne=E?`${E}/${W}`:W;try{await ee.post("/files/rename",{oldPath:$.path,newPath:ne}),o(E),u("success",`Renamed to ${W}`)}catch(re){u("error","Rename failed",re.message)}S(null)},onCancel:()=>S(null)})}async function U($){const W=$.type==="dir"?`folder "${$.name}" and all contents`:`"${$.name}"`;if(window.confirm(`Delete ${W}?`))try{await ee.delete(`/files/delete?path=${encodeURIComponent($.path)}`),o(j($.path)),u("success",`Deleted ${$.name}`)}catch(E){u("error","Delete failed",E.message)}}function C($){const W=$.type==="dir",E=[];return W&&(E.push({icon:pO,label:"New File",action:()=>P($.path)}),E.push({icon:xO,label:"New Folder",action:()=>N($.path)})),$.name!=="root"?(E.length>0&&E.push({separator:!0}),E.push({icon:Cc,label:"Rename",action:()=>Z($)}),E.push({icon:Xc,label:"Delete",danger:!0,action:()=>U($)})):(E.length=0,E.push({icon:pO,label:"New File",action:()=>P("")}),E.push({icon:xO,label:"New Folder",action:()=>N("")})),E}const X=n[""]||[];return i.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:T,children:[i.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(ql,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),i.jsx("input",{value:m,onChange:$=>p($.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),i.jsx("button",{onClick:()=>P(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:i.jsx(pO,{size:12})}),i.jsx("button",{onClick:()=>N(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:i.jsx(xO,{size:12})}),i.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:i.jsx(es,{size:12})})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&i.jsx(fc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),X.filter($=>!m||$.name.toLowerCase().includes(m.toLowerCase())).map($=>i.jsxs("div",{children:[(b==null?void 0:b.renamePath)===$.path?i.jsx(fc,{defaultValue:$.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):i.jsx(iv,{entry:$,depth:0,activePath:s,onFileClick:l,onDirToggle:Q,expanded:d,onContextMenu:k}),$.type==="dir"&&i.jsx(ov,{dirPath:$.path,depth:1,activePath:s,onFileClick:l,expanded:d,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:k,inlineInput:b})]},$.path))]})}),x&&i.jsx(gN,{x:x.x,y:x.y,items:C(x.entry),onClose:()=>g(null)})]})}function vN(){const t=D(u=>u.editorOpenTabs),n=D(u=>u.editorActiveFile),s=D(u=>u.editorFiles),l=D(u=>u.setActiveFile),o=D(u=>u.closeFile);return t.length===0?null:i.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:t.map(u=>{const d=u===n,O=s[u],m=O&&O.content!==O.originalContent,p=u.split("/").pop();return i.jsxs("div",{className:le("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",d?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>l(u),children:[i.jsx("span",{className:"truncate max-w-[120px]",children:p}),m&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),i.jsx("button",{onClick:x=>{x.stopPropagation(),o(u)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:i.jsx(Rt,{size:12})})]},u)})})}var l1={};class hc{constructor(n,s,l,o,u,d,O,m,p,x=0,g){this.p=n,this.stack=s,this.state=l,this.reducePos=o,this.pos=u,this.score=d,this.buffer=O,this.bufferBase=m,this.curContext=p,this.lookAhead=x,this.parent=g}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,l=0){let o=n.parser.context;return new hc(n,[],s,l,l,0,[],0,o?new r1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var s;let l=n>>19,o=n&65535,{parser:u}=this.p,d=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),O=u.dynamicPrecedence(o);if(O&&(this.score+=O),l==0){this.pushState(u.getGoto(this.state,o,!0),this.reducePos),o<u.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,d?8:4,!0),this.reduceContext(o,this.reducePos);return}let m=this.stack.length-(l-1)*3-(n&262144?6:0),p=m?this.stack[m-2]:this.p.ranges[0].from,x=this.reducePos-p;x>=2e3&&!(!((s=this.p.parser.nodeSet.types[o])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=x):this.p.lastBigReductionSize<x&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=x));let g=m?this.stack[m-1]:0,b=this.bufferBase+this.buffer.length-g;if(o<u.minRepeatTerm||n&131072){let S=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,S,b+4,!0)}if(n&262144)this.state=this.stack[m];else{let S=this.stack[m-3];this.state=u.getGoto(S,o,!0)}for(;this.stack.length>m;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,s,l,o=4,u=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let d=this,O=this.buffer.length;if(O==0&&d.parent&&(O=d.bufferBase-d.parent.bufferBase,d=d.parent),O>0&&d.buffer[O-4]==0&&d.buffer[O-1]>-1){if(s==l)return;if(d.buffer[O-2]>=s){d.buffer[O-2]=l;return}}}if(!u||this.pos==l)this.buffer.push(n,s,l,o);else{let d=this.buffer.length;if(d>0&&(this.buffer[d-4]!=0||this.buffer[d-1]<0)){let O=!1;for(let m=d;m>0&&this.buffer[m-2]>l;m-=4)if(this.buffer[m-1]>=0){O=!0;break}if(O)for(;d>0&&this.buffer[d-2]>l;)this.buffer[d]=this.buffer[d-4],this.buffer[d+1]=this.buffer[d-3],this.buffer[d+2]=this.buffer[d-2],this.buffer[d+3]=this.buffer[d-1],d-=4,o>4&&(o-=4)}this.buffer[d]=n,this.buffer[d+1]=s,this.buffer[d+2]=l,this.buffer[d+3]=o}}shift(n,s,l,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let u=n,{parser:d}=this.p;this.pos=o;let O=d.stateFlag(u,1);!O&&(o>l||s<=d.maxNode)&&(this.reducePos=o),this.pushState(u,O?l:Math.min(l,this.reducePos)),this.shiftContext(s,l),s<=d.maxNode&&this.buffer.push(s,l,o,4)}else this.pos=o,this.shiftContext(s,l),s<=this.p.parser.maxNode&&this.buffer.push(s,l,o,4)}apply(n,s,l,o){n&65536?this.reduce(n):this.shift(n,s,l,o)}useNode(n,s){let l=this.p.reused.length-1;(l<0||this.p.reused[l]!=n)&&(this.p.reused.push(n),l++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(s,o),this.buffer.push(l,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,s=n.buffer.length;for(;s>0&&n.buffer[s-2]>n.reducePos;)s-=4;let l=n.buffer.slice(s),o=n.bufferBase+s;for(;n&&o==n.bufferBase;)n=n.parent;return new hc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,l,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let l=n<=this.p.parser.maxNode;l&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,l?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new yN(this);;){let l=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(l==0)return!1;if((l&65536)==0)return!0;s.reduce(l)}}recoverByInsert(n){if(this.stack.length>=300)return[];let s=this.p.parser.nextStates(this.state);if(s.length>8||this.stack.length>=120){let o=[];for(let u=0,d;u<s.length;u+=2)(d=s[u+1])!=this.state&&this.p.parser.hasAction(d,n)&&o.push(s[u],d);if(this.stack.length<120)for(let u=0;o.length<8&&u<s.length;u+=2){let d=s[u+1];o.some((O,m)=>m&1&&O==d)||o.push(s[u],d)}s=o}let l=[];for(let o=0;o<s.length&&l.length<4;o+=2){let u=s[o+1];if(u==this.state)continue;let d=this.split();d.pushState(u,this.pos),d.storeNode(0,d.pos,d.pos,4,!0),d.shiftContext(s[o],this.pos),d.reducePos=this.pos,d.score-=200,l.push(d)}return l}forceReduce(){let{parser:n}=this.p,s=n.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!n.validAction(this.state,s)){let l=s>>19,o=s&65535,u=this.stack.length-l*3;if(u<0||n.getGoto(this.stack[u],o,!1)<0){let d=this.findForcedReduction();if(d==null)return!1;s=d}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(s),!0}findForcedReduction(){let{parser:n}=this.p,s=[],l=(o,u)=>{if(!s.includes(o))return s.push(o),n.allActions(o,d=>{if(!(d&393216))if(d&65536){let O=(d>>19)-u;if(O>1){let m=d&65535,p=this.stack.length-O*3;if(p>=0&&n.getGoto(this.stack[p],m,!1)>=0)return O<<19|65536|m}}else{let O=l(d,u+1);if(O!=null)return O}})};return l(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=n.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(s)))}reduceContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(s)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let s=new r1(this.curContext.tracker,n);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class r1{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class yN{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,l=n>>19;l==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(l-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class mc{constructor(n,s,l){this.stack=n,this.pos=s,this.index=l,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new mc(n,s,s-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new mc(this.stack,this.pos,this.index)}}function Mr(t,n=Uint16Array){if(typeof t!="string")return t;let s=null;for(let l=0,o=0;l<t.length;){let u=0;for(;;){let d=t.charCodeAt(l++),O=!1;if(d==126){u=65535;break}d>=92&&d--,d>=34&&d--;let m=d-32;if(m>=46&&(m-=46,O=!0),u+=m,O)break;u*=46}s?s[o++]=u:s=new n(u)}return s}class Wo{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const i1=new Wo;class SN{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=i1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(n,s){let l=this.range,o=this.rangeIndex,u=this.pos+n;for(;u<l.from;){if(!o)return null;let d=this.ranges[--o];u-=l.from-d.to,l=d}for(;s<0?u>l.to:u>=l.to;){if(o==this.ranges.length-1)return null;let d=this.ranges[++o];u+=d.from-l.to,l=d}return u}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let s of this.ranges)if(s.to>n)return Math.max(n,s.from);return this.end}peek(n){let s=this.chunkOff+n,l,o;if(s>=0&&s<this.chunk.length)l=this.pos+n,o=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(n,1);if(u==null)return-1;if(l=u,l>=this.chunk2Pos&&l<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(l-this.chunk2Pos);else{let d=this.rangeIndex,O=this.range;for(;O.to<=l;)O=this.ranges[++d];this.chunk2=this.input.chunk(this.chunk2Pos=l),l+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.to-l)),o=this.chunk2.charCodeAt(0)}}return l>=this.token.lookAhead&&(this.token.lookAhead=l+1),o}acceptToken(n,s=0){let l=s?this.resolveOffset(s,-1):this.pos;if(l==null||l<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=l}acceptTokenTo(n,s){this.token.value=n,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),s=this.pos+n.length;this.chunk=s>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,s){if(s?(this.token=s,s.start=n,s.lookAhead=n+1,s.value=s.extended=-1):this.token=i1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,s){if(n>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,s-this.chunkPos);if(n>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,s-this.chunk2Pos);if(n>=this.range.from&&s<=this.range.to)return this.input.read(n,s);let l="";for(let o of this.ranges){if(o.from>=s)break;o.to>n&&(l+=this.input.read(Math.max(o.from,n),Math.min(o.to,s)))}return l}}class jl{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:l}=s.p;cv(this.data,n,s,this.id,l.data,l.tokenPrecTable)}}jl.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class pc{constructor(n,s,l){this.precTable=s,this.elseToken=l,this.data=typeof n=="string"?Mr(n):n}token(n,s){let l=n.pos,o=0;for(;;){let u=n.next<0,d=n.resolveOffset(1,1);if(cv(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(u||o++,d==null)break;n.reset(d,n.token)}o&&(n.reset(l,n.token),n.acceptToken(this.elseToken,o))}}pc.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class gt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function cv(t,n,s,l,o,u){let d=0,O=1<<l,{dialect:m}=s.p.parser;e:for(;(O&t[d])!=0;){let p=t[d+1];for(let S=d+3;S<p;S+=2)if((t[S+1]&O)>0){let Q=t[S];if(m.allows(Q)&&(n.token.value==-1||n.token.value==Q||QN(Q,n.token.value,o,u))){n.acceptToken(Q);break}}let x=n.next,g=0,b=t[d+2];if(n.next<0&&b>g&&t[p+b*3-3]==65535){d=t[p+b*3-1];continue e}for(;g<b;){let S=g+b>>1,Q=p+S+(S<<1),k=t[Q],T=t[Q+1]||65536;if(x<k)b=S;else if(x>=T)g=S+1;else{d=t[Q+2],n.advance();continue e}}break}}function o1(t,n,s){for(let l=n,o;(o=t[l])!=65535;l++)if(o==s)return l-n;return-1}function QN(t,n,s,l){let o=o1(s,l,n);return o<0||o1(s,l,t)<o}const Gt=typeof process<"u"&&l1&&/\bparse\b/.test(l1.LOG);let yO=null;function c1(t,n,s){let l=t.cursor(Qc.IncludeAnonymous);for(l.moveTo(n);;)if(!(s<0?l.childBefore(n):l.childAfter(n)))for(;;){if((s<0?l.to<n:l.from>n)&&!l.type.isError)return s<0?Math.max(0,Math.min(l.to-1,n-25)):Math.min(t.length,Math.max(l.from+1,n+25));if(s<0?l.prevSibling():l.nextSibling())break;if(!l.parent())return s<0?0:t.length}}let jN=class{constructor(n,s){this.fragments=n,this.nodeSet=s,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?c1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?c1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let l=this.trees[s],o=this.index[s];if(o==l.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=l.children[o],d=this.start[s]+l.positions[o];if(d>n)return this.nextStart=d,null;if(u instanceof ma){if(d==n){if(d<this.safeFrom)return null;let O=d+u.length;if(O<=this.safeTo){let m=u.prop(sn.lookAhead);if(!m||O+m<this.fragment.to)return u}}this.index[s]++,d+u.length>=Math.max(this.safeFrom,n)&&(this.trees.push(u),this.start.push(d),this.index.push(0))}else this.index[s]++,this.nextStart=d+u.length}}};class wN{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(l=>new Wo)}getActions(n){let s=0,l=null,{parser:o}=n.p,{tokenizers:u}=o,d=o.stateSlot(n.state,3),O=n.curContext?n.curContext.hash:0,m=0;for(let p=0;p<u.length;p++){if((1<<p&d)==0)continue;let x=u[p],g=this.tokens[p];if(!(l&&!x.fallback)&&((x.contextual||g.start!=n.pos||g.mask!=d||g.context!=O)&&(this.updateCachedToken(g,x,n),g.mask=d,g.context=O),g.lookAhead>g.end+25&&(m=Math.max(g.lookAhead,m)),g.value!=0)){let b=s;if(g.extended>-1&&(s=this.addActions(n,g.extended,g.end,s)),s=this.addActions(n,g.value,g.end,s),!x.extend&&(l=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return m&&n.setLookAhead(m),!l&&n.pos==this.stream.end&&(l=new Wo,l.value=n.p.parser.eofTerm,l.start=l.end=n.pos,s=this.addActions(n,l.value,l.end,s)),this.mainToken=l,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new Wo,{pos:l,p:o}=n;return s.start=l,s.end=Math.min(l+1,o.stream.end),s.value=l==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(n,s,l){let o=this.stream.clipPos(l.pos);if(s.token(this.stream.reset(o,n),l),n.value>-1){let{parser:u}=l.p;for(let d=0;d<u.specialized.length;d++)if(u.specialized[d]==n.value){let O=u.specializers[d](this.stream.read(n.start,n.end),l);if(O>=0&&l.p.parser.dialect.allows(O>>1)){(O&1)==0?n.value=O>>1:n.extended=O>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,s,l,o){for(let u=0;u<o;u+=3)if(this.actions[u]==n)return o;return this.actions[o++]=n,this.actions[o++]=s,this.actions[o++]=l,o}addActions(n,s,l,o){let{state:u}=n,{parser:d}=n.p,{data:O}=d;for(let m=0;m<2;m++)for(let p=d.stateSlot(u,m?2:1);;p+=3){if(O[p]==65535)if(O[p+1]==1)p=nn(O,p+2);else{o==0&&O[p+1]==2&&(o=this.putAction(nn(O,p+2),s,l,o));break}O[p]==s&&(o=this.putAction(nn(O,p+1),s,l,o))}return o}}class kN{constructor(n,s,l,o){this.parser=n,this.input=s,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new SN(s,o),this.tokens=new wN(n,this.stream),this.topTerm=n.top[1];let{from:u}=o[0];this.stacks=[hc.start(this,n.top[0],u)],this.fragments=l.length&&this.stream.end-u>n.bufferLength*4?new jN(l,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,l=this.stacks=[],o,u;if(this.bigReductionCount>300&&n.length==1){let[d]=n;for(;d.forceReduce()&&d.stack.length&&d.stack[d.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let d=0;d<n.length;d++){let O=n[d];for(;;){if(this.tokens.mainToken=null,O.pos>s)l.push(O);else{if(this.advanceStack(O,l,n))continue;{o||(o=[],u=[]),o.push(O);let m=this.tokens.getMainToken(O);u.push(m.value,m.end)}}break}}if(!l.length){let d=o&&TN(o);if(d)return Gt&&console.log("Finish with "+this.stackID(d)),this.stackToTree(d);if(this.parser.strict)throw Gt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&o){let d=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,u,l);if(d)return Gt&&console.log("Force-finish "+this.stackID(d)),this.stackToTree(d.forceAll())}if(this.recovering){let d=this.recovering==1?1:this.recovering*3;if(l.length>d)for(l.sort((O,m)=>m.score-O.score);l.length>d;)l.pop();l.some(O=>O.reducePos>s)&&this.recovering--}else if(l.length>1){e:for(let d=0;d<l.length-1;d++){let O=l[d];for(let m=d+1;m<l.length;m++){let p=l[m];if(O.sameState(p)||O.buffer.length>500&&p.buffer.length>500)if((O.score-p.score||O.buffer.length-p.buffer.length)>0)l.splice(m--,1);else{l.splice(d--,1);continue e}}}l.length>12&&(l.sort((d,O)=>O.score-d.score),l.splice(12,l.length-12))}this.minStackPos=l[0].pos;for(let d=1;d<l.length;d++)l[d].pos<this.minStackPos&&(this.minStackPos=l[d].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,s,l){let o=n.pos,{parser:u}=this,d=Gt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,x=p?n.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?u.getGoto(n.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(sn.contextHash)||0)==x))return n.useNode(g,b),Gt&&console.log(d+this.stackID(n)+` (via reuse of ${u.getName(g.type.id)})`),!0;if(!(g instanceof ma)||g.children.length==0||g.positions[0]>0)break;let S=g.children[0];if(S instanceof ma&&g.positions[0]==0)g=S;else break}}let O=u.stateSlot(n.state,4);if(O>0)return n.reduce(O),Gt&&console.log(d+this.stackID(n)+` (via always-reduce ${u.getName(O&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let m=this.tokens.getActions(n);for(let p=0;p<m.length;){let x=m[p++],g=m[p++],b=m[p++],S=p==m.length||!l,Q=S?n:n.split(),k=this.tokens.mainToken;if(Q.apply(x,g,k?k.start:Q.pos,b),Gt&&console.log(d+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${u.getName(x&65535)}`} for ${u.getName(g)} @ ${o}${Q==n?"":", split"})`),S)return!0;Q.pos>o?s.push(Q):l.push(Q)}return!1}advanceFully(n,s){let l=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>l)return u1(n,s),!0}}runRecovery(n,s,l){let o=null,u=!1;for(let d=0;d<n.length;d++){let O=n[d],m=s[d<<1],p=s[(d<<1)+1],x=Gt?this.stackID(O)+" -> ":"";if(O.deadEnd&&(u||(u=!0,O.restart(),Gt&&console.log(x+this.stackID(O)+" (restarted)"),this.advanceFully(O,l))))continue;let g=O.split(),b=x;for(let S=0;S<10&&g.forceReduce()&&(Gt&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,l));S++)Gt&&(b=this.stackID(g)+" -> ");for(let S of O.recoverByInsert(m))Gt&&console.log(x+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,l);this.stream.end>O.pos?(p==O.pos&&(p++,m=0),O.recoverByDelete(m,p),Gt&&console.log(x+this.stackID(O)+` (via recover-delete ${this.parser.getName(m)})`),u1(O,l)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(n){return n.close(),ma.build({buffer:mc.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let s=(yO||(yO=new WeakMap)).get(n);return s||yO.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function u1(t,n){for(let s=0;s<n.length;s++){let l=n[s];if(l.pos==t.pos&&l.sameState(t)){n[s].score<t.score&&(n[s]=t);return}}n.push(t)}class $N{constructor(n,s,l){this.source=n,this.flags=s,this.disabled=l}allows(n){return!this.disabled||this.disabled[n]==0}}const SO=t=>t;class sh{constructor(n){this.start=n.start,this.shift=n.shift||SO,this.reduce=n.reduce||SO,this.reuse=n.reuse||SO,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class Kn extends v0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let s=n.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let O=0;O<n.repeatNodeCount;O++)s.push("");let l=Object.keys(n.topRules).map(O=>n.topRules[O][1]),o=[];for(let O=0;O<s.length;O++)o.push([]);function u(O,m,p){o[O].push([m,m.deserialize(String(p))])}if(n.nodeProps)for(let O of n.nodeProps){let m=O[0];typeof m=="string"&&(m=sn[m]);for(let p=1;p<O.length;){let x=O[p++];if(x>=0)u(x,m,O[p++]);else{let g=O[p+-x];for(let b=-x;b>0;b--)u(O[p++],m,g);p++}}}this.nodeSet=new $f(s.map((O,m)=>ni.define({name:m>=this.minRepeatTerm?void 0:O,id:m,props:o[m],top:l.indexOf(m)>-1,error:m==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(m)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=yj;let d=Mr(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let O=0;O<this.specializerSpecs.length;O++)this.specialized[O]=this.specializerSpecs[O].term;this.specializers=this.specializerSpecs.map(d1),this.states=Mr(n.states,Uint32Array),this.data=Mr(n.stateData),this.goto=Mr(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(O=>typeof O=="number"?new jl(d,O):O),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,s,l){let o=new kN(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}getGoto(n,s,l=!1){let o=this.goto;if(s>=o[0])return-1;for(let u=o[s+1];;){let d=o[u++],O=d&1,m=o[u++];if(O&&l)return m;for(let p=u+(d>>1);u<p;u++)if(o[u]==n)return m;if(O)return-1}}hasAction(n,s){let l=this.data;for(let o=0;o<2;o++)for(let u=this.stateSlot(n,o?2:1),d;;u+=3){if((d=l[u])==65535)if(l[u+1]==1)d=l[u=nn(l,u+2)];else{if(l[u+1]==2)return nn(l,u+2);break}if(d==s||d==0)return nn(l,u+1)}return 0}stateSlot(n,s){return this.states[n*6+s]}stateFlag(n,s){return(this.stateSlot(n,0)&s)>0}validAction(n,s){return!!this.allActions(n,l=>l==s?!0:null)}allActions(n,s){let l=this.stateSlot(n,4),o=l?s(l):void 0;for(let u=this.stateSlot(n,1);o==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=nn(this.data,u+2);else break;o=s(nn(this.data,u+1))}return o}nextStates(n){let s=[];for(let l=this.stateSlot(n,1);;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=nn(this.data,l+2);else break;if((this.data[l+2]&1)==0){let o=this.data[l+1];s.some((u,d)=>d&1&&u==o)||s.push(this.data[l],o)}}return s}configure(n){let s=Object.assign(Object.create(Kn.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let l=this.topRules[n.top];if(!l)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=l}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(l=>{let o=n.tokenizers.find(u=>u.from==l);return o?o.to:l})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((l,o)=>{let u=n.specializers.find(O=>O.from==l.external);if(!u)return l;let d=Object.assign(Object.assign({},l),{external:u.to});return s.specializers[o]=d1(d),d})),n.contextTracker&&(s.context=n.contextTracker),n.dialect&&(s.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(s.strict=n.strict),n.wrap&&(s.wrappers=s.wrappers.concat(n.wrap)),n.bufferLength!=null&&(s.bufferLength=n.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let s=this.dynamicPrecedences;return s==null?0:s[n]||0}parseDialect(n){let s=Object.keys(this.dialects),l=s.map(()=>!1);if(n)for(let u of n.split(" ")){let d=s.indexOf(u);d>=0&&(l[d]=!0)}let o=null;for(let u=0;u<s.length;u++)if(!l[u])for(let d=this.dialects[s[u]],O;(O=this.data[d++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[O]=1;return new $N(n,l,o)}static deserialize(n){return new Kn(n)}}function nn(t,n){return t[n]|t[n+1]<<16}function TN(t){let n=null;for(let s of t){let l=s.p.stoppedAt;(s.pos==s.p.stream.end||l!=null&&s.pos>l)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function d1(t){if(t.external){let n=t.extend?1:0;return(s,l)=>t.external(s,l)<<1|n}return t.get}const PN=316,NN=317,O1=1,zN=2,RN=3,CN=4,XN=318,_N=320,ZN=321,AN=5,EN=6,qN=0,Of=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uv=125,MN=59,ff=47,YN=42,VN=43,UN=45,GN=60,LN=44,DN=63,WN=46,BN=91,HN=new sh({start:!1,shift(t,n){return n==AN||n==EN||n==_N?t:n==ZN},strict:!1}),IN=new gt((t,n)=>{let{next:s}=t;(s==uv||s==-1||n.context)&&t.acceptToken(XN)},{contextual:!0,fallback:!0}),FN=new gt((t,n)=>{let{next:s}=t,l;Of.indexOf(s)>-1||s==ff&&((l=t.peek(1))==ff||l==YN)||s!=uv&&s!=MN&&s!=-1&&!n.context&&t.acceptToken(PN)},{contextual:!0}),KN=new gt((t,n)=>{t.next==BN&&!n.context&&t.acceptToken(NN)},{contextual:!0}),JN=new gt((t,n)=>{let{next:s}=t;if(s==VN||s==UN){if(t.advance(),s==t.next){t.advance();let l=!n.context&&n.canShift(O1);t.acceptToken(l?O1:zN)}}else s==DN&&t.peek(1)==WN&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(RN))},{contextual:!0});function QO(t,n){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!n&&t>=48&&t<=57}const e3=new gt((t,n)=>{if(t.next!=GN||!n.dialectEnabled(qN)||(t.advance(),t.next==ff))return;let s=0;for(;Of.indexOf(t.next)>-1;)t.advance(),s++;if(QO(t.next,!0)){for(t.advance(),s++;QO(t.next,!1);)t.advance(),s++;for(;Of.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==LN)return;for(let l=0;;l++){if(l==7){if(!QO(t.next,!0))return;break}if(t.next!="extends".charCodeAt(l))break;t.advance(),s++}}t.acceptToken(CN,-s)}),t3=$s({"get set async static":A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":A.operatorKeyword,"let var const using function class extends":A.definitionKeyword,"import export from":A.moduleKeyword,"with debugger new":A.keyword,TemplateString:A.special(A.string),super:A.atom,BooleanLiteral:A.bool,this:A.self,null:A.null,Star:A.modifier,VariableName:A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.function(A.variableName),VariableDefinition:A.definition(A.variableName),Label:A.labelName,PropertyName:A.propertyName,PrivatePropertyName:A.special(A.propertyName),"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),"FunctionDeclaration/VariableDefinition":A.function(A.definition(A.variableName)),"ClassDeclaration/VariableDefinition":A.definition(A.className),"NewExpression/VariableName":A.className,PropertyDefinition:A.definition(A.propertyName),PrivatePropertyDefinition:A.definition(A.special(A.propertyName)),UpdateOp:A.updateOperator,"LineComment Hashbang":A.lineComment,BlockComment:A.blockComment,Number:A.number,String:A.string,Escape:A.escape,ArithOp:A.arithmeticOperator,LogicOp:A.logicOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,RegExp:A.regexp,Equals:A.definitionOperator,Arrow:A.function(A.punctuation),": Spread":A.punctuation,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,"InterpolationStart InterpolationEnd":A.special(A.brace),".":A.derefOperator,", ;":A.separator,"@":A.meta,TypeName:A.typeName,TypeDefinition:A.definition(A.typeName),"type enum interface implements namespace module declare":A.definitionKeyword,"abstract global Privacy readonly override":A.modifier,"is keyof unique infer asserts":A.operatorKeyword,JSXAttributeValue:A.attributeValue,JSXText:A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.attributeName,"JSXBuiltin/JSXIdentifier":A.standard(A.tagName)}),a3={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},n3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},s3={__proto__:null,"<":193},l3=Kn.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I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'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:HN,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[t3],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S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Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new pc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>a3[t]||-1},{term:343,get:t=>n3[t]||-1},{term:95,get:t=>s3[t]||-1}],tokenPrec:15201}),dv=[Ie("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ie("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ie("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ie("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ie("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ie(`try {
|
|
520
520
|
\${}
|
|
521
521
|
} catch (\${error}) {
|
|
522
522
|
\${}
|
|
@@ -528,14 +528,14 @@ Error generating stack: `+c.message+`
|
|
|
528
528
|
constructor(\${params}) {
|
|
529
529
|
\${}
|
|
530
530
|
}
|
|
531
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),Ie('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ie('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],r3=dv.concat([Ie("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ie("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ie("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),f1=new $f,Ov=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ar(t){return(n,s)=>{let l=n.node.getChild("VariableDefinition");return l&&s(l,t),!0}}const i3=["FunctionDeclaration"],o3={FunctionDeclaration:Ar("function"),ClassDeclaration:Ar("class"),ClassExpression:()=>!0,EnumDeclaration:Ar("constant"),TypeAliasDeclaration:Ar("type"),NamespaceDeclaration:Ar("namespace"),VariableDefinition(t,n){t.matchContext(i3)||n(t,"variable")},TypeDefinition(t,n){n(t,"type")},__proto__:null};function fv(t,n){let s=f1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(Qc.IncludeAnonymous).iterate(d=>{if(o)o=!1;else if(d.name){let O=o3[d.name];if(O&&O(d,u)||Ov.has(d.name))return!1}else if(d.to-d.from>8192){for(let O of fv(t,d.node))l.push(O);return!1}}),f1.set(n,l),l}const h1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,hv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function c3(t){let n=ga(t.state).resolveInner(t.pos,-1);if(hv.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&h1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)Ov.has(o.name)&&(l=l.concat(fv(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:h1}}const Ta=si.define({name:"javascript",parser:l3.configure({props:[_l.add({IfStatement:yl({except:/^\s*({|else\b)/}),TryStatement:yl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Sj,SwitchBody:t=>{let n=t.textAfter,s=/^\s*\}/.test(n),l=/^\s*(case|default)\b/.test(n);return t.baseIndent+(s?0:l?1:2)*t.unit},Block:Lo({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":yl({except:/^\s*{/}),JSXElement(t){let n=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},JSXEscape(t){let n=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Ts.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jc,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let n=t.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let s=t.lastChild;return{from:n.to,to:s.type.isError?t.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(t){var n;let s=(n=t.firstChild)===null||n===void 0?void 0:n.nextSibling,l=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:l.type.isError?t.to:l.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),mv={test:t=>/^JSX/.test(t.name),facet:j0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pv=Ta.configure({dialect:"ts"},"typescript"),xv=Ta.configure({dialect:"jsx",props:[Q0.add(t=>t.isTop?[mv]:void 0)]}),gv=Ta.configure({dialect:"jsx ts",props:[Q0.add(t=>t.isTop?[mv]:void 0)]},"typescript");let bv=t=>({label:t,type:"keyword"});const vv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(bv),u3=vv.concat(["declare","implements","private","protected","public"].map(bv));function ff(t={}){let n=t.jsx?t.typescript?gv:xv:t.typescript?pv:Ta,s=t.typescript?r3.concat(u3):dv.concat(vv);return new Qs(n,[Ta.data.of({autocomplete:y0(hv,S0(s))}),Ta.data.of({autocomplete:c3}),t.jsx?f3:[]])}function d3(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function m1(t,n,s=t.length){for(let l=n==null?void 0:n.firstChild;l;l=l.nextSibling)if(l.name=="JSXIdentifier"||l.name=="JSXBuiltin"||l.name=="JSXNamespacedName"||l.name=="JSXMemberExpression")return t.sliceString(l.from,Math.min(l.to,s));return""}const O3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),f3=kl.inputHandler.of((t,n,s,l,o)=>{if((O3?t.composing:t.compositionStarted)||t.state.readOnly||n!=s||l!=">"&&l!="/"||!Ta.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p;let{head:x}=m,g=ga(d).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(d.doc.sliceString(x-1,x)!=l||g.name=="JSXAttributeValue"&&g.to>x)){if(l==">"&&g.name=="JSXFragmentTag")return{range:m,changes:{from:x,insert:"</>"}};if(l=="/"&&g.name=="JSXStartCloseTag"){let S=g.parent,Q=S.parent;if(Q&&S.from==x-2&&((b=m1(d.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:Wn.cursor(x+k.length,-1),changes:{from:x,insert:k}}}}else if(l==">"){let S=d3(g);if(S&&S.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(d.doc.sliceString(x,x+2))&&(b=m1(d.doc,S,x)))return{range:m,changes:{from:x,insert:`</${b}>`}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),h3=135,p1=1,m3=136,p3=137,yv=2,x3=138,g3=3,b3=4,Sv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],v3=58,y3=40,Qv=95,S3=91,Bo=45,Q3=46,j3=35,w3=37,k3=38,$3=92,T3=10,P3=42;function Kr(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function sh(t){return t>=48&&t<=57}function x1(t){return sh(t)||t>=97&&t<=102||t>=65&&t<=70}const jv=(t,n,s)=>(l,o)=>{for(let u=!1,d=0,O=0;;O++){let{next:m}=l;if(Kr(m)||m==Bo||m==Qv||u&&sh(m))!u&&(m!=Bo||O>0)&&(u=!0),d===O&&m==Bo&&d++,l.advance();else if(m==$3&&l.peek(1)!=T3){if(l.advance(),x1(l.next)){do l.advance();while(x1(l.next));l.next==32&&l.advance()}else l.next>-1&&l.advance();u=!0}else{u&&l.acceptToken(d==2&&o.canShift(yv)?n:m==y3?s:t);break}}},N3=new gt(jv(m3,yv,p3),{contextual:!0}),z3=new gt(jv(x3,g3,b3),{contextual:!0}),R3=new gt(t=>{if(Sv.includes(t.peek(-1))){let{next:n}=t;(Kr(n)||n==Qv||n==j3||n==Q3||n==P3||n==S3||n==v3&&Kr(t.peek(1))||n==Bo||n==k3)&&t.acceptToken(h3)}}),C3=new gt(t=>{if(!Sv.includes(t.peek(-1))){let{next:n}=t;if(n==w3&&(t.advance(),t.acceptToken(p1)),Kr(n)){do t.advance();while(Kr(t.next)||sh(t.next));t.acceptToken(p1)}}}),X3=$s({"AtKeyword import charset namespace keyframes media supports font-feature-values":A.definitionKeyword,"from to selector scope MatchFlag":A.keyword,NamespaceName:A.namespace,KeyframeName:A.labelName,KeyframeRangeName:A.operatorKeyword,TagName:A.tagName,ClassName:A.className,PseudoClassName:A.constant(A.className),IdName:A.labelName,"FeatureName PropertyName":A.propertyName,AttributeName:A.attributeName,NumberLiteral:A.number,KeywordQuery:A.keyword,UnaryQueryOp:A.operatorKeyword,"CallTag ValueName FontName":A.atom,VariableName:A.variableName,Callee:A.operatorKeyword,Unit:A.unit,"UniversalSelector NestingSelector":A.definitionOperator,"MatchOp CompareOp":A.compareOperator,"ChildOp SiblingOp, LogicOp":A.logicOperator,BinOp:A.arithmeticOperator,Important:A.modifier,Comment:A.blockComment,ColorLiteral:A.color,"ParenthesizedContent StringLiteral":A.string,":":A.punctuation,"PseudoOp #":A.derefOperator,"; , |":A.separator,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace}),_3={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},Z3={__proto__:null,or:104,and:104,not:112,only:112,layer:186},A3={__proto__:null,selector:118,layer:182},E3={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},q3={__proto__:null,to:223},M3=Kn.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,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%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],prop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lO%jjCW[lY!e`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[R3,C3,N3,z3,1,2,3,4,new pc("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>_3[t]||-1},{term:138,get:t=>Z3[t]||-1},{term:4,get:t=>A3[t]||-1},{term:28,get:t=>E3[t]||-1},{term:136,get:t=>q3[t]||-1}],tokenPrec:2256});let QO=null;function jO(){if(!QO&&typeof document=="object"&&document.body){let{style:t}=document.body,n=[],s=new Set;for(let l in t)l!="cssText"&&l!="cssFloat"&&typeof t[l]=="string"&&(/[A-Z]/.test(l)&&(l=l.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(l)||(n.push(l),s.add(l)));QO=n.sort().map(l=>({type:"property",label:l,apply:l+": "}))}return QO||[]}const g1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),b1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Y3=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),V3=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Ka=/^(\w[\w-]*|-\w[\w-]*|)$/,U3=/^-(-[\w-]*)?$/;function G3(t,n){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let l=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(l==null?void 0:l.name)!="Callee"?!1:n.sliceString(l.from,l.to)=="var"}const v1=new $f,L3=["Declaration"];function D3(t){for(let n=t;;){if(n.type.isTop)return n;if(!(n=n.parent))return t}}function wv(t,n,s){if(n.to-n.from>4096){let l=v1.get(n);if(l)return l;let o=[],u=new Set,d=n.cursor(Qc.IncludeAnonymous);if(d.firstChild())do for(let O of wv(t,d.node,s))u.has(O.label)||(u.add(O.label),o.push(O));while(d.nextSibling());return v1.set(n,o),o}else{let l=[],o=new Set;return n.cursor().iterate(u=>{var d;if(s(u)&&u.matchContext(L3)&&((d=u.node.nextSibling)===null||d===void 0?void 0:d.name)==":"){let O=t.sliceString(u.from,u.to);o.has(O)||(o.add(O),l.push({label:O,type:"variable"}))}}),l}}const W3=t=>n=>{let{state:s,pos:l}=n,o=ga(s).resolveInner(l,-1),u=o.type.isError&&o.from==o.to-1&&s.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(u||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:jO(),validFor:Ka};if(o.name=="ValueName")return{from:o.from,options:b1,validFor:Ka};if(o.name=="PseudoClassName")return{from:o.from,options:g1,validFor:Ka};if(t(o)||(n.explicit||u)&&G3(o,s.doc))return{from:t(o)||u?o.from:l,options:wv(s.doc,D3(o),t),validFor:U3};if(o.name=="TagName"){for(let{parent:m}=o;m;m=m.parent)if(m.name=="Block")return{from:o.from,options:jO(),validFor:Ka};return{from:o.from,options:Y3,validFor:Ka}}if(o.name=="AtKeyword")return{from:o.from,options:V3,validFor:Ka};if(!n.explicit)return null;let d=o.resolve(l),O=d.childBefore(l);return O&&O.name==":"&&d.name=="PseudoClassSelector"?{from:l,options:g1,validFor:Ka}:O&&O.name==":"&&d.name=="Declaration"||d.name=="ArgList"?{from:l,options:b1,validFor:Ka}:d.name=="Block"||d.name=="Styles"?{from:l,options:jO(),validFor:Ka}:null},B3=W3(t=>t.name=="VariableName"),xc=si.define({name:"css",parser:M3.configure({props:[_l.add({Declaration:yl()}),Ts.add({"Block KeyframeList":jc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function kv(){return new Qs(xc,xc.data.of({autocomplete:B3}))}const H3=55,I3=1,F3=56,K3=2,J3=57,e4=3,y1=4,t4=5,lh=6,$v=7,Tv=8,Pv=9,Nv=10,a4=11,n4=12,s4=13,wO=58,l4=14,r4=15,S1=59,zv=21,i4=23,Rv=24,o4=25,hf=27,Cv=28,c4=29,u4=32,d4=35,O4=37,f4=38,h4=0,m4=1,p4={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},x4={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Q1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function g4(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let j1=null,w1=null,k1=0;function mf(t,n){let s=t.pos+n;if(k1==s&&w1==t)return j1;let l=t.peek(n),o="";for(;g4(l);)o+=String.fromCharCode(l),l=t.peek(++n);return w1=t,k1=s,j1=o?o.toLowerCase():l==b4||l==v4?void 0:null}const Xv=60,gc=62,rh=47,b4=63,v4=33,y4=45;function $1(t,n){this.name=t,this.parent=n}const S4=[lh,Nv,$v,Tv,Pv],Q4=new nh({start:null,shift(t,n,s,l){return S4.indexOf(n)>-1?new $1(mf(l,1)||"",t):t},reduce(t,n){return n==zv&&t?t.parent:t},reuse(t,n,s,l){let o=n.type.id;return o==lh||o==O4?new $1(mf(l,1)||"",t):t},strict:!1}),j4=new gt((t,n)=>{if(t.next!=Xv){t.next<0&&n.context&&t.acceptToken(wO);return}t.advance();let s=t.next==rh;s&&t.advance();let l=mf(t,0);if(l===void 0)return;if(!l)return t.acceptToken(s?r4:l4);let o=n.context?n.context.name:null;if(s){if(l==o)return t.acceptToken(a4);if(o&&x4[o])return t.acceptToken(wO,-2);if(n.dialectEnabled(h4))return t.acceptToken(n4);for(let u=n.context;u;u=u.parent)if(u.name==l)return;t.acceptToken(s4)}else{if(l=="script")return t.acceptToken($v);if(l=="style")return t.acceptToken(Tv);if(l=="textarea")return t.acceptToken(Pv);if(p4.hasOwnProperty(l))return t.acceptToken(Nv);o&&Q1[o]&&Q1[o][l]?t.acceptToken(wO,-1):t.acceptToken(lh)}},{contextual:!0}),w4=new gt(t=>{for(let n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(S1);break}if(t.next==y4)n++;else if(t.next==gc&&n>=2){s>=3&&t.acceptToken(S1,-2);break}else n=0;t.advance()}});function k4(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const $4=new gt((t,n)=>{if(t.next==rh&&t.peek(1)==gc){let s=n.dialectEnabled(m4)||k4(n.context);t.acceptToken(s?t4:y1,2)}else t.next==gc&&t.acceptToken(y1,1)});function ih(t,n,s){let l=2+t.length;return new gt(o=>{for(let u=0,d=0,O=0;;O++){if(o.next<0){O&&o.acceptToken(n);break}if(u==0&&o.next==Xv||u==1&&o.next==rh||u>=2&&u<l&&o.next==t.charCodeAt(u-2))u++,d++;else if(u==l&&o.next==gc){O>d?o.acceptToken(n,-d):o.acceptToken(s,-(d-2));break}else if((o.next==10||o.next==13)&&O){o.acceptToken(n,1);break}else u=d=0;o.advance()}})}const T4=ih("script",H3,I3),P4=ih("style",F3,K3),N4=ih("textarea",J3,e4),z4=$s({"Text RawText IncompleteTag IncompleteCloseTag":A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.angleBracket,TagName:A.tagName,"MismatchedCloseTag/TagName":[A.tagName,A.invalid],AttributeName:A.attributeName,"AttributeValue UnquotedAttributeValue":A.attributeValue,Is:A.definitionOperator,"EntityReference CharacterReference":A.character,Comment:A.blockComment,ProcessingInst:A.processingInstruction,DoctypeDecl:A.documentMeta}),R4=Kn.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%P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OVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Q4,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[z4],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(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vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[T4,P4,N4,$4,j4,w4,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function _v(t,n){let s=Object.create(null);for(let l of t.getChildren(Rv)){let o=l.getChild(o4),u=l.getChild(hf)||l.getChild(Cv);o&&(s[n.read(o.from,o.to)]=u?u.type.id==hf?n.read(u.from+1,u.to-1):n.read(u.from,u.to):"")}return s}function T1(t,n){let s=t.getChild(i4);return s?n.read(s.from,s.to):" "}function kO(t,n,s){let l;for(let o of s)if(!o.attrs||o.attrs(l||(l=_v(t.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function Zv(t=[],n=[]){let s=[],l=[],o=[],u=[];for(let O of t)(O.tag=="script"?s:O.tag=="style"?l:O.tag=="textarea"?o:u).push(O);let d=n.length?Object.create(null):null;for(let O of n)(d[O.name]||(d[O.name]=[])).push(O);return w0((O,m)=>{let p=O.type.id;if(p==c4)return kO(O,m,s);if(p==u4)return kO(O,m,l);if(p==d4)return kO(O,m,o);if(p==zv&&u.length){let x=O.node,g=x.firstChild,b=g&&T1(g,m),S;if(b){for(let Q of u)if(Q.tag==b&&(!Q.attrs||Q.attrs(S||(S=_v(g,m))))){let k=x.lastChild,$=k.type.id==f4?k.from:x.to;if($>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:$}]}}}}if(d&&p==Rv){let x=O.node,g;if(g=x.firstChild){let b=d[m.read(g.from,g.to)];if(b)for(let S of b){if(S.tagName&&S.tagName!=T1(x.parent,m))continue;let Q=x.lastChild;if(Q.type.id==hf){let k=Q.from+1,$=Q.lastChild,j=Q.to-($&&$.isError?0:1);if(j>k)return{parser:S.parser,overlay:[{from:k,to:j}],bracketed:!0}}else if(Q.type.id==Cv)return{parser:S.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const Er=["_blank","_self","_top","_parent"],$O=["ascii","utf-8","utf-16","latin1","latin1"],TO=["get","post","put","delete"],PO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Lt=["true","false"],he={},C4={a:{attrs:{href:null,ping:null,type:null,media:null,target:Er,hreflang:null}},abbr:he,address:he,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:he,aside:he,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:he,base:{attrs:{href:null,target:Er}},bdi:he,bdo:he,blockquote:{attrs:{cite:null}},body:he,br:he,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:PO,formmethod:TO,formnovalidate:["novalidate"],formtarget:Er,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:he,center:he,cite:he,code:he,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:he,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:he,div:he,dl:he,dt:he,em:he,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:he,figure:he,footer:he,form:{attrs:{action:null,name:null,"accept-charset":$O,autocomplete:["on","off"],enctype:PO,method:TO,novalidate:["novalidate"],target:Er}},h1:he,h2:he,h3:he,h4:he,h5:he,h6:he,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:he,hgroup:he,hr:he,html:{attrs:{manifest:null}},i:he,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:PO,formmethod:TO,formnovalidate:["novalidate"],formtarget:Er,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:he,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:he,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:he,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:$O,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:he,noscript:he,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:he,param:{attrs:{name:null,value:null}},pre:he,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:he,rt:he,ruby:he,samp:he,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:$O}},section:he,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:he,source:{attrs:{src:null,type:null,media:null}},span:he,strong:he,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:he,summary:he,sup:he,table:he,tbody:he,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:he,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:he,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:he,time:{attrs:{datetime:null}},title:he,tr:he,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:he,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:he},Av={accesskey:null,class:null,contenteditable:Lt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Lt,autocorrect:Lt,autocapitalize:Lt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Lt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Lt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Lt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Lt,"aria-hidden":Lt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Lt,"aria-multiselectable":Lt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Lt,"aria-relevant":null,"aria-required":Lt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ev="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Ev)Av[t]=null;class Jr{constructor(n,s){this.tags={...C4,...n},this.globalAttrs={...Av,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Jr.default=new Jr;function Rl(t,n,s=t.length){if(!n)return"";let l=n.firstChild,o=l&&l.getChild("TagName");return o?t.sliceString(o.from,Math.min(o.to,s)):""}function Cl(t,n=!1){for(;t;t=t.parent)if(t.name=="Element")if(n)n=!1;else return t;return null}function qv(t,n,s){let l=s.tags[Rl(t,Cl(n))];return(l==null?void 0:l.children)||s.allTags}function oh(t,n){let s=[];for(let l=Cl(n);l&&!l.type.isTop;l=Cl(l.parent)){let o=Rl(t,l);if(o&&l.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(n.name=="EndTag"||n.from>=l.firstChild.to)&&s.push(o)}return s}const Mv=/^[:\-\.\w\u00b7-\uffff]*$/;function P1(t,n,s,l,o){let u=/\s*>/.test(t.sliceDoc(o,o+5))?"":">",d=Cl(s,s.name=="StartTag"||s.name=="TagName");return{from:l,to:o,options:qv(t.doc,d,n).map(O=>({label:O,type:"type"})).concat(oh(t.doc,s).map((O,m)=>({label:"/"+O,apply:"/"+O+u,type:"type",boost:99-m}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function N1(t,n,s,l){let o=/\s*>/.test(t.sliceDoc(l,l+5))?"":">";return{from:s,to:l,options:oh(t.doc,n).map((u,d)=>({label:u,apply:u+o,type:"type",boost:99-d})),validFor:Mv}}function X4(t,n,s,l){let o=[],u=0;for(let d of qv(t.doc,s,n))o.push({label:"<"+d,type:"type"});for(let d of oh(t.doc,s))o.push({label:"</"+d+">",type:"type",boost:99-u++});return{from:l,to:l,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function _4(t,n,s,l,o){let u=Cl(s),d=u?n.tags[Rl(t.doc,u)]:null,O=d&&d.attrs?Object.keys(d.attrs):[],m=d&&d.globalAttrs===!1?O:O.length?O.concat(n.globalAttrNames):n.globalAttrNames;return{from:l,to:o,options:m.map(p=>({label:p,type:"property"})),validFor:Mv}}function Z4(t,n,s,l,o){var u;let d=(u=s.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),O=[],m;if(d){let p=t.sliceDoc(d.from,d.to),x=n.globalAttrs[p];if(!x){let g=Cl(s),b=g?n.tags[Rl(t.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=t.sliceDoc(l,o).toLowerCase(),b='"',S='"';/^['"]/.test(g)?(m=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",S=t.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),l++):m=/^[^\s<>='"]*$/;for(let Q of x)O.push({label:Q,apply:b+Q+S,type:"constant"})}}return{from:l,to:o,options:O,validFor:m}}function Yv(t,n){let{state:s,pos:l}=n,o=ga(s).resolveInner(l,-1),u=o.resolve(l);for(let d=l,O;u==o&&(O=o.childBefore(d));){let m=O.lastChild;if(!m||!m.type.isError||m.from<m.to)break;u=o=O,d=m.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?N1(s,o,o.from,l):P1(s,t,o,o.from,l):o.name=="StartTag"||o.name=="IncompleteTag"?P1(s,t,o,l,l):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?N1(s,o,l,l):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?_4(s,t,o,o.name=="AttributeName"?o.from:l,l):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?Z4(s,t,o,o.name=="Is"?l:o.from,l):n.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?X4(s,t,o,l):null}function A4(t){return Yv(Jr.default,t)}function E4(t){let{extraTags:n,extraGlobalAttributes:s}=t,l=s||n?new Jr(n,s):Jr.default;return o=>Yv(l,o)}const q4=Ta.parser.configure({top:"SingleExpression"}),Vv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:pv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:xv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:gv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:q4},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Ta.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:xc.parser}],Uv=[{name:"style",parser:xc.parser.configure({top:"Styles"})}].concat(Ev.map(t=>({name:t,parser:Ta.parser}))),Gv=si.define({name:"html",parser:R4.configure({props:[_l.add({Element(t){let n=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+n[0].length?t.continue():t.lineIndent(t.node.from)+(n[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let n=null,s;for(let l=t.node;;){let o=l.lastChild;if(!o||o.name!="Element"||o.to!=l.to)break;n=l=o}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(n.from)+t.unit:null}}),Ts.add({Element(t){let n=t.firstChild,s=t.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:s.name=="CloseTag"?s.from:t.to}}}),Qj.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Ho=Gv.configure({wrap:Zv(Vv,Uv)});function Lv(t={}){let n="",s;t.matchClosingTags===!1&&(n="noMatch"),t.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(s=Zv((t.nestedLanguages||[]).concat(Vv),(t.nestedAttributes||[]).concat(Uv)));let l=s?Gv.configure({wrap:s,dialect:n}):n?Ho.configure({dialect:n}):Ho;return new Qs(l,[Ho.data.of({autocomplete:E4(t)}),t.autoCloseTags!==!1?M4:[],ff().support,kv().support])}const z1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),M4=kl.inputHandler.of((t,n,s,l,o)=>{if(t.composing||t.state.readOnly||n!=s||l!=">"&&l!="/"||!Ho.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p,x,g;let b=d.doc.sliceString(m.from-1,m.to)==l,{head:S}=m,Q=ga(d).resolveInner(S,-1),k;if(b&&l==">"&&Q.name=="EndTag"){let $=Q.parent;if(((x=(p=$.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(k=Rl(d.doc,$.parent,S))&&!z1.has(k)){let j=S+(d.doc.sliceString(S,S+1)===">"?1:0),P=`</${k}>`;return{range:m,changes:{from:S,to:j,insert:P}}}}else if(b&&l=="/"&&Q.name=="IncompleteCloseTag"){let $=Q.parent;if(Q.from==S-2&&((g=$.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(k=Rl(d.doc,$,S))&&!z1.has(k)){let j=S+(d.doc.sliceString(S,S+1)===">"?1:0),P=`${k}>`;return{range:Wn.cursor(S+P.length,-1),changes:{from:S,to:j,insert:P}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Y4=$s({String:A.string,Number:A.number,"True False":A.bool,PropertyName:A.propertyName,Null:A.null,", :":A.separator,"[ ]":A.squareBracket,"{ }":A.brace}),V4=Kn.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Y4],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),U4=si.define({name:"json",parser:V4.configure({props:[_l.add({Object:yl({except:/^\s*\}/}),Array:yl({except:/^\s*\]/})}),Ts.add({"Object Array":jc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function G4(){return new Qs(U4)}class bc{static create(n,s,l,o,u){let d=o+(o<<8)+n+(s<<4)|0;return new bc(n,s,l,d,u,[],[])}constructor(n,s,l,o,u,d,O){this.type=n,this.value=s,this.from=l,this.hash=o,this.end=u,this.children=d,this.positions=O,this.hashProp=[[sn.contextHash,o]]}addChild(n,s){n.prop(sn.contextHash)!=this.hash&&(n=new ma(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let l=this.children.length-1;return l>=0&&(s=Math.max(s,this.positions[l]+this.children[l].length+this.from)),new ma(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,u,d)=>new ma(ni.none,o,u,d,this.hashProp)})}}var ne;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(ne||(ne={}));class L4{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class D4{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return Yr(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,s=0,l=0){for(let o=s;o<n;o++)l+=this.text.charCodeAt(o)==9?4-l%4:1;return l}findColumn(n){let s=0;for(let l=0;s<this.text.length&&l<n;s++)l+=this.text.charCodeAt(s)==9?4-l%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let n="";for(let s=0;s<this.basePos;s++)n+=" ";return n+this.text.slice(this.basePos)}}function R1(t,n,s){if(s.pos==s.text.length||t!=n.block&&s.indent>=n.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let l=(t.type==ne.OrderedList?dh:uh)(s,n,!1);return l>0&&(t.type!=ne.BulletList||ch(s,n,!1)<0)&&s.text.charCodeAt(s.pos+l-1)==t.value}const Dv={[ne.Blockquote](t,n,s){return s.next!=62?!1:(s.markers.push(Ne(ne.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(ua(s.text.charCodeAt(s.pos+1))?2:1)),t.end=n.lineStart+s.text.length,!0)},[ne.ListItem](t,n,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[ne.OrderedList]:R1,[ne.BulletList]:R1,[ne.Document](){return!0}};function ua(t){return t==32||t==9||t==10||t==13}function Yr(t,n=0){for(;n<t.length&&ua(t.charCodeAt(n));)n++;return n}function C1(t,n,s){for(;n>s&&ua(t.charCodeAt(n-1));)n--;return n}function Wv(t){if(t.next!=96&&t.next!=126)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;if(n<t.pos+3)return-1;if(t.next==96){for(let s=n;s<t.text.length;s++)if(t.text.charCodeAt(s)==96)return-1}return n}function Bv(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function ch(t,n,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let l=1;for(let o=t.pos+1;o<t.text.length;o++){let u=t.text.charCodeAt(o);if(u==t.next)l++;else if(!ua(u))return-1}return s&&t.next==45&&Fv(t)>-1&&t.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(ty.SetextHeading)>-1||l<3?-1:1}function Hv(t,n){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==n)return!0;return!1}function uh(t,n,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||ua(t.text.charCodeAt(t.pos+1)))&&(!s||Hv(n,ne.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function dh(t,n,s){let l=t.pos,o=t.next;for(;o>=48&&o<=57;){l++;if(l==t.text.length)return-1;o=t.text.charCodeAt(l)}return l==t.pos||l>t.pos+9||o!=46&&o!=41||l<t.text.length-1&&!ua(t.text.charCodeAt(l+1))||s&&!Hv(n,ne.OrderedList)&&(t.skipSpace(l+1)==t.text.length||l>t.pos+1||t.next!=49)?-1:l+1-t.pos}function Iv(t){if(t.next!=35)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==35;)n++;if(n<t.text.length&&t.text.charCodeAt(n)!=32)return-1;let s=n-t.pos;return s>6?-1:s}function Fv(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;let s=n;for(;n<t.text.length&&ua(t.text.charCodeAt(n));)n++;return n==t.text.length?s:-1}const pf=/^[ \t]*$/,Kv=/-->/,Jv=/\?>/,xf=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Kv],[/^\s*<\?/,Jv],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,pf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,pf]];function ey(t,n,s){if(t.next!=60)return-1;let l=t.text.slice(t.pos);for(let o=0,u=xf.length-(s?1:0);o<u;o++)if(xf[o][0].test(l))return o;return-1}function X1(t,n){let s=t.countIndent(n,t.pos,t.indent),l=t.countIndent(t.skipSpace(n),n,s);return l>=s+5?s+1:l}function Yn(t,n,s){let l=t.length-1;l>=0&&t[l].to==n&&t[l].type==ne.CodeText?t[l].to=s:t.push(Ne(ne.CodeText,n,s))}const Zo={LinkReference:void 0,IndentedCode(t,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let l=n.findColumn(s),o=t.lineStart+l,u=t.lineStart+n.text.length,d=[],O=[];for(Yn(d,o,u);t.nextLine()&&n.depth>=t.stack.length;)if(n.pos==n.text.length){Yn(O,t.lineStart-1,t.lineStart);for(let m of n.markers)O.push(m)}else{if(n.indent<s)break;{if(O.length){for(let p of O)p.type==ne.CodeText?Yn(d,p.from,p.to):d.push(p);O=[]}Yn(d,t.lineStart-1,t.lineStart);for(let p of n.markers)d.push(p);u=t.lineStart+n.text.length;let m=t.lineStart+n.findColumn(n.baseIndent+4);m<u&&Yn(d,m,u)}}return O.length&&(O=O.filter(m=>m.type!=ne.CodeText),O.length&&(n.markers=O.concat(n.markers))),t.addNode(t.buffer.writeElements(d,-o).finish(ne.CodeBlock,u-o),o),!0},FencedCode(t,n){let s=Wv(n);if(s<0)return!1;let l=t.lineStart+n.pos,o=n.next,u=s-n.pos,d=n.skipSpace(s),O=C1(n.text,n.text.length,d),m=[Ne(ne.CodeMark,l,l+u)];d<O&&m.push(Ne(ne.CodeInfo,t.lineStart+d,t.lineStart+O));for(let p=!0,x=!0,g=!1;t.nextLine()&&n.depth>=t.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=u&&n.skipSpace(b)==n.text.length){for(let S of n.markers)m.push(S);x&&g&&Yn(m,t.lineStart-1,t.lineStart),m.push(Ne(ne.CodeMark,t.lineStart+n.pos,t.lineStart+b)),t.nextLine();break}else{g=!0,p||(Yn(m,t.lineStart-1,t.lineStart),x=!1);for(let k of n.markers)m.push(k);let S=t.lineStart+n.basePos,Q=t.lineStart+n.text.length;S<Q&&(Yn(m,S,Q),x=!1)}}return t.addNode(t.buffer.writeElements(m,-l).finish(ne.FencedCode,t.prevLineEnd()-l),l),!0},Blockquote(t,n){let s=Bv(n);return s<0?!1:(t.startContext(ne.Blockquote,n.pos),t.addNode(ne.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(t,n){if(ch(n,t,!1)<0)return!1;let s=t.lineStart+n.pos;return t.nextLine(),t.addNode(ne.HorizontalRule,s),!0},BulletList(t,n){let s=uh(n,t,!1);if(s<0)return!1;t.block.type!=ne.BulletList&&t.startContext(ne.BulletList,n.basePos,n.next);let l=X1(n,n.pos+1);return t.startContext(ne.ListItem,n.basePos,l-n.baseIndent),t.addNode(ne.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},OrderedList(t,n){let s=dh(n,t,!1);if(s<0)return!1;t.block.type!=ne.OrderedList&&t.startContext(ne.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let l=X1(n,n.pos+s);return t.startContext(ne.ListItem,n.basePos,l-n.baseIndent),t.addNode(ne.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},ATXHeading(t,n){let s=Iv(n);if(s<0)return!1;let l=n.pos,o=t.lineStart+l,u=C1(n.text,n.text.length,l),d=u;for(;d>l&&n.text.charCodeAt(d-1)==n.next;)d--;(d==u||d==l||!ua(n.text.charCodeAt(d-1)))&&(d=n.text.length);let O=t.buffer.write(ne.HeaderMark,0,s).writeElements(t.parser.parseInline(n.text.slice(l+s+1,d),o+s+1),-o);d<n.text.length&&O.write(ne.HeaderMark,d-l,u-l);let m=O.finish(ne.ATXHeading1-1+s,n.text.length-l);return t.nextLine(),t.addNode(m,o),!0},HTMLBlock(t,n){let s=ey(n,t,!1);if(s<0)return!1;let l=t.lineStart+n.pos,o=xf[s][1],u=[],d=o!=pf;for(;!o.test(n.text)&&t.nextLine();){if(n.depth<t.stack.length){d=!1;break}for(let p of n.markers)u.push(p)}d&&t.nextLine();let O=o==Kv?ne.CommentBlock:o==Jv?ne.ProcessingInstructionBlock:ne.HTMLBlock,m=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-l).finish(O,m-l),l),!0},SetextHeading:void 0};class W4{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,l){if(this.stage==-1)return!1;let o=l.content+`
|
|
532
|
-
`+s.scrub(),u=this.advance(o);return u>-1&&u<o.length?this.complete(n,l,u):!1}finish(n,s){return(this.stage==2||this.stage==3)&&Yr(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,l){return n.addLeafElement(s,Ne(
|
|
533
|
-
`+n.scrub();for(let l of n.markers)s.marks.push(l)}return this.finishLeaf(s),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=dy(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let s=I4;if(s.end=n,n>=this.to)s.text="";else if(s.text=this.lineChunkAt(n),s.end+=s.text.length,this.ranges.length>1){let l=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<s.end;){o++;let u=this.ranges[o].from,d=this.lineChunkAt(u);s.end=u+d.length,s.text=s.text.slice(0,this.ranges[o-1].to-l)+d,l=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:l}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=l,n.reset(s);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],u=this.parser.skipContextMarkup[o.type];if(!u)throw new Error("Unhandled block context "+
|
|
531
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),Ie('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ie('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],r3=dv.concat([Ie("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ie("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ie("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),f1=new Tf,Ov=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ar(t){return(n,s)=>{let l=n.node.getChild("VariableDefinition");return l&&s(l,t),!0}}const i3=["FunctionDeclaration"],o3={FunctionDeclaration:Ar("function"),ClassDeclaration:Ar("class"),ClassExpression:()=>!0,EnumDeclaration:Ar("constant"),TypeAliasDeclaration:Ar("type"),NamespaceDeclaration:Ar("namespace"),VariableDefinition(t,n){t.matchContext(i3)||n(t,"variable")},TypeDefinition(t,n){n(t,"type")},__proto__:null};function fv(t,n){let s=f1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(Qc.IncludeAnonymous).iterate(d=>{if(o)o=!1;else if(d.name){let O=o3[d.name];if(O&&O(d,u)||Ov.has(d.name))return!1}else if(d.to-d.from>8192){for(let O of fv(t,d.node))l.push(O);return!1}}),f1.set(n,l),l}const h1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,hv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function c3(t){let n=ga(t.state).resolveInner(t.pos,-1);if(hv.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&h1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)Ov.has(o.name)&&(l=l.concat(fv(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:h1}}const Ta=si.define({name:"javascript",parser:l3.configure({props:[_l.add({IfStatement:yl({except:/^\s*({|else\b)/}),TryStatement:yl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Sj,SwitchBody:t=>{let n=t.textAfter,s=/^\s*\}/.test(n),l=/^\s*(case|default)\b/.test(n);return t.baseIndent+(s?0:l?1:2)*t.unit},Block:Lo({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":yl({except:/^\s*{/}),JSXElement(t){let n=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},JSXEscape(t){let n=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Ts.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jc,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let n=t.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let s=t.lastChild;return{from:n.to,to:s.type.isError?t.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(t){var n;let s=(n=t.firstChild)===null||n===void 0?void 0:n.nextSibling,l=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:l.type.isError?t.to:l.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),mv={test:t=>/^JSX/.test(t.name),facet:j0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pv=Ta.configure({dialect:"ts"},"typescript"),xv=Ta.configure({dialect:"jsx",props:[Q0.add(t=>t.isTop?[mv]:void 0)]}),gv=Ta.configure({dialect:"jsx ts",props:[Q0.add(t=>t.isTop?[mv]:void 0)]},"typescript");let bv=t=>({label:t,type:"keyword"});const vv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(bv),u3=vv.concat(["declare","implements","private","protected","public"].map(bv));function hf(t={}){let n=t.jsx?t.typescript?gv:xv:t.typescript?pv:Ta,s=t.typescript?r3.concat(u3):dv.concat(vv);return new Qs(n,[Ta.data.of({autocomplete:y0(hv,S0(s))}),Ta.data.of({autocomplete:c3}),t.jsx?f3:[]])}function d3(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function m1(t,n,s=t.length){for(let l=n==null?void 0:n.firstChild;l;l=l.nextSibling)if(l.name=="JSXIdentifier"||l.name=="JSXBuiltin"||l.name=="JSXNamespacedName"||l.name=="JSXMemberExpression")return t.sliceString(l.from,Math.min(l.to,s));return""}const O3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),f3=kl.inputHandler.of((t,n,s,l,o)=>{if((O3?t.composing:t.compositionStarted)||t.state.readOnly||n!=s||l!=">"&&l!="/"||!Ta.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p;let{head:x}=m,g=ga(d).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(d.doc.sliceString(x-1,x)!=l||g.name=="JSXAttributeValue"&&g.to>x)){if(l==">"&&g.name=="JSXFragmentTag")return{range:m,changes:{from:x,insert:"</>"}};if(l=="/"&&g.name=="JSXStartCloseTag"){let S=g.parent,Q=S.parent;if(Q&&S.from==x-2&&((b=m1(d.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:Wn.cursor(x+k.length,-1),changes:{from:x,insert:k}}}}else if(l==">"){let S=d3(g);if(S&&S.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(d.doc.sliceString(x,x+2))&&(b=m1(d.doc,S,x)))return{range:m,changes:{from:x,insert:`</${b}>`}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),h3=135,p1=1,m3=136,p3=137,yv=2,x3=138,g3=3,b3=4,Sv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],v3=58,y3=40,Qv=95,S3=91,Bo=45,Q3=46,j3=35,w3=37,k3=38,$3=92,T3=10,P3=42;function Kr(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function lh(t){return t>=48&&t<=57}function x1(t){return lh(t)||t>=97&&t<=102||t>=65&&t<=70}const jv=(t,n,s)=>(l,o)=>{for(let u=!1,d=0,O=0;;O++){let{next:m}=l;if(Kr(m)||m==Bo||m==Qv||u&&lh(m))!u&&(m!=Bo||O>0)&&(u=!0),d===O&&m==Bo&&d++,l.advance();else if(m==$3&&l.peek(1)!=T3){if(l.advance(),x1(l.next)){do l.advance();while(x1(l.next));l.next==32&&l.advance()}else l.next>-1&&l.advance();u=!0}else{u&&l.acceptToken(d==2&&o.canShift(yv)?n:m==y3?s:t);break}}},N3=new gt(jv(m3,yv,p3),{contextual:!0}),z3=new gt(jv(x3,g3,b3),{contextual:!0}),R3=new gt(t=>{if(Sv.includes(t.peek(-1))){let{next:n}=t;(Kr(n)||n==Qv||n==j3||n==Q3||n==P3||n==S3||n==v3&&Kr(t.peek(1))||n==Bo||n==k3)&&t.acceptToken(h3)}}),C3=new gt(t=>{if(!Sv.includes(t.peek(-1))){let{next:n}=t;if(n==w3&&(t.advance(),t.acceptToken(p1)),Kr(n)){do t.advance();while(Kr(t.next)||lh(t.next));t.acceptToken(p1)}}}),X3=$s({"AtKeyword import charset namespace keyframes media supports font-feature-values":A.definitionKeyword,"from to selector scope MatchFlag":A.keyword,NamespaceName:A.namespace,KeyframeName:A.labelName,KeyframeRangeName:A.operatorKeyword,TagName:A.tagName,ClassName:A.className,PseudoClassName:A.constant(A.className),IdName:A.labelName,"FeatureName PropertyName":A.propertyName,AttributeName:A.attributeName,NumberLiteral:A.number,KeywordQuery:A.keyword,UnaryQueryOp:A.operatorKeyword,"CallTag ValueName FontName":A.atom,VariableName:A.variableName,Callee:A.operatorKeyword,Unit:A.unit,"UniversalSelector NestingSelector":A.definitionOperator,"MatchOp CompareOp":A.compareOperator,"ChildOp SiblingOp, LogicOp":A.logicOperator,BinOp:A.arithmeticOperator,Important:A.modifier,Comment:A.blockComment,ColorLiteral:A.color,"ParenthesizedContent StringLiteral":A.string,":":A.punctuation,"PseudoOp #":A.derefOperator,"; , |":A.separator,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace}),_3={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},Z3={__proto__:null,or:104,and:104,not:112,only:112,layer:186},A3={__proto__:null,selector:118,layer:182},E3={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},q3={__proto__:null,to:223},M3=Kn.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O/eQhO'#DgO/xQhO,5;_O)zQhO'#DeO0VQ`O'#DkO0[QhO'#DnOOQW'#Fj'#FjOOQS,5;_,5;_O0aQ`O'#DhOOQS-E8t-E8tOOQ['#Cv'#CvO0fQdO'#CwO0|QdO'#C}O1dQdO'#DQO1zQ!pO'#DSO4TQ!jO,5:rOOQO'#DX'#DXO,|Q`O'#DWO4eQ!nO'#FgO6hQ`O'#DYO6mQ`O'#DoOOQ['#Fg'#FgO6rQh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b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[X3],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#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#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[R3,C3,N3,z3,1,2,3,4,new pc("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>_3[t]||-1},{term:138,get:t=>Z3[t]||-1},{term:4,get:t=>A3[t]||-1},{term:28,get:t=>E3[t]||-1},{term:136,get:t=>q3[t]||-1}],tokenPrec:2256});let jO=null;function wO(){if(!jO&&typeof document=="object"&&document.body){let{style:t}=document.body,n=[],s=new Set;for(let l in t)l!="cssText"&&l!="cssFloat"&&typeof t[l]=="string"&&(/[A-Z]/.test(l)&&(l=l.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(l)||(n.push(l),s.add(l)));jO=n.sort().map(l=>({type:"property",label:l,apply:l+": "}))}return jO||[]}const g1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),b1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Y3=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),V3=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Ka=/^(\w[\w-]*|-\w[\w-]*|)$/,U3=/^-(-[\w-]*)?$/;function G3(t,n){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let l=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(l==null?void 0:l.name)!="Callee"?!1:n.sliceString(l.from,l.to)=="var"}const v1=new Tf,L3=["Declaration"];function D3(t){for(let n=t;;){if(n.type.isTop)return n;if(!(n=n.parent))return t}}function wv(t,n,s){if(n.to-n.from>4096){let l=v1.get(n);if(l)return l;let o=[],u=new Set,d=n.cursor(Qc.IncludeAnonymous);if(d.firstChild())do for(let O of wv(t,d.node,s))u.has(O.label)||(u.add(O.label),o.push(O));while(d.nextSibling());return v1.set(n,o),o}else{let l=[],o=new Set;return n.cursor().iterate(u=>{var d;if(s(u)&&u.matchContext(L3)&&((d=u.node.nextSibling)===null||d===void 0?void 0:d.name)==":"){let O=t.sliceString(u.from,u.to);o.has(O)||(o.add(O),l.push({label:O,type:"variable"}))}}),l}}const W3=t=>n=>{let{state:s,pos:l}=n,o=ga(s).resolveInner(l,-1),u=o.type.isError&&o.from==o.to-1&&s.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(u||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:wO(),validFor:Ka};if(o.name=="ValueName")return{from:o.from,options:b1,validFor:Ka};if(o.name=="PseudoClassName")return{from:o.from,options:g1,validFor:Ka};if(t(o)||(n.explicit||u)&&G3(o,s.doc))return{from:t(o)||u?o.from:l,options:wv(s.doc,D3(o),t),validFor:U3};if(o.name=="TagName"){for(let{parent:m}=o;m;m=m.parent)if(m.name=="Block")return{from:o.from,options:wO(),validFor:Ka};return{from:o.from,options:Y3,validFor:Ka}}if(o.name=="AtKeyword")return{from:o.from,options:V3,validFor:Ka};if(!n.explicit)return null;let d=o.resolve(l),O=d.childBefore(l);return O&&O.name==":"&&d.name=="PseudoClassSelector"?{from:l,options:g1,validFor:Ka}:O&&O.name==":"&&d.name=="Declaration"||d.name=="ArgList"?{from:l,options:b1,validFor:Ka}:d.name=="Block"||d.name=="Styles"?{from:l,options:wO(),validFor:Ka}:null},B3=W3(t=>t.name=="VariableName"),xc=si.define({name:"css",parser:M3.configure({props:[_l.add({Declaration:yl()}),Ts.add({"Block KeyframeList":jc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function kv(){return new Qs(xc,xc.data.of({autocomplete:B3}))}const H3=55,I3=1,F3=56,K3=2,J3=57,e4=3,y1=4,t4=5,rh=6,$v=7,Tv=8,Pv=9,Nv=10,a4=11,n4=12,s4=13,kO=58,l4=14,r4=15,S1=59,zv=21,i4=23,Rv=24,o4=25,mf=27,Cv=28,c4=29,u4=32,d4=35,O4=37,f4=38,h4=0,m4=1,p4={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},x4={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Q1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function g4(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let j1=null,w1=null,k1=0;function pf(t,n){let s=t.pos+n;if(k1==s&&w1==t)return j1;let l=t.peek(n),o="";for(;g4(l);)o+=String.fromCharCode(l),l=t.peek(++n);return w1=t,k1=s,j1=o?o.toLowerCase():l==b4||l==v4?void 0:null}const Xv=60,gc=62,ih=47,b4=63,v4=33,y4=45;function $1(t,n){this.name=t,this.parent=n}const S4=[rh,Nv,$v,Tv,Pv],Q4=new sh({start:null,shift(t,n,s,l){return S4.indexOf(n)>-1?new $1(pf(l,1)||"",t):t},reduce(t,n){return n==zv&&t?t.parent:t},reuse(t,n,s,l){let o=n.type.id;return o==rh||o==O4?new $1(pf(l,1)||"",t):t},strict:!1}),j4=new gt((t,n)=>{if(t.next!=Xv){t.next<0&&n.context&&t.acceptToken(kO);return}t.advance();let s=t.next==ih;s&&t.advance();let l=pf(t,0);if(l===void 0)return;if(!l)return t.acceptToken(s?r4:l4);let o=n.context?n.context.name:null;if(s){if(l==o)return t.acceptToken(a4);if(o&&x4[o])return t.acceptToken(kO,-2);if(n.dialectEnabled(h4))return t.acceptToken(n4);for(let u=n.context;u;u=u.parent)if(u.name==l)return;t.acceptToken(s4)}else{if(l=="script")return t.acceptToken($v);if(l=="style")return t.acceptToken(Tv);if(l=="textarea")return t.acceptToken(Pv);if(p4.hasOwnProperty(l))return t.acceptToken(Nv);o&&Q1[o]&&Q1[o][l]?t.acceptToken(kO,-1):t.acceptToken(rh)}},{contextual:!0}),w4=new gt(t=>{for(let n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(S1);break}if(t.next==y4)n++;else if(t.next==gc&&n>=2){s>=3&&t.acceptToken(S1,-2);break}else n=0;t.advance()}});function k4(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const $4=new gt((t,n)=>{if(t.next==ih&&t.peek(1)==gc){let s=n.dialectEnabled(m4)||k4(n.context);t.acceptToken(s?t4:y1,2)}else t.next==gc&&t.acceptToken(y1,1)});function oh(t,n,s){let l=2+t.length;return new gt(o=>{for(let u=0,d=0,O=0;;O++){if(o.next<0){O&&o.acceptToken(n);break}if(u==0&&o.next==Xv||u==1&&o.next==ih||u>=2&&u<l&&o.next==t.charCodeAt(u-2))u++,d++;else if(u==l&&o.next==gc){O>d?o.acceptToken(n,-d):o.acceptToken(s,-(d-2));break}else if((o.next==10||o.next==13)&&O){o.acceptToken(n,1);break}else u=d=0;o.advance()}})}const T4=oh("script",H3,I3),P4=oh("style",F3,K3),N4=oh("textarea",J3,e4),z4=$s({"Text RawText IncompleteTag IncompleteCloseTag":A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.angleBracket,TagName:A.tagName,"MismatchedCloseTag/TagName":[A.tagName,A.invalid],AttributeName:A.attributeName,"AttributeValue UnquotedAttributeValue":A.attributeValue,Is:A.definitionOperator,"EntityReference CharacterReference":A.character,Comment:A.blockComment,ProcessingInst:A.processingInstruction,DoctypeDecl:A.documentMeta}),R4=Kn.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59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OiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Q4,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[z4],sk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]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[T4,P4,N4,$4,j4,w4,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function _v(t,n){let s=Object.create(null);for(let l of t.getChildren(Rv)){let o=l.getChild(o4),u=l.getChild(mf)||l.getChild(Cv);o&&(s[n.read(o.from,o.to)]=u?u.type.id==mf?n.read(u.from+1,u.to-1):n.read(u.from,u.to):"")}return s}function T1(t,n){let s=t.getChild(i4);return s?n.read(s.from,s.to):" "}function $O(t,n,s){let l;for(let o of s)if(!o.attrs||o.attrs(l||(l=_v(t.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function Zv(t=[],n=[]){let s=[],l=[],o=[],u=[];for(let O of t)(O.tag=="script"?s:O.tag=="style"?l:O.tag=="textarea"?o:u).push(O);let d=n.length?Object.create(null):null;for(let O of n)(d[O.name]||(d[O.name]=[])).push(O);return w0((O,m)=>{let p=O.type.id;if(p==c4)return $O(O,m,s);if(p==u4)return $O(O,m,l);if(p==d4)return $O(O,m,o);if(p==zv&&u.length){let x=O.node,g=x.firstChild,b=g&&T1(g,m),S;if(b){for(let Q of u)if(Q.tag==b&&(!Q.attrs||Q.attrs(S||(S=_v(g,m))))){let k=x.lastChild,T=k.type.id==f4?k.from:x.to;if(T>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:T}]}}}}if(d&&p==Rv){let x=O.node,g;if(g=x.firstChild){let b=d[m.read(g.from,g.to)];if(b)for(let S of b){if(S.tagName&&S.tagName!=T1(x.parent,m))continue;let Q=x.lastChild;if(Q.type.id==mf){let k=Q.from+1,T=Q.lastChild,j=Q.to-(T&&T.isError?0:1);if(j>k)return{parser:S.parser,overlay:[{from:k,to:j}],bracketed:!0}}else if(Q.type.id==Cv)return{parser:S.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const Er=["_blank","_self","_top","_parent"],TO=["ascii","utf-8","utf-16","latin1","latin1"],PO=["get","post","put","delete"],NO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Lt=["true","false"],he={},C4={a:{attrs:{href:null,ping:null,type:null,media:null,target:Er,hreflang:null}},abbr:he,address:he,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:he,aside:he,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:he,base:{attrs:{href:null,target:Er}},bdi:he,bdo:he,blockquote:{attrs:{cite:null}},body:he,br:he,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:NO,formmethod:PO,formnovalidate:["novalidate"],formtarget:Er,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:he,center:he,cite:he,code:he,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:he,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:he,div:he,dl:he,dt:he,em:he,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:he,figure:he,footer:he,form:{attrs:{action:null,name:null,"accept-charset":TO,autocomplete:["on","off"],enctype:NO,method:PO,novalidate:["novalidate"],target:Er}},h1:he,h2:he,h3:he,h4:he,h5:he,h6:he,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:he,hgroup:he,hr:he,html:{attrs:{manifest:null}},i:he,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:NO,formmethod:PO,formnovalidate:["novalidate"],formtarget:Er,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:he,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:he,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:he,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:TO,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:he,noscript:he,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:he,param:{attrs:{name:null,value:null}},pre:he,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:he,rt:he,ruby:he,samp:he,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:TO}},section:he,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:he,source:{attrs:{src:null,type:null,media:null}},span:he,strong:he,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:he,summary:he,sup:he,table:he,tbody:he,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:he,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:he,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:he,time:{attrs:{datetime:null}},title:he,tr:he,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:he,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:he},Av={accesskey:null,class:null,contenteditable:Lt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Lt,autocorrect:Lt,autocapitalize:Lt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Lt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Lt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Lt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Lt,"aria-hidden":Lt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Lt,"aria-multiselectable":Lt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Lt,"aria-relevant":null,"aria-required":Lt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ev="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Ev)Av[t]=null;class Jr{constructor(n,s){this.tags={...C4,...n},this.globalAttrs={...Av,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Jr.default=new Jr;function Rl(t,n,s=t.length){if(!n)return"";let l=n.firstChild,o=l&&l.getChild("TagName");return o?t.sliceString(o.from,Math.min(o.to,s)):""}function Cl(t,n=!1){for(;t;t=t.parent)if(t.name=="Element")if(n)n=!1;else return t;return null}function qv(t,n,s){let l=s.tags[Rl(t,Cl(n))];return(l==null?void 0:l.children)||s.allTags}function ch(t,n){let s=[];for(let l=Cl(n);l&&!l.type.isTop;l=Cl(l.parent)){let o=Rl(t,l);if(o&&l.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(n.name=="EndTag"||n.from>=l.firstChild.to)&&s.push(o)}return s}const Mv=/^[:\-\.\w\u00b7-\uffff]*$/;function P1(t,n,s,l,o){let u=/\s*>/.test(t.sliceDoc(o,o+5))?"":">",d=Cl(s,s.name=="StartTag"||s.name=="TagName");return{from:l,to:o,options:qv(t.doc,d,n).map(O=>({label:O,type:"type"})).concat(ch(t.doc,s).map((O,m)=>({label:"/"+O,apply:"/"+O+u,type:"type",boost:99-m}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function N1(t,n,s,l){let o=/\s*>/.test(t.sliceDoc(l,l+5))?"":">";return{from:s,to:l,options:ch(t.doc,n).map((u,d)=>({label:u,apply:u+o,type:"type",boost:99-d})),validFor:Mv}}function X4(t,n,s,l){let o=[],u=0;for(let d of qv(t.doc,s,n))o.push({label:"<"+d,type:"type"});for(let d of ch(t.doc,s))o.push({label:"</"+d+">",type:"type",boost:99-u++});return{from:l,to:l,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function _4(t,n,s,l,o){let u=Cl(s),d=u?n.tags[Rl(t.doc,u)]:null,O=d&&d.attrs?Object.keys(d.attrs):[],m=d&&d.globalAttrs===!1?O:O.length?O.concat(n.globalAttrNames):n.globalAttrNames;return{from:l,to:o,options:m.map(p=>({label:p,type:"property"})),validFor:Mv}}function Z4(t,n,s,l,o){var u;let d=(u=s.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),O=[],m;if(d){let p=t.sliceDoc(d.from,d.to),x=n.globalAttrs[p];if(!x){let g=Cl(s),b=g?n.tags[Rl(t.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=t.sliceDoc(l,o).toLowerCase(),b='"',S='"';/^['"]/.test(g)?(m=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",S=t.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),l++):m=/^[^\s<>='"]*$/;for(let Q of x)O.push({label:Q,apply:b+Q+S,type:"constant"})}}return{from:l,to:o,options:O,validFor:m}}function Yv(t,n){let{state:s,pos:l}=n,o=ga(s).resolveInner(l,-1),u=o.resolve(l);for(let d=l,O;u==o&&(O=o.childBefore(d));){let m=O.lastChild;if(!m||!m.type.isError||m.from<m.to)break;u=o=O,d=m.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?N1(s,o,o.from,l):P1(s,t,o,o.from,l):o.name=="StartTag"||o.name=="IncompleteTag"?P1(s,t,o,l,l):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?N1(s,o,l,l):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?_4(s,t,o,o.name=="AttributeName"?o.from:l,l):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?Z4(s,t,o,o.name=="Is"?l:o.from,l):n.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?X4(s,t,o,l):null}function A4(t){return Yv(Jr.default,t)}function E4(t){let{extraTags:n,extraGlobalAttributes:s}=t,l=s||n?new Jr(n,s):Jr.default;return o=>Yv(l,o)}const q4=Ta.parser.configure({top:"SingleExpression"}),Vv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:pv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:xv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:gv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:q4},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Ta.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:xc.parser}],Uv=[{name:"style",parser:xc.parser.configure({top:"Styles"})}].concat(Ev.map(t=>({name:t,parser:Ta.parser}))),Gv=si.define({name:"html",parser:R4.configure({props:[_l.add({Element(t){let n=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+n[0].length?t.continue():t.lineIndent(t.node.from)+(n[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let n=null,s;for(let l=t.node;;){let o=l.lastChild;if(!o||o.name!="Element"||o.to!=l.to)break;n=l=o}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(n.from)+t.unit:null}}),Ts.add({Element(t){let n=t.firstChild,s=t.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:s.name=="CloseTag"?s.from:t.to}}}),Qj.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Ho=Gv.configure({wrap:Zv(Vv,Uv)});function Lv(t={}){let n="",s;t.matchClosingTags===!1&&(n="noMatch"),t.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(s=Zv((t.nestedLanguages||[]).concat(Vv),(t.nestedAttributes||[]).concat(Uv)));let l=s?Gv.configure({wrap:s,dialect:n}):n?Ho.configure({dialect:n}):Ho;return new Qs(l,[Ho.data.of({autocomplete:E4(t)}),t.autoCloseTags!==!1?M4:[],hf().support,kv().support])}const z1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),M4=kl.inputHandler.of((t,n,s,l,o)=>{if(t.composing||t.state.readOnly||n!=s||l!=">"&&l!="/"||!Ho.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p,x,g;let b=d.doc.sliceString(m.from-1,m.to)==l,{head:S}=m,Q=ga(d).resolveInner(S,-1),k;if(b&&l==">"&&Q.name=="EndTag"){let T=Q.parent;if(((x=(p=T.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(k=Rl(d.doc,T.parent,S))&&!z1.has(k)){let j=S+(d.doc.sliceString(S,S+1)===">"?1:0),P=`</${k}>`;return{range:m,changes:{from:S,to:j,insert:P}}}}else if(b&&l=="/"&&Q.name=="IncompleteCloseTag"){let T=Q.parent;if(Q.from==S-2&&((g=T.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(k=Rl(d.doc,T,S))&&!z1.has(k)){let j=S+(d.doc.sliceString(S,S+1)===">"?1:0),P=`${k}>`;return{range:Wn.cursor(S+P.length,-1),changes:{from:S,to:j,insert:P}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Y4=$s({String:A.string,Number:A.number,"True False":A.bool,PropertyName:A.propertyName,Null:A.null,", :":A.separator,"[ ]":A.squareBracket,"{ }":A.brace}),V4=Kn.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Y4],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),U4=si.define({name:"json",parser:V4.configure({props:[_l.add({Object:yl({except:/^\s*\}/}),Array:yl({except:/^\s*\]/})}),Ts.add({"Object Array":jc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function G4(){return new Qs(U4)}class bc{static create(n,s,l,o,u){let d=o+(o<<8)+n+(s<<4)|0;return new bc(n,s,l,d,u,[],[])}constructor(n,s,l,o,u,d,O){this.type=n,this.value=s,this.from=l,this.hash=o,this.end=u,this.children=d,this.positions=O,this.hashProp=[[sn.contextHash,o]]}addChild(n,s){n.prop(sn.contextHash)!=this.hash&&(n=new ma(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let l=this.children.length-1;return l>=0&&(s=Math.max(s,this.positions[l]+this.children[l].length+this.from)),new ma(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,u,d)=>new ma(ni.none,o,u,d,this.hashProp)})}}var se;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(se||(se={}));class L4{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class D4{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return Yr(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,s=0,l=0){for(let o=s;o<n;o++)l+=this.text.charCodeAt(o)==9?4-l%4:1;return l}findColumn(n){let s=0;for(let l=0;s<this.text.length&&l<n;s++)l+=this.text.charCodeAt(s)==9?4-l%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let n="";for(let s=0;s<this.basePos;s++)n+=" ";return n+this.text.slice(this.basePos)}}function R1(t,n,s){if(s.pos==s.text.length||t!=n.block&&s.indent>=n.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let l=(t.type==se.OrderedList?Oh:dh)(s,n,!1);return l>0&&(t.type!=se.BulletList||uh(s,n,!1)<0)&&s.text.charCodeAt(s.pos+l-1)==t.value}const Dv={[se.Blockquote](t,n,s){return s.next!=62?!1:(s.markers.push(Ne(se.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(ua(s.text.charCodeAt(s.pos+1))?2:1)),t.end=n.lineStart+s.text.length,!0)},[se.ListItem](t,n,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[se.OrderedList]:R1,[se.BulletList]:R1,[se.Document](){return!0}};function ua(t){return t==32||t==9||t==10||t==13}function Yr(t,n=0){for(;n<t.length&&ua(t.charCodeAt(n));)n++;return n}function C1(t,n,s){for(;n>s&&ua(t.charCodeAt(n-1));)n--;return n}function Wv(t){if(t.next!=96&&t.next!=126)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;if(n<t.pos+3)return-1;if(t.next==96){for(let s=n;s<t.text.length;s++)if(t.text.charCodeAt(s)==96)return-1}return n}function Bv(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function uh(t,n,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let l=1;for(let o=t.pos+1;o<t.text.length;o++){let u=t.text.charCodeAt(o);if(u==t.next)l++;else if(!ua(u))return-1}return s&&t.next==45&&Fv(t)>-1&&t.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(ty.SetextHeading)>-1||l<3?-1:1}function Hv(t,n){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==n)return!0;return!1}function dh(t,n,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||ua(t.text.charCodeAt(t.pos+1)))&&(!s||Hv(n,se.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Oh(t,n,s){let l=t.pos,o=t.next;for(;o>=48&&o<=57;){l++;if(l==t.text.length)return-1;o=t.text.charCodeAt(l)}return l==t.pos||l>t.pos+9||o!=46&&o!=41||l<t.text.length-1&&!ua(t.text.charCodeAt(l+1))||s&&!Hv(n,se.OrderedList)&&(t.skipSpace(l+1)==t.text.length||l>t.pos+1||t.next!=49)?-1:l+1-t.pos}function Iv(t){if(t.next!=35)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==35;)n++;if(n<t.text.length&&t.text.charCodeAt(n)!=32)return-1;let s=n-t.pos;return s>6?-1:s}function Fv(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;let s=n;for(;n<t.text.length&&ua(t.text.charCodeAt(n));)n++;return n==t.text.length?s:-1}const xf=/^[ \t]*$/,Kv=/-->/,Jv=/\?>/,gf=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Kv],[/^\s*<\?/,Jv],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,xf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,xf]];function ey(t,n,s){if(t.next!=60)return-1;let l=t.text.slice(t.pos);for(let o=0,u=gf.length-(s?1:0);o<u;o++)if(gf[o][0].test(l))return o;return-1}function X1(t,n){let s=t.countIndent(n,t.pos,t.indent),l=t.countIndent(t.skipSpace(n),n,s);return l>=s+5?s+1:l}function Yn(t,n,s){let l=t.length-1;l>=0&&t[l].to==n&&t[l].type==se.CodeText?t[l].to=s:t.push(Ne(se.CodeText,n,s))}const Zo={LinkReference:void 0,IndentedCode(t,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let l=n.findColumn(s),o=t.lineStart+l,u=t.lineStart+n.text.length,d=[],O=[];for(Yn(d,o,u);t.nextLine()&&n.depth>=t.stack.length;)if(n.pos==n.text.length){Yn(O,t.lineStart-1,t.lineStart);for(let m of n.markers)O.push(m)}else{if(n.indent<s)break;{if(O.length){for(let p of O)p.type==se.CodeText?Yn(d,p.from,p.to):d.push(p);O=[]}Yn(d,t.lineStart-1,t.lineStart);for(let p of n.markers)d.push(p);u=t.lineStart+n.text.length;let m=t.lineStart+n.findColumn(n.baseIndent+4);m<u&&Yn(d,m,u)}}return O.length&&(O=O.filter(m=>m.type!=se.CodeText),O.length&&(n.markers=O.concat(n.markers))),t.addNode(t.buffer.writeElements(d,-o).finish(se.CodeBlock,u-o),o),!0},FencedCode(t,n){let s=Wv(n);if(s<0)return!1;let l=t.lineStart+n.pos,o=n.next,u=s-n.pos,d=n.skipSpace(s),O=C1(n.text,n.text.length,d),m=[Ne(se.CodeMark,l,l+u)];d<O&&m.push(Ne(se.CodeInfo,t.lineStart+d,t.lineStart+O));for(let p=!0,x=!0,g=!1;t.nextLine()&&n.depth>=t.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=u&&n.skipSpace(b)==n.text.length){for(let S of n.markers)m.push(S);x&&g&&Yn(m,t.lineStart-1,t.lineStart),m.push(Ne(se.CodeMark,t.lineStart+n.pos,t.lineStart+b)),t.nextLine();break}else{g=!0,p||(Yn(m,t.lineStart-1,t.lineStart),x=!1);for(let k of n.markers)m.push(k);let S=t.lineStart+n.basePos,Q=t.lineStart+n.text.length;S<Q&&(Yn(m,S,Q),x=!1)}}return t.addNode(t.buffer.writeElements(m,-l).finish(se.FencedCode,t.prevLineEnd()-l),l),!0},Blockquote(t,n){let s=Bv(n);return s<0?!1:(t.startContext(se.Blockquote,n.pos),t.addNode(se.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(t,n){if(uh(n,t,!1)<0)return!1;let s=t.lineStart+n.pos;return t.nextLine(),t.addNode(se.HorizontalRule,s),!0},BulletList(t,n){let s=dh(n,t,!1);if(s<0)return!1;t.block.type!=se.BulletList&&t.startContext(se.BulletList,n.basePos,n.next);let l=X1(n,n.pos+1);return t.startContext(se.ListItem,n.basePos,l-n.baseIndent),t.addNode(se.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},OrderedList(t,n){let s=Oh(n,t,!1);if(s<0)return!1;t.block.type!=se.OrderedList&&t.startContext(se.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let l=X1(n,n.pos+s);return t.startContext(se.ListItem,n.basePos,l-n.baseIndent),t.addNode(se.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},ATXHeading(t,n){let s=Iv(n);if(s<0)return!1;let l=n.pos,o=t.lineStart+l,u=C1(n.text,n.text.length,l),d=u;for(;d>l&&n.text.charCodeAt(d-1)==n.next;)d--;(d==u||d==l||!ua(n.text.charCodeAt(d-1)))&&(d=n.text.length);let O=t.buffer.write(se.HeaderMark,0,s).writeElements(t.parser.parseInline(n.text.slice(l+s+1,d),o+s+1),-o);d<n.text.length&&O.write(se.HeaderMark,d-l,u-l);let m=O.finish(se.ATXHeading1-1+s,n.text.length-l);return t.nextLine(),t.addNode(m,o),!0},HTMLBlock(t,n){let s=ey(n,t,!1);if(s<0)return!1;let l=t.lineStart+n.pos,o=gf[s][1],u=[],d=o!=xf;for(;!o.test(n.text)&&t.nextLine();){if(n.depth<t.stack.length){d=!1;break}for(let p of n.markers)u.push(p)}d&&t.nextLine();let O=o==Kv?se.CommentBlock:o==Jv?se.ProcessingInstructionBlock:se.HTMLBlock,m=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-l).finish(O,m-l),l),!0},SetextHeading:void 0};class W4{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,l){if(this.stage==-1)return!1;let o=l.content+`
|
|
532
|
+
`+s.scrub(),u=this.advance(o);return u>-1&&u<o.length?this.complete(n,l,u):!1}finish(n,s){return(this.stage==2||this.stage==3)&&Yr(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,l){return n.addLeafElement(s,Ne(se.LinkReference,this.start,this.start+l,this.elts)),!0}nextStage(n){return n?(this.pos=n.to-this.start,this.elts.push(n),this.stage++,!0):(n===!1&&(this.stage=-1),!1)}advance(n){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(uy(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ne(se.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(oy(n,Yr(n,this.pos),this.start)))return-1}else if(this.stage==2){let s=Yr(n,this.pos),l=0;if(s>this.pos){let o=cy(n,s,this.start);if(o){let u=zO(n,o.to-this.start);u>0&&(this.nextStage(o),l=u)}}return l||(l=zO(n,this.pos)),l>0&&l<n.length?l:-1}else return zO(n,this.pos)}}}function zO(t,n){for(;n<t.length;n++){let s=t.charCodeAt(n);if(s==10)break;if(!ua(s))return-1}return n}class B4{nextLine(n,s,l){let o=s.depth<n.stack.length?-1:Fv(s),u=s.next;if(o<0)return!1;let d=Ne(se.HeaderMark,n.lineStart+s.pos,n.lineStart+o);return n.nextLine(),n.addLeafElement(l,Ne(u==61?se.SetextHeading1:se.SetextHeading2,l.start,n.prevLineEnd(),[...n.parser.parseInline(l.content,l.start),d])),!0}finish(){return!1}}const ty={LinkReference(t,n){return n.content.charCodeAt(0)==91?new W4(n):null},SetextHeading(){return new B4}},H4=[(t,n)=>Iv(n)>=0,(t,n)=>Wv(n)>=0,(t,n)=>Bv(n)>=0,(t,n)=>dh(n,t,!0)>=0,(t,n)=>Oh(n,t,!0)>=0,(t,n)=>uh(n,t,!0)>=0,(t,n)=>ey(n,t,!0)>=0],I4={text:"",end:0};class F4{constructor(n,s,l,o){this.parser=n,this.input=s,this.ranges=o,this.line=new D4,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=o[o.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=o[0].from,this.block=bc.create(se.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=l.length?new ez(l,s):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:n}=this;for(;;){for(let l=0;;){let o=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;l<n.markers.length&&(!o||n.markers[l].from<o.end);){let u=n.markers[l++];this.addNode(u.type,u.from,u.to)}if(!o)break;this.finishContext()}if(n.pos<n.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(n.basePos))return null;e:for(;;){for(let l of this.parser.blockParsers)if(l){let o=l(this,n);if(o!=!1){if(o==!0)return null;n.forward();continue e}}break}let s=new L4(this.lineStart+n.pos,n.text.slice(n.pos));for(let l of this.parser.leafBlockParsers)if(l){let o=l(this,s);o&&s.parsers.push(o)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let l of this.parser.endLeafBlock)if(l(this,n,s))break e}for(let l of s.parsers)if(l.nextLine(this,n,s))return null;s.content+=`
|
|
533
|
+
`+n.scrub();for(let l of n.markers)s.marks.push(l)}return this.finishLeaf(s),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=dy(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let s=I4;if(s.end=n,n>=this.to)s.text="";else if(s.text=this.lineChunkAt(n),s.end+=s.text.length,this.ranges.length>1){let l=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<s.end;){o++;let u=this.ranges[o].from,d=this.lineChunkAt(u);s.end=u+d.length,s.text=s.text.slice(0,this.ranges[o-1].to-l)+d,l=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:l}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=l,n.reset(s);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],u=this.parser.skipContextMarkup[o.type];if(!u)throw new Error("Unhandled block context "+se[o.type]);let d=this.line.markers.length;if(!u(o,this,n)){this.line.markers.length>d&&(o.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let s=this.input.chunk(n),l;if(this.input.lineChunks)l=s==`
|
|
534
534
|
`?"":s;else{let o=s.indexOf(`
|
|
535
|
-
`);l=o<0?s:s.slice(0,o)}return n+l.length>this.to?l.slice(0,this.to-n):l}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,l=0){this.block=bc.create(n,l,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,l=0){this.startContext(this.parser.getNodeType(n),s,l)}addNode(n,s,l){typeof n=="number"&&(n=new ma(this.parser.nodeSet.types[n],Xl,Xl,(l??this.prevLineEnd())-s)),this.block.addChild(n,s-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,s){this.addNode(this.buffer.writeElements(bf(s.children,n.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let n=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(n.toTree(this.parser.nodeSet),n.from-s.from),this.block=s}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?ay(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let l of n.parsers)if(l.finish(this,n))return;let s=bf(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(ne.Paragraph,n.content.length),n.start)}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new ly(n,s)}get buffer(){return new sy(this.parser.nodeSet)}}function ay(t,n,s,l,o){let u=t[n].to,d=[],O=[],m=s.from+l;function p(x,g){for(;g?x>=u:x>u;){let b=t[n+1].from-u;l+=b,x+=b,n++,u=t[n].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+l,!0);let g=x.from+l,b,S=o.get(x.tree);S?b=S:x.to+l>u?(b=ay(t,n,x,l,o),p(x.to+l,!1)):b=x.toTree(),d.push(b),O.push(g-m)}return p(s.to+l,!1),new ma(s.type,d,O,s.to+l-m,s.tree?s.tree.propValues:void 0)}class Yc extends v0{constructor(n,s,l,o,u,d,O,m,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=l,this.blockNames=o,this.endLeafBlock=u,this.skipContextMarkup=d,this.inlineParsers=O,this.inlineNames=m,this.wrappers=p,this.nodeTypes=Object.create(null);for(let x of n.types)this.nodeTypes[x.name]=x.id}createParse(n,s,l){let o=new F4(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}configure(n){let s=gf(n);if(!s)return this;let{nodeSet:l,skipContextMarkup:o}=this,u=this.blockParsers.slice(),d=this.leafBlockParsers.slice(),O=this.blockNames.slice(),m=this.inlineParsers.slice(),p=this.inlineNames.slice(),x=this.endLeafBlock.slice(),g=this.wrappers;if(qr(s.defineNodes)){o=Object.assign({},o);let b=l.types.slice(),S;for(let Q of s.defineNodes){let{name:k,block:$,composite:j,style:P}=typeof Q=="string"?{name:Q}:Q;if(b.some(U=>U.name==k))continue;j&&(o[b.length]=(U,C,X)=>j(C,X,U.value));let N=b.length,Z=j?["Block","BlockContext"]:$?N>=ne.ATXHeading1&&N<=ne.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(ni.define({id:N,name:k,props:Z&&[[sn.group,Z]]})),P&&(S||(S={}),Array.isArray(P)||P instanceof jj?S[k]=P:Object.assign(S,P))}l=new kf(b),S&&(l=l.extend($s(S)))}if(qr(s.props)&&(l=l.extend(...s.props)),qr(s.remove))for(let b of s.remove){let S=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);S>-1&&(u[S]=d[S]=void 0),Q>-1&&(m[Q]=void 0)}if(qr(s.parseBlock))for(let b of s.parseBlock){let S=O.indexOf(b.name);if(S>-1)u[S]=b.parse,d[S]=b.leaf;else{let Q=b.before?Ao(O,b.before):b.after?Ao(O,b.after)+1:O.length-1;u.splice(Q,0,b.parse),d.splice(Q,0,b.leaf),O.splice(Q,0,b.name)}b.endLeaf&&x.push(b.endLeaf)}if(qr(s.parseInline))for(let b of s.parseInline){let S=p.indexOf(b.name);if(S>-1)m[S]=b.parse;else{let Q=b.before?Ao(p,b.before):b.after?Ao(p,b.after)+1:p.length-1;m.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return s.wrap&&(g=g.concat(s.wrap)),new Yc(l,u,d,O,x,o,m,p,g)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let l=new Oh(this,n,s);e:for(let o=s;o<l.end;){let u=l.char(o);for(let d of this.inlineParsers)if(d){let O=d(l,u,o);if(O>=0){o=O;continue e}}o++}return l.resolveMarkers(0)}}function qr(t){return t!=null&&t.length>0}function gf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let n=gf(t[0]);if(t.length==1)return n;let s=gf(t.slice(1));if(!s||!n)return n||s;let l=(d,O)=>(d||Xl).concat(O||Xl),o=n.wrap,u=s.wrap;return{props:l(n.props,s.props),defineNodes:l(n.defineNodes,s.defineNodes),parseBlock:l(n.parseBlock,s.parseBlock),parseInline:l(n.parseInline,s.parseInline),remove:l(n.remove,s.remove),wrap:o?u?(d,O,m,p)=>o(u(d,O,m,p),O,m,p):o:u}}function Ao(t,n){let s=t.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let ny=[ni.none];for(let t=1,n;n=ne[t];t++)ny[t]=ni.define({id:t,name:n,props:t>=ne.Escape?[]:[[sn.group,t in Dv?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Xl=[];class sy{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,l,o=0){return this.content.push(n,s,l,4+o*4),this}writeElements(n,s=0){for(let l of n)l.writeTo(this,s);return this}finish(n,s){return ma.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let ei=class{constructor(n,s,l,o=Xl){this.type=n,this.from=s,this.to=l,this.children=o}writeTo(n,s){let l=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-l)}toTree(n){return new sy(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class ly{constructor(n,s){this.tree=n,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Xl}writeTo(n,s){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function Ne(t,n,s,l){return new ei(t,n,s,l)}const ry={resolve:"Emphasis",mark:"EmphasisMark"},iy={resolve:"Emphasis",mark:"EmphasisMark"},ys={},vc={};class Dt{constructor(n,s,l,o){this.type=n,this.from=s,this.to=l,this.side=o}}const _1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ti=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ti=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const zO={Escape(t,n,s){if(n!=92||s==t.end-1)return-1;let l=t.char(s+1);for(let o=0;o<_1.length;o++)if(_1.charCodeAt(o)==l)return t.append(Ne(ne.Escape,s,s+2));return-1},Entity(t,n,s){if(n!=38)return-1;let l=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return l?t.append(Ne(ne.Entity,s,s+1+l[0].length)):-1},InlineCode(t,n,s){if(n!=96||s&&t.char(s-1)==96)return-1;let l=s+1;for(;l<t.end&&t.char(l)==96;)l++;let o=l-s,u=0;for(;l<t.end;l++)if(t.char(l)==96){if(u++,u==o&&t.char(l+1)!=96)return t.append(Ne(ne.InlineCode,s,l+1,[Ne(ne.CodeMark,s,s+o),Ne(ne.CodeMark,l+1-o,l+1)]))}else u=0;return-1},HTMLTag(t,n,s){if(n!=60||s==t.end-1)return-1;let l=t.slice(s+1,t.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(l);if(o)return t.append(Ne(ne.Autolink,s,s+1+o[0].length,[Ne(ne.LinkMark,s,s+1),Ne(ne.URL,s+1,s+o[0].length),Ne(ne.LinkMark,s+o[0].length,s+1+o[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(l);if(u)return t.append(Ne(ne.Comment,s,s+1+u[0].length));let d=/^\?[^]*?\?>/.exec(l);if(d)return t.append(Ne(ne.ProcessingInstruction,s,s+1+d[0].length));let O=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(l);return O?t.append(Ne(ne.HTMLTag,s,s+1+O[0].length)):-1},Emphasis(t,n,s){if(n!=95&&n!=42)return-1;let l=s+1;for(;t.char(l)==n;)l++;let o=t.slice(s-1,s),u=t.slice(l,l+1),d=ti.test(o),O=ti.test(u),m=/\s|^$/.test(o),p=/\s|^$/.test(u),x=!p&&(!O||m||d),g=!m&&(!d||p||O),b=x&&(n==42||!g||d),S=g&&(n==42||!x||O);return t.append(new Dt(n==95?ry:iy,s,l,(b?1:0)|(S?2:0)))},HardBreak(t,n,s){if(n==92&&t.char(s+1)==10)return t.append(Ne(ne.HardBreak,s,s+2));if(n==32){let l=s+1;for(;t.char(l)==32;)l++;if(t.char(l)==10&&l>=s+2)return t.append(Ne(ne.HardBreak,s,l+1))}return-1},Link(t,n,s){return n==91?t.append(new Dt(ys,s,s+1,1)):-1},Image(t,n,s){return n==33&&t.char(s+1)==91?t.append(new Dt(vc,s,s+2,1)):-1},LinkEnd(t,n,s){if(n!=93)return-1;for(let l=t.parts.length-1;l>=0;l--){let o=t.parts[l];if(o instanceof Dt&&(o.type==ys||o.type==vc)){if(!o.side||t.skipSpace(o.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[l]=null,-1;let u=t.takeContent(l),d=t.parts[l]=K4(t,u,o.type==ys?ne.Link:ne.Image,o.from,s+1);if(o.type==ys)for(let O=0;O<l;O++){let m=t.parts[O];m instanceof Dt&&m.type==ys&&(m.side=0)}return d.to}}return-1}};function K4(t,n,s,l,o){let{text:u}=t,d=t.char(o),O=o;if(n.unshift(Ne(ne.LinkMark,l,l+(s==ne.Image?2:1))),n.push(Ne(ne.LinkMark,o-1,o)),d==40){let m=t.skipSpace(o+1),p=oy(u,m-t.offset,t.offset),x;p&&(m=t.skipSpace(p.to),m!=p.to&&(x=cy(u,m-t.offset,t.offset),x&&(m=t.skipSpace(x.to)))),t.char(m)==41&&(n.push(Ne(ne.LinkMark,o,o+1)),O=m+1,p&&n.push(p),x&&n.push(x),n.push(Ne(ne.LinkMark,m,O)))}else if(d==91){let m=uy(u,o-t.offset,t.offset,!1);m&&(n.push(m),O=m.to)}return Ne(s,l,O,n)}function oy(t,n,s){if(t.charCodeAt(n)==60){for(let o=n+1;o<t.length;o++){let u=t.charCodeAt(o);if(u==62)return Ne(ne.URL,n+s,o+1+s);if(u==60||u==10)return!1}return null}else{let o=0,u=n;for(let d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(ua(O))break;if(d)d=!1;else if(O==40)o++;else if(O==41){if(!o)break;o--}else O==92&&(d=!0)}return u>n?Ne(ne.URL,n+s,u+s):u==t.length?null:!1}}function cy(t,n,s){let l=t.charCodeAt(n);if(l!=39&&l!=34&&l!=40)return!1;let o=l==40?41:l;for(let u=n+1,d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(d)d=!1;else{if(O==o)return Ne(ne.LinkTitle,n+s,u+1+s);O==92&&(d=!0)}}return null}function uy(t,n,s,l){for(let o=!1,u=n+1,d=Math.min(t.length,u+999);u<d;u++){let O=t.charCodeAt(u);if(o)o=!1;else{if(O==93)return l?!1:Ne(ne.LinkLabel,n+s,u+1+s);if(l&&!ua(O)&&(l=!1),O==91)return!1;O==92&&(o=!0)}}return null}class Oh{constructor(n,s,l){this.parser=n,this.text=s,this.offset=l,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,s){return this.text.slice(n-this.offset,s-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,s,l,o,u){return this.append(new Dt(n,s,l,(o?1:0)|(u?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let s=this.parts[n];if(s instanceof Dt&&(s.type==ys||s.type==vc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let l=n;l<this.parts.length;l++){let o=this.parts[l];if(!(o instanceof Dt&&o.type.resolve&&o.side&2))continue;let u=o.type==ry||o.type==iy,d=o.to-o.from,O,m=l-1;for(;m>=n;m--){let k=this.parts[m];if(k instanceof Dt&&k.side&1&&k.type==o.type&&!(u&&(o.side&1||k.side&2)&&(k.to-k.from+d)%3==0&&((k.to-k.from)%3||d%3))){O=k;break}}if(!O)continue;let p=o.type.resolve,x=[],g=O.from,b=o.to;if(u){let k=Math.min(2,O.to-O.from,d);g=O.to-k,b=o.from+k,p=k==1?"Emphasis":"StrongEmphasis"}O.type.mark&&x.push(this.elt(O.type.mark,g,O.to));for(let k=m+1;k<l;k++)this.parts[k]instanceof ei&&x.push(this.parts[k]),this.parts[k]=null;o.type.mark&&x.push(this.elt(o.type.mark,o.from,b));let S=this.elt(p,g,b,x);this.parts[m]=u&&O.from!=g?new Dt(O.type,O.from,g,O.side):null,(this.parts[l]=u&&o.to!=b?new Dt(o.type,b,o.to,o.side):null)?this.parts.splice(l,0,S):this.parts[l]=S}let s=[];for(let l=n;l<this.parts.length;l++){let o=this.parts[l];o instanceof ei&&s.push(o)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let l=this.parts[s];if(l instanceof Dt&&l.type==n&&l.side&1)return s}return null}takeContent(n){let s=this.resolveMarkers(n);return this.parts.length=n,s}getDelimiterAt(n){let s=this.parts[n];return s instanceof Dt?s:null}skipSpace(n){return Yr(this.text,n-this.offset)+this.offset}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new ly(n,s)}}Oh.linkStart=ys;Oh.imageStart=vc;function bf(t,n){if(!n.length)return t;if(!t.length)return n;let s=t.slice(),l=0;for(let o of n){for(;l<s.length&&s[l].to<o.to;)l++;if(l<s.length&&s[l].from<o.from){let u=s[l];u instanceof ei&&(s[l]=new ei(u.type,u.from,u.to,bf(u.children,[o])))}else s.splice(l++,0,o)}return s}const J4=[ne.CodeBlock,ne.ListItem,ne.OrderedList,ne.BulletList];class ez{constructor(n,s){this.fragments=n,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,s){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let u=this.fragment.to;for(;u>0&&this.input.read(u-1,u)!=`
|
|
536
|
-
`;)u--;this.fragmentEnd=u?u-1:0}let l=this.cursor;l||(l=this.cursor=this.fragment.tree.cursor(),l.firstChild());let o=n+this.fragment.offset;for(;l.to<=o;)if(!l.parent())return!1;for(;;){if(l.from>=o)return this.fragment.from<=s;if(!l.childAfter(o))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(sn.contextHash)==n}takeNodes(n){let s=this.cursor,l=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),u=n.absoluteLineStart,d=u,O=n.block.children.length,m=d,p=O;for(;;){if(s.to-l>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=dy(s.from-l,n.ranges);if(s.to-l<=n.ranges[n.rangeI].to)n.addNode(s.tree,x);else{let g=new ma(n.parser.nodeSet.types[ne.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(g,s.tree),n.addNode(g,x)}if(s.type.is("Block")&&(J4.indexOf(s.type.id)<0?(d=s.to-l,O=n.block.children.length):(d=m,O=p),m=s.to-l,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>O;)n.block.children.pop(),n.block.positions.pop();return d-u}}function dy(t,n){let s=t;for(let l=1;l<n.length;l++){let o=n[l-1].to,u=n[l].from;o<t&&(s-=u-o)}return s}const tz=$s({"Blockquote/...":A.quote,HorizontalRule:A.contentSeparator,"ATXHeading1/... SetextHeading1/...":A.heading1,"ATXHeading2/... SetextHeading2/...":A.heading2,"ATXHeading3/...":A.heading3,"ATXHeading4/...":A.heading4,"ATXHeading5/...":A.heading5,"ATXHeading6/...":A.heading6,"Comment CommentBlock":A.comment,Escape:A.escape,Entity:A.character,"Emphasis/...":A.emphasis,"StrongEmphasis/...":A.strong,"Link/... Image/...":A.link,"OrderedList/... BulletList/...":A.list,"BlockQuote/...":A.quote,"InlineCode CodeText":A.monospace,"URL Autolink":A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":A.processingInstruction,"CodeInfo LinkLabel":A.labelName,LinkTitle:A.string,Paragraph:A.content}),az=new Yc(new kf(ny).extend(tz),Object.keys(Zo).map(t=>Zo[t]),Object.keys(Zo).map(t=>ty[t]),Object.keys(Zo),H4,Dv,Object.keys(zO).map(t=>zO[t]),Object.keys(zO),[]);function nz(t,n,s){let l=[];for(let o=t.firstChild,u=n;;o=o.nextSibling){let d=o?o.from:s;if(d>u&&l.push({from:u,to:d}),!o)break;u=o.to}return l}function sz(t){let{codeParser:n,htmlParser:s}=t;return{wrap:w0((o,u)=>{let d=o.type.id;if(n&&(d==ne.CodeBlock||d==ne.FencedCode)){let O="";if(d==ne.FencedCode){let p=o.node.getChild(ne.CodeInfo);p&&(O=u.read(p.from,p.to))}let m=n(O);if(m)return{parser:m,overlay:p=>p.type.id==ne.CodeText,bracketed:d==ne.FencedCode}}else if(s&&(d==ne.HTMLBlock||d==ne.HTMLTag||d==ne.CommentBlock))return{parser:s,overlay:nz(o.node,o.from,o.to)};return null})}}const lz={resolve:"Strikethrough",mark:"StrikethroughMark"},rz={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":A.strikethrough}},{name:"StrikethroughMark",style:A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,n,s){if(n!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let l=t.slice(s-1,s),o=t.slice(s+2,s+3),u=/\s|^$/.test(l),d=/\s|^$/.test(o),O=ti.test(l),m=ti.test(o);return t.addDelimiter(lz,s,s+2,!d&&(!m||u||O),!u&&(!O||d||m))},after:"Emphasis"}]};function Vr(t,n,s=0,l,o=0){let u=0,d=!0,O=-1,m=-1,p=!1,x=()=>{l.push(t.elt("TableCell",o+O,o+m,t.parser.parseInline(n.slice(O,m),o+O)))};for(let g=s;g<n.length;g++){let b=n.charCodeAt(g);b==124&&!p?((!d||O>-1)&&u++,d=!1,l&&(O>-1&&x(),l.push(t.elt("TableDelimiter",g+o,g+o+1))),O=m=-1):(p||b!=32&&b!=9)&&(O<0&&(O=g),m=g+1),p=!p&&b==92}return O>-1&&(u++,l&&x()),u}function Z1(t,n){for(let s=n;s<t.length;s++){let l=t.charCodeAt(s);if(l==124)return!0;l==92&&s++}return!1}const Oy=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class A1{constructor(){this.rows=null}nextLine(n,s,l){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&Oy.test(o=s.text.slice(s.pos))){let u=[];Vr(n,l.content,0,u,l.start)==Vr(n,o,s.pos)&&(this.rows=[n.elt("TableHeader",l.start,l.start+l.content.length,u),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let o=[];Vr(n,s.text,s.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,o))}return!1}finish(n,s){return this.rows?(n.addLeafElement(s,n.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const iz={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":A.heading}},"TableRow",{name:"TableCell",style:A.content},{name:"TableDelimiter",style:A.processingInstruction}],parseBlock:[{name:"Table",leaf(t,n){return Z1(n.content,0)?new A1:null},endLeaf(t,n,s){if(s.parsers.some(o=>o instanceof A1)||!Z1(n.text,n.basePos))return!1;let l=t.peekLine();return Oy.test(l)&&Vr(t,n.text,n.basePos)==Vr(t,l,n.basePos)},before:"SetextHeading"}]};class oz{nextLine(){return!1}finish(n,s){return n.addLeafElement(s,n.elt("Task",s.start,s.start+s.content.length,[n.elt("TaskMarker",s.start,s.start+3),...n.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const cz={defineNodes:[{name:"Task",block:!0,style:A.list},{name:"TaskMarker",style:A.atom}],parseBlock:[{name:"TaskList",leaf(t,n){return/^\[[ xX]\][ \t]/.test(n.content)&&t.parentType().name=="ListItem"?new oz:null},after:"SetextHeading"}]},E1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,q1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,uz=/[\w-]+\.[\w-]+($|\/)/,M1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Y1=/\/[a-zA-Z\d@.]+/gy;function V1(t,n,s,l){let o=0;for(let u=n;u<s;u++)t[u]==l&&o++;return o}function dz(t,n){q1.lastIndex=n;let s=q1.exec(t);if(!s||uz.exec(s[0])[0].indexOf("_")>-1)return-1;let l=n+s[0].length;for(;;){let o=t[l-1],u;if(/[?!.,:*_~]/.test(o)||o==")"&&V1(t,n,l,")")>V1(t,n,l,"("))l--;else if(o==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(n,l))))l=n+u.index;else break}return l}function U1(t,n){M1.lastIndex=n;let s=M1.exec(t);if(!s)return-1;let l=s[0][s[0].length-1];return l=="_"||l=="-"?-1:n+s[0].length-(l=="."?1:0)}const Oz={parseInline:[{name:"Autolink",parse(t,n,s){let l=s-t.offset;if(l&&/\w/.test(t.text[l-1]))return-1;E1.lastIndex=l;let o=E1.exec(t.text),u=-1;if(!o)return-1;if(o[1]||o[2]){if(u=dz(t.text,l+o[0].length),u>-1&&t.hasOpenLink){let d=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(l,u));u=l+d[0].length}}else o[3]?u=U1(t.text,l):(u=U1(t.text,l+o[0].length),u>-1&&o[0]=="xmpp:"&&(Y1.lastIndex=u,o=Y1.exec(t.text),o&&(u=o.index+o[0].length)));return u<0?-1:(t.addElement(t.elt("URL",s,u+t.offset)),u+t.offset)}}]},fz=[iz,cz,rz,Oz];function fy(t,n,s){return(l,o,u)=>{if(o!=t||l.char(u+1)==t)return-1;let d=[l.elt(s,u,u+1)];for(let O=u+1;O<l.end;O++){let m=l.char(O);if(m==t)return l.addElement(l.elt(n,u,O+1,d.concat(l.elt(s,O,O+1))));if(m==92&&d.push(l.elt("Escape",O,O+++2)),ua(m))break}return-1}}const hz={defineNodes:[{name:"Superscript",style:A.special(A.content)},{name:"SuperscriptMark",style:A.processingInstruction}],parseInline:[{name:"Superscript",parse:fy(94,"Superscript","SuperscriptMark")}]},mz={defineNodes:[{name:"Subscript",style:A.special(A.content)},{name:"SubscriptMark",style:A.processingInstruction}],parseInline:[{name:"Subscript",parse:fy(126,"Subscript","SubscriptMark")}]},pz={defineNodes:[{name:"Emoji",style:A.character}],parseInline:[{name:"Emoji",parse(t,n,s){let l;return n!=58||!(l=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+l[0].length))}}]},hy=j0({commentTokens:{block:{open:"<!--",close:"-->"}}}),my=new sn,py=az.configure({props:[Ts.add(t=>!t.is("Block")||t.is("Document")||vf(t)!=null||xz(t)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),my.add(vf),_l.add({Document:()=>null}),Nj.add({Document:hy})]});function vf(t){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return n?+n[1]:void 0}function xz(t){return t.name=="OrderedList"||t.name=="BulletList"}function gz(t,n){let s=t;for(;;){let l=s.nextSibling,o;if(!l||(o=vf(l.type))!=null&&o<=n)break;s=l}return s.to}const bz=kj.of((t,n,s)=>{for(let l=ga(t).resolveInner(s,-1);l&&!(l.from<n);l=l.parent){let o=l.type.prop(my);if(o==null)continue;let u=gz(l,o);if(u>s)return{from:s,to:u}}return null});function fh(t){return new $j(hy,t,[],"markdown")}const vz=fh(py),yz=py.configure([fz,mz,hz,pz,{props:[Ts.add({Table:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}]),yc=fh(yz);function Sz(t,n){return s=>{if(s&&t){let l=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?l=t(s):l=yg.matchLanguageName(t,s,!0),l instanceof yg)return l.support?l.support.language.parser:zj.getSkippingParser(l.load());if(l)return l.parser}return n?n.parser:null}}let RO=class{constructor(n,s,l,o,u,d,O){this.node=n,this.from=s,this.to=l,this.spaceBefore=o,this.spaceAfter=u,this.type=d,this.item=O}blank(n,s=!0){let l=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;l.length<n;)l+=" ";return l}else{for(let o=this.to-this.from-l.length-this.spaceAfter.length;o>0;o--)l+=" ";return l+(s?this.spaceAfter:"")}}marker(n,s){let l=this.node.name=="OrderedList"?String(+gy(this.item,n)[2]+s):"";return this.spaceBefore+l+this.type+this.spaceAfter}};function xy(t,n){let s=[],l=[];for(let o=t;o;o=o.parent){if(o.name=="FencedCode")return l;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let u=s[o],d,O=n.lineAt(u.from),m=u.from-O.from;if(u.name=="Blockquote"&&(d=/^ *>( ?)/.exec(O.text.slice(m))))l.push(new RO(u,m,m+d[0].length,"",d[1],">",null));else if(u.name=="ListItem"&&u.parent.name=="OrderedList"&&(d=/^( *)\d+([.)])( *)/.exec(O.text.slice(m)))){let p=d[3],x=d[0].length;p.length>=4&&(p=p.slice(0,p.length-4),x-=4),l.push(new RO(u.parent,m,m+x,d[1],p,d[2],u))}else if(u.name=="ListItem"&&u.parent.name=="BulletList"&&(d=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(O.text.slice(m)))){let p=d[4],x=d[0].length;p.length>4&&(p=p.slice(0,p.length-4),x-=4);let g=d[2];d[3]&&(g+=d[3].replace(/[xX]/," ")),l.push(new RO(u.parent,m,m+x,d[1],p,g,u))}}return l}function gy(t,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(t.from,t.from+10))}function CO(t,n,s,l=0){for(let o=-1,u=t;;){if(u.name=="ListItem"){let O=gy(u,n),m=+O[2];if(o>=0){if(m!=o+1)return;s.push({from:u.from+O[1].length,to:u.from+O[0].length,insert:String(o+2+l)})}o=m}let d=u.nextSibling;if(!d)break;u=d}}function hh(t,n){let s=/^[ \t]*/.exec(t)[0].length;if(!s||n.facet(Tj)!=" ")return t;let l=Lr(t,4,s),o="";for(let u=l;u>0;)u>=4?(o+=" ",u-=4):(o+=" ",u--);return o+t.slice(s)}const Qz=(t={})=>({state:n,dispatch:s})=>{let l=ga(n),{doc:o}=n,u=null,d=n.changeByRange(O=>{if(!O.empty||!yc.isActiveAt(n,O.from,-1)&&!yc.isActiveAt(n,O.from,1))return u={range:O};let m=O.from,p=o.lineAt(m),x=xy(l.resolveInner(m,-1),o);for(;x.length&&x[x.length-1].from>m-p.from;)x.pop();if(!x.length)return u={range:O};let g=x[x.length-1];if(g.to-g.spaceAfter.length>m-p.from)return u={range:O};let b=m>=g.to-g.spaceAfter.length&&!/\S/.test(p.text.slice(g.to));if(g.item&&b){let j=g.node.firstChild,P=g.node.getChild("ListItem","ListItem");if(j.to>=m||P&&P.to<m||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||t.nonTightLists===!1){let N=x.length>1?x[x.length-2]:null,Z,U="";N&&N.item?(Z=p.from+N.from,U=N.marker(o,1)):Z=p.from+(N?N.to:0);let C=[{from:Z,to:m,insert:U}];return g.node.name=="OrderedList"&&CO(g.item,o,C,-2),N&&N.node.name=="OrderedList"&&CO(N.item,o,C),{range:Wn.cursor(Z+U.length),changes:C}}else{let N=L1(x,n,p);return{range:Wn.cursor(m+N.length+1),changes:{from:p.from,insert:N+n.lineBreak}}}}if(g.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),P=/>\s*$/.exec(j.text);if(P&&P.index==g.from){let N=n.changes([{from:j.from+P.index,to:j.to},{from:p.from+g.from,to:p.to}]);return{range:O.map(N),changes:N}}}let S=[];g.node.name=="OrderedList"&&CO(g.item,o,S);let Q=g.item&&g.item.from<p.from,k="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,P=x.length-1;j<=P;j++)k+=j==P&&!Q?x[j].marker(o,1):x[j].blank(j<P?Lr(p.text,4,x[j+1].from)-k.length:null);let $=m;for(;$>p.from&&/\s/.test(p.text.charAt($-p.from-1));)$--;return k=hh(k,n),wz(g.node,n.doc)&&(k=L1(x,n,p)+n.lineBreak+k),S.push({from:$,to:m,insert:n.lineBreak+k}),{range:Wn.cursor($+k.length+1),changes:S}});return u?!1:(s(n.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)},jz=Qz();function G1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function wz(t,n){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,l=t.getChild("ListItem","ListItem");if(!l)return!1;let o=n.lineAt(s.to),u=n.lineAt(l.from),d=/^[\s>]*$/.test(o.text);return o.number+(d?0:1)<u.number}function L1(t,n,s){let l="";for(let o=0,u=t.length-2;o<=u;o++)l+=t[o].blank(o<u?Lr(s.text,4,t[o+1].from)-l.length:null,o<u);return hh(l,n)}function kz(t,n){let s=t.resolveInner(n,-1),l=n;G1(s)&&(l=s.from,s=s.parent);for(let o;o=s.childBefore(l);)if(G1(o))l=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,l=s.to;else break;return s}const $z=({state:t,dispatch:n})=>{let s=ga(t),l=null,o=t.changeByRange(u=>{let d=u.from,{doc:O}=t;if(u.empty&&yc.isActiveAt(t,u.from)){let m=O.lineAt(d),p=xy(kz(s,d),O);if(p.length){let x=p[p.length-1],g=x.to-x.spaceAfter.length+(x.spaceAfter?1:0);if(d-m.from>g&&!/\S/.test(m.text.slice(g,d-m.from)))return{range:Wn.cursor(m.from+g),changes:{from:m.from+g,to:d}};if(d-m.from==g&&(!x.item||m.from<=x.item.from||!/\S/.test(m.text.slice(0,x.to)))){let b=m.from+x.from;if(x.item&&x.node.from<x.item.from&&/\S/.test(m.text.slice(x.from,x.to))){let S=x.blank(Lr(m.text,4,x.to)-Lr(m.text,4,x.from));return b==m.from&&(S=hh(S,t)),{range:Wn.cursor(b+S.length),changes:{from:b,to:m.from+x.to,insert:S}}}if(b<d)return{range:Wn.cursor(b),changes:{from:b,to:d}}}}}return l={range:u}});return l?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},Tz=[{key:"Enter",run:jz},{key:"Backspace",run:$z}],by=Lv({matchClosingTags:!1});function Pz(t={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:l=!0,base:{parser:o}=vz,completeHTMLTags:u=!0,pasteURLAsLink:d=!0,htmlTagLanguage:O=by}=t;if(!(o instanceof Yc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let m=t.extensions?[t.extensions]:[],p=[O.support,bz],x;d&&p.push(Cz),s instanceof Qs?(p.push(s.support),x=s.language):s&&(x=s);let g=n||x?Sz(n,x):void 0;m.push(sz({codeParser:g,htmlParser:O.language.parser})),l&&p.push(wj.high(JO.of(Tz)));let b=fh(o.configure(m));return u&&p.push(b.data.of({autocomplete:Nz})),new Qs(b,p)}function Nz(t){let{state:n,pos:s}=t,l=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!l)return null;let o=ga(n).resolveInner(s,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:s-l[0].length,to:s,options:zz(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let XO=null;function zz(){if(XO)return XO;let t=A4(new Pj(k0.create({extensions:by}),0,!0));return XO=t?t.options:[]}const Rz=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Cz=kl.domEventHandlers({paste:(t,n)=>{var s;let{main:l}=n.state.selection;if(l.empty)return!1;let o=(s=t.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!yc.isActiveAt(n.state,l.from,1)))return!1;let u=ga(n.state),d=!1;return u.iterate({from:l.from,to:l.to,enter:O=>{(O.from>l.from||Rz.test(O.name))&&(d=!0)},leave:O=>{O.to<l.to&&(d=!0)}}),d?!1:(n.dispatch({changes:[{from:l.from,insert:"["},{from:l.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),Xz=1,vy=194,yy=195,_z=196,D1=197,Zz=198,Az=199,Ez=200,qz=2,Sy=3,W1=201,Mz=24,Yz=25,Vz=49,Uz=50,Gz=55,Lz=56,Dz=57,Wz=59,Bz=60,Hz=61,Iz=62,Fz=63,Kz=65,Jz=238,eR=71,tR=241,aR=242,nR=243,sR=244,lR=245,rR=246,iR=247,oR=248,Qy=72,cR=249,uR=250,dR=251,OR=252,fR=253,hR=254,mR=255,pR=256,xR=73,gR=77,bR=263,vR=112,yR=130,SR=151,QR=152,jR=155,ws=10,ai=13,mh=32,Vc=9,ph=35,wR=40,kR=46,yf=123,B1=125,jy=39,wy=34,H1=92,$R=111,TR=120,PR=78,NR=117,zR=85,RR=new Set([Yz,Vz,Uz,bR,Kz,yR,Lz,Dz,Jz,Iz,Fz,Qy,xR,gR,Bz,Hz,SR,QR,jR,vR]);function _O(t){return t==ws||t==ai}function ZO(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const CR=new gt((t,n)=>{let s;if(t.next<0)t.acceptToken(Az);else if(n.context.flags&Io)_O(t.next)&&t.acceptToken(Zz,1);else if(((s=t.peek(-1))<0||_O(s))&&n.canShift(D1)){let l=0;for(;t.next==mh||t.next==Vc;)t.advance(),l++;(t.next==ws||t.next==ai||t.next==ph)&&t.acceptToken(D1,-l)}else _O(t.next)&&t.acceptToken(_z,1)},{contextual:!0}),XR=new gt((t,n)=>{let s=n.context;if(s.flags)return;let l=t.peek(-1);if(l==ws||l==ai){let o=0,u=0;for(;;){if(t.next==mh)o++;else if(t.next==Vc)o+=8-o%8;else break;t.advance(),u++}o!=s.indent&&t.next!=ws&&t.next!=ai&&t.next!=ph&&(o<s.indent?t.acceptToken(yy,-u):t.acceptToken(vy))}}),Io=1,ky=2,Ja=4,en=8,tn=16,an=32;function Fo(t,n,s){this.parent=t,this.indent=n,this.flags=s,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+s+(s<<6)}const _R=new Fo(null,0,0);function ZR(t){let n=0;for(let s=0;s<t.length;s++)n+=t.charCodeAt(s)==Vc?8-n%8:1;return n}const I1=new Map([[tR,0],[aR,Ja],[nR,en],[sR,en|Ja],[lR,tn],[rR,tn|Ja],[iR,tn|en],[oR,tn|en|Ja],[cR,an],[uR,an|Ja],[dR,an|en],[OR,an|en|Ja],[fR,an|tn],[hR,an|tn|Ja],[mR,an|tn|en],[pR,an|tn|en|Ja]].map(([t,n])=>[t,n|ky])),AR=new nh({start:_R,reduce(t,n,s,l){return t.flags&Io&&RR.has(n)||(n==eR||n==Qy)&&t.flags&ky?t.parent:t},shift(t,n,s,l){return n==vy?new Fo(t,ZR(l.read(l.pos,s.pos)),0):n==yy?t.parent:n==Mz||n==Gz||n==Wz||n==Sy?new Fo(t,0,Io):I1.has(n)?new Fo(t,0,I1.get(n)|t.flags&Io):t},hash(t){return t.hash}}),ER=new gt(t=>{for(let n=0;n<5;n++){if(t.next!="print".charCodeAt(n))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let n=0;;n++){let s=t.peek(n);if(!(s==mh||s==Vc)){s!=wR&&s!=kR&&s!=ws&&s!=ai&&s!=ph&&t.acceptToken(Xz);return}}}),qR=new gt((t,n)=>{let{flags:s}=n.context,l=s&Ja?wy:jy,o=(s&en)>0,u=!(s&tn),d=(s&an)>0,O=t.pos;for(;!(t.next<0);)if(d&&t.next==yf)if(t.peek(1)==yf)t.advance(2);else{if(t.pos==O){t.acceptToken(Sy,1);return}break}else if(u&&t.next==H1){if(t.pos==O){t.advance();let m=t.next;m>=0&&(t.advance(),MR(t,m)),t.acceptToken(qz);return}break}else if(t.next==H1&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==l&&(!o||t.peek(1)==l&&t.peek(2)==l)){if(t.pos==O){t.acceptToken(W1,o?3:1);return}break}else if(t.next==ws){if(o)t.advance();else if(t.pos==O){t.acceptToken(W1);return}break}else t.advance();t.pos>O&&t.acceptToken(Ez)});function MR(t,n){if(n==$R)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(n==TR)for(let s=0;s<2&&ZO(t.next);s++)t.advance();else if(n==NR)for(let s=0;s<4&&ZO(t.next);s++)t.advance();else if(n==zR)for(let s=0;s<8&&ZO(t.next);s++)t.advance();else if(n==PR&&t.next==yf){for(t.advance();t.next>=0&&t.next!=B1&&t.next!=jy&&t.next!=wy&&t.next!=ws;)t.advance();t.next==B1&&t.advance()}}const YR=$s({'async "*" "**" FormatConversion FormatSpec':A.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":A.controlKeyword,"in not and or is del":A.operatorKeyword,"from def class global nonlocal lambda":A.definitionKeyword,import:A.moduleKeyword,"with as print":A.keyword,Boolean:A.bool,None:A.null,VariableName:A.variableName,"CallExpression/VariableName":A.function(A.variableName),"FunctionDefinition/VariableName":A.function(A.definition(A.variableName)),"ClassDefinition/VariableName":A.definition(A.className),PropertyName:A.propertyName,"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),Comment:A.lineComment,Number:A.number,String:A.string,FormatString:A.special(A.string),Escape:A.escape,UpdateOp:A.updateOperator,"ArithOp!":A.arithmeticOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,AssignOp:A.definitionOperator,Ellipsis:A.punctuation,At:A.meta,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,".":A.derefOperator,", ;":A.separator}),VR={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},UR=Kn.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'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w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:AR,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[YR],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T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ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Eo(t){return(n,s,l)=>{if(l)return!1;let o=n.node.getChild("VariableName");return o&&s(o,t),!0}}const GR={FunctionDefinition:Eo("function"),ClassDefinition:Eo("class"),ForStatement(t,n,s){if(s){for(let l=t.node.firstChild;l;l=l.nextSibling)if(l.name=="VariableName")n(l,"variable");else if(l.name=="in")break}},ImportStatement(t,n){var s,l;let{node:o}=t,u=((s=o.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let d=o.getChild("import");d;d=d.nextSibling)d.name=="VariableName"&&((l=d.nextSibling)===null||l===void 0?void 0:l.name)!="as"&&n(d,u?"variable":"namespace")},AssignStatement(t,n){for(let s=t.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")n(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(t,n){for(let s=null,l=t.node.firstChild;l;l=l.nextSibling)l.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(l,"variable"),s=l},CapturePattern:Eo("variable"),AsPattern:Eo("variable"),__proto__:null};function Ty(t,n){let s=F1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(Qc.IncludeAnonymous).iterate(d=>{if(d.name){let O=GR[d.name];if(O&&O(d,u,o)||!o&&$y.has(d.name))return!1;o=!1}else if(d.to-d.from>8192){for(let O of Ty(t,d.node))l.push(O);return!1}}),F1.set(n,l),l}const K1=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Py=["String","FormatString","Comment","PropertyName"];function LR(t){let n=ga(t.state).resolveInner(t.pos,-1);if(Py.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&K1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)$y.has(o.name)&&(l=l.concat(Ty(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:K1}}const DR=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),WR=[Ie("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Ie("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Ie("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Ie("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Ie(`if \${}:
|
|
535
|
+
`);l=o<0?s:s.slice(0,o)}return n+l.length>this.to?l.slice(0,this.to-n):l}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,l=0){this.block=bc.create(n,l,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,l=0){this.startContext(this.parser.getNodeType(n),s,l)}addNode(n,s,l){typeof n=="number"&&(n=new ma(this.parser.nodeSet.types[n],Xl,Xl,(l??this.prevLineEnd())-s)),this.block.addChild(n,s-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,s){this.addNode(this.buffer.writeElements(vf(s.children,n.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let n=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(n.toTree(this.parser.nodeSet),n.from-s.from),this.block=s}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?ay(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let l of n.parsers)if(l.finish(this,n))return;let s=vf(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(se.Paragraph,n.content.length),n.start)}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new ly(n,s)}get buffer(){return new sy(this.parser.nodeSet)}}function ay(t,n,s,l,o){let u=t[n].to,d=[],O=[],m=s.from+l;function p(x,g){for(;g?x>=u:x>u;){let b=t[n+1].from-u;l+=b,x+=b,n++,u=t[n].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+l,!0);let g=x.from+l,b,S=o.get(x.tree);S?b=S:x.to+l>u?(b=ay(t,n,x,l,o),p(x.to+l,!1)):b=x.toTree(),d.push(b),O.push(g-m)}return p(s.to+l,!1),new ma(s.type,d,O,s.to+l-m,s.tree?s.tree.propValues:void 0)}class Yc extends v0{constructor(n,s,l,o,u,d,O,m,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=l,this.blockNames=o,this.endLeafBlock=u,this.skipContextMarkup=d,this.inlineParsers=O,this.inlineNames=m,this.wrappers=p,this.nodeTypes=Object.create(null);for(let x of n.types)this.nodeTypes[x.name]=x.id}createParse(n,s,l){let o=new F4(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}configure(n){let s=bf(n);if(!s)return this;let{nodeSet:l,skipContextMarkup:o}=this,u=this.blockParsers.slice(),d=this.leafBlockParsers.slice(),O=this.blockNames.slice(),m=this.inlineParsers.slice(),p=this.inlineNames.slice(),x=this.endLeafBlock.slice(),g=this.wrappers;if(qr(s.defineNodes)){o=Object.assign({},o);let b=l.types.slice(),S;for(let Q of s.defineNodes){let{name:k,block:T,composite:j,style:P}=typeof Q=="string"?{name:Q}:Q;if(b.some(U=>U.name==k))continue;j&&(o[b.length]=(U,C,X)=>j(C,X,U.value));let N=b.length,Z=j?["Block","BlockContext"]:T?N>=se.ATXHeading1&&N<=se.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(ni.define({id:N,name:k,props:Z&&[[sn.group,Z]]})),P&&(S||(S={}),Array.isArray(P)||P instanceof jj?S[k]=P:Object.assign(S,P))}l=new $f(b),S&&(l=l.extend($s(S)))}if(qr(s.props)&&(l=l.extend(...s.props)),qr(s.remove))for(let b of s.remove){let S=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);S>-1&&(u[S]=d[S]=void 0),Q>-1&&(m[Q]=void 0)}if(qr(s.parseBlock))for(let b of s.parseBlock){let S=O.indexOf(b.name);if(S>-1)u[S]=b.parse,d[S]=b.leaf;else{let Q=b.before?Ao(O,b.before):b.after?Ao(O,b.after)+1:O.length-1;u.splice(Q,0,b.parse),d.splice(Q,0,b.leaf),O.splice(Q,0,b.name)}b.endLeaf&&x.push(b.endLeaf)}if(qr(s.parseInline))for(let b of s.parseInline){let S=p.indexOf(b.name);if(S>-1)m[S]=b.parse;else{let Q=b.before?Ao(p,b.before):b.after?Ao(p,b.after)+1:p.length-1;m.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return s.wrap&&(g=g.concat(s.wrap)),new Yc(l,u,d,O,x,o,m,p,g)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let l=new fh(this,n,s);e:for(let o=s;o<l.end;){let u=l.char(o);for(let d of this.inlineParsers)if(d){let O=d(l,u,o);if(O>=0){o=O;continue e}}o++}return l.resolveMarkers(0)}}function qr(t){return t!=null&&t.length>0}function bf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let n=bf(t[0]);if(t.length==1)return n;let s=bf(t.slice(1));if(!s||!n)return n||s;let l=(d,O)=>(d||Xl).concat(O||Xl),o=n.wrap,u=s.wrap;return{props:l(n.props,s.props),defineNodes:l(n.defineNodes,s.defineNodes),parseBlock:l(n.parseBlock,s.parseBlock),parseInline:l(n.parseInline,s.parseInline),remove:l(n.remove,s.remove),wrap:o?u?(d,O,m,p)=>o(u(d,O,m,p),O,m,p):o:u}}function Ao(t,n){let s=t.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let ny=[ni.none];for(let t=1,n;n=se[t];t++)ny[t]=ni.define({id:t,name:n,props:t>=se.Escape?[]:[[sn.group,t in Dv?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Xl=[];class sy{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,l,o=0){return this.content.push(n,s,l,4+o*4),this}writeElements(n,s=0){for(let l of n)l.writeTo(this,s);return this}finish(n,s){return ma.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let ei=class{constructor(n,s,l,o=Xl){this.type=n,this.from=s,this.to=l,this.children=o}writeTo(n,s){let l=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-l)}toTree(n){return new sy(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class ly{constructor(n,s){this.tree=n,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Xl}writeTo(n,s){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function Ne(t,n,s,l){return new ei(t,n,s,l)}const ry={resolve:"Emphasis",mark:"EmphasisMark"},iy={resolve:"Emphasis",mark:"EmphasisMark"},ys={},vc={};class Dt{constructor(n,s,l,o){this.type=n,this.from=s,this.to=l,this.side=o}}const _1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ti=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ti=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const RO={Escape(t,n,s){if(n!=92||s==t.end-1)return-1;let l=t.char(s+1);for(let o=0;o<_1.length;o++)if(_1.charCodeAt(o)==l)return t.append(Ne(se.Escape,s,s+2));return-1},Entity(t,n,s){if(n!=38)return-1;let l=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return l?t.append(Ne(se.Entity,s,s+1+l[0].length)):-1},InlineCode(t,n,s){if(n!=96||s&&t.char(s-1)==96)return-1;let l=s+1;for(;l<t.end&&t.char(l)==96;)l++;let o=l-s,u=0;for(;l<t.end;l++)if(t.char(l)==96){if(u++,u==o&&t.char(l+1)!=96)return t.append(Ne(se.InlineCode,s,l+1,[Ne(se.CodeMark,s,s+o),Ne(se.CodeMark,l+1-o,l+1)]))}else u=0;return-1},HTMLTag(t,n,s){if(n!=60||s==t.end-1)return-1;let l=t.slice(s+1,t.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(l);if(o)return t.append(Ne(se.Autolink,s,s+1+o[0].length,[Ne(se.LinkMark,s,s+1),Ne(se.URL,s+1,s+o[0].length),Ne(se.LinkMark,s+o[0].length,s+1+o[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(l);if(u)return t.append(Ne(se.Comment,s,s+1+u[0].length));let d=/^\?[^]*?\?>/.exec(l);if(d)return t.append(Ne(se.ProcessingInstruction,s,s+1+d[0].length));let O=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(l);return O?t.append(Ne(se.HTMLTag,s,s+1+O[0].length)):-1},Emphasis(t,n,s){if(n!=95&&n!=42)return-1;let l=s+1;for(;t.char(l)==n;)l++;let o=t.slice(s-1,s),u=t.slice(l,l+1),d=ti.test(o),O=ti.test(u),m=/\s|^$/.test(o),p=/\s|^$/.test(u),x=!p&&(!O||m||d),g=!m&&(!d||p||O),b=x&&(n==42||!g||d),S=g&&(n==42||!x||O);return t.append(new Dt(n==95?ry:iy,s,l,(b?1:0)|(S?2:0)))},HardBreak(t,n,s){if(n==92&&t.char(s+1)==10)return t.append(Ne(se.HardBreak,s,s+2));if(n==32){let l=s+1;for(;t.char(l)==32;)l++;if(t.char(l)==10&&l>=s+2)return t.append(Ne(se.HardBreak,s,l+1))}return-1},Link(t,n,s){return n==91?t.append(new Dt(ys,s,s+1,1)):-1},Image(t,n,s){return n==33&&t.char(s+1)==91?t.append(new Dt(vc,s,s+2,1)):-1},LinkEnd(t,n,s){if(n!=93)return-1;for(let l=t.parts.length-1;l>=0;l--){let o=t.parts[l];if(o instanceof Dt&&(o.type==ys||o.type==vc)){if(!o.side||t.skipSpace(o.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[l]=null,-1;let u=t.takeContent(l),d=t.parts[l]=K4(t,u,o.type==ys?se.Link:se.Image,o.from,s+1);if(o.type==ys)for(let O=0;O<l;O++){let m=t.parts[O];m instanceof Dt&&m.type==ys&&(m.side=0)}return d.to}}return-1}};function K4(t,n,s,l,o){let{text:u}=t,d=t.char(o),O=o;if(n.unshift(Ne(se.LinkMark,l,l+(s==se.Image?2:1))),n.push(Ne(se.LinkMark,o-1,o)),d==40){let m=t.skipSpace(o+1),p=oy(u,m-t.offset,t.offset),x;p&&(m=t.skipSpace(p.to),m!=p.to&&(x=cy(u,m-t.offset,t.offset),x&&(m=t.skipSpace(x.to)))),t.char(m)==41&&(n.push(Ne(se.LinkMark,o,o+1)),O=m+1,p&&n.push(p),x&&n.push(x),n.push(Ne(se.LinkMark,m,O)))}else if(d==91){let m=uy(u,o-t.offset,t.offset,!1);m&&(n.push(m),O=m.to)}return Ne(s,l,O,n)}function oy(t,n,s){if(t.charCodeAt(n)==60){for(let o=n+1;o<t.length;o++){let u=t.charCodeAt(o);if(u==62)return Ne(se.URL,n+s,o+1+s);if(u==60||u==10)return!1}return null}else{let o=0,u=n;for(let d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(ua(O))break;if(d)d=!1;else if(O==40)o++;else if(O==41){if(!o)break;o--}else O==92&&(d=!0)}return u>n?Ne(se.URL,n+s,u+s):u==t.length?null:!1}}function cy(t,n,s){let l=t.charCodeAt(n);if(l!=39&&l!=34&&l!=40)return!1;let o=l==40?41:l;for(let u=n+1,d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(d)d=!1;else{if(O==o)return Ne(se.LinkTitle,n+s,u+1+s);O==92&&(d=!0)}}return null}function uy(t,n,s,l){for(let o=!1,u=n+1,d=Math.min(t.length,u+999);u<d;u++){let O=t.charCodeAt(u);if(o)o=!1;else{if(O==93)return l?!1:Ne(se.LinkLabel,n+s,u+1+s);if(l&&!ua(O)&&(l=!1),O==91)return!1;O==92&&(o=!0)}}return null}class fh{constructor(n,s,l){this.parser=n,this.text=s,this.offset=l,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,s){return this.text.slice(n-this.offset,s-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,s,l,o,u){return this.append(new Dt(n,s,l,(o?1:0)|(u?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let s=this.parts[n];if(s instanceof Dt&&(s.type==ys||s.type==vc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let l=n;l<this.parts.length;l++){let o=this.parts[l];if(!(o instanceof Dt&&o.type.resolve&&o.side&2))continue;let u=o.type==ry||o.type==iy,d=o.to-o.from,O,m=l-1;for(;m>=n;m--){let k=this.parts[m];if(k instanceof Dt&&k.side&1&&k.type==o.type&&!(u&&(o.side&1||k.side&2)&&(k.to-k.from+d)%3==0&&((k.to-k.from)%3||d%3))){O=k;break}}if(!O)continue;let p=o.type.resolve,x=[],g=O.from,b=o.to;if(u){let k=Math.min(2,O.to-O.from,d);g=O.to-k,b=o.from+k,p=k==1?"Emphasis":"StrongEmphasis"}O.type.mark&&x.push(this.elt(O.type.mark,g,O.to));for(let k=m+1;k<l;k++)this.parts[k]instanceof ei&&x.push(this.parts[k]),this.parts[k]=null;o.type.mark&&x.push(this.elt(o.type.mark,o.from,b));let S=this.elt(p,g,b,x);this.parts[m]=u&&O.from!=g?new Dt(O.type,O.from,g,O.side):null,(this.parts[l]=u&&o.to!=b?new Dt(o.type,b,o.to,o.side):null)?this.parts.splice(l,0,S):this.parts[l]=S}let s=[];for(let l=n;l<this.parts.length;l++){let o=this.parts[l];o instanceof ei&&s.push(o)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let l=this.parts[s];if(l instanceof Dt&&l.type==n&&l.side&1)return s}return null}takeContent(n){let s=this.resolveMarkers(n);return this.parts.length=n,s}getDelimiterAt(n){let s=this.parts[n];return s instanceof Dt?s:null}skipSpace(n){return Yr(this.text,n-this.offset)+this.offset}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new ly(n,s)}}fh.linkStart=ys;fh.imageStart=vc;function vf(t,n){if(!n.length)return t;if(!t.length)return n;let s=t.slice(),l=0;for(let o of n){for(;l<s.length&&s[l].to<o.to;)l++;if(l<s.length&&s[l].from<o.from){let u=s[l];u instanceof ei&&(s[l]=new ei(u.type,u.from,u.to,vf(u.children,[o])))}else s.splice(l++,0,o)}return s}const J4=[se.CodeBlock,se.ListItem,se.OrderedList,se.BulletList];class ez{constructor(n,s){this.fragments=n,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,s){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let u=this.fragment.to;for(;u>0&&this.input.read(u-1,u)!=`
|
|
536
|
+
`;)u--;this.fragmentEnd=u?u-1:0}let l=this.cursor;l||(l=this.cursor=this.fragment.tree.cursor(),l.firstChild());let o=n+this.fragment.offset;for(;l.to<=o;)if(!l.parent())return!1;for(;;){if(l.from>=o)return this.fragment.from<=s;if(!l.childAfter(o))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(sn.contextHash)==n}takeNodes(n){let s=this.cursor,l=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),u=n.absoluteLineStart,d=u,O=n.block.children.length,m=d,p=O;for(;;){if(s.to-l>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=dy(s.from-l,n.ranges);if(s.to-l<=n.ranges[n.rangeI].to)n.addNode(s.tree,x);else{let g=new ma(n.parser.nodeSet.types[se.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(g,s.tree),n.addNode(g,x)}if(s.type.is("Block")&&(J4.indexOf(s.type.id)<0?(d=s.to-l,O=n.block.children.length):(d=m,O=p),m=s.to-l,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>O;)n.block.children.pop(),n.block.positions.pop();return d-u}}function dy(t,n){let s=t;for(let l=1;l<n.length;l++){let o=n[l-1].to,u=n[l].from;o<t&&(s-=u-o)}return s}const tz=$s({"Blockquote/...":A.quote,HorizontalRule:A.contentSeparator,"ATXHeading1/... SetextHeading1/...":A.heading1,"ATXHeading2/... SetextHeading2/...":A.heading2,"ATXHeading3/...":A.heading3,"ATXHeading4/...":A.heading4,"ATXHeading5/...":A.heading5,"ATXHeading6/...":A.heading6,"Comment CommentBlock":A.comment,Escape:A.escape,Entity:A.character,"Emphasis/...":A.emphasis,"StrongEmphasis/...":A.strong,"Link/... Image/...":A.link,"OrderedList/... BulletList/...":A.list,"BlockQuote/...":A.quote,"InlineCode CodeText":A.monospace,"URL Autolink":A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":A.processingInstruction,"CodeInfo LinkLabel":A.labelName,LinkTitle:A.string,Paragraph:A.content}),az=new Yc(new $f(ny).extend(tz),Object.keys(Zo).map(t=>Zo[t]),Object.keys(Zo).map(t=>ty[t]),Object.keys(Zo),H4,Dv,Object.keys(RO).map(t=>RO[t]),Object.keys(RO),[]);function nz(t,n,s){let l=[];for(let o=t.firstChild,u=n;;o=o.nextSibling){let d=o?o.from:s;if(d>u&&l.push({from:u,to:d}),!o)break;u=o.to}return l}function sz(t){let{codeParser:n,htmlParser:s}=t;return{wrap:w0((o,u)=>{let d=o.type.id;if(n&&(d==se.CodeBlock||d==se.FencedCode)){let O="";if(d==se.FencedCode){let p=o.node.getChild(se.CodeInfo);p&&(O=u.read(p.from,p.to))}let m=n(O);if(m)return{parser:m,overlay:p=>p.type.id==se.CodeText,bracketed:d==se.FencedCode}}else if(s&&(d==se.HTMLBlock||d==se.HTMLTag||d==se.CommentBlock))return{parser:s,overlay:nz(o.node,o.from,o.to)};return null})}}const lz={resolve:"Strikethrough",mark:"StrikethroughMark"},rz={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":A.strikethrough}},{name:"StrikethroughMark",style:A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,n,s){if(n!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let l=t.slice(s-1,s),o=t.slice(s+2,s+3),u=/\s|^$/.test(l),d=/\s|^$/.test(o),O=ti.test(l),m=ti.test(o);return t.addDelimiter(lz,s,s+2,!d&&(!m||u||O),!u&&(!O||d||m))},after:"Emphasis"}]};function Vr(t,n,s=0,l,o=0){let u=0,d=!0,O=-1,m=-1,p=!1,x=()=>{l.push(t.elt("TableCell",o+O,o+m,t.parser.parseInline(n.slice(O,m),o+O)))};for(let g=s;g<n.length;g++){let b=n.charCodeAt(g);b==124&&!p?((!d||O>-1)&&u++,d=!1,l&&(O>-1&&x(),l.push(t.elt("TableDelimiter",g+o,g+o+1))),O=m=-1):(p||b!=32&&b!=9)&&(O<0&&(O=g),m=g+1),p=!p&&b==92}return O>-1&&(u++,l&&x()),u}function Z1(t,n){for(let s=n;s<t.length;s++){let l=t.charCodeAt(s);if(l==124)return!0;l==92&&s++}return!1}const Oy=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class A1{constructor(){this.rows=null}nextLine(n,s,l){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&Oy.test(o=s.text.slice(s.pos))){let u=[];Vr(n,l.content,0,u,l.start)==Vr(n,o,s.pos)&&(this.rows=[n.elt("TableHeader",l.start,l.start+l.content.length,u),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let o=[];Vr(n,s.text,s.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,o))}return!1}finish(n,s){return this.rows?(n.addLeafElement(s,n.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const iz={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":A.heading}},"TableRow",{name:"TableCell",style:A.content},{name:"TableDelimiter",style:A.processingInstruction}],parseBlock:[{name:"Table",leaf(t,n){return Z1(n.content,0)?new A1:null},endLeaf(t,n,s){if(s.parsers.some(o=>o instanceof A1)||!Z1(n.text,n.basePos))return!1;let l=t.peekLine();return Oy.test(l)&&Vr(t,n.text,n.basePos)==Vr(t,l,n.basePos)},before:"SetextHeading"}]};class oz{nextLine(){return!1}finish(n,s){return n.addLeafElement(s,n.elt("Task",s.start,s.start+s.content.length,[n.elt("TaskMarker",s.start,s.start+3),...n.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const cz={defineNodes:[{name:"Task",block:!0,style:A.list},{name:"TaskMarker",style:A.atom}],parseBlock:[{name:"TaskList",leaf(t,n){return/^\[[ xX]\][ \t]/.test(n.content)&&t.parentType().name=="ListItem"?new oz:null},after:"SetextHeading"}]},E1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,q1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,uz=/[\w-]+\.[\w-]+($|\/)/,M1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Y1=/\/[a-zA-Z\d@.]+/gy;function V1(t,n,s,l){let o=0;for(let u=n;u<s;u++)t[u]==l&&o++;return o}function dz(t,n){q1.lastIndex=n;let s=q1.exec(t);if(!s||uz.exec(s[0])[0].indexOf("_")>-1)return-1;let l=n+s[0].length;for(;;){let o=t[l-1],u;if(/[?!.,:*_~]/.test(o)||o==")"&&V1(t,n,l,")")>V1(t,n,l,"("))l--;else if(o==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(n,l))))l=n+u.index;else break}return l}function U1(t,n){M1.lastIndex=n;let s=M1.exec(t);if(!s)return-1;let l=s[0][s[0].length-1];return l=="_"||l=="-"?-1:n+s[0].length-(l=="."?1:0)}const Oz={parseInline:[{name:"Autolink",parse(t,n,s){let l=s-t.offset;if(l&&/\w/.test(t.text[l-1]))return-1;E1.lastIndex=l;let o=E1.exec(t.text),u=-1;if(!o)return-1;if(o[1]||o[2]){if(u=dz(t.text,l+o[0].length),u>-1&&t.hasOpenLink){let d=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(l,u));u=l+d[0].length}}else o[3]?u=U1(t.text,l):(u=U1(t.text,l+o[0].length),u>-1&&o[0]=="xmpp:"&&(Y1.lastIndex=u,o=Y1.exec(t.text),o&&(u=o.index+o[0].length)));return u<0?-1:(t.addElement(t.elt("URL",s,u+t.offset)),u+t.offset)}}]},fz=[iz,cz,rz,Oz];function fy(t,n,s){return(l,o,u)=>{if(o!=t||l.char(u+1)==t)return-1;let d=[l.elt(s,u,u+1)];for(let O=u+1;O<l.end;O++){let m=l.char(O);if(m==t)return l.addElement(l.elt(n,u,O+1,d.concat(l.elt(s,O,O+1))));if(m==92&&d.push(l.elt("Escape",O,O+++2)),ua(m))break}return-1}}const hz={defineNodes:[{name:"Superscript",style:A.special(A.content)},{name:"SuperscriptMark",style:A.processingInstruction}],parseInline:[{name:"Superscript",parse:fy(94,"Superscript","SuperscriptMark")}]},mz={defineNodes:[{name:"Subscript",style:A.special(A.content)},{name:"SubscriptMark",style:A.processingInstruction}],parseInline:[{name:"Subscript",parse:fy(126,"Subscript","SubscriptMark")}]},pz={defineNodes:[{name:"Emoji",style:A.character}],parseInline:[{name:"Emoji",parse(t,n,s){let l;return n!=58||!(l=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+l[0].length))}}]},hy=j0({commentTokens:{block:{open:"<!--",close:"-->"}}}),my=new sn,py=az.configure({props:[Ts.add(t=>!t.is("Block")||t.is("Document")||yf(t)!=null||xz(t)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),my.add(yf),_l.add({Document:()=>null}),Nj.add({Document:hy})]});function yf(t){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return n?+n[1]:void 0}function xz(t){return t.name=="OrderedList"||t.name=="BulletList"}function gz(t,n){let s=t;for(;;){let l=s.nextSibling,o;if(!l||(o=yf(l.type))!=null&&o<=n)break;s=l}return s.to}const bz=kj.of((t,n,s)=>{for(let l=ga(t).resolveInner(s,-1);l&&!(l.from<n);l=l.parent){let o=l.type.prop(my);if(o==null)continue;let u=gz(l,o);if(u>s)return{from:s,to:u}}return null});function hh(t){return new $j(hy,t,[],"markdown")}const vz=hh(py),yz=py.configure([fz,mz,hz,pz,{props:[Ts.add({Table:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}]),yc=hh(yz);function Sz(t,n){return s=>{if(s&&t){let l=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?l=t(s):l=Sg.matchLanguageName(t,s,!0),l instanceof Sg)return l.support?l.support.language.parser:zj.getSkippingParser(l.load());if(l)return l.parser}return n?n.parser:null}}let CO=class{constructor(n,s,l,o,u,d,O){this.node=n,this.from=s,this.to=l,this.spaceBefore=o,this.spaceAfter=u,this.type=d,this.item=O}blank(n,s=!0){let l=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;l.length<n;)l+=" ";return l}else{for(let o=this.to-this.from-l.length-this.spaceAfter.length;o>0;o--)l+=" ";return l+(s?this.spaceAfter:"")}}marker(n,s){let l=this.node.name=="OrderedList"?String(+gy(this.item,n)[2]+s):"";return this.spaceBefore+l+this.type+this.spaceAfter}};function xy(t,n){let s=[],l=[];for(let o=t;o;o=o.parent){if(o.name=="FencedCode")return l;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let u=s[o],d,O=n.lineAt(u.from),m=u.from-O.from;if(u.name=="Blockquote"&&(d=/^ *>( ?)/.exec(O.text.slice(m))))l.push(new CO(u,m,m+d[0].length,"",d[1],">",null));else if(u.name=="ListItem"&&u.parent.name=="OrderedList"&&(d=/^( *)\d+([.)])( *)/.exec(O.text.slice(m)))){let p=d[3],x=d[0].length;p.length>=4&&(p=p.slice(0,p.length-4),x-=4),l.push(new CO(u.parent,m,m+x,d[1],p,d[2],u))}else if(u.name=="ListItem"&&u.parent.name=="BulletList"&&(d=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(O.text.slice(m)))){let p=d[4],x=d[0].length;p.length>4&&(p=p.slice(0,p.length-4),x-=4);let g=d[2];d[3]&&(g+=d[3].replace(/[xX]/," ")),l.push(new CO(u.parent,m,m+x,d[1],p,g,u))}}return l}function gy(t,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(t.from,t.from+10))}function XO(t,n,s,l=0){for(let o=-1,u=t;;){if(u.name=="ListItem"){let O=gy(u,n),m=+O[2];if(o>=0){if(m!=o+1)return;s.push({from:u.from+O[1].length,to:u.from+O[0].length,insert:String(o+2+l)})}o=m}let d=u.nextSibling;if(!d)break;u=d}}function mh(t,n){let s=/^[ \t]*/.exec(t)[0].length;if(!s||n.facet(Tj)!=" ")return t;let l=Lr(t,4,s),o="";for(let u=l;u>0;)u>=4?(o+=" ",u-=4):(o+=" ",u--);return o+t.slice(s)}const Qz=(t={})=>({state:n,dispatch:s})=>{let l=ga(n),{doc:o}=n,u=null,d=n.changeByRange(O=>{if(!O.empty||!yc.isActiveAt(n,O.from,-1)&&!yc.isActiveAt(n,O.from,1))return u={range:O};let m=O.from,p=o.lineAt(m),x=xy(l.resolveInner(m,-1),o);for(;x.length&&x[x.length-1].from>m-p.from;)x.pop();if(!x.length)return u={range:O};let g=x[x.length-1];if(g.to-g.spaceAfter.length>m-p.from)return u={range:O};let b=m>=g.to-g.spaceAfter.length&&!/\S/.test(p.text.slice(g.to));if(g.item&&b){let j=g.node.firstChild,P=g.node.getChild("ListItem","ListItem");if(j.to>=m||P&&P.to<m||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||t.nonTightLists===!1){let N=x.length>1?x[x.length-2]:null,Z,U="";N&&N.item?(Z=p.from+N.from,U=N.marker(o,1)):Z=p.from+(N?N.to:0);let C=[{from:Z,to:m,insert:U}];return g.node.name=="OrderedList"&&XO(g.item,o,C,-2),N&&N.node.name=="OrderedList"&&XO(N.item,o,C),{range:Wn.cursor(Z+U.length),changes:C}}else{let N=L1(x,n,p);return{range:Wn.cursor(m+N.length+1),changes:{from:p.from,insert:N+n.lineBreak}}}}if(g.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),P=/>\s*$/.exec(j.text);if(P&&P.index==g.from){let N=n.changes([{from:j.from+P.index,to:j.to},{from:p.from+g.from,to:p.to}]);return{range:O.map(N),changes:N}}}let S=[];g.node.name=="OrderedList"&&XO(g.item,o,S);let Q=g.item&&g.item.from<p.from,k="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,P=x.length-1;j<=P;j++)k+=j==P&&!Q?x[j].marker(o,1):x[j].blank(j<P?Lr(p.text,4,x[j+1].from)-k.length:null);let T=m;for(;T>p.from&&/\s/.test(p.text.charAt(T-p.from-1));)T--;return k=mh(k,n),wz(g.node,n.doc)&&(k=L1(x,n,p)+n.lineBreak+k),S.push({from:T,to:m,insert:n.lineBreak+k}),{range:Wn.cursor(T+k.length+1),changes:S}});return u?!1:(s(n.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)},jz=Qz();function G1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function wz(t,n){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,l=t.getChild("ListItem","ListItem");if(!l)return!1;let o=n.lineAt(s.to),u=n.lineAt(l.from),d=/^[\s>]*$/.test(o.text);return o.number+(d?0:1)<u.number}function L1(t,n,s){let l="";for(let o=0,u=t.length-2;o<=u;o++)l+=t[o].blank(o<u?Lr(s.text,4,t[o+1].from)-l.length:null,o<u);return mh(l,n)}function kz(t,n){let s=t.resolveInner(n,-1),l=n;G1(s)&&(l=s.from,s=s.parent);for(let o;o=s.childBefore(l);)if(G1(o))l=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,l=s.to;else break;return s}const $z=({state:t,dispatch:n})=>{let s=ga(t),l=null,o=t.changeByRange(u=>{let d=u.from,{doc:O}=t;if(u.empty&&yc.isActiveAt(t,u.from)){let m=O.lineAt(d),p=xy(kz(s,d),O);if(p.length){let x=p[p.length-1],g=x.to-x.spaceAfter.length+(x.spaceAfter?1:0);if(d-m.from>g&&!/\S/.test(m.text.slice(g,d-m.from)))return{range:Wn.cursor(m.from+g),changes:{from:m.from+g,to:d}};if(d-m.from==g&&(!x.item||m.from<=x.item.from||!/\S/.test(m.text.slice(0,x.to)))){let b=m.from+x.from;if(x.item&&x.node.from<x.item.from&&/\S/.test(m.text.slice(x.from,x.to))){let S=x.blank(Lr(m.text,4,x.to)-Lr(m.text,4,x.from));return b==m.from&&(S=mh(S,t)),{range:Wn.cursor(b+S.length),changes:{from:b,to:m.from+x.to,insert:S}}}if(b<d)return{range:Wn.cursor(b),changes:{from:b,to:d}}}}}return l={range:u}});return l?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},Tz=[{key:"Enter",run:jz},{key:"Backspace",run:$z}],by=Lv({matchClosingTags:!1});function Pz(t={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:l=!0,base:{parser:o}=vz,completeHTMLTags:u=!0,pasteURLAsLink:d=!0,htmlTagLanguage:O=by}=t;if(!(o instanceof Yc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let m=t.extensions?[t.extensions]:[],p=[O.support,bz],x;d&&p.push(Cz),s instanceof Qs?(p.push(s.support),x=s.language):s&&(x=s);let g=n||x?Sz(n,x):void 0;m.push(sz({codeParser:g,htmlParser:O.language.parser})),l&&p.push(wj.high(ef.of(Tz)));let b=hh(o.configure(m));return u&&p.push(b.data.of({autocomplete:Nz})),new Qs(b,p)}function Nz(t){let{state:n,pos:s}=t,l=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!l)return null;let o=ga(n).resolveInner(s,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:s-l[0].length,to:s,options:zz(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let _O=null;function zz(){if(_O)return _O;let t=A4(new Pj(k0.create({extensions:by}),0,!0));return _O=t?t.options:[]}const Rz=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Cz=kl.domEventHandlers({paste:(t,n)=>{var s;let{main:l}=n.state.selection;if(l.empty)return!1;let o=(s=t.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!yc.isActiveAt(n.state,l.from,1)))return!1;let u=ga(n.state),d=!1;return u.iterate({from:l.from,to:l.to,enter:O=>{(O.from>l.from||Rz.test(O.name))&&(d=!0)},leave:O=>{O.to<l.to&&(d=!0)}}),d?!1:(n.dispatch({changes:[{from:l.from,insert:"["},{from:l.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),Xz=1,vy=194,yy=195,_z=196,D1=197,Zz=198,Az=199,Ez=200,qz=2,Sy=3,W1=201,Mz=24,Yz=25,Vz=49,Uz=50,Gz=55,Lz=56,Dz=57,Wz=59,Bz=60,Hz=61,Iz=62,Fz=63,Kz=65,Jz=238,eR=71,tR=241,aR=242,nR=243,sR=244,lR=245,rR=246,iR=247,oR=248,Qy=72,cR=249,uR=250,dR=251,OR=252,fR=253,hR=254,mR=255,pR=256,xR=73,gR=77,bR=263,vR=112,yR=130,SR=151,QR=152,jR=155,ws=10,ai=13,ph=32,Vc=9,xh=35,wR=40,kR=46,Sf=123,B1=125,jy=39,wy=34,H1=92,$R=111,TR=120,PR=78,NR=117,zR=85,RR=new Set([Yz,Vz,Uz,bR,Kz,yR,Lz,Dz,Jz,Iz,Fz,Qy,xR,gR,Bz,Hz,SR,QR,jR,vR]);function ZO(t){return t==ws||t==ai}function AO(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const CR=new gt((t,n)=>{let s;if(t.next<0)t.acceptToken(Az);else if(n.context.flags&Io)ZO(t.next)&&t.acceptToken(Zz,1);else if(((s=t.peek(-1))<0||ZO(s))&&n.canShift(D1)){let l=0;for(;t.next==ph||t.next==Vc;)t.advance(),l++;(t.next==ws||t.next==ai||t.next==xh)&&t.acceptToken(D1,-l)}else ZO(t.next)&&t.acceptToken(_z,1)},{contextual:!0}),XR=new gt((t,n)=>{let s=n.context;if(s.flags)return;let l=t.peek(-1);if(l==ws||l==ai){let o=0,u=0;for(;;){if(t.next==ph)o++;else if(t.next==Vc)o+=8-o%8;else break;t.advance(),u++}o!=s.indent&&t.next!=ws&&t.next!=ai&&t.next!=xh&&(o<s.indent?t.acceptToken(yy,-u):t.acceptToken(vy))}}),Io=1,ky=2,Ja=4,en=8,tn=16,an=32;function Fo(t,n,s){this.parent=t,this.indent=n,this.flags=s,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+s+(s<<6)}const _R=new Fo(null,0,0);function ZR(t){let n=0;for(let s=0;s<t.length;s++)n+=t.charCodeAt(s)==Vc?8-n%8:1;return n}const I1=new Map([[tR,0],[aR,Ja],[nR,en],[sR,en|Ja],[lR,tn],[rR,tn|Ja],[iR,tn|en],[oR,tn|en|Ja],[cR,an],[uR,an|Ja],[dR,an|en],[OR,an|en|Ja],[fR,an|tn],[hR,an|tn|Ja],[mR,an|tn|en],[pR,an|tn|en|Ja]].map(([t,n])=>[t,n|ky])),AR=new sh({start:_R,reduce(t,n,s,l){return t.flags&Io&&RR.has(n)||(n==eR||n==Qy)&&t.flags&ky?t.parent:t},shift(t,n,s,l){return n==vy?new Fo(t,ZR(l.read(l.pos,s.pos)),0):n==yy?t.parent:n==Mz||n==Gz||n==Wz||n==Sy?new Fo(t,0,Io):I1.has(n)?new Fo(t,0,I1.get(n)|t.flags&Io):t},hash(t){return t.hash}}),ER=new gt(t=>{for(let n=0;n<5;n++){if(t.next!="print".charCodeAt(n))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let n=0;;n++){let s=t.peek(n);if(!(s==ph||s==Vc)){s!=wR&&s!=kR&&s!=ws&&s!=ai&&s!=xh&&t.acceptToken(Xz);return}}}),qR=new gt((t,n)=>{let{flags:s}=n.context,l=s&Ja?wy:jy,o=(s&en)>0,u=!(s&tn),d=(s&an)>0,O=t.pos;for(;!(t.next<0);)if(d&&t.next==Sf)if(t.peek(1)==Sf)t.advance(2);else{if(t.pos==O){t.acceptToken(Sy,1);return}break}else if(u&&t.next==H1){if(t.pos==O){t.advance();let m=t.next;m>=0&&(t.advance(),MR(t,m)),t.acceptToken(qz);return}break}else if(t.next==H1&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==l&&(!o||t.peek(1)==l&&t.peek(2)==l)){if(t.pos==O){t.acceptToken(W1,o?3:1);return}break}else if(t.next==ws){if(o)t.advance();else if(t.pos==O){t.acceptToken(W1);return}break}else t.advance();t.pos>O&&t.acceptToken(Ez)});function MR(t,n){if(n==$R)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(n==TR)for(let s=0;s<2&&AO(t.next);s++)t.advance();else if(n==NR)for(let s=0;s<4&&AO(t.next);s++)t.advance();else if(n==zR)for(let s=0;s<8&&AO(t.next);s++)t.advance();else if(n==PR&&t.next==Sf){for(t.advance();t.next>=0&&t.next!=B1&&t.next!=jy&&t.next!=wy&&t.next!=ws;)t.advance();t.next==B1&&t.advance()}}const YR=$s({'async "*" "**" FormatConversion FormatSpec':A.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":A.controlKeyword,"in not and or is del":A.operatorKeyword,"from def class global nonlocal lambda":A.definitionKeyword,import:A.moduleKeyword,"with as print":A.keyword,Boolean:A.bool,None:A.null,VariableName:A.variableName,"CallExpression/VariableName":A.function(A.variableName),"FunctionDefinition/VariableName":A.function(A.definition(A.variableName)),"ClassDefinition/VariableName":A.definition(A.className),PropertyName:A.propertyName,"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),Comment:A.lineComment,Number:A.number,String:A.string,FormatString:A.special(A.string),Escape:A.escape,UpdateOp:A.updateOperator,"ArithOp!":A.arithmeticOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,AssignOp:A.definitionOperator,Ellipsis:A.punctuation,At:A.meta,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,".":A.derefOperator,", ;":A.separator}),VR={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},UR=Kn.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO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'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:AR,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[YR],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!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q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[ER,XR,CR,qR,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>VR[t]||-1}],tokenPrec:7668}),F1=new Tf,$y=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Eo(t){return(n,s,l)=>{if(l)return!1;let o=n.node.getChild("VariableName");return o&&s(o,t),!0}}const GR={FunctionDefinition:Eo("function"),ClassDefinition:Eo("class"),ForStatement(t,n,s){if(s){for(let l=t.node.firstChild;l;l=l.nextSibling)if(l.name=="VariableName")n(l,"variable");else if(l.name=="in")break}},ImportStatement(t,n){var s,l;let{node:o}=t,u=((s=o.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let d=o.getChild("import");d;d=d.nextSibling)d.name=="VariableName"&&((l=d.nextSibling)===null||l===void 0?void 0:l.name)!="as"&&n(d,u?"variable":"namespace")},AssignStatement(t,n){for(let s=t.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")n(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(t,n){for(let s=null,l=t.node.firstChild;l;l=l.nextSibling)l.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(l,"variable"),s=l},CapturePattern:Eo("variable"),AsPattern:Eo("variable"),__proto__:null};function Ty(t,n){let s=F1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(Qc.IncludeAnonymous).iterate(d=>{if(d.name){let O=GR[d.name];if(O&&O(d,u,o)||!o&&$y.has(d.name))return!1;o=!1}else if(d.to-d.from>8192){for(let O of Ty(t,d.node))l.push(O);return!1}}),F1.set(n,l),l}const K1=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Py=["String","FormatString","Comment","PropertyName"];function LR(t){let n=ga(t.state).resolveInner(t.pos,-1);if(Py.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&K1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)$y.has(o.name)&&(l=l.concat(Ty(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:K1}}const DR=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),WR=[Ie("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Ie("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Ie("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Ie("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Ie(`if \${}:
|
|
537
537
|
|
|
538
|
-
`,{label:"if",detail:"block",type:"keyword"}),Ie("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Ie("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Ie("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Ie("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],BR=y0(Py,S0(DR.concat(WR)));function AO(t){let{node:n,pos:s}=t,l=t.lineIndent(s,-1),o=null;for(;;){let u=n.childBefore(s);if(u)if(u.name=="Comment")s=u.from;else if(u.name=="Body"||u.name=="MatchBody")t.baseIndentFor(u)+t.unit<=l&&(o=u),n=u;else if(u.name=="MatchClause")n=u;else if(u.type.is("Statement"))n=u;else break;else break}return o}function EO(t,n){let s=t.baseIndentFor(n),l=t.lineAt(t.pos,-1),o=l.from+l.text.length;return/^\s*($|#)/.test(l.text)&&t.node.to<o+100&&!/\S/.test(t.state.sliceDoc(o,t.node.to))&&t.lineIndent(t.pos,-1)<=s||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>s?null:s+t.unit}const qO=si.define({name:"python",parser:UR.configure({props:[_l.add({Body:t=>{var n;let s=/^\s*(#|$)/.test(t.textAfter)&&AO(t)||t.node;return(n=EO(t,s))!==null&&n!==void 0?n:t.continue()},MatchBody:t=>{var n;let s=AO(t);return(n=EO(t,s||t.node))!==null&&n!==void 0?n:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":Lo({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":Lo({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":Lo({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var n;let s=AO(t);return(n=s&&EO(t,s))!==null&&n!==void 0?n:t.continue()}}),Ts.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":jc,Body:(t,n)=>({from:t.from+1,to:t.to-(t.to==n.doc.length?0:1)}),"String FormatString":(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function HR(){return new Qs(qO,[qO.data.of({autocomplete:LR}),qO.data.of({autocomplete:BR})])}const qo={javascript:()=>ff({jsx:!0,typescript:!1}),typescript:()=>ff({jsx:!0,typescript:!0}),css:()=>kv(),html:()=>Lv(),json:()=>G4(),markdown:()=>Pz(),python:()=>HR()},IR=kl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function FR({content:t,language:n,onChange:s,onSave:l}){const o=v.useRef(null),u=v.useRef(null),d=v.useRef(new Rj),O=v.useRef(s),m=v.useRef(l);return O.current=s,m.current=l,v.useEffect(()=>{if(!o.current)return;const p=qo[n]||qo.javascript,x=JO.of([{key:"Mod-s",run:()=>{var S;return(S=m.current)==null||S.call(m),!0}}]),g=k0.create({doc:t||"",extensions:[Xj(),_j(),Zj(),Aj(),Ej(),qj(),Mj(),JO.of([...Yj,...Vj,...Uj]),x,Cj,IR,d.current.of(p()),kl.updateListener.of(S=>{var Q;S.docChanged&&((Q=O.current)==null||Q.call(O,S.state.doc.toString()))})]}),b=new kl({state:g,parent:o.current});return u.current=b,()=>{b.destroy(),u.current=null}},[]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=p.state.doc.toString();t!==x&&p.dispatch({changes:{from:0,to:x.length,insert:t||""}})},[t]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=qo[n]||qo.javascript;p.dispatch({effects:d.current.reconfigure(x())})},[n]),i.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const KR=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],Ny=["mp4","webm","mov","avi","mkv","ogv"];function JR(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return KR.includes(n)||Ny.includes(n)}function eC({path:t}){var u;const n=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,l=t.split("/").pop(),o=Ny.includes(n);return i.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[i.jsx(We,{children:n==null?void 0:n.toUpperCase()}),i.jsx("span",{className:"font-mono",children:l}),i.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:i.jsx(cc,{size:12})})]}),o?i.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):i.jsx("img",{src:s,alt:l,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function tC(){const t=W(b=>b.editorActiveFile),n=W(b=>b.editorFiles),s=W(b=>b.editorChangedFiles),l=W(b=>b.updateFileContent),o=W(b=>b.saveFile),u=W(b=>b.reloadFile),d=W(b=>b.dismissFileChange),[O,m]=v.useState("");v.useEffect(()=>{ee.get("/files/root").then(b=>m(b.root||"")).catch(()=>{})},[]);const p=t?n[t]:null,x=t&&JR(t),g=t&&s[t];return i.jsxs("div",{className:"flex h-full",children:[i.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:i.jsx(bN,{rootDir:O})}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[i.jsx(vN,{}),i.jsxs("div",{className:"flex-1 relative min-h-0",children:[g&&i.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[i.jsx(_c,{size:14,className:"text-warning"}),i.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[i.jsx(es,{size:12})," Reload"]}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>d(t),children:[i.jsx(Rt,{size:12})," Dismiss"]})]}),!t&&i.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:i.jsxs("div",{className:"text-center space-y-2",children:[i.jsx(dn,{size:32,className:"mx-auto"}),i.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&x&&i.jsx(eC,{path:t}),t&&!x&&p&&i.jsx(FR,{content:p.content,language:p.language,onChange:b=>l(t,b),onSave:()=>o(t)})]})]})]})}function aC(){var k;const t=W($=>$.connected),n=W($=>$.agents),[s,l]=v.useState(null),[o,u]=v.useState(!0),[d,O]=v.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),m=v.useRef(0);v.useEffect(()=>{if(!t)return;let $=!0;async function j(){try{const N=await ee.get("/dashboard");if(!$)return;l(N),u(!1),m.current=Date.now(),O(Z=>{var re,ge,de,K,z,B,J,fe,te;const U=Date.now(),C=(Ae,Se)=>[...Ae.slice(-59),{t:U,v:Se||0}],X=((re=N.tokens)==null?void 0:re.totalTokens)||0,T=((de=(ge=N.tokens)==null?void 0:ge.savings)==null?void 0:de.total)||0,G=X+T,E=((K=N.tokens)==null?void 0:K.totalInputTokens)||0,se=((z=N.tokens)==null?void 0:z.totalOutputTokens)||0;return{tokens:C(Z.tokens,X),cost:C(Z.cost,(B=N.tokens)==null?void 0:B.totalCostUsd),saved:C(Z.saved,T),efficiency:C(Z.efficiency,G>0?T/G*100:0),cache:C(Z.cache,(J=N.tokens)==null?void 0:J.cacheHitRate),inputOutput:C(Z.inputOutput,se>0?E/se:0),agents:C(Z.agents,((fe=N.agents)==null?void 0:fe.running)||0),turns:C(Z.turns,(te=N.tokens)==null?void 0:te.totalTurns)}})}catch{$&&u(!1)}}j();const P=setInterval(j,4e3);return()=>{$=!1,clearInterval(P)}},[t]);const p=((k=s==null?void 0:s.agents)==null?void 0:k.breakdown)||[],x=(s==null?void 0:s.routing)||null,g=(s==null?void 0:s.rotation)||null,b=(s==null?void 0:s.adaptive)||[],S=(s==null?void 0:s.journalist)||null,Q=(g==null?void 0:g.rotating)||[];return{data:s,loading:o,agents:n,connected:t,kpiHistory:d,lastFetch:m.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:S,rotating:Q}}const J1=v.memo(function({connected:n,runningCount:s,totalCount:l,uptime:o,lastFetch:u,activeTeam:d}){return i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[i.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),d&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"/"}),i.jsx("span",{className:"text-xs font-mono text-text-2",children:d.name})]}),i.jsx("div",{className:"flex-1"}),n&&i.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-text-1",children:s}),i.jsxs("span",{className:"text-text-3",children:["/",l]}),i.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&i.jsxs("span",{className:"text-text-3",children:["Up ",Ec(o)]}),u>0&&i.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[i.jsx(es,{size:9}),i.jsx("span",{children:Ct(u)})]})]}),i.jsx(Pl,{status:n?"running":"crashed",size:"sm"})]})});function ia(t,n){const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return`rgba(${s},${l},${o},${n})`}const me={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function nC({data:t,color:n=me.accent,width:s=72,height:l=22}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=t.map(x=>x.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=t.map((x,g)=>{const b=g/(t.length-1)*s,S=l-(x.v-u)/O*(l-2)-1;return`${b},${S}`}).join(" "),p=`kpi-${n.replace("#","")}`;return i.jsxs("svg",{width:s,height:l,className:"flex-shrink-0",children:[i.jsx("defs",{children:i.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),i.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),i.jsx("polygon",{points:`0,${l} ${m} ${s},${l}`,fill:`url(#${p})`}),i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const sC=v.memo(function({label:n,value:s,sparkData:l,color:o=me.accent,className:u}){return i.jsxs("div",{className:le("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate",children:n}),i.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),i.jsx(nC,{data:l,color:o})]})});function lC({kpis:t}){return i.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:t.map(n=>i.jsx(sC,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,className:le("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const rC={actual:"ACT",estimated:"EST",local:"LOC"},iC=v.memo(function({agent:n,isRotating:s}){const l=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),u=s?"#c678dd":Kf(n.status),d=n.quality,O=(d==null?void 0:d.toolSuccessRate)!=null?Math.round(d.toolSuccessRate*100):null,m=n.rotationThreshold?Math.round(n.rotationThreshold*100):null;return i.jsxs("div",{className:"px-3 py-2 hover:bg-surface-3 transition-colors space-y-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none",children:n.name}),i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:n.role}),i.jsx("span",{className:"text-2xs text-text-4",children:"/"}),i.jsx("span",{className:"text-2xs font-mono text-text-3",children:oC(n.model)})]})]}),i.jsx("div",{className:"flex-1"}),O!=null&&i.jsxs("span",{className:"text-2xs font-mono font-bold uppercase px-1 py-px rounded-sm flex-shrink-0",style:{color:O>=90?"#4ae168":O>=70?"#e5c07b":"#e06c75",background:O>=90?"rgba(74,225,104,0.1)":O>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[O,"%"]}),n.costSource&&n.costSource!=="actual"&&i.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:rC[n.costSource]||""}),i.jsxs("div",{className:"text-right flex-shrink-0",children:[i.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:ct(n.tokens||0)}),(n.costUsd||0)>0&&i.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:Ac(n.costUsd)})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"relative flex-1 h-[3px] bg-surface-0 rounded-full overflow-visible",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}}),m&&i.jsx("div",{className:"absolute top-[-2px] w-px h-[7px]",style:{left:`${m}%`,background:"#c678dd"},title:`Rotation at ${m}%`})]}),i.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function oC(t){if(!t||t==="auto"||t==="default")return"default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gem ").replace("-preview",""):t.length>12?t.slice(0,12)+"...":t}const cC=v.memo(function({agentBreakdown:n,rotating:s=[]}){if(!(n!=null&&n.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const l={};for(const u of n){const d=u.teamId||"ungrouped";l[d]||(l[d]=[]),l[d].push(u)}const o=new Set(s);return i.jsx(Ht,{className:"flex-1",children:i.jsx("div",{className:"py-1",children:Object.entries(l).map(([u,d])=>i.jsxs("div",{children:[i.jsx("div",{className:"px-3 pt-2 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:u})}),d.map(O=>i.jsx(iC,{agent:O,isRotating:o.has(O.id)},O.id))]},u))})})}),uC=v.memo(function({data:n}){const s=v.useRef(null),l=v.useRef(null),[o,u]=v.useState({width:0,height:0}),[d,O]=v.useState(null),{width:m,height:p}=o,x={top:28,right:12,bottom:8,left:12},g=Math.max(m-x.left-x.right,0),b=Math.max(p-x.top-x.bottom,0),S=v.useMemo(()=>!n||n.length<2?[]:n.slice(1).map(($,j)=>{const P=n[j],N=($.t-P.t)/6e4,Z=Math.max(($.tokens||0)-(P.tokens||0),0);return{burnRate:N>0?Math.round(Z/N):0,cacheHitRate:$.cacheHitRate||0,running:$.running||0,agents:$.agents||0,t:$.t}}),[n]);v.useEffect(()=>{const $=s.current;if(!$)return;const j=new ResizeObserver(P=>{const{width:N,height:Z}=P[0].contentRect;N>0&&Z>0&&u({width:Math.floor(N),height:Math.floor(Z)})});return j.observe($),()=>j.disconnect()},[]);const Q=v.useCallback($=>{const j=l.current;if(!j||!S.length||g<=0)return;const P=j.getBoundingClientRect(),N=$.clientX-P.left-x.left;if(N<0||N>g){O(null);return}const Z=Math.round(N/g*(S.length-1));O({x:x.left+Z/Math.max(S.length-1,1)*g,index:Z})},[S,g,x.left]),k=v.useCallback(()=>O(null),[]);return v.useEffect(()=>{const $=l.current;if(!$||!S.length||m<=0||p<=0||g<=0||b<=0)return;const j=$.getContext("2d"),P=window.devicePixelRatio||1;$.width=m*P,$.height=p*P,j.scale(P,P),j.clearRect(0,0,m,p);const N=S.map(z=>z.burnRate),Z=S.map(z=>z.cacheHitRate),U=S.map(z=>z.running),C=Math.max(...N,100),X=Math.max(...U,1),T=z=>x.left+z/Math.max(S.length-1,1)*g,G=z=>x.top+b-z/C*b,E=z=>x.top+b-z*b,se=Math.max(g/S.length-1,2);for(let z=0;z<S.length;z++){const B=U[z];if(B<=0)continue;const J=B/X*b*.3,fe=T(z)-se/2,te=x.top+b-J;j.fillStyle=ia(me.surface5,.5),j.fillRect(fe,te,se,J)}j.setLineDash([2,4]),j.strokeStyle=ia(me.text4,.2),j.lineWidth=1;for(let z=1;z<=3;z++){const B=x.top+b/4*z;j.beginPath(),j.moveTo(x.left,B),j.lineTo(x.left+g,B),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=ia(me.text3,.5),j.fillText(`${ct(C)}/m`,x.left+4,x.top+10),j.fillText(`${ct(Math.round(C/2))}/m`,x.left+4,x.top+b/2+4),j.beginPath(),j.moveTo(x.left,x.top+b);for(let z=0;z<S.length;z++)j.lineTo(T(z),G(N[z]));j.lineTo(T(S.length-1),x.top+b),j.closePath();const re=j.createLinearGradient(0,x.top,0,x.top+b);re.addColorStop(0,ia(me.accent,.2)),re.addColorStop(.7,ia(me.accent,.04)),re.addColorStop(1,ia(me.accent,0)),j.fillStyle=re,j.fill(),j.beginPath(),j.strokeStyle=me.accent,j.lineWidth=1.5,j.lineJoin="round";for(let z=0;z<S.length;z++){const B=T(z),J=G(N[z]);z===0?j.moveTo(B,J):j.lineTo(B,J)}j.stroke();const ge=Z.some(z=>z>0);if(ge){j.beginPath(),j.strokeStyle=ia(me.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let z=0;z<S.length;z++){const B=T(z),J=E(Z[z]);z===0?j.moveTo(B,J):j.lineTo(B,J)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let de=m-x.right-4;const K=14;if(ge&&(j.fillStyle=ia(me.info,.5),j.fillText("Cache %",de,K),de-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(de,K-3,2.5,0,Math.PI*2),j.fill(),de-=14),j.fillStyle=ia(me.surface5,.7),j.fillText("Agents",de,K),de-=j.measureText("Agents").width+4,j.beginPath(),j.arc(de,K-3,2.5,0,Math.PI*2),j.fill(),de-=14,j.fillStyle=me.accent,j.fillText("Burn Rate",de,K),de-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(de,K-3,2.5,0,Math.PI*2),j.fill(),d&&d.index>=0&&d.index<S.length){const z=d.x,B=S[d.index];j.beginPath(),j.moveTo(z,x.top),j.lineTo(z,x.top+b),j.strokeStyle=ia(me.text1,.15),j.lineWidth=1,j.stroke();const J=G(B.burnRate);j.beginPath(),j.arc(z,J,3,0,Math.PI*2),j.fillStyle=me.accent,j.fill();const fe=[{label:"Burn",value:`${ct(B.burnRate)}/m`,color:me.accent},{label:"Cache",value:Nl(B.cacheHitRate*100),color:me.info},{label:"Agents",value:`${B.running}/${B.agents}`,color:me.text2}],te=104,Ae=fe.length*16+12;let Se=z+12;Se+te>m-8&&(Se=z-te-12);const ve=Math.max(x.top,J-Ae/2);j.fillStyle=ia(me.surface0,.92),j.beginPath(),j.roundRect(Se,ve,te,Ae,4),j.fill(),j.strokeStyle=ia(me.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",fe.forEach((Xe,D)=>{const ie=ve+14+D*16;j.beginPath(),j.arc(Se+8,ie-3,2,0,Math.PI*2),j.fillStyle=Xe.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=me.text3,j.fillText(Xe.label,Se+14,ie),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=me.text0,j.textAlign="right",j.fillText(Xe.value,Se+te-8,ie),j.textAlign="left"})}},[S,m,p,d,g,b,x]),i.jsx("div",{ref:s,className:"absolute inset-0",children:m>0&&p>0&&i.jsx("canvas",{ref:l,style:{width:m,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:k})})}),dC=v.memo(function({cacheRead:n=0,cacheCreation:s=0,totalInput:l=0,size:o=140}){const u=v.useRef(null),d=n+s+l,O=d>0?n/d*100:0;return v.useEffect(()=>{const m=u.current;if(!m)return;const p=window.devicePixelRatio||1;m.width=o*p,m.height=o*p;const x=m.getContext("2d");x.scale(p,p),x.clearRect(0,0,o,o);const g=o/2,b=o/2,S=(o-12)/2,Q=5,k=135*Math.PI/180,$=405*Math.PI/180,j=$-k;if(x.beginPath(),x.arc(g,b,S,k,$),x.strokeStyle=me.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),d>0){const P=n/d,N=s/d;if(P>0){const Z=k+j*P;x.beginPath(),x.arc(g,b,S,k,Z),x.strokeStyle=me.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(N>0){const Z=k+j*P,U=Z+j*N;x.beginPath(),x.arc(g,b,S,Z,U),x.strokeStyle=me.purple,x.lineWidth=Q,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text0,x.fillText(`${Math.round(O)}%`,g,b-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text3,x.fillText("CACHE",g,b+o*.13)},[n,s,l,o,d,O]),i.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[i.jsx("canvas",{ref:u,className:"flex-shrink-0",style:{width:o,height:o}}),i.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[i.jsx(MO,{color:me.accent,label:"Read",value:ct(n)}),i.jsx(MO,{color:me.purple,label:"Create",value:ct(s)}),i.jsx(MO,{color:me.surface5,label:"Miss",value:ct(Math.max(l-n-s,0))})]})]})});function MO({color:t,label:n,value:s}){return i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t}}),i.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),i.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const YO={heavy:me.danger,medium:me.warning,light:me.success},OC={heavy:"Heavy",medium:"Medium",light:"Light"},fC=v.memo(function({routing:n,size:s=120}){const l=v.useRef(null);if(!n)return null;const{byTier:o={},costByTier:u={},totalDecisions:d=0,autoRoutedCount:O=0}=n,m=["heavy","medium","light"],p=m.reduce((x,g)=>x+(o[g]||0),0);return v.useEffect(()=>{const x=l.current;if(!x)return;const g=window.devicePixelRatio||1;x.width=s*g,x.height=s*g;const b=x.getContext("2d");b.scale(g,g),b.clearRect(0,0,s,s);const S=s/2,Q=s/2,k=(s-12)/2,$=5;if(p===0)b.beginPath(),b.arc(S,Q,k,0,Math.PI*2),b.strokeStyle=me.surface4,b.lineWidth=$,b.stroke();else{let j=-Math.PI/2;for(const P of m){const N=o[P]||0;if(N===0)continue;const Z=N/p*Math.PI*2;b.beginPath(),b.arc(S,Q,k,j,j+Z),b.strokeStyle=YO[P],b.lineWidth=$,b.lineCap="butt",b.stroke(),j+=Z}}b.textAlign="center",b.textBaseline="middle",b.font=`600 ${s*.19}px 'JetBrains Mono Variable', monospace`,b.fillStyle=me.text0,b.fillText(ct(d),S,Q-3),b.font=`500 ${s*.09}px 'JetBrains Mono Variable', monospace`,b.fillStyle=me.text3,b.fillText("ROUTES",S,Q+s*.13)},[n,s,p,d]),i.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[i.jsx("canvas",{ref:l,className:"flex-shrink-0",style:{width:s,height:s}}),i.jsx("div",{className:"w-full mt-3 space-y-2 max-w-[180px]",children:m.map(x=>{const g=o[x]||0,b=u[x]||0,S=p>0?g/p*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:YO[x]}}),i.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:OC[x]}),i.jsx("span",{className:"text-text-1 tabular-nums",children:g}),i.jsx("span",{className:"text-text-4",children:"/"}),i.jsx("span",{className:"text-text-2 tabular-nums",children:Ac(b)})]}),i.jsx("div",{className:"h-[2px] bg-surface-0 rounded-full overflow-hidden ml-3.5",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(S,100)}%`,background:YO[x]}})})]},x)})}),O>0&&i.jsxs("div",{className:"mt-2.5 text-2xs font-mono text-text-3 uppercase tracking-wider",children:[O," auto-routed"]})]})});function hC(t){const n=t+"CollectionProvider",[s,l]=Ps(n),[o,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),d=k=>{const{scope:$,children:j}=k,P=Vn.useRef(null),N=Vn.useRef(new Map).current;return i.jsx(o,{scope:$,itemMap:N,collectionRef:P,children:j})};d.displayName=n;const O=t+"CollectionSlot",m=ec(O),p=Vn.forwardRef((k,$)=>{const{scope:j,children:P}=k,N=u(O,j),Z=rt($,N.collectionRef);return i.jsx(m,{ref:Z,children:P})});p.displayName=O;const x=t+"CollectionItemSlot",g="data-radix-collection-item",b=ec(x),S=Vn.forwardRef((k,$)=>{const{scope:j,children:P,...N}=k,Z=Vn.useRef(null),U=rt($,Z),C=u(x,j);return Vn.useEffect(()=>(C.itemMap.set(Z,{ref:Z,...N}),()=>void C.itemMap.delete(Z))),i.jsx(b,{[g]:"",ref:U,children:P})});S.displayName=x;function Q(k){const $=u(t+"CollectionConsumer",k);return Vn.useCallback(()=>{const P=$.collectionRef.current;if(!P)return[];const N=Array.from(P.querySelectorAll(`[${g}]`));return Array.from($.itemMap.values()).sort((C,X)=>N.indexOf(C.ref.current)-N.indexOf(X.ref.current))},[$.collectionRef,$.itemMap])}return[{Provider:d,Slot:p,ItemSlot:S},Q,l]}var VO="rovingFocusGroup.onEntryFocus",mC={bubbles:!1,cancelable:!0},di="RovingFocusGroup",[Sf,zy,pC]=hC(di),[xC,Ry]=Ps(di,[pC]),[gC,bC]=xC(di),Cy=v.forwardRef((t,n)=>i.jsx(Sf.Provider,{scope:t.__scopeRovingFocusGroup,children:i.jsx(Sf.Slot,{scope:t.__scopeRovingFocusGroup,children:i.jsx(vC,{...t,ref:n})})}));Cy.displayName=di;var vC=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:m,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=t,b=v.useRef(null),S=rt(n,b),Q=Jf(u),[k,$]=Pc({prop:d,defaultProp:O??null,onChange:m,caller:di}),[j,P]=v.useState(!1),N=zt(p),Z=zy(s),U=v.useRef(!1),[C,X]=v.useState(0);return v.useEffect(()=>{const T=b.current;if(T)return T.addEventListener(VO,N),()=>T.removeEventListener(VO,N)},[N]),i.jsx(gC,{scope:s,orientation:l,dir:Q,loop:o,currentTabStopId:k,onItemFocus:v.useCallback(T=>$(T),[$]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>X(T=>T+1),[]),onFocusableItemRemove:v.useCallback(()=>X(T=>T-1),[]),children:i.jsx(Be.div,{tabIndex:j||C===0?-1:0,"data-orientation":l,...g,ref:S,style:{outline:"none",...t.style},onMouseDown:Ee(t.onMouseDown,()=>{U.current=!0}),onFocus:Ee(t.onFocus,T=>{const G=!U.current;if(T.target===T.currentTarget&&G&&!j){const E=new CustomEvent(VO,mC);if(T.currentTarget.dispatchEvent(E),!E.defaultPrevented){const se=Z().filter(z=>z.focusable),re=se.find(z=>z.active),ge=se.find(z=>z.id===k),K=[re,ge,...se].filter(Boolean).map(z=>z.ref.current);Zy(K,x)}}U.current=!1}),onBlur:Ee(t.onBlur,()=>P(!1))})})}),Xy="RovingFocusGroupItem",_y=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:o=!1,tabStopId:u,children:d,...O}=t,m=Sl(),p=u||m,x=bC(Xy,s),g=x.currentTabStopId===p,b=zy(s),{onFocusableItemAdd:S,onFocusableItemRemove:Q,currentTabStopId:k}=x;return v.useEffect(()=>{if(l)return S(),()=>Q()},[l,S,Q]),i.jsx(Sf.ItemSlot,{scope:s,id:p,focusable:l,active:o,children:i.jsx(Be.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...O,ref:n,onMouseDown:Ee(t.onMouseDown,$=>{l?x.onItemFocus(p):$.preventDefault()}),onFocus:Ee(t.onFocus,()=>x.onItemFocus(p)),onKeyDown:Ee(t.onKeyDown,$=>{if($.key==="Tab"&&$.shiftKey){x.onItemShiftTab();return}if($.target!==$.currentTarget)return;const j=QC($,x.orientation,x.dir);if(j!==void 0){if($.metaKey||$.ctrlKey||$.altKey||$.shiftKey)return;$.preventDefault();let N=b().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const Z=N.indexOf($.currentTarget);N=x.loop?jC(N,Z+1):N.slice(Z+1)}setTimeout(()=>Zy(N))}}),children:typeof d=="function"?d({isCurrentTabStop:g,hasTabStop:k!=null}):d})})});_y.displayName=Xy;var yC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function SC(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function QC(t,n,s){const l=SC(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return yC[l]}function Zy(t,n=!1){const s=document.activeElement;for(const l of t)if(l===s||(l.focus({preventScroll:n}),document.activeElement!==s))return}function jC(t,n){return t.map((s,l)=>t[(n+l)%t.length])}var wC=Cy,kC=_y,Uc="Tabs",[$C]=Ps(Uc,[Ry]),Ay=Ry(),[TC,xh]=$C(Uc),Ey=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,onValueChange:o,defaultValue:u,orientation:d="horizontal",dir:O,activationMode:m="automatic",...p}=t,x=Jf(O),[g,b]=Pc({prop:l,onChange:o,defaultProp:u??"",caller:Uc});return i.jsx(TC,{scope:s,baseId:Sl(),value:g,onValueChange:b,orientation:d,dir:x,activationMode:m,children:i.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:n})})});Ey.displayName=Uc;var qy="TabsList",My=v.forwardRef((t,n)=>{const{__scopeTabs:s,loop:l=!0,...o}=t,u=xh(qy,s),d=Ay(s);return i.jsx(wC,{asChild:!0,...d,orientation:u.orientation,dir:u.dir,loop:l,children:i.jsx(Be.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:n})})});My.displayName=qy;var Yy="TabsTrigger",Vy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,disabled:o=!1,...u}=t,d=xh(Yy,s),O=Ay(s),m=Ly(d.baseId,l),p=Dy(d.baseId,l),x=l===d.value;return i.jsx(kC,{asChild:!0,...O,focusable:!o,active:x,children:i.jsx(Be.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...u,ref:n,onMouseDown:Ee(t.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?d.onValueChange(l):g.preventDefault()}),onKeyDown:Ee(t.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&d.onValueChange(l)}),onFocus:Ee(t.onFocus,()=>{const g=d.activationMode!=="manual";!x&&!o&&g&&d.onValueChange(l)})})})});Vy.displayName=Yy;var Uy="TabsContent",Gy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,forceMount:o,children:u,...d}=t,O=xh(Uy,s),m=Ly(O.baseId,l),p=Dy(O.baseId,l),x=l===O.value,g=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),i.jsx(ba,{present:o||x,children:({present:b})=>i.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":O.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:p,tabIndex:0,...d,ref:n,style:{...t.style,animationDuration:g.current?"0s":void 0},children:b&&u})})});Gy.displayName=Uy;function Ly(t,n){return`${t}-trigger-${n}`}function Dy(t,n){return`${t}-content-${n}`}var PC=Ey,NC=My,zC=Vy,RC=Gy;function Wy({children:t,...n}){return i.jsx(PC,{...n,children:t})}function By({children:t,className:n,...s}){return i.jsx(NC,{className:le("flex items-center gap-0 border-b border-border-subtle",n),...s,children:t})}function Ur({children:t,className:n,...s}){return i.jsx(zC,{className:le("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...s,children:t})}function Gr({children:t,className:n,...s}){return i.jsx(RC,{className:le("flex-1 min-h-0",n),...s,children:t})}function e0({data:t,color:n=me.accent,width:s=60,height:l=16}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=Array.isArray(t[0])?t:t.map(p=>typeof p=="number"?p:p.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=o.map((p,x)=>{const g=x/(o.length-1)*s,b=l-(p-u)/O*(l-2)-1;return`${g},${b}`}).join(" ");return i.jsx("svg",{width:s,height:l,className:"flex-shrink-0",children:i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function UO({label:t,value:n,total:s,color:l}){const o=s>0?n/s*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs font-mono",children:[i.jsx("span",{className:"text-text-2",children:t}),i.jsx("span",{className:"text-text-1 tabular-nums",children:ct(n)})]}),i.jsx("div",{className:"h-[2px] bg-surface-0 rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:l}})})]})}function CC({tokens:t,rotation:n}){var d;const s=(t==null?void 0:t.savings)||{},l=s.total||0,u=((t==null?void 0:t.totalTokens)||0)+l;return i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-4",children:[i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Rotations"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-text-0 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Saved"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-success tabular-nums leading-none",children:ct(l)}),u>0&&i.jsxs("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:[Nl(l/u*100)," of total"]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(UO,{label:"Rotation",value:s.fromRotation||0,total:u,color:me.accent}),i.jsx(UO,{label:"Conflict prevention",value:s.fromConflictPrevention||0,total:u,color:me.purple}),i.jsx(UO,{label:"Cold-start skip",value:s.fromColdStartSkip||0,total:u,color:me.info})]}),((d=n==null?void 0:n.history)==null?void 0:d.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"Recent"}),i.jsx("div",{className:"space-y-1",children:n.history.slice(-8).reverse().map((O,m)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsx("span",{className:"text-text-1 font-medium capitalize truncate flex-1",children:O.agentName||O.role}),i.jsx("span",{className:"text-text-3 tabular-nums",children:Nl((O.contextUsage||0)*100)}),i.jsx("span",{className:"text-text-4",children:Ct(O.timestamp)})]},m))})]})]})})}function XC({adaptive:t}){if(!(t!=null&&t.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No adaptive profiles"});function n(s){const l=s.split(":");return{provider:l[0]||s,role:l[1]||""}}return i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-1",children:[i.jsxs("div",{className:"flex items-center gap-2 px-2 pb-1 text-2xs font-mono text-text-4 uppercase tracking-wider",children:[i.jsx("span",{className:"flex-1",children:"Role"}),i.jsx("span",{className:"w-12 text-right",children:"Threshold"}),i.jsx("span",{className:"w-12 text-right",children:"Adj."}),i.jsx("span",{className:"w-14 text-right",children:"Status"})]}),t.map(s=>{var O,m;const{provider:l,role:o}=n(s.key),u=((O=s.thresholdHistory)==null?void 0:O.length)>1,d=((m=s.recentScores)==null?void 0:m.length)>1;return i.jsxs("div",{className:"bg-surface-0 rounded px-2 py-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 capitalize",children:o||l}),o&&i.jsx("span",{className:"text-2xs font-mono text-text-4 ml-1.5",children:l})]}),i.jsx("span",{className:"w-12 text-right text-xs font-mono font-semibold text-text-0 tabular-nums",children:Nl(s.threshold*100)}),i.jsx("span",{className:"w-12 text-right text-2xs font-mono text-text-3 tabular-nums",children:s.adjustments}),i.jsx("span",{className:le("w-14 text-right text-2xs font-mono font-bold uppercase",s.converged?"text-success":"text-text-4"),children:s.converged?"Converged":"Learning"})]}),(u||d)&&i.jsxs("div",{className:"flex items-center gap-3 mt-1.5 pl-1",children:[u&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Threshold"}),i.jsx(e0,{data:s.thresholdHistory.map(p=>p.v),color:s.converged?me.success:me.accent,width:70,height:12})]}),d&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Quality"}),i.jsx(e0,{data:s.recentScores,color:me.warning,width:70,height:12})]})]})]},s.key)})]})})}function _C({journalist:t}){var n;return t?i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),i.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:t.cycleCount||0})]}),t.lastCycleAt&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),i.jsx("div",{className:"text-xs font-mono text-text-2",children:Ct(t.lastCycleAt)})]}),t.synthesizing&&i.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),t.lastSummary&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),i.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:t.lastSummary})]}),t.projectMap&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.projectMap})]}),t.decisions&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.decisions})]}),((n=t.recentHistory)==null?void 0:n.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),i.jsx("div",{className:"space-y-1",children:t.recentHistory.slice().reverse().map((s,l)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),i.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),i.jsx("span",{className:"text-text-4",children:Ct(s.timestamp)})]},l))})]})]})}):i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const ZC=v.memo(function({tokens:n,rotation:s,adaptive:l,journalist:o}){return i.jsxs(Wy,{defaultValue:"rotation",className:"flex flex-col h-full",children:[i.jsxs(By,{className:"flex-shrink-0 px-1",children:[i.jsxs(Ur,{value:"rotation",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(El,{size:11}),"Rotation"]}),i.jsxs(Ur,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(b5,{size:11}),"Adaptive"]}),i.jsxs(Ur,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(Bf,{size:11}),"Journalist"]})]}),i.jsx(Gr,{value:"rotation",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(CC,{tokens:n,rotation:s})}),i.jsx(Gr,{value:"adaptive",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(XC,{adaptive:l})}),i.jsx(Gr,{value:"journalist",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(_C,{journalist:o})})]})}),AC={spawn:fP,complete:Br,crash:_c,kill:kb,rotate:El,error:If},EC={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function qC(t){const n=t.agentName||t.role||"";switch(t.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return t.text||t.type||"event"}}const MC=v.memo(function({events:n=[]}){return n.length?i.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((s,l)=>{const o=AC[s.type]||Na,u=EC[s.type]||"text-text-3",d=qC(s);return i.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.jsx(o,{size:11,className:u}),i.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:d}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:Ct(s.t||s.timestamp)})]},l)})}):i.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function Nt({className:t,...n}){return i.jsx("div",{className:le("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",t),...n})}function YC(){return i.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34"},children:[i.jsx("div",{className:"col-span-3",children:i.jsx(Nt,{className:"h-[72px] rounded-none"})}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx("div",{className:"col-span-2",children:i.jsx(Nt,{className:"h-full rounded-none"})})]})}function VC(){const{data:t,loading:n,agents:s,connected:l,kpiHistory:o,lastFetch:u,agentBreakdown:d,routing:O,rotation:m,adaptive:p,journalist:x,rotating:g}=aC(),b=s.filter(C=>C.status==="running").length;if(!l)return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[i.jsx(Rc,{size:28,className:"mx-auto"}),i.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!t)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),i.jsx(YC,{})]});const S=t.tokens||{},Q={totalTokens:S.totalTokens||0,totalCostUsd:S.totalCostUsd||0,totalInputTokens:S.totalInputTokens||0,totalOutputTokens:S.totalOutputTokens||0,cacheReadTokens:S.cacheReadTokens||0,cacheCreationTokens:S.cacheCreationTokens||0,cacheHitRate:S.cacheHitRate||0,totalTurns:S.totalTurns||0,agentCount:S.agentCount||0,savings:S.savings||{}},k=Q.totalTokens+(Q.savings.total||0),$=k>0?(Q.savings.total||0)/k*100:0,j=Q.totalOutputTokens>0?(Q.totalInputTokens/Q.totalOutputTokens).toFixed(1):"—",P=t.timeline||{},N=P.snapshots||[],Z=P.events||t.events||[],U=[{label:"Tokens Used",value:ct(Q.totalTokens),sparkData:o.tokens,color:me.accent},{label:"Total Cost",value:Ac(Q.totalCostUsd),sparkData:o.cost,color:me.warning},{label:"Tokens Saved",value:ct(Q.savings.total||0),sparkData:o.saved,color:me.success},{label:"Efficiency",value:Nl($),sparkData:o.efficiency,color:me.purple},{label:"Cache Rate",value:Nl(Q.cacheHitRate*100),sparkData:o.cache,color:me.info},{label:"I/O Ratio",value:`${j}:1`,sparkData:o.inputOutput,color:me.orange},{label:"Agents",value:`${b}/${s.length}`,sparkData:o.agents,color:me.accent},{label:"Turns",value:ct(Q.totalTurns),sparkData:o.turns,color:me.text2}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:b,totalCount:s.length,uptime:t.uptime||0,lastFetch:u,activeTeam:t.activeTeam}),i.jsx(lC,{kpis:U}),i.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[i.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:i.jsx(uC,{data:N})}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),i.jsx(dC,{cacheRead:Q.cacheReadTokens,cacheCreation:Q.cacheCreationTokens,totalInput:Q.totalInputTokens})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),i.jsx(fC,{routing:O})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),i.jsx(cC,{agentBreakdown:d,rotating:g})]}),i.jsx("div",{className:"col-span-2 min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:i.jsx(ZC,{tokens:Q,rotation:m,adaptive:p,journalist:x})})]}),i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:i.jsx(MC,{events:Z})})]})}const t0={sm:12,md:16,lg:20};function UC({fill:t="full",size:n,color:s="#fbbf24",emptyColor:l="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&i.jsx("defs",{children:i.jsxs("linearGradient",{id:o,children:[i.jsx("stop",{offset:"50%",stopColor:s}),i.jsx("stop",{offset:"50%",stopColor:l})]})}),i.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:t==="full"?s:t==="half"?`url(#${o})`:l})]})}function Hy({rating:t=0,count:n,size:s="sm"}){const l=t0[s]||t0.sm,o=[];for(let u=1;u<=5;u++)t>=u?o.push("full"):t>=u-.5?o.push("half"):o.push("empty");return i.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((u,d)=>i.jsx(UC,{fill:u,size:l},d)),n!=null&&i.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const a0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function Iy({label:t,variant:n,className:s}){const l=a0[n]||a0.draft;return i.jsx("span",{className:le("inline-flex items-center whitespace-nowrap font-sans select-none",s),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:l.color,background:l.bg},children:t})}function Fy({price:t=0,size:n="sm"}){const s=!t||t===0,l={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return i.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${l[n]||l.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function Ky({type:t="verified",size:n=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[i.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:s}),i.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Jy="groove_favorites";function gh(){try{return JSON.parse(localStorage.getItem(Jy)||"[]")}catch{return[]}}function GC(t){return gh().includes(t)}function LC(t){const n=gh(),s=n.indexOf(t);return s>=0?n.splice(s,1):n.push(t),localStorage.setItem(Jy,JSON.stringify(n)),s<0}function DC(t){const n=new Set(gh());return t.map(s=>({...s,favorited:n.has(s.id)}))}function WC({filled:t,size:n=16}){return i.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#f87171":"none",stroke:t?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:i.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function BC(){return i.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),i.jsx("polyline",{points:"7 10 12 15 17 10"}),i.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function HC({skill:t,onClick:n}){var u,d;const[s,l]=v.useState(()=>GC(t.id));function o(O){O.stopPropagation(),l(LC(t.id))}return i.jsxs("div",{onClick:()=>n==null?void 0:n(t),className:le("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:t.icon||((d=(u=t.name)==null?void 0:u[0])==null?void 0:d.toUpperCase())||"?"}),i.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:i.jsx(WC,{filled:s})})]}),i.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),i.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[i.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&i.jsx(Ky,{type:t.source,size:12})]}),i.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"mt-3",children:i.jsx(Iy,{label:t.category||"general",variant:t.category||"draft"})}),i.jsx("div",{className:"h-px bg-border-subtle my-3"}),i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i.jsx(Hy,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),i.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[i.jsx(BC,{}),ct(t.downloads||0)]}),i.jsx(Fy,{price:t.price||0,size:"sm"})]})]})}function eS(){return i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),i.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),i.jsx("div",{className:"h-px bg-surface-4 my-3"}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const IC={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function FC({item:t,size:n=40}){const s=IC[t.id];if(s)return i.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[i.jsx("img",{src:s,alt:t.name,className:"w-5 h-5",onError:u=>{u.target.style.display="none",u.target.nextSibling.style.display="flex"}}),i.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(t.name||"?")[0]})]});const l=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return i.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:l})}function KC({item:t,onClick:n,className:s}){var o;const l=t.installed;return i.jsxs("button",{onClick:()=>n(t),className:le("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",s),style:{minHeight:200},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[i.jsx(FC,{item:t,size:36}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&i.jsx(Br,{size:11,className:"text-accent flex-shrink-0"})]}),i.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),i.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"h-px bg-border-subtle my-2"}),i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Uf,{size:10}),ct(t.downloads||0)]}),(t.rating||0)>0&&i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Ub,{size:10,className:"text-warning",fill:"currentColor"}),(o=t.rating)==null?void 0:o.toFixed(1)]}),i.jsx("span",{className:"flex-1"}),l&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function tS({value:t,onChange:n,placeholder:s="Search skills, tags, authors...",large:l}){const[o,u]=v.useState(t||""),d=v.useRef(null);v.useEffect(()=>{u(t||"")},[t]);function O(m){const p=m.target.value;u(p),clearTimeout(d.current),d.current=setTimeout(()=>n(p),300)}return i.jsxs("div",{className:"relative w-full",children:[i.jsx(ql,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),i.jsx("input",{value:o,onChange:O,placeholder:s,className:le("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",l?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),l&&i.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const JC=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function eX({selected:t="",categories:n=JC,onSelect:s}){return i.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(l=>{const o=t===l.id;return i.jsx("button",{onClick:()=>s(l.id),className:le("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:l.label},l.id)})})}function Gc(){const t=W(n=>n.addToast);return{success:(n,s)=>t("success",n,s),error:(n,s)=>t("error",n,s),info:(n,s)=>t("info",n,s),warning:(n,s)=>t("warning",n,s)}}function tX({skill:t,onBack:n}){var k,$,j;const s=Gc(),[l,o]=v.useState(""),[u,d]=v.useState(!1),[O,m]=v.useState(!1),[p,x]=v.useState(t.installed),[g,b]=v.useState(!0);v.useEffect(()=>{b(!0),ee.get(`/skills/${t.id}/content`).then(P=>{o(P.content||""),d(P.requiresPurchase||!1)}).catch(()=>{}).finally(()=>b(!1))},[t.id]);async function S(){m(!0);try{await ee.post(`/skills/${t.id}/install`),x(!0),s.success(`${t.name} installed`)}catch(P){s.error("Install failed",P.message)}m(!1)}async function Q(){const{marketplaceAuthenticated:P,marketplaceLogin:N,marketplaceCheckout:Z}=W.getState();if(!P){N();return}try{await Z(t.id)}catch{}}return i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-6 py-5",children:[i.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[i.jsx(wb,{size:14})," Back"]}),i.jsxs("div",{className:"flex gap-8",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:t.icon||(($=(k=t.name)==null?void 0:k[0])==null?void 0:$.toUpperCase())}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&i.jsx(Ky,{type:t.source,size:13})]})]})]}),i.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((j=t.tags)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(P=>i.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:P},P))}),i.jsx("div",{className:"h-px bg-border-subtle my-5"}),g?i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):l?i.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),i.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:l})]}):u?i.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[i.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):i.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),i.jsx("div",{className:"w-[240px] flex-shrink-0",children:i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[i.jsx(Fy,{price:t.price||0,size:"md"}),u&&!p?i.jsxs("button",{onClick:Q,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(t.price||0).toFixed(2)]}):i.jsx("button",{onClick:S,disabled:O||p,className:`w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border ${p?"bg-success/15 text-success border-success/20":"bg-accent/15 text-accent border-accent/20 hover:bg-accent/25"}`,children:O?"Installing...":p?"✓ Installed":"Install"}),i.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",i.jsx("span",{className:"font-mono text-text-0",children:ct(t.downloads||0)},"d")],["Rating",i.jsx(Hy,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",i.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",i.jsx(Iy,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",i.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([P,N])=>i.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[i.jsx("span",{className:"text-text-3",children:P}),N]},P))})]})})]})]})})}function aX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),[d,O]=v.useState(""),[m,p]=v.useState("popular"),[x,g]=v.useState(null);return v.useEffect(()=>{l(!0);const b=new URLSearchParams;o&&b.set("search",o),d&&b.set("category",d),m&&b.set("sort",m),ee.get(`/skills/registry?${b}`).then(S=>n(DC(S.skills||S.items||(Array.isArray(S)?S:[])))).catch(()=>n([])).finally(()=>l(!1))},[o,d,m]),x?i.jsx(tX,{skill:x,onBack:()=>g(null)}):i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(tS,{value:o,onChange:u})}),i.jsx(eX,{selected:d,onSelect:O}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"relative flex-shrink-0",children:[i.jsxs("select",{value:m,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[i.jsx("option",{value:"popular",children:"Popular"}),i.jsx("option",{value:"rating",children:"Top Rated"}),i.jsx("option",{value:"newest",children:"Newest"}),i.jsx("option",{value:"name",children:"A-Z"})]}),i.jsx(In,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,S)=>i.jsx(eS,{},S)):t.map(b=>i.jsx(HC,{skill:b,onClick:g},b.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function nX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),d=Gc();return v.useEffect(()=>{l(!0),ee.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(O=>n(O.integrations||O.items||(Array.isArray(O)?O:[]))).catch(()=>n([])).finally(()=>l(!1))},[o]),i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(tS,{value:o,onChange:u,placeholder:"Search integrations..."})}),i.jsx("div",{className:"flex-1"}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((O,m)=>i.jsx(eS,{},m)):t.map(O=>i.jsx(KC,{item:O,onClick:()=>d.info(`${O.name} — install via CLI: groove integrations install ${O.id}`)},O.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]})})}function sX(){const t=W(g=>g.marketplaceAuthenticated),n=W(g=>g.marketplaceLogin),[s,l]=v.useState([]),[o,u]=v.useState([]),[d,O]=v.useState(!0),m=Gc(),p=v.useRef(null);v.useEffect(()=>{O(!0),Promise.all([t?ee.get("/auth/purchases").then(g=>g.purchases||[]).catch(()=>[]):Promise.resolve([]),ee.get("/skills/installed").then(g=>Array.isArray(g)?g:g.skills||[]).catch(()=>[])]).then(([g,b])=>{l(g),u(b)}).finally(()=>O(!1))},[t]);async function x(g){var S;const b=(S=g.target.files)==null?void 0:S[0];if(b){try{const Q=await b.text(),k=b.name.replace(/\.md$/i,"");await ee.post("/skills/import",{name:k,content:Q}),m.success(`Imported "${k}"`);const $=await ee.get("/skills/installed");u(Array.isArray($)?$:$.skills||[])}catch(Q){m.error("Import failed",Q.message)}g.target.value=""}}return d?i.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((g,b)=>i.jsx(Nt,{className:"h-14 rounded-md"},b))}):i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4 space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("input",{ref:p,type:"file",accept:".md",onChange:x,className:"hidden"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>{var g;return(g=p.current)==null?void 0:g.click()},className:"gap-1.5",children:[i.jsx(cP,{size:13}),"Import .md Skill"]}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(gO,{size:12}),"Purchases (",s.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:s.map(g=>{var b,S;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.skill_icon||((S=(b=g.skill_name)==null?void 0:b[0])==null?void 0:S.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.skill_name||g.skill_id}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(g.amount||0).toFixed(2)," · ",Ct(g.created_at)]})]}),i.jsx(We,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},g.id||g.skill_id)})})]}),t&&s.length===0&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(gO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(gO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),i.jsxs(je,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[i.jsx(Df,{size:12})," Sign in"]})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(_b,{size:12}),"Installed (",o.length,")"]}),o.length===0?i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(Uf,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):i.jsx("div",{className:"space-y-1.5",children:o.map(g=>{var b,S;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.icon||((S=(b=g.name)==null?void 0:b[0])==null?void 0:S.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.name||g.id}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:g.description||g.category||"local skill"})]}),i.jsx(We,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},g.id)})})]})]})})}function lX(){const t=W(o=>o.marketplaceAuthenticated),n=W(o=>o.marketplaceUser),s=W(o=>o.marketplaceLogin),l=W(o=>o.marketplaceLogout);return t?i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[i.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:i.jsx(Gb,{size:9,className:"text-accent"})}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),i.jsx("button",{onClick:l,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:i.jsx(Rb,{size:11})})]}):i.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[i.jsx(Df,{size:12}),"Sign in"]})}function rX(){const[t,n]=v.useState("skills"),s=[{id:"skills",label:"Skills",icon:Vb},{id:"integrations",label:"Integrations",icon:Zb},{id:"library",label:"My Library",icon:_b}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:i.jsxs("div",{className:"flex items-center px-5 h-11",children:[i.jsx("div",{className:"flex items-center",children:s.map(l=>{const o=l.icon;return i.jsxs("button",{onClick:()=>n(l.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${t===l.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[i.jsx(o,{size:12}),l.label]},l.id)})}),i.jsx("div",{className:"flex-1"}),i.jsx(lX,{})]})}),i.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&i.jsx(aX,{}),t==="integrations"&&i.jsx(nX,{}),t==="library"&&i.jsx(sX,{})]})]})}function iX({children:t,className:n,hover:s,...l}){return i.jsx("div",{className:le("rounded-md border border-border bg-surface-1",s&&"hover:border-accent/50 hover:bg-surface-2 transition-all duration-150 cursor-pointer",n),...l,children:t})}function oX(){const t=W(l=>l.pendingApprovals),n=W(l=>l.approveRequest),s=W(l=>l.rejectRequest);return t.length===0?null:i.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(_c,{size:13,className:"text-warning"}),i.jsxs("span",{className:"text-xs font-semibold text-warning font-sans",children:["Pending Approval (",t.length,")"]})]}),t.map(l=>{var o,u,d;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-warning/5 border border-warning/20",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[l.agentName,": ",((o=l.action)==null?void 0:o.description)||((u=l.action)==null?void 0:u.type)||"action"]}),((d=l.action)==null?void 0:d.filePath)&&i.jsx("div",{className:"text-2xs text-text-3 font-mono truncate mt-0.5",children:l.action.filePath}),i.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:Ct(l.requestedAt)})]}),i.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>n(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(Yb,{size:11})," Approve"]}),i.jsxs(je,{variant:"danger",size:"sm",onClick:()=>s(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(KT,{size:11})," Reject"]})]})]},l.id)})]})}function cX(){const t=W(m=>m.resolvedApprovals),[n,s]=v.useState([]),[l,o]=v.useState(!0);v.useEffect(()=>{const m=setInterval(u,4e3);return u(),()=>clearInterval(m)},[]);async function u(){try{const m=await ee.get("/pm/history");s(m.history||m||[])}catch{}o(!1)}const d=new Set,O=[...t,...n].filter(m=>{const p=m.id||`${m.agentName}-${m.timestamp}`;return d.has(p)?!1:(d.add(p),!0)});return l&&O.length===0?i.jsx("div",{className:"p-4 space-y-2",children:[...Array(4)].map((m,p)=>i.jsx(Nt,{className:"h-12 rounded-md"},p))}):i.jsxs(Ht,{className:"flex-1",children:[i.jsx(oX,{}),i.jsxs("div",{className:"p-4 space-y-2",children:[O.length===0&&i.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[i.jsx(Br,{size:32,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No approval history"}),i.jsx("p",{className:"text-2xs text-text-4 mt-1",children:'Approvals appear when agents use "Agent Approve" permission mode'})]}),O.map((m,p)=>{var x;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-surface-1 border border-border-subtle",children:[m.status==="approved"||m.verdict==="approved"?i.jsx(Br,{size:14,className:"text-success flex-shrink-0"}):i.jsx(kb,{size:14,className:"text-danger flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-0 font-sans truncate",children:[m.agentName,": ",((x=m.action)==null?void 0:x.description)||m.action||"action"]}),m.reason&&i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:m.reason})]}),i.jsx("span",{className:"text-2xs text-text-4 font-sans flex-shrink-0",children:Ct(m.resolvedAt||m.timestamp)})]},m.id||p)})]})]})}function uX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),o=Gc();v.useEffect(()=>{const O=setInterval(u,1e4);return u(),()=>clearInterval(O)},[]);async function u(){try{const O=await ee.get("/schedules");n(O.schedules||O||[])}catch{}l(!1)}async function d(O,m){try{await ee.post(`/schedules/${O}/${m?"disable":"enable"}`),u()}catch(p){o.error("Failed to toggle schedule",p.message)}}return s?i.jsx("div",{className:"p-4 space-y-2",children:[...Array(3)].map((O,m)=>i.jsx(Nt,{className:"h-16 rounded-md"},m))}):i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-4 space-y-2",children:[t.length===0&&i.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[i.jsx(oc,{size:32,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No schedules configured"})]}),t.map(O=>i.jsx(iX,{className:"p-3",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:O.name}),i.jsx(We,{variant:O.enabled?"success":"default",children:O.enabled?"Active":"Paused"})]}),i.jsxs("div",{className:"text-2xs text-text-3 font-mono mt-0.5",children:[O.cron," · ",O.role]})]}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>d(O.id,O.enabled),children:O.enabled?"Pause":"Enable"})]})},O.id))]})})}function dX(){return i.jsxs(Wy,{defaultValue:"approvals",className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[i.jsx("div",{className:"flex items-center gap-4 mb-0",children:i.jsx("h2",{className:"text-base font-semibold text-text-0 font-sans",children:"Management"})}),i.jsxs(By,{className:"border-b-0",children:[i.jsx(Ur,{value:"approvals",children:"Approvals"}),i.jsx(Ur,{value:"schedules",children:"Schedules"})]})]}),i.jsx(Gr,{value:"approvals",className:"flex-1 min-h-0",children:i.jsx(cX,{})}),i.jsx(Gr,{value:"schedules",className:"flex-1 min-h-0",children:i.jsx(uX,{})})]})}const OX={code:"Code",general:"General"},fX={light:"text-success",medium:"text-accent",heavy:"text-warning"};function hX(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function aS({hardware:t}){if(!t)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:l}=t;return i.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[i.jsx(Wf,{size:14,className:"text-text-3 flex-shrink-0"}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[i.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{className:"text-text-2",children:s.name})]}),l&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function mX({onRecheck:t}){const[n,s]=v.useState(null),[l,o]=v.useState(!1),[u,d]=v.useState(!1),[O,m]=v.useState(!1),p=W(Z=>Z.addToast);v.useEffect(()=>{ee.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const Z=await ee.post("/providers/ollama/check");s(Z),Z.installed&&Z.serverRunning?(p("success","Ollama is ready!"),t()):Z.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function g(){d(!0);try{if((await ee.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let U=!1;for(let C=0;C<5;C++){await new Promise(T=>setTimeout(T,2e3));const X=await ee.post("/providers/ollama/check");if(s(X),X.serverRunning){U=!0;break}}U&&t()}}catch(Z){p("error","Could not start server",Z.message)}d(!1)}function b(Z){navigator.clipboard.writeText(Z),m(!0),setTimeout(()=>m(!1),2e3)}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:S,install:Q,requirements:k,installed:$,serverRunning:j}=n,P=S.totalRamGb>=k.minRAM,N=S.recommended;return i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsx(aS,{hardware:S}),P?i.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[i.jsx(oa,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans",children:[i.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),i.jsx("span",{className:"text-text-2 ml-1",children:N.code?`Recommended: ${N.code}`:`${S.totalRamGb} GB RAM available`})]})]}):i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsxs("span",{className:"text-warning font-semibold",children:[S.totalRamGb," GB RAM detected."]})," ","Minimum ",k.minRAM," GB needed. Smallest models may still work."]})]}),$&&!j&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:u,className:"w-full gap-1.5",children:[i.jsx(Na,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!$&&i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[O?i.jsx(oa,{size:12}):i.jsx(uf,{size:12}),O?"Copied":"Copy"]})]}),Q.alt&&i.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),i.jsxs(je,{variant:"secondary",size:"md",onClick:x,disabled:l,className:"w-full gap-1.5",children:[i.jsx(es,{size:12,className:l?"animate-spin":""}),l?"Checking...":$?"Check again":"I installed it — check again"]})]})}function pX({model:t,isInstalled:n,isRecommended:s,canRun:l,onPull:o,onDelete:u,pulling:d}){const O=d===t.id;return i.jsxs("div",{className:le("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!l&&"opacity-40"),children:[n?i.jsx(oa,{size:12,className:"text-success flex-shrink-0"}):i.jsx("div",{className:"w-3"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&i.jsx(Ub,{size:10,className:"text-warning flex-shrink-0"})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[i.jsx("span",{className:le("text-2xs font-semibold font-sans",fX[t.tier]),children:t.tier}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:hX(t.sizeGb)}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),n?i.jsx("button",{onClick:()=>u(t.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:i.jsx(Xc,{size:12})}):l?i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>o(t.id),disabled:!!d,className:"h-7 px-2 text-2xs gap-1",children:O?i.jsxs(i.Fragment,{children:[i.jsx(es,{size:10,className:"animate-spin"})," Pulling..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Uf,{size:10})," Pull"]})}):i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function xX({onStopped:t}){const[n,s]=v.useState(null),l=W(d=>d.addToast);async function o(){s("stopping");try{(await ee.post("/providers/ollama/stop")).ok?(l("info","Ollama server stopped"),t&&t()):l("error","Could not stop server")}catch(d){l("error","Stop failed",d.message)}s(null)}async function u(){s("restarting");try{(await ee.post("/providers/ollama/restart")).ok?l("success","Ollama server restarted"):l("error","Restart failed")}catch(d){l("error","Restart failed",d.message)}s(null)}return i.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),i.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),i.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),i.jsx("div",{className:"flex-1"}),i.jsxs("button",{onClick:u,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(es,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),i.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(cn,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function gX({onModelChange:t}){var T,G;const[n,s]=v.useState(null),[l,o]=v.useState(null),[u,d]=v.useState("code"),[O,m]=v.useState(!1),[p,x]=v.useState(!1),g=W(E=>E.addToast),b=v.useRef(!1);function S(){ee.get("/providers/ollama/models").then(E=>{var se;s(E),!b.current&&((se=E.installed)==null?void 0:se.length)===0&&(b.current=!0,setTimeout(S,2e3))}).catch(()=>{})}v.useEffect(()=>{S()},[]);async function Q(E){o(E);try{await ee.post("/providers/ollama/pull",{model:E}),g("success",`Pulled ${E}`),S(),t&&t()}catch(se){g("error",`Pull failed: ${se.message}`)}o(null)}async function k(E){try{await ee.delete(`/providers/ollama/models/${encodeURIComponent(E)}`),g("info",`Removed ${E}`),S(),t&&t()}catch(se){g("error",`Delete failed: ${se.message}`)}}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:$,catalog:j,hardware:P}=n,N=new Set($.map(E=>E.id)),Z=P.totalRamGb,U=[(T=P.recommended)==null?void 0:T.code,(G=P.recommended)==null?void 0:G.general].filter(Boolean),C=j.filter(E=>E.category===u),X=O?C:C.filter(E=>E.ramGb<=Z);return p?i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0"}),i.jsxs("span",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:async()=>{try{(await ee.post("/providers/ollama/serve")).ok&&(g("success","Ollama server started!"),x(!1),b.current=!1,setTimeout(S,2e3))}catch(E){g("error","Could not start server",E.message)}},className:"w-full gap-1.5",children:[i.jsx(Na,{size:12}),"Start Ollama Server"]})]}):i.jsxs("div",{className:"space-y-2 p-3",children:[i.jsx(xX,{onStopped:()=>x(!0)}),i.jsx(aS,{hardware:P}),$.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[i.jsx(Nb,{size:12,className:"text-text-3"}),i.jsx("span",{className:"font-semibold",children:$.length})," model",$.length!==1?"s":""," installed"]}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(OX).map(([E,se])=>i.jsx("button",{onClick:()=>d(E),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",u===E?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:se},E))}),i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[X.map(E=>i.jsx(pX,{model:E,isInstalled:N.has(E.id),isRecommended:U.includes(E.id),canRun:E.ramGb<=Z,onPull:Q,onDelete:k,pulling:l},E.id)),X.length===0&&i.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",u," models available for your hardware"]})]}),!O&&C.length>X.length&&i.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(In,{size:10}),"Show ",C.length-X.length," more (exceed your RAM)"]})]})}function nS({isInstalled:t,onModelChange:n}){const[s,l]=v.useState(!1),[o,u]=v.useState(!1);return v.useEffect(()=>{t?ee.post("/providers/ollama/check").then(d=>{l(d.installed&&d.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),o?s?i.jsx(gX,{onModelChange:n}):i.jsx(mX,{onRecheck:()=>{l(!0),n&&n()}}):i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var GO="focusScope.autoFocusOnMount",LO="focusScope.autoFocusOnUnmount",n0={bubbles:!1,cancelable:!0},bX="FocusScope",sS=v.forwardRef((t,n)=>{const{loop:s=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[O,m]=v.useState(null),p=zt(o),x=zt(u),g=v.useRef(null),b=rt(n,k=>m(k)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(l){let k=function(N){if(S.paused||!O)return;const Z=N.target;O.contains(Z)?g.current=Z:Un(g.current,{select:!0})},$=function(N){if(S.paused||!O)return;const Z=N.relatedTarget;Z!==null&&(O.contains(Z)||Un(g.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const U of N)U.removedNodes.length>0&&Un(O)};document.addEventListener("focusin",k),document.addEventListener("focusout",$);const P=new MutationObserver(j);return O&&P.observe(O,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",$),P.disconnect()}}},[l,O,S.paused]),v.useEffect(()=>{if(O){l0.add(S);const k=document.activeElement;if(!O.contains(k)){const j=new CustomEvent(GO,n0);O.addEventListener(GO,p),O.dispatchEvent(j),j.defaultPrevented||(vX(wX(lS(O)),{select:!0}),document.activeElement===k&&Un(O))}return()=>{O.removeEventListener(GO,p),setTimeout(()=>{const j=new CustomEvent(LO,n0);O.addEventListener(LO,x),O.dispatchEvent(j),j.defaultPrevented||Un(k??document.body,{select:!0}),O.removeEventListener(LO,x),l0.remove(S)},0)}}},[O,p,x,S]);const Q=v.useCallback(k=>{if(!s&&!l||S.paused)return;const $=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,j=document.activeElement;if($&&j){const P=k.currentTarget,[N,Z]=yX(P);N&&Z?!k.shiftKey&&j===Z?(k.preventDefault(),s&&Un(N,{select:!0})):k.shiftKey&&j===N&&(k.preventDefault(),s&&Un(Z,{select:!0})):j===P&&k.preventDefault()}},[s,l,S.paused]);return i.jsx(Be.div,{tabIndex:-1,...d,ref:b,onKeyDown:Q})});sS.displayName=bX;function vX(t,{select:n=!1}={}){const s=document.activeElement;for(const l of t)if(Un(l,{select:n}),document.activeElement!==s)return}function yX(t){const n=lS(t),s=s0(n,t),l=s0(n.reverse(),t);return[s,l]}function lS(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function s0(t,n){for(const s of t)if(!SX(s,{upTo:n}))return s}function SX(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function QX(t){return t instanceof HTMLInputElement&&"select"in t}function Un(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&QX(t)&&n&&t.select()}}var l0=jX();function jX(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=r0(t,n),t.unshift(n)},remove(n){var s;t=r0(t,n),(s=t[0])==null||s.resume()}}}function r0(t,n){const s=[...t],l=s.indexOf(n);return l!==-1&&s.splice(l,1),s}function wX(t){return t.filter(n=>n.tagName!=="A")}var DO=0;function kX(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??i0()),document.body.insertAdjacentElement("beforeend",t[1]??i0()),DO++,()=>{DO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),DO--}},[])}function i0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var wa=function(){return wa=Object.assign||function(n){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},wa.apply(this,arguments)};function rS(t,n){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)n.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(s[l[o]]=t[l[o]]);return s}function $X(t,n,s){if(s||arguments.length===2)for(var l=0,o=n.length,u;l<o;l++)(u||!(l in n))&&(u||(u=Array.prototype.slice.call(n,0,l)),u[l]=n[l]);return t.concat(u||Array.prototype.slice.call(n))}var Ko="right-scroll-bar-position",Jo="width-before-scroll-bar",TX="with-scroll-bars-hidden",PX="--removed-body-scroll-bar-size";function WO(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function NX(t,n){var s=v.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(l){var o=s.value;o!==l&&(s.value=l,s.callback(l,o))}}}})[0];return s.callback=n,s.facade}var zX=typeof window<"u"?v.useLayoutEffect:v.useEffect,o0=new WeakMap;function RX(t,n){var s=NX(null,function(l){return t.forEach(function(o){return WO(o,l)})});return zX(function(){var l=o0.get(s);if(l){var o=new Set(l),u=new Set(t),d=s.current;o.forEach(function(O){u.has(O)||WO(O,null)}),u.forEach(function(O){o.has(O)||WO(O,d)})}o0.set(s,t)},[t]),s}function CX(t){return t}function XX(t,n){n===void 0&&(n=CX);var s=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var d=n(u,l);return s.push(d),function(){s=s.filter(function(O){return O!==d})}},assignSyncMedium:function(u){for(l=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(O){return u(O)},filter:function(){return s}}},assignMedium:function(u){l=!0;var d=[];if(s.length){var O=s;s=[],O.forEach(u),d=s}var m=function(){var x=d;d=[],x.forEach(u)},p=function(){return Promise.resolve().then(m)};p(),s={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),s}}}};return o}function _X(t){t===void 0&&(t={});var n=XX(null);return n.options=wa({async:!0,ssr:!1},t),n}var iS=function(t){var n=t.sideCar,s=rS(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=n.read();if(!l)throw new Error("Sidecar medium not found");return v.createElement(l,wa({},s))};iS.isSideCarExport=!0;function ZX(t,n){return t.useMedium(n),iS}var oS=_X(),BO=function(){},Lc=v.forwardRef(function(t,n){var s=v.useRef(null),l=v.useState({onScrollCapture:BO,onWheelCapture:BO,onTouchMoveCapture:BO}),o=l[0],u=l[1],d=t.forwardProps,O=t.children,m=t.className,p=t.removeScrollBar,x=t.enabled,g=t.shards,b=t.sideCar,S=t.noRelative,Q=t.noIsolation,k=t.inert,$=t.allowPinchZoom,j=t.as,P=j===void 0?"div":j,N=t.gapMode,Z=rS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,C=RX([s,n]),X=wa(wa({},Z),o);return v.createElement(v.Fragment,null,x&&v.createElement(U,{sideCar:oS,removeScrollBar:p,shards:g,noRelative:S,noIsolation:Q,inert:k,setCallbacks:u,allowPinchZoom:!!$,lockRef:s,gapMode:N}),d?v.cloneElement(v.Children.only(O),wa(wa({},X),{ref:C})):v.createElement(P,wa({},X,{className:m,ref:C}),O))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Jo,zeroRight:Ko};var AX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EX(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=AX();return n&&t.setAttribute("nonce",n),t}function qX(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function MX(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var YX=function(){var t=0,n=null;return{add:function(s){t==0&&(n=EX())&&(qX(n,s),MX(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},VX=function(){var t=YX();return function(n,s){v.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},cS=function(){var t=VX(),n=function(s){var l=s.styles,o=s.dynamic;return t(l,o),null};return n},UX={left:0,top:0,right:0,gap:0},HO=function(t){return parseInt(t||"",10)||0},GX=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],l=n[t==="padding"?"paddingTop":"marginTop"],o=n[t==="padding"?"paddingRight":"marginRight"];return[HO(s),HO(l),HO(o)]},LX=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return UX;var n=GX(t),s=document.documentElement.clientWidth,l=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,l-s+n[2]-n[0])}},DX=cS(),wl="data-scroll-locked",WX=function(t,n,s,l){var o=t.left,u=t.top,d=t.right,O=t.gap;return s===void 0&&(s="margin"),`
|
|
538
|
+
`,{label:"if",detail:"block",type:"keyword"}),Ie("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Ie("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Ie("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Ie("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],BR=y0(Py,S0(DR.concat(WR)));function EO(t){let{node:n,pos:s}=t,l=t.lineIndent(s,-1),o=null;for(;;){let u=n.childBefore(s);if(u)if(u.name=="Comment")s=u.from;else if(u.name=="Body"||u.name=="MatchBody")t.baseIndentFor(u)+t.unit<=l&&(o=u),n=u;else if(u.name=="MatchClause")n=u;else if(u.type.is("Statement"))n=u;else break;else break}return o}function qO(t,n){let s=t.baseIndentFor(n),l=t.lineAt(t.pos,-1),o=l.from+l.text.length;return/^\s*($|#)/.test(l.text)&&t.node.to<o+100&&!/\S/.test(t.state.sliceDoc(o,t.node.to))&&t.lineIndent(t.pos,-1)<=s||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>s?null:s+t.unit}const MO=si.define({name:"python",parser:UR.configure({props:[_l.add({Body:t=>{var n;let s=/^\s*(#|$)/.test(t.textAfter)&&EO(t)||t.node;return(n=qO(t,s))!==null&&n!==void 0?n:t.continue()},MatchBody:t=>{var n;let s=EO(t);return(n=qO(t,s||t.node))!==null&&n!==void 0?n:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":Lo({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":Lo({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":Lo({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var n;let s=EO(t);return(n=s&&qO(t,s))!==null&&n!==void 0?n:t.continue()}}),Ts.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":jc,Body:(t,n)=>({from:t.from+1,to:t.to-(t.to==n.doc.length?0:1)}),"String FormatString":(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function HR(){return new Qs(MO,[MO.data.of({autocomplete:LR}),MO.data.of({autocomplete:BR})])}const qo={javascript:()=>hf({jsx:!0,typescript:!1}),typescript:()=>hf({jsx:!0,typescript:!0}),css:()=>kv(),html:()=>Lv(),json:()=>G4(),markdown:()=>Pz(),python:()=>HR()},IR=kl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function FR({content:t,language:n,onChange:s,onSave:l}){const o=v.useRef(null),u=v.useRef(null),d=v.useRef(new Rj),O=v.useRef(s),m=v.useRef(l);return O.current=s,m.current=l,v.useEffect(()=>{if(!o.current)return;const p=qo[n]||qo.javascript,x=ef.of([{key:"Mod-s",run:()=>{var S;return(S=m.current)==null||S.call(m),!0}}]),g=k0.create({doc:t||"",extensions:[Xj(),_j(),Zj(),Aj(),Ej(),qj(),Mj(),ef.of([...Yj,...Vj,...Uj]),x,Cj,IR,d.current.of(p()),kl.updateListener.of(S=>{var Q;S.docChanged&&((Q=O.current)==null||Q.call(O,S.state.doc.toString()))})]}),b=new kl({state:g,parent:o.current});return u.current=b,()=>{b.destroy(),u.current=null}},[]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=p.state.doc.toString();t!==x&&p.dispatch({changes:{from:0,to:x.length,insert:t||""}})},[t]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=qo[n]||qo.javascript;p.dispatch({effects:d.current.reconfigure(x())})},[n]),i.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const KR=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],Ny=["mp4","webm","mov","avi","mkv","ogv"];function JR(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return KR.includes(n)||Ny.includes(n)}function eC({path:t}){var u;const n=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,l=t.split("/").pop(),o=Ny.includes(n);return i.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[i.jsx(We,{children:n==null?void 0:n.toUpperCase()}),i.jsx("span",{className:"font-mono",children:l}),i.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:i.jsx(cc,{size:12})})]}),o?i.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):i.jsx("img",{src:s,alt:l,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function tC(){const t=D(b=>b.editorActiveFile),n=D(b=>b.editorFiles),s=D(b=>b.editorChangedFiles),l=D(b=>b.updateFileContent),o=D(b=>b.saveFile),u=D(b=>b.reloadFile),d=D(b=>b.dismissFileChange),[O,m]=v.useState("");v.useEffect(()=>{ee.get("/files/root").then(b=>m(b.root||"")).catch(()=>{})},[]);const p=t?n[t]:null,x=t&&JR(t),g=t&&s[t];return i.jsxs("div",{className:"flex h-full",children:[i.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:i.jsx(bN,{rootDir:O})}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[i.jsx(vN,{}),i.jsxs("div",{className:"flex-1 relative min-h-0",children:[g&&i.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[i.jsx(_c,{size:14,className:"text-warning"}),i.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[i.jsx(es,{size:12})," Reload"]}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>d(t),children:[i.jsx(Rt,{size:12})," Dismiss"]})]}),!t&&i.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:i.jsxs("div",{className:"text-center space-y-2",children:[i.jsx(dn,{size:32,className:"mx-auto"}),i.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&x&&i.jsx(eC,{path:t}),t&&!x&&p&&i.jsx(FR,{content:p.content,language:p.language,onChange:b=>l(t,b),onSave:()=>o(t)})]})]})]})}function aC(){var k;const t=D(T=>T.connected),n=D(T=>T.agents),[s,l]=v.useState(null),[o,u]=v.useState(!0),[d,O]=v.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),m=v.useRef(0);v.useEffect(()=>{if(!t)return;let T=!0;async function j(){try{const N=await ee.get("/dashboard");if(!T)return;l(N),u(!1),m.current=Date.now(),O(Z=>{var re,xe,ie,J,z,B,I,fe,te;const U=Date.now(),C=(Ae,Se)=>[...Ae.slice(-59),{t:U,v:Se||0}],X=((re=N.tokens)==null?void 0:re.totalTokens)||0,$=((ie=(xe=N.tokens)==null?void 0:xe.savings)==null?void 0:ie.total)||0,W=X+$,E=((J=N.tokens)==null?void 0:J.totalInputTokens)||0,ne=((z=N.tokens)==null?void 0:z.totalOutputTokens)||0;return{tokens:C(Z.tokens,X),cost:C(Z.cost,(B=N.tokens)==null?void 0:B.totalCostUsd),saved:C(Z.saved,$),efficiency:C(Z.efficiency,W>0?$/W*100:0),cache:C(Z.cache,(I=N.tokens)==null?void 0:I.cacheHitRate),inputOutput:C(Z.inputOutput,ne>0?E/ne:0),agents:C(Z.agents,((fe=N.agents)==null?void 0:fe.running)||0),turns:C(Z.turns,(te=N.tokens)==null?void 0:te.totalTurns)}})}catch{T&&u(!1)}}j();const P=setInterval(j,4e3);return()=>{T=!1,clearInterval(P)}},[t]);const p=((k=s==null?void 0:s.agents)==null?void 0:k.breakdown)||[],x=(s==null?void 0:s.routing)||null,g=(s==null?void 0:s.rotation)||null,b=(s==null?void 0:s.adaptive)||[],S=(s==null?void 0:s.journalist)||null,Q=(g==null?void 0:g.rotating)||[];return{data:s,loading:o,agents:n,connected:t,kpiHistory:d,lastFetch:m.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:S,rotating:Q}}const J1=v.memo(function({connected:n,runningCount:s,totalCount:l,uptime:o,lastFetch:u,activeTeam:d}){return i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[i.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),d&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"/"}),i.jsx("span",{className:"text-xs font-mono text-text-2",children:d.name})]}),i.jsx("div",{className:"flex-1"}),n&&i.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-text-1",children:s}),i.jsxs("span",{className:"text-text-3",children:["/",l]}),i.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&i.jsxs("span",{className:"text-text-3",children:["Up ",Ec(o)]}),u>0&&i.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[i.jsx(es,{size:9}),i.jsx("span",{children:Ct(u)})]})]}),i.jsx(Pl,{status:n?"running":"crashed",size:"sm"})]})});function ia(t,n){const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return`rgba(${s},${l},${o},${n})`}const me={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function nC({data:t,color:n=me.accent,width:s=72,height:l=22}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=t.map(x=>x.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=t.map((x,g)=>{const b=g/(t.length-1)*s,S=l-(x.v-u)/O*(l-2)-1;return`${b},${S}`}).join(" "),p=`kpi-${n.replace("#","")}`;return i.jsxs("svg",{width:s,height:l,className:"flex-shrink-0",children:[i.jsx("defs",{children:i.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),i.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),i.jsx("polygon",{points:`0,${l} ${m} ${s},${l}`,fill:`url(#${p})`}),i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const sC=v.memo(function({label:n,value:s,sparkData:l,color:o=me.accent,className:u}){return i.jsxs("div",{className:le("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate",children:n}),i.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),i.jsx(nC,{data:l,color:o})]})});function lC({kpis:t}){return i.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:t.map(n=>i.jsx(sC,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,className:le("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const rC={actual:"ACT",estimated:"EST",local:"LOC"},iC=v.memo(function({agent:n,isRotating:s}){const l=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),u=s?"#c678dd":Jf(n.status),d=n.quality,O=(d==null?void 0:d.toolSuccessRate)!=null?Math.round(d.toolSuccessRate*100):null,m=n.rotationThreshold?Math.round(n.rotationThreshold*100):null;return i.jsxs("div",{className:"px-3 py-2 hover:bg-surface-3 transition-colors space-y-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none",children:n.name}),i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:n.role}),i.jsx("span",{className:"text-2xs text-text-4",children:"/"}),i.jsx("span",{className:"text-2xs font-mono text-text-3",children:oC(n.model)})]})]}),i.jsx("div",{className:"flex-1"}),O!=null&&i.jsxs("span",{className:"text-2xs font-mono font-bold uppercase px-1 py-px rounded-sm flex-shrink-0",style:{color:O>=90?"#4ae168":O>=70?"#e5c07b":"#e06c75",background:O>=90?"rgba(74,225,104,0.1)":O>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[O,"%"]}),n.costSource&&n.costSource!=="actual"&&i.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:rC[n.costSource]||""}),i.jsxs("div",{className:"text-right flex-shrink-0",children:[i.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:ct(n.tokens||0)}),(n.costUsd||0)>0&&i.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:Ac(n.costUsd)})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"relative flex-1 h-[3px] bg-surface-0 rounded-full overflow-visible",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}}),m&&i.jsx("div",{className:"absolute top-[-2px] w-px h-[7px]",style:{left:`${m}%`,background:"#c678dd"},title:`Rotation at ${m}%`})]}),i.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function oC(t){if(!t||t==="auto"||t==="default")return"default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gem ").replace("-preview",""):t.length>12?t.slice(0,12)+"...":t}const cC=v.memo(function({agentBreakdown:n,rotating:s=[]}){if(!(n!=null&&n.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const l={};for(const u of n){const d=u.teamId||"ungrouped";l[d]||(l[d]=[]),l[d].push(u)}const o=new Set(s);return i.jsx(Ht,{className:"flex-1",children:i.jsx("div",{className:"py-1",children:Object.entries(l).map(([u,d])=>i.jsxs("div",{children:[i.jsx("div",{className:"px-3 pt-2 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:u})}),d.map(O=>i.jsx(iC,{agent:O,isRotating:o.has(O.id)},O.id))]},u))})})}),uC=v.memo(function({data:n}){const s=v.useRef(null),l=v.useRef(null),[o,u]=v.useState({width:0,height:0}),[d,O]=v.useState(null),{width:m,height:p}=o,x={top:28,right:12,bottom:8,left:12},g=Math.max(m-x.left-x.right,0),b=Math.max(p-x.top-x.bottom,0),S=v.useMemo(()=>!n||n.length<2?[]:n.slice(1).map((T,j)=>{const P=n[j],N=(T.t-P.t)/6e4,Z=Math.max((T.tokens||0)-(P.tokens||0),0);return{burnRate:N>0?Math.round(Z/N):0,cacheHitRate:T.cacheHitRate||0,running:T.running||0,agents:T.agents||0,t:T.t}}),[n]);v.useEffect(()=>{const T=s.current;if(!T)return;const j=new ResizeObserver(P=>{const{width:N,height:Z}=P[0].contentRect;N>0&&Z>0&&u({width:Math.floor(N),height:Math.floor(Z)})});return j.observe(T),()=>j.disconnect()},[]);const Q=v.useCallback(T=>{const j=l.current;if(!j||!S.length||g<=0)return;const P=j.getBoundingClientRect(),N=T.clientX-P.left-x.left;if(N<0||N>g){O(null);return}const Z=Math.round(N/g*(S.length-1));O({x:x.left+Z/Math.max(S.length-1,1)*g,index:Z})},[S,g,x.left]),k=v.useCallback(()=>O(null),[]);return v.useEffect(()=>{const T=l.current;if(!T||!S.length||m<=0||p<=0||g<=0||b<=0)return;const j=T.getContext("2d"),P=window.devicePixelRatio||1;T.width=m*P,T.height=p*P,j.scale(P,P),j.clearRect(0,0,m,p);const N=S.map(z=>z.burnRate),Z=S.map(z=>z.cacheHitRate),U=S.map(z=>z.running),C=Math.max(...N,100),X=Math.max(...U,1),$=z=>x.left+z/Math.max(S.length-1,1)*g,W=z=>x.top+b-z/C*b,E=z=>x.top+b-z*b,ne=Math.max(g/S.length-1,2);for(let z=0;z<S.length;z++){const B=U[z];if(B<=0)continue;const I=B/X*b*.3,fe=$(z)-ne/2,te=x.top+b-I;j.fillStyle=ia(me.surface5,.5),j.fillRect(fe,te,ne,I)}j.setLineDash([2,4]),j.strokeStyle=ia(me.text4,.2),j.lineWidth=1;for(let z=1;z<=3;z++){const B=x.top+b/4*z;j.beginPath(),j.moveTo(x.left,B),j.lineTo(x.left+g,B),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=ia(me.text3,.5),j.fillText(`${ct(C)}/m`,x.left+4,x.top+10),j.fillText(`${ct(Math.round(C/2))}/m`,x.left+4,x.top+b/2+4),j.beginPath(),j.moveTo(x.left,x.top+b);for(let z=0;z<S.length;z++)j.lineTo($(z),W(N[z]));j.lineTo($(S.length-1),x.top+b),j.closePath();const re=j.createLinearGradient(0,x.top,0,x.top+b);re.addColorStop(0,ia(me.accent,.2)),re.addColorStop(.7,ia(me.accent,.04)),re.addColorStop(1,ia(me.accent,0)),j.fillStyle=re,j.fill(),j.beginPath(),j.strokeStyle=me.accent,j.lineWidth=1.5,j.lineJoin="round";for(let z=0;z<S.length;z++){const B=$(z),I=W(N[z]);z===0?j.moveTo(B,I):j.lineTo(B,I)}j.stroke();const xe=Z.some(z=>z>0);if(xe){j.beginPath(),j.strokeStyle=ia(me.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let z=0;z<S.length;z++){const B=$(z),I=E(Z[z]);z===0?j.moveTo(B,I):j.lineTo(B,I)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let ie=m-x.right-4;const J=14;if(xe&&(j.fillStyle=ia(me.info,.5),j.fillText("Cache %",ie,J),ie-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),ie-=14),j.fillStyle=ia(me.surface5,.7),j.fillText("Agents",ie,J),ie-=j.measureText("Agents").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),ie-=14,j.fillStyle=me.accent,j.fillText("Burn Rate",ie,J),ie-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),d&&d.index>=0&&d.index<S.length){const z=d.x,B=S[d.index];j.beginPath(),j.moveTo(z,x.top),j.lineTo(z,x.top+b),j.strokeStyle=ia(me.text1,.15),j.lineWidth=1,j.stroke();const I=W(B.burnRate);j.beginPath(),j.arc(z,I,3,0,Math.PI*2),j.fillStyle=me.accent,j.fill();const fe=[{label:"Burn",value:`${ct(B.burnRate)}/m`,color:me.accent},{label:"Cache",value:Nl(B.cacheHitRate*100),color:me.info},{label:"Agents",value:`${B.running}/${B.agents}`,color:me.text2}],te=104,Ae=fe.length*16+12;let Se=z+12;Se+te>m-8&&(Se=z-te-12);const ve=Math.max(x.top,I-Ae/2);j.fillStyle=ia(me.surface0,.92),j.beginPath(),j.roundRect(Se,ve,te,Ae,4),j.fill(),j.strokeStyle=ia(me.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",fe.forEach((Xe,L)=>{const oe=ve+14+L*16;j.beginPath(),j.arc(Se+8,oe-3,2,0,Math.PI*2),j.fillStyle=Xe.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=me.text3,j.fillText(Xe.label,Se+14,oe),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=me.text0,j.textAlign="right",j.fillText(Xe.value,Se+te-8,oe),j.textAlign="left"})}},[S,m,p,d,g,b,x]),i.jsx("div",{ref:s,className:"absolute inset-0",children:m>0&&p>0&&i.jsx("canvas",{ref:l,style:{width:m,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:k})})}),dC=v.memo(function({cacheRead:n=0,cacheCreation:s=0,totalInput:l=0,size:o=140}){const u=v.useRef(null),d=n+s+l,O=d>0?n/d*100:0;return v.useEffect(()=>{const m=u.current;if(!m)return;const p=window.devicePixelRatio||1;m.width=o*p,m.height=o*p;const x=m.getContext("2d");x.scale(p,p),x.clearRect(0,0,o,o);const g=o/2,b=o/2,S=(o-12)/2,Q=5,k=135*Math.PI/180,T=405*Math.PI/180,j=T-k;if(x.beginPath(),x.arc(g,b,S,k,T),x.strokeStyle=me.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),d>0){const P=n/d,N=s/d;if(P>0){const Z=k+j*P;x.beginPath(),x.arc(g,b,S,k,Z),x.strokeStyle=me.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(N>0){const Z=k+j*P,U=Z+j*N;x.beginPath(),x.arc(g,b,S,Z,U),x.strokeStyle=me.purple,x.lineWidth=Q,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text0,x.fillText(`${Math.round(O)}%`,g,b-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text3,x.fillText("CACHE",g,b+o*.13)},[n,s,l,o,d,O]),i.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[i.jsx("canvas",{ref:u,className:"flex-shrink-0",style:{width:o,height:o}}),i.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[i.jsx(YO,{color:me.accent,label:"Read",value:ct(n)}),i.jsx(YO,{color:me.purple,label:"Create",value:ct(s)}),i.jsx(YO,{color:me.surface5,label:"Miss",value:ct(Math.max(l-n-s,0))})]})]})});function YO({color:t,label:n,value:s}){return i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t}}),i.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),i.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const VO={heavy:me.danger,medium:me.warning,light:me.success},OC={heavy:"Heavy",medium:"Medium",light:"Light"},fC=v.memo(function({routing:n,size:s=120}){const l=v.useRef(null);if(!n)return null;const{byTier:o={},costByTier:u={},totalDecisions:d=0,autoRoutedCount:O=0}=n,m=["heavy","medium","light"],p=m.reduce((x,g)=>x+(o[g]||0),0);return v.useEffect(()=>{const x=l.current;if(!x)return;const g=window.devicePixelRatio||1;x.width=s*g,x.height=s*g;const b=x.getContext("2d");b.scale(g,g),b.clearRect(0,0,s,s);const S=s/2,Q=s/2,k=(s-12)/2,T=5;if(p===0)b.beginPath(),b.arc(S,Q,k,0,Math.PI*2),b.strokeStyle=me.surface4,b.lineWidth=T,b.stroke();else{let j=-Math.PI/2;for(const P of m){const N=o[P]||0;if(N===0)continue;const Z=N/p*Math.PI*2;b.beginPath(),b.arc(S,Q,k,j,j+Z),b.strokeStyle=VO[P],b.lineWidth=T,b.lineCap="butt",b.stroke(),j+=Z}}b.textAlign="center",b.textBaseline="middle",b.font=`600 ${s*.19}px 'JetBrains Mono Variable', monospace`,b.fillStyle=me.text0,b.fillText(ct(d),S,Q-3),b.font=`500 ${s*.09}px 'JetBrains Mono Variable', monospace`,b.fillStyle=me.text3,b.fillText("ROUTES",S,Q+s*.13)},[n,s,p,d]),i.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[i.jsx("canvas",{ref:l,className:"flex-shrink-0",style:{width:s,height:s}}),i.jsx("div",{className:"w-full mt-3 space-y-2 max-w-[180px]",children:m.map(x=>{const g=o[x]||0,b=u[x]||0,S=p>0?g/p*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:VO[x]}}),i.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:OC[x]}),i.jsx("span",{className:"text-text-1 tabular-nums",children:g}),i.jsx("span",{className:"text-text-4",children:"/"}),i.jsx("span",{className:"text-text-2 tabular-nums",children:Ac(b)})]}),i.jsx("div",{className:"h-[2px] bg-surface-0 rounded-full overflow-hidden ml-3.5",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(S,100)}%`,background:VO[x]}})})]},x)})}),O>0&&i.jsxs("div",{className:"mt-2.5 text-2xs font-mono text-text-3 uppercase tracking-wider",children:[O," auto-routed"]})]})});function hC(t){const n=t+"CollectionProvider",[s,l]=Ps(n),[o,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),d=k=>{const{scope:T,children:j}=k,P=Vn.useRef(null),N=Vn.useRef(new Map).current;return i.jsx(o,{scope:T,itemMap:N,collectionRef:P,children:j})};d.displayName=n;const O=t+"CollectionSlot",m=ec(O),p=Vn.forwardRef((k,T)=>{const{scope:j,children:P}=k,N=u(O,j),Z=rt(T,N.collectionRef);return i.jsx(m,{ref:Z,children:P})});p.displayName=O;const x=t+"CollectionItemSlot",g="data-radix-collection-item",b=ec(x),S=Vn.forwardRef((k,T)=>{const{scope:j,children:P,...N}=k,Z=Vn.useRef(null),U=rt(T,Z),C=u(x,j);return Vn.useEffect(()=>(C.itemMap.set(Z,{ref:Z,...N}),()=>void C.itemMap.delete(Z))),i.jsx(b,{[g]:"",ref:U,children:P})});S.displayName=x;function Q(k){const T=u(t+"CollectionConsumer",k);return Vn.useCallback(()=>{const P=T.collectionRef.current;if(!P)return[];const N=Array.from(P.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((C,X)=>N.indexOf(C.ref.current)-N.indexOf(X.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:S},Q,l]}var UO="rovingFocusGroup.onEntryFocus",mC={bubbles:!1,cancelable:!0},di="RovingFocusGroup",[Qf,zy,pC]=hC(di),[xC,Ry]=Ps(di,[pC]),[gC,bC]=xC(di),Cy=v.forwardRef((t,n)=>i.jsx(Qf.Provider,{scope:t.__scopeRovingFocusGroup,children:i.jsx(Qf.Slot,{scope:t.__scopeRovingFocusGroup,children:i.jsx(vC,{...t,ref:n})})}));Cy.displayName=di;var vC=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:m,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=t,b=v.useRef(null),S=rt(n,b),Q=eh(u),[k,T]=Pc({prop:d,defaultProp:O??null,onChange:m,caller:di}),[j,P]=v.useState(!1),N=zt(p),Z=zy(s),U=v.useRef(!1),[C,X]=v.useState(0);return v.useEffect(()=>{const $=b.current;if($)return $.addEventListener(UO,N),()=>$.removeEventListener(UO,N)},[N]),i.jsx(gC,{scope:s,orientation:l,dir:Q,loop:o,currentTabStopId:k,onItemFocus:v.useCallback($=>T($),[T]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>X($=>$+1),[]),onFocusableItemRemove:v.useCallback(()=>X($=>$-1),[]),children:i.jsx(Be.div,{tabIndex:j||C===0?-1:0,"data-orientation":l,...g,ref:S,style:{outline:"none",...t.style},onMouseDown:Ee(t.onMouseDown,()=>{U.current=!0}),onFocus:Ee(t.onFocus,$=>{const W=!U.current;if($.target===$.currentTarget&&W&&!j){const E=new CustomEvent(UO,mC);if($.currentTarget.dispatchEvent(E),!E.defaultPrevented){const ne=Z().filter(z=>z.focusable),re=ne.find(z=>z.active),xe=ne.find(z=>z.id===k),J=[re,xe,...ne].filter(Boolean).map(z=>z.ref.current);Zy(J,x)}}U.current=!1}),onBlur:Ee(t.onBlur,()=>P(!1))})})}),Xy="RovingFocusGroupItem",_y=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:o=!1,tabStopId:u,children:d,...O}=t,m=Sl(),p=u||m,x=bC(Xy,s),g=x.currentTabStopId===p,b=zy(s),{onFocusableItemAdd:S,onFocusableItemRemove:Q,currentTabStopId:k}=x;return v.useEffect(()=>{if(l)return S(),()=>Q()},[l,S,Q]),i.jsx(Qf.ItemSlot,{scope:s,id:p,focusable:l,active:o,children:i.jsx(Be.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...O,ref:n,onMouseDown:Ee(t.onMouseDown,T=>{l?x.onItemFocus(p):T.preventDefault()}),onFocus:Ee(t.onFocus,()=>x.onItemFocus(p)),onKeyDown:Ee(t.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const j=QC(T,x.orientation,x.dir);if(j!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let N=b().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const Z=N.indexOf(T.currentTarget);N=x.loop?jC(N,Z+1):N.slice(Z+1)}setTimeout(()=>Zy(N))}}),children:typeof d=="function"?d({isCurrentTabStop:g,hasTabStop:k!=null}):d})})});_y.displayName=Xy;var yC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function SC(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function QC(t,n,s){const l=SC(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return yC[l]}function Zy(t,n=!1){const s=document.activeElement;for(const l of t)if(l===s||(l.focus({preventScroll:n}),document.activeElement!==s))return}function jC(t,n){return t.map((s,l)=>t[(n+l)%t.length])}var wC=Cy,kC=_y,Uc="Tabs",[$C]=Ps(Uc,[Ry]),Ay=Ry(),[TC,gh]=$C(Uc),Ey=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,onValueChange:o,defaultValue:u,orientation:d="horizontal",dir:O,activationMode:m="automatic",...p}=t,x=eh(O),[g,b]=Pc({prop:l,onChange:o,defaultProp:u??"",caller:Uc});return i.jsx(TC,{scope:s,baseId:Sl(),value:g,onValueChange:b,orientation:d,dir:x,activationMode:m,children:i.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:n})})});Ey.displayName=Uc;var qy="TabsList",My=v.forwardRef((t,n)=>{const{__scopeTabs:s,loop:l=!0,...o}=t,u=gh(qy,s),d=Ay(s);return i.jsx(wC,{asChild:!0,...d,orientation:u.orientation,dir:u.dir,loop:l,children:i.jsx(Be.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:n})})});My.displayName=qy;var Yy="TabsTrigger",Vy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,disabled:o=!1,...u}=t,d=gh(Yy,s),O=Ay(s),m=Ly(d.baseId,l),p=Dy(d.baseId,l),x=l===d.value;return i.jsx(kC,{asChild:!0,...O,focusable:!o,active:x,children:i.jsx(Be.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...u,ref:n,onMouseDown:Ee(t.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?d.onValueChange(l):g.preventDefault()}),onKeyDown:Ee(t.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&d.onValueChange(l)}),onFocus:Ee(t.onFocus,()=>{const g=d.activationMode!=="manual";!x&&!o&&g&&d.onValueChange(l)})})})});Vy.displayName=Yy;var Uy="TabsContent",Gy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,forceMount:o,children:u,...d}=t,O=gh(Uy,s),m=Ly(O.baseId,l),p=Dy(O.baseId,l),x=l===O.value,g=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),i.jsx(ba,{present:o||x,children:({present:b})=>i.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":O.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:p,tabIndex:0,...d,ref:n,style:{...t.style,animationDuration:g.current?"0s":void 0},children:b&&u})})});Gy.displayName=Uy;function Ly(t,n){return`${t}-trigger-${n}`}function Dy(t,n){return`${t}-content-${n}`}var PC=Ey,NC=My,zC=Vy,RC=Gy;function Wy({children:t,...n}){return i.jsx(PC,{...n,children:t})}function By({children:t,className:n,...s}){return i.jsx(NC,{className:le("flex items-center gap-0 border-b border-border-subtle",n),...s,children:t})}function Ur({children:t,className:n,...s}){return i.jsx(zC,{className:le("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...s,children:t})}function Gr({children:t,className:n,...s}){return i.jsx(RC,{className:le("flex-1 min-h-0",n),...s,children:t})}function e0({data:t,color:n=me.accent,width:s=60,height:l=16}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=Array.isArray(t[0])?t:t.map(p=>typeof p=="number"?p:p.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=o.map((p,x)=>{const g=x/(o.length-1)*s,b=l-(p-u)/O*(l-2)-1;return`${g},${b}`}).join(" ");return i.jsx("svg",{width:s,height:l,className:"flex-shrink-0",children:i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function GO({label:t,value:n,total:s,color:l}){const o=s>0?n/s*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs font-mono",children:[i.jsx("span",{className:"text-text-2",children:t}),i.jsx("span",{className:"text-text-1 tabular-nums",children:ct(n)})]}),i.jsx("div",{className:"h-[2px] bg-surface-0 rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:l}})})]})}function CC({tokens:t,rotation:n}){var d;const s=(t==null?void 0:t.savings)||{},l=s.total||0,u=((t==null?void 0:t.totalTokens)||0)+l;return i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-4",children:[i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Rotations"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-text-0 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Saved"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-success tabular-nums leading-none",children:ct(l)}),u>0&&i.jsxs("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:[Nl(l/u*100)," of total"]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(GO,{label:"Rotation",value:s.fromRotation||0,total:u,color:me.accent}),i.jsx(GO,{label:"Conflict prevention",value:s.fromConflictPrevention||0,total:u,color:me.purple}),i.jsx(GO,{label:"Cold-start skip",value:s.fromColdStartSkip||0,total:u,color:me.info})]}),((d=n==null?void 0:n.history)==null?void 0:d.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"Recent"}),i.jsx("div",{className:"space-y-1",children:n.history.slice(-8).reverse().map((O,m)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsx("span",{className:"text-text-1 font-medium capitalize truncate flex-1",children:O.agentName||O.role}),i.jsx("span",{className:"text-text-3 tabular-nums",children:Nl((O.contextUsage||0)*100)}),i.jsx("span",{className:"text-text-4",children:Ct(O.timestamp)})]},m))})]})]})})}function XC({adaptive:t}){if(!(t!=null&&t.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No adaptive profiles"});function n(s){const l=s.split(":");return{provider:l[0]||s,role:l[1]||""}}return i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-1",children:[i.jsxs("div",{className:"flex items-center gap-2 px-2 pb-1 text-2xs font-mono text-text-4 uppercase tracking-wider",children:[i.jsx("span",{className:"flex-1",children:"Role"}),i.jsx("span",{className:"w-12 text-right",children:"Threshold"}),i.jsx("span",{className:"w-12 text-right",children:"Adj."}),i.jsx("span",{className:"w-14 text-right",children:"Status"})]}),t.map(s=>{var O,m;const{provider:l,role:o}=n(s.key),u=((O=s.thresholdHistory)==null?void 0:O.length)>1,d=((m=s.recentScores)==null?void 0:m.length)>1;return i.jsxs("div",{className:"bg-surface-0 rounded px-2 py-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 capitalize",children:o||l}),o&&i.jsx("span",{className:"text-2xs font-mono text-text-4 ml-1.5",children:l})]}),i.jsx("span",{className:"w-12 text-right text-xs font-mono font-semibold text-text-0 tabular-nums",children:Nl(s.threshold*100)}),i.jsx("span",{className:"w-12 text-right text-2xs font-mono text-text-3 tabular-nums",children:s.adjustments}),i.jsx("span",{className:le("w-14 text-right text-2xs font-mono font-bold uppercase",s.converged?"text-success":"text-text-4"),children:s.converged?"Converged":"Learning"})]}),(u||d)&&i.jsxs("div",{className:"flex items-center gap-3 mt-1.5 pl-1",children:[u&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Threshold"}),i.jsx(e0,{data:s.thresholdHistory.map(p=>p.v),color:s.converged?me.success:me.accent,width:70,height:12})]}),d&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Quality"}),i.jsx(e0,{data:s.recentScores,color:me.warning,width:70,height:12})]})]})]},s.key)})]})})}function _C({journalist:t}){var n;return t?i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-3 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),i.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:t.cycleCount||0})]}),t.lastCycleAt&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),i.jsx("div",{className:"text-xs font-mono text-text-2",children:Ct(t.lastCycleAt)})]}),t.synthesizing&&i.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),t.lastSummary&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),i.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:t.lastSummary})]}),t.projectMap&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.projectMap})]}),t.decisions&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.decisions})]}),((n=t.recentHistory)==null?void 0:n.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),i.jsx("div",{className:"space-y-1",children:t.recentHistory.slice().reverse().map((s,l)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),i.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),i.jsx("span",{className:"text-text-4",children:Ct(s.timestamp)})]},l))})]})]})}):i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const ZC=v.memo(function({tokens:n,rotation:s,adaptive:l,journalist:o}){return i.jsxs(Wy,{defaultValue:"rotation",className:"flex flex-col h-full",children:[i.jsxs(By,{className:"flex-shrink-0 px-1",children:[i.jsxs(Ur,{value:"rotation",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(El,{size:11}),"Rotation"]}),i.jsxs(Ur,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(b5,{size:11}),"Adaptive"]}),i.jsxs(Ur,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(Hf,{size:11}),"Journalist"]})]}),i.jsx(Gr,{value:"rotation",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(CC,{tokens:n,rotation:s})}),i.jsx(Gr,{value:"adaptive",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(XC,{adaptive:l})}),i.jsx(Gr,{value:"journalist",className:"flex-1 min-h-0 overflow-hidden",children:i.jsx(_C,{journalist:o})})]})}),AC={spawn:fP,complete:Br,crash:_c,kill:kb,rotate:El,error:Ff},EC={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function qC(t){const n=t.agentName||t.role||"";switch(t.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return t.text||t.type||"event"}}const MC=v.memo(function({events:n=[]}){return n.length?i.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((s,l)=>{const o=AC[s.type]||Na,u=EC[s.type]||"text-text-3",d=qC(s);return i.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.jsx(o,{size:11,className:u}),i.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:d}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:Ct(s.t||s.timestamp)})]},l)})}):i.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function Nt({className:t,...n}){return i.jsx("div",{className:le("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",t),...n})}function YC(){return i.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34"},children:[i.jsx("div",{className:"col-span-3",children:i.jsx(Nt,{className:"h-[72px] rounded-none"})}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx(Nt,{className:"rounded-none"}),i.jsx("div",{className:"col-span-2",children:i.jsx(Nt,{className:"h-full rounded-none"})})]})}function VC(){const{data:t,loading:n,agents:s,connected:l,kpiHistory:o,lastFetch:u,agentBreakdown:d,routing:O,rotation:m,adaptive:p,journalist:x,rotating:g}=aC(),b=s.filter(C=>C.status==="running").length;if(!l)return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[i.jsx(Rc,{size:28,className:"mx-auto"}),i.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!t)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),i.jsx(YC,{})]});const S=t.tokens||{},Q={totalTokens:S.totalTokens||0,totalCostUsd:S.totalCostUsd||0,totalInputTokens:S.totalInputTokens||0,totalOutputTokens:S.totalOutputTokens||0,cacheReadTokens:S.cacheReadTokens||0,cacheCreationTokens:S.cacheCreationTokens||0,cacheHitRate:S.cacheHitRate||0,totalTurns:S.totalTurns||0,agentCount:S.agentCount||0,savings:S.savings||{}},k=Q.totalTokens+(Q.savings.total||0),T=k>0?(Q.savings.total||0)/k*100:0,j=Q.totalOutputTokens>0?(Q.totalInputTokens/Q.totalOutputTokens).toFixed(1):"—",P=t.timeline||{},N=P.snapshots||[],Z=P.events||t.events||[],U=[{label:"Tokens Used",value:ct(Q.totalTokens),sparkData:o.tokens,color:me.accent},{label:"Total Cost",value:Ac(Q.totalCostUsd),sparkData:o.cost,color:me.warning},{label:"Tokens Saved",value:ct(Q.savings.total||0),sparkData:o.saved,color:me.success},{label:"Efficiency",value:Nl(T),sparkData:o.efficiency,color:me.purple},{label:"Cache Rate",value:Nl(Q.cacheHitRate*100),sparkData:o.cache,color:me.info},{label:"I/O Ratio",value:`${j}:1`,sparkData:o.inputOutput,color:me.orange},{label:"Agents",value:`${b}/${s.length}`,sparkData:o.agents,color:me.accent},{label:"Turns",value:ct(Q.totalTurns),sparkData:o.turns,color:me.text2}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:b,totalCount:s.length,uptime:t.uptime||0,lastFetch:u,activeTeam:t.activeTeam}),i.jsx(lC,{kpis:U}),i.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[i.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:i.jsx(uC,{data:N})}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),i.jsx(dC,{cacheRead:Q.cacheReadTokens,cacheCreation:Q.cacheCreationTokens,totalInput:Q.totalInputTokens})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),i.jsx(fC,{routing:O})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),i.jsx(cC,{agentBreakdown:d,rotating:g})]}),i.jsx("div",{className:"col-span-2 min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:i.jsx(ZC,{tokens:Q,rotation:m,adaptive:p,journalist:x})})]}),i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:i.jsx(MC,{events:Z})})]})}const t0={sm:12,md:16,lg:20};function UC({fill:t="full",size:n,color:s="#fbbf24",emptyColor:l="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&i.jsx("defs",{children:i.jsxs("linearGradient",{id:o,children:[i.jsx("stop",{offset:"50%",stopColor:s}),i.jsx("stop",{offset:"50%",stopColor:l})]})}),i.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:t==="full"?s:t==="half"?`url(#${o})`:l})]})}function Hy({rating:t=0,count:n,size:s="sm"}){const l=t0[s]||t0.sm,o=[];for(let u=1;u<=5;u++)t>=u?o.push("full"):t>=u-.5?o.push("half"):o.push("empty");return i.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((u,d)=>i.jsx(UC,{fill:u,size:l},d)),n!=null&&i.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const a0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function Iy({label:t,variant:n,className:s}){const l=a0[n]||a0.draft;return i.jsx("span",{className:le("inline-flex items-center whitespace-nowrap font-sans select-none",s),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:l.color,background:l.bg},children:t})}function Fy({price:t=0,size:n="sm"}){const s=!t||t===0,l={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return i.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${l[n]||l.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function Ky({type:t="verified",size:n=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[i.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:s}),i.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Jy="groove_favorites";function bh(){try{return JSON.parse(localStorage.getItem(Jy)||"[]")}catch{return[]}}function GC(t){return bh().includes(t)}function LC(t){const n=bh(),s=n.indexOf(t);return s>=0?n.splice(s,1):n.push(t),localStorage.setItem(Jy,JSON.stringify(n)),s<0}function DC(t){const n=new Set(bh());return t.map(s=>({...s,favorited:n.has(s.id)}))}function WC({filled:t,size:n=16}){return i.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#f87171":"none",stroke:t?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:i.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function BC(){return i.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),i.jsx("polyline",{points:"7 10 12 15 17 10"}),i.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function HC({skill:t,onClick:n}){var u,d;const[s,l]=v.useState(()=>GC(t.id));function o(O){O.stopPropagation(),l(LC(t.id))}return i.jsxs("div",{onClick:()=>n==null?void 0:n(t),className:le("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:t.icon||((d=(u=t.name)==null?void 0:u[0])==null?void 0:d.toUpperCase())||"?"}),i.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:i.jsx(WC,{filled:s})})]}),i.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),i.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[i.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&i.jsx(Ky,{type:t.source,size:12})]}),i.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"mt-3",children:i.jsx(Iy,{label:t.category||"general",variant:t.category||"draft"})}),i.jsx("div",{className:"h-px bg-border-subtle my-3"}),i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i.jsx(Hy,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),i.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[i.jsx(BC,{}),ct(t.downloads||0)]}),i.jsx(Fy,{price:t.price||0,size:"sm"})]})]})}function eS(){return i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),i.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),i.jsx("div",{className:"h-px bg-surface-4 my-3"}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const IC={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function FC({item:t,size:n=40}){const s=IC[t.id];if(s)return i.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[i.jsx("img",{src:s,alt:t.name,className:"w-5 h-5",onError:u=>{u.target.style.display="none",u.target.nextSibling.style.display="flex"}}),i.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(t.name||"?")[0]})]});const l=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return i.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:l})}function KC({item:t,onClick:n,className:s}){var o;const l=t.installed;return i.jsxs("button",{onClick:()=>n(t),className:le("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",s),style:{minHeight:200},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[i.jsx(FC,{item:t,size:36}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&i.jsx(Br,{size:11,className:"text-accent flex-shrink-0"})]}),i.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),i.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"h-px bg-border-subtle my-2"}),i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Gf,{size:10}),ct(t.downloads||0)]}),(t.rating||0)>0&&i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Ub,{size:10,className:"text-warning",fill:"currentColor"}),(o=t.rating)==null?void 0:o.toFixed(1)]}),i.jsx("span",{className:"flex-1"}),l&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function tS({value:t,onChange:n,placeholder:s="Search skills, tags, authors...",large:l}){const[o,u]=v.useState(t||""),d=v.useRef(null);v.useEffect(()=>{u(t||"")},[t]);function O(m){const p=m.target.value;u(p),clearTimeout(d.current),d.current=setTimeout(()=>n(p),300)}return i.jsxs("div",{className:"relative w-full",children:[i.jsx(ql,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),i.jsx("input",{value:o,onChange:O,placeholder:s,className:le("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",l?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),l&&i.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const JC=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function eX({selected:t="",categories:n=JC,onSelect:s}){return i.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(l=>{const o=t===l.id;return i.jsx("button",{onClick:()=>s(l.id),className:le("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:l.label},l.id)})})}function Gc(){const t=D(n=>n.addToast);return{success:(n,s)=>t("success",n,s),error:(n,s)=>t("error",n,s),info:(n,s)=>t("info",n,s),warning:(n,s)=>t("warning",n,s)}}function tX({skill:t,onBack:n}){var k,T,j;const s=Gc(),[l,o]=v.useState(""),[u,d]=v.useState(!1),[O,m]=v.useState(!1),[p,x]=v.useState(t.installed),[g,b]=v.useState(!0);v.useEffect(()=>{b(!0),ee.get(`/skills/${t.id}/content`).then(P=>{o(P.content||""),d(P.requiresPurchase||!1)}).catch(()=>{}).finally(()=>b(!1))},[t.id]);async function S(){m(!0);try{await ee.post(`/skills/${t.id}/install`),x(!0),s.success(`${t.name} installed`)}catch(P){s.error("Install failed",P.message)}m(!1)}async function Q(){const{marketplaceAuthenticated:P,marketplaceLogin:N,marketplaceCheckout:Z}=D.getState();if(!P){N();return}try{await Z(t.id)}catch{}}return i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-6 py-5",children:[i.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[i.jsx(wb,{size:14})," Back"]}),i.jsxs("div",{className:"flex gap-8",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:t.icon||((T=(k=t.name)==null?void 0:k[0])==null?void 0:T.toUpperCase())}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&i.jsx(Ky,{type:t.source,size:13})]})]})]}),i.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((j=t.tags)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(P=>i.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:P},P))}),i.jsx("div",{className:"h-px bg-border-subtle my-5"}),g?i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):l?i.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),i.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:l})]}):u?i.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[i.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):i.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),i.jsx("div",{className:"w-[240px] flex-shrink-0",children:i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[i.jsx(Fy,{price:t.price||0,size:"md"}),u&&!p?i.jsxs("button",{onClick:Q,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(t.price||0).toFixed(2)]}):i.jsx("button",{onClick:S,disabled:O||p,className:`w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border ${p?"bg-success/15 text-success border-success/20":"bg-accent/15 text-accent border-accent/20 hover:bg-accent/25"}`,children:O?"Installing...":p?"✓ Installed":"Install"}),i.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",i.jsx("span",{className:"font-mono text-text-0",children:ct(t.downloads||0)},"d")],["Rating",i.jsx(Hy,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",i.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",i.jsx(Iy,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",i.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([P,N])=>i.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[i.jsx("span",{className:"text-text-3",children:P}),N]},P))})]})})]})]})})}function aX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),[d,O]=v.useState(""),[m,p]=v.useState("popular"),[x,g]=v.useState(null);return v.useEffect(()=>{l(!0);const b=new URLSearchParams;o&&b.set("search",o),d&&b.set("category",d),m&&b.set("sort",m),ee.get(`/skills/registry?${b}`).then(S=>n(DC(S.skills||S.items||(Array.isArray(S)?S:[])))).catch(()=>n([])).finally(()=>l(!1))},[o,d,m]),x?i.jsx(tX,{skill:x,onBack:()=>g(null)}):i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(tS,{value:o,onChange:u})}),i.jsx(eX,{selected:d,onSelect:O}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"relative flex-shrink-0",children:[i.jsxs("select",{value:m,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[i.jsx("option",{value:"popular",children:"Popular"}),i.jsx("option",{value:"rating",children:"Top Rated"}),i.jsx("option",{value:"newest",children:"Newest"}),i.jsx("option",{value:"name",children:"A-Z"})]}),i.jsx(In,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,S)=>i.jsx(eS,{},S)):t.map(b=>i.jsx(HC,{skill:b,onClick:g},b.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function nX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),d=Gc();return v.useEffect(()=>{l(!0),ee.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(O=>n(O.integrations||O.items||(Array.isArray(O)?O:[]))).catch(()=>n([])).finally(()=>l(!1))},[o]),i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(tS,{value:o,onChange:u,placeholder:"Search integrations..."})}),i.jsx("div",{className:"flex-1"}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((O,m)=>i.jsx(eS,{},m)):t.map(O=>i.jsx(KC,{item:O,onClick:()=>d.info(`${O.name} — install via CLI: groove integrations install ${O.id}`)},O.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]})})}function sX(){const t=D(g=>g.marketplaceAuthenticated),n=D(g=>g.marketplaceLogin),[s,l]=v.useState([]),[o,u]=v.useState([]),[d,O]=v.useState(!0),m=Gc(),p=v.useRef(null);v.useEffect(()=>{O(!0),Promise.all([t?ee.get("/auth/purchases").then(g=>g.purchases||[]).catch(()=>[]):Promise.resolve([]),ee.get("/skills/installed").then(g=>Array.isArray(g)?g:g.skills||[]).catch(()=>[])]).then(([g,b])=>{l(g),u(b)}).finally(()=>O(!1))},[t]);async function x(g){var S;const b=(S=g.target.files)==null?void 0:S[0];if(b){try{const Q=await b.text(),k=b.name.replace(/\.md$/i,"");await ee.post("/skills/import",{name:k,content:Q}),m.success(`Imported "${k}"`);const T=await ee.get("/skills/installed");u(Array.isArray(T)?T:T.skills||[])}catch(Q){m.error("Import failed",Q.message)}g.target.value=""}}return d?i.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((g,b)=>i.jsx(Nt,{className:"h-14 rounded-md"},b))}):i.jsx(Ht,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4 space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("input",{ref:p,type:"file",accept:".md",onChange:x,className:"hidden"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>{var g;return(g=p.current)==null?void 0:g.click()},className:"gap-1.5",children:[i.jsx(cP,{size:13}),"Import .md Skill"]}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(gO,{size:12}),"Purchases (",s.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:s.map(g=>{var b,S;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.skill_icon||((S=(b=g.skill_name)==null?void 0:b[0])==null?void 0:S.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.skill_name||g.skill_id}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(g.amount||0).toFixed(2)," · ",Ct(g.created_at)]})]}),i.jsx(We,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},g.id||g.skill_id)})})]}),t&&s.length===0&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(gO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(gO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),i.jsxs(je,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[i.jsx(Wf,{size:12})," Sign in"]})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(_b,{size:12}),"Installed (",o.length,")"]}),o.length===0?i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(Gf,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):i.jsx("div",{className:"space-y-1.5",children:o.map(g=>{var b,S;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.icon||((S=(b=g.name)==null?void 0:b[0])==null?void 0:S.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.name||g.id}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:g.description||g.category||"local skill"})]}),i.jsx(We,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},g.id)})})]})]})})}function lX(){const t=D(o=>o.marketplaceAuthenticated),n=D(o=>o.marketplaceUser),s=D(o=>o.marketplaceLogin),l=D(o=>o.marketplaceLogout);return t?i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[i.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:i.jsx(Gb,{size:9,className:"text-accent"})}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),i.jsx("button",{onClick:l,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:i.jsx(Rb,{size:11})})]}):i.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[i.jsx(Wf,{size:12}),"Sign in"]})}function rX(){const[t,n]=v.useState("skills"),s=[{id:"skills",label:"Skills",icon:Vb},{id:"integrations",label:"Integrations",icon:Zb},{id:"library",label:"My Library",icon:_b}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:i.jsxs("div",{className:"flex items-center px-5 h-11",children:[i.jsx("div",{className:"flex items-center",children:s.map(l=>{const o=l.icon;return i.jsxs("button",{onClick:()=>n(l.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${t===l.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[i.jsx(o,{size:12}),l.label]},l.id)})}),i.jsx("div",{className:"flex-1"}),i.jsx(lX,{})]})}),i.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&i.jsx(aX,{}),t==="integrations"&&i.jsx(nX,{}),t==="library"&&i.jsx(sX,{})]})]})}function iX({children:t,className:n,hover:s,...l}){return i.jsx("div",{className:le("rounded-md border border-border bg-surface-1",s&&"hover:border-accent/50 hover:bg-surface-2 transition-all duration-150 cursor-pointer",n),...l,children:t})}function oX(){const t=D(l=>l.pendingApprovals),n=D(l=>l.approveRequest),s=D(l=>l.rejectRequest);return t.length===0?null:i.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(_c,{size:13,className:"text-warning"}),i.jsxs("span",{className:"text-xs font-semibold text-warning font-sans",children:["Pending Approval (",t.length,")"]})]}),t.map(l=>{var o,u,d;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-warning/5 border border-warning/20",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[l.agentName,": ",((o=l.action)==null?void 0:o.description)||((u=l.action)==null?void 0:u.type)||"action"]}),((d=l.action)==null?void 0:d.filePath)&&i.jsx("div",{className:"text-2xs text-text-3 font-mono truncate mt-0.5",children:l.action.filePath}),i.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:Ct(l.requestedAt)})]}),i.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>n(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(Yb,{size:11})," Approve"]}),i.jsxs(je,{variant:"danger",size:"sm",onClick:()=>s(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(KT,{size:11})," Reject"]})]})]},l.id)})]})}function cX(){const t=D(m=>m.resolvedApprovals),[n,s]=v.useState([]),[l,o]=v.useState(!0);v.useEffect(()=>{const m=setInterval(u,4e3);return u(),()=>clearInterval(m)},[]);async function u(){try{const m=await ee.get("/pm/history");s(m.history||m||[])}catch{}o(!1)}const d=new Set,O=[...t,...n].filter(m=>{const p=m.id||`${m.agentName}-${m.timestamp}`;return d.has(p)?!1:(d.add(p),!0)});return l&&O.length===0?i.jsx("div",{className:"p-4 space-y-2",children:[...Array(4)].map((m,p)=>i.jsx(Nt,{className:"h-12 rounded-md"},p))}):i.jsxs(Ht,{className:"flex-1",children:[i.jsx(oX,{}),i.jsxs("div",{className:"p-4 space-y-2",children:[O.length===0&&i.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[i.jsx(Br,{size:32,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No approval history"}),i.jsx("p",{className:"text-2xs text-text-4 mt-1",children:'Approvals appear when agents use "Agent Approve" permission mode'})]}),O.map((m,p)=>{var x;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-surface-1 border border-border-subtle",children:[m.status==="approved"||m.verdict==="approved"?i.jsx(Br,{size:14,className:"text-success flex-shrink-0"}):i.jsx(kb,{size:14,className:"text-danger flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-0 font-sans truncate",children:[m.agentName,": ",((x=m.action)==null?void 0:x.description)||m.action||"action"]}),m.reason&&i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:m.reason})]}),i.jsx("span",{className:"text-2xs text-text-4 font-sans flex-shrink-0",children:Ct(m.resolvedAt||m.timestamp)})]},m.id||p)})]})]})}function uX(){const[t,n]=v.useState([]),[s,l]=v.useState(!0),o=Gc();v.useEffect(()=>{const O=setInterval(u,1e4);return u(),()=>clearInterval(O)},[]);async function u(){try{const O=await ee.get("/schedules");n(O.schedules||O||[])}catch{}l(!1)}async function d(O,m){try{await ee.post(`/schedules/${O}/${m?"disable":"enable"}`),u()}catch(p){o.error("Failed to toggle schedule",p.message)}}return s?i.jsx("div",{className:"p-4 space-y-2",children:[...Array(3)].map((O,m)=>i.jsx(Nt,{className:"h-16 rounded-md"},m))}):i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-4 space-y-2",children:[t.length===0&&i.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[i.jsx(oc,{size:32,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No schedules configured"})]}),t.map(O=>i.jsx(iX,{className:"p-3",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:O.name}),i.jsx(We,{variant:O.enabled?"success":"default",children:O.enabled?"Active":"Paused"})]}),i.jsxs("div",{className:"text-2xs text-text-3 font-mono mt-0.5",children:[O.cron," · ",O.role]})]}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>d(O.id,O.enabled),children:O.enabled?"Pause":"Enable"})]})},O.id))]})})}function dX(){return i.jsxs(Wy,{defaultValue:"approvals",className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[i.jsx("div",{className:"flex items-center gap-4 mb-0",children:i.jsx("h2",{className:"text-base font-semibold text-text-0 font-sans",children:"Management"})}),i.jsxs(By,{className:"border-b-0",children:[i.jsx(Ur,{value:"approvals",children:"Approvals"}),i.jsx(Ur,{value:"schedules",children:"Schedules"})]})]}),i.jsx(Gr,{value:"approvals",className:"flex-1 min-h-0",children:i.jsx(cX,{})}),i.jsx(Gr,{value:"schedules",className:"flex-1 min-h-0",children:i.jsx(uX,{})})]})}const OX={code:"Code",general:"General"},fX={light:"text-success",medium:"text-accent",heavy:"text-warning"};function hX(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function aS({hardware:t}){if(!t)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:l}=t;return i.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[i.jsx(Bf,{size:14,className:"text-text-3 flex-shrink-0"}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[i.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{className:"text-text-2",children:s.name})]}),l&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function mX({onRecheck:t}){const[n,s]=v.useState(null),[l,o]=v.useState(!1),[u,d]=v.useState(!1),[O,m]=v.useState(!1),p=D(Z=>Z.addToast);v.useEffect(()=>{ee.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const Z=await ee.post("/providers/ollama/check");s(Z),Z.installed&&Z.serverRunning?(p("success","Ollama is ready!"),t()):Z.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function g(){d(!0);try{if((await ee.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let U=!1;for(let C=0;C<5;C++){await new Promise($=>setTimeout($,2e3));const X=await ee.post("/providers/ollama/check");if(s(X),X.serverRunning){U=!0;break}}U&&t()}}catch(Z){p("error","Could not start server",Z.message)}d(!1)}function b(Z){navigator.clipboard.writeText(Z),m(!0),setTimeout(()=>m(!1),2e3)}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:S,install:Q,requirements:k,installed:T,serverRunning:j}=n,P=S.totalRamGb>=k.minRAM,N=S.recommended;return i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsx(aS,{hardware:S}),P?i.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[i.jsx(oa,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans",children:[i.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),i.jsx("span",{className:"text-text-2 ml-1",children:N.code?`Recommended: ${N.code}`:`${S.totalRamGb} GB RAM available`})]})]}):i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsxs("span",{className:"text-warning font-semibold",children:[S.totalRamGb," GB RAM detected."]})," ","Minimum ",k.minRAM," GB needed. Smallest models may still work."]})]}),T&&!j&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:u,className:"w-full gap-1.5",children:[i.jsx(Na,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!T&&i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[O?i.jsx(oa,{size:12}):i.jsx(df,{size:12}),O?"Copied":"Copy"]})]}),Q.alt&&i.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),i.jsxs(je,{variant:"secondary",size:"md",onClick:x,disabled:l,className:"w-full gap-1.5",children:[i.jsx(es,{size:12,className:l?"animate-spin":""}),l?"Checking...":T?"Check again":"I installed it — check again"]})]})}function pX({model:t,isInstalled:n,isRecommended:s,canRun:l,onPull:o,onDelete:u,pulling:d}){const O=d===t.id;return i.jsxs("div",{className:le("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!l&&"opacity-40"),children:[n?i.jsx(oa,{size:12,className:"text-success flex-shrink-0"}):i.jsx("div",{className:"w-3"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&i.jsx(Ub,{size:10,className:"text-warning flex-shrink-0"})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[i.jsx("span",{className:le("text-2xs font-semibold font-sans",fX[t.tier]),children:t.tier}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:hX(t.sizeGb)}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),n?i.jsx("button",{onClick:()=>u(t.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:i.jsx(Xc,{size:12})}):l?i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>o(t.id),disabled:!!d,className:"h-7 px-2 text-2xs gap-1",children:O?i.jsxs(i.Fragment,{children:[i.jsx(es,{size:10,className:"animate-spin"})," Pulling..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Gf,{size:10})," Pull"]})}):i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function xX({onStopped:t}){const[n,s]=v.useState(null),l=D(d=>d.addToast);async function o(){s("stopping");try{(await ee.post("/providers/ollama/stop")).ok?(l("info","Ollama server stopped"),t&&t()):l("error","Could not stop server")}catch(d){l("error","Stop failed",d.message)}s(null)}async function u(){s("restarting");try{(await ee.post("/providers/ollama/restart")).ok?l("success","Ollama server restarted"):l("error","Restart failed")}catch(d){l("error","Restart failed",d.message)}s(null)}return i.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),i.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),i.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),i.jsx("div",{className:"flex-1"}),i.jsxs("button",{onClick:u,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(es,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),i.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(cn,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function gX({onModelChange:t}){var $,W;const[n,s]=v.useState(null),[l,o]=v.useState(null),[u,d]=v.useState("code"),[O,m]=v.useState(!1),[p,x]=v.useState(!1),g=D(E=>E.addToast),b=v.useRef(!1);function S(){ee.get("/providers/ollama/models").then(E=>{var ne;s(E),!b.current&&((ne=E.installed)==null?void 0:ne.length)===0&&(b.current=!0,setTimeout(S,2e3))}).catch(()=>{})}v.useEffect(()=>{S()},[]);async function Q(E){o(E);try{await ee.post("/providers/ollama/pull",{model:E}),g("success",`Pulled ${E}`),S(),t&&t()}catch(ne){g("error",`Pull failed: ${ne.message}`)}o(null)}async function k(E){try{await ee.delete(`/providers/ollama/models/${encodeURIComponent(E)}`),g("info",`Removed ${E}`),S(),t&&t()}catch(ne){g("error",`Delete failed: ${ne.message}`)}}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:T,catalog:j,hardware:P}=n,N=new Set(T.map(E=>E.id)),Z=P.totalRamGb,U=[($=P.recommended)==null?void 0:$.code,(W=P.recommended)==null?void 0:W.general].filter(Boolean),C=j.filter(E=>E.category===u),X=O?C:C.filter(E=>E.ramGb<=Z);return p?i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(cn,{size:14,className:"text-warning flex-shrink-0"}),i.jsxs("span",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:async()=>{try{(await ee.post("/providers/ollama/serve")).ok&&(g("success","Ollama server started!"),x(!1),b.current=!1,setTimeout(S,2e3))}catch(E){g("error","Could not start server",E.message)}},className:"w-full gap-1.5",children:[i.jsx(Na,{size:12}),"Start Ollama Server"]})]}):i.jsxs("div",{className:"space-y-2 p-3",children:[i.jsx(xX,{onStopped:()=>x(!0)}),i.jsx(aS,{hardware:P}),T.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[i.jsx(Nb,{size:12,className:"text-text-3"}),i.jsx("span",{className:"font-semibold",children:T.length})," model",T.length!==1?"s":""," installed"]}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(OX).map(([E,ne])=>i.jsx("button",{onClick:()=>d(E),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",u===E?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:ne},E))}),i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[X.map(E=>i.jsx(pX,{model:E,isInstalled:N.has(E.id),isRecommended:U.includes(E.id),canRun:E.ramGb<=Z,onPull:Q,onDelete:k,pulling:l},E.id)),X.length===0&&i.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",u," models available for your hardware"]})]}),!O&&C.length>X.length&&i.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(In,{size:10}),"Show ",C.length-X.length," more (exceed your RAM)"]})]})}function nS({isInstalled:t,onModelChange:n}){const[s,l]=v.useState(!1),[o,u]=v.useState(!1);return v.useEffect(()=>{t?ee.post("/providers/ollama/check").then(d=>{l(d.installed&&d.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),o?s?i.jsx(gX,{onModelChange:n}):i.jsx(mX,{onRecheck:()=>{l(!0),n&&n()}}):i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var LO="focusScope.autoFocusOnMount",DO="focusScope.autoFocusOnUnmount",n0={bubbles:!1,cancelable:!0},bX="FocusScope",sS=v.forwardRef((t,n)=>{const{loop:s=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[O,m]=v.useState(null),p=zt(o),x=zt(u),g=v.useRef(null),b=rt(n,k=>m(k)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(l){let k=function(N){if(S.paused||!O)return;const Z=N.target;O.contains(Z)?g.current=Z:Un(g.current,{select:!0})},T=function(N){if(S.paused||!O)return;const Z=N.relatedTarget;Z!==null&&(O.contains(Z)||Un(g.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const U of N)U.removedNodes.length>0&&Un(O)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const P=new MutationObserver(j);return O&&P.observe(O,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),P.disconnect()}}},[l,O,S.paused]),v.useEffect(()=>{if(O){l0.add(S);const k=document.activeElement;if(!O.contains(k)){const j=new CustomEvent(LO,n0);O.addEventListener(LO,p),O.dispatchEvent(j),j.defaultPrevented||(vX(wX(lS(O)),{select:!0}),document.activeElement===k&&Un(O))}return()=>{O.removeEventListener(LO,p),setTimeout(()=>{const j=new CustomEvent(DO,n0);O.addEventListener(DO,x),O.dispatchEvent(j),j.defaultPrevented||Un(k??document.body,{select:!0}),O.removeEventListener(DO,x),l0.remove(S)},0)}}},[O,p,x,S]);const Q=v.useCallback(k=>{if(!s&&!l||S.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,j=document.activeElement;if(T&&j){const P=k.currentTarget,[N,Z]=yX(P);N&&Z?!k.shiftKey&&j===Z?(k.preventDefault(),s&&Un(N,{select:!0})):k.shiftKey&&j===N&&(k.preventDefault(),s&&Un(Z,{select:!0})):j===P&&k.preventDefault()}},[s,l,S.paused]);return i.jsx(Be.div,{tabIndex:-1,...d,ref:b,onKeyDown:Q})});sS.displayName=bX;function vX(t,{select:n=!1}={}){const s=document.activeElement;for(const l of t)if(Un(l,{select:n}),document.activeElement!==s)return}function yX(t){const n=lS(t),s=s0(n,t),l=s0(n.reverse(),t);return[s,l]}function lS(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function s0(t,n){for(const s of t)if(!SX(s,{upTo:n}))return s}function SX(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function QX(t){return t instanceof HTMLInputElement&&"select"in t}function Un(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&QX(t)&&n&&t.select()}}var l0=jX();function jX(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=r0(t,n),t.unshift(n)},remove(n){var s;t=r0(t,n),(s=t[0])==null||s.resume()}}}function r0(t,n){const s=[...t],l=s.indexOf(n);return l!==-1&&s.splice(l,1),s}function wX(t){return t.filter(n=>n.tagName!=="A")}var WO=0;function kX(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??i0()),document.body.insertAdjacentElement("beforeend",t[1]??i0()),WO++,()=>{WO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),WO--}},[])}function i0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var wa=function(){return wa=Object.assign||function(n){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},wa.apply(this,arguments)};function rS(t,n){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)n.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(s[l[o]]=t[l[o]]);return s}function $X(t,n,s){if(s||arguments.length===2)for(var l=0,o=n.length,u;l<o;l++)(u||!(l in n))&&(u||(u=Array.prototype.slice.call(n,0,l)),u[l]=n[l]);return t.concat(u||Array.prototype.slice.call(n))}var Ko="right-scroll-bar-position",Jo="width-before-scroll-bar",TX="with-scroll-bars-hidden",PX="--removed-body-scroll-bar-size";function BO(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function NX(t,n){var s=v.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(l){var o=s.value;o!==l&&(s.value=l,s.callback(l,o))}}}})[0];return s.callback=n,s.facade}var zX=typeof window<"u"?v.useLayoutEffect:v.useEffect,o0=new WeakMap;function RX(t,n){var s=NX(null,function(l){return t.forEach(function(o){return BO(o,l)})});return zX(function(){var l=o0.get(s);if(l){var o=new Set(l),u=new Set(t),d=s.current;o.forEach(function(O){u.has(O)||BO(O,null)}),u.forEach(function(O){o.has(O)||BO(O,d)})}o0.set(s,t)},[t]),s}function CX(t){return t}function XX(t,n){n===void 0&&(n=CX);var s=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var d=n(u,l);return s.push(d),function(){s=s.filter(function(O){return O!==d})}},assignSyncMedium:function(u){for(l=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(O){return u(O)},filter:function(){return s}}},assignMedium:function(u){l=!0;var d=[];if(s.length){var O=s;s=[],O.forEach(u),d=s}var m=function(){var x=d;d=[],x.forEach(u)},p=function(){return Promise.resolve().then(m)};p(),s={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),s}}}};return o}function _X(t){t===void 0&&(t={});var n=XX(null);return n.options=wa({async:!0,ssr:!1},t),n}var iS=function(t){var n=t.sideCar,s=rS(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=n.read();if(!l)throw new Error("Sidecar medium not found");return v.createElement(l,wa({},s))};iS.isSideCarExport=!0;function ZX(t,n){return t.useMedium(n),iS}var oS=_X(),HO=function(){},Lc=v.forwardRef(function(t,n){var s=v.useRef(null),l=v.useState({onScrollCapture:HO,onWheelCapture:HO,onTouchMoveCapture:HO}),o=l[0],u=l[1],d=t.forwardProps,O=t.children,m=t.className,p=t.removeScrollBar,x=t.enabled,g=t.shards,b=t.sideCar,S=t.noRelative,Q=t.noIsolation,k=t.inert,T=t.allowPinchZoom,j=t.as,P=j===void 0?"div":j,N=t.gapMode,Z=rS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,C=RX([s,n]),X=wa(wa({},Z),o);return v.createElement(v.Fragment,null,x&&v.createElement(U,{sideCar:oS,removeScrollBar:p,shards:g,noRelative:S,noIsolation:Q,inert:k,setCallbacks:u,allowPinchZoom:!!T,lockRef:s,gapMode:N}),d?v.cloneElement(v.Children.only(O),wa(wa({},X),{ref:C})):v.createElement(P,wa({},X,{className:m,ref:C}),O))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Jo,zeroRight:Ko};var AX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EX(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=AX();return n&&t.setAttribute("nonce",n),t}function qX(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function MX(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var YX=function(){var t=0,n=null;return{add:function(s){t==0&&(n=EX())&&(qX(n,s),MX(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},VX=function(){var t=YX();return function(n,s){v.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},cS=function(){var t=VX(),n=function(s){var l=s.styles,o=s.dynamic;return t(l,o),null};return n},UX={left:0,top:0,right:0,gap:0},IO=function(t){return parseInt(t||"",10)||0},GX=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],l=n[t==="padding"?"paddingTop":"marginTop"],o=n[t==="padding"?"paddingRight":"marginRight"];return[IO(s),IO(l),IO(o)]},LX=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return UX;var n=GX(t),s=document.documentElement.clientWidth,l=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,l-s+n[2]-n[0])}},DX=cS(),wl="data-scroll-locked",WX=function(t,n,s,l){var o=t.left,u=t.top,d=t.right,O=t.gap;return s===void 0&&(s="margin"),`
|
|
539
539
|
.`.concat(TX,` {
|
|
540
540
|
overflow: hidden `).concat(l,`;
|
|
541
541
|
padding-right: `).concat(O,"px ").concat(l,`;
|
|
@@ -572,16 +572,16 @@ Error generating stack: `+c.message+`
|
|
|
572
572
|
body[`).concat(wl,`] {
|
|
573
573
|
`).concat(PX,": ").concat(O,`px;
|
|
574
574
|
}
|
|
575
|
-
`)},c0=function(){var t=parseInt(document.body.getAttribute(wl)||"0",10);return isFinite(t)?t:0},BX=function(){v.useEffect(function(){return document.body.setAttribute(wl,(c0()+1).toString()),function(){var t=c0()-1;t<=0?document.body.removeAttribute(wl):document.body.setAttribute(wl,t.toString())}},[])},HX=function(t){var n=t.noRelative,s=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;BX();var u=v.useMemo(function(){return LX(o)},[o]);return v.createElement(DX,{styles:WX(u,!n,o,s?"":"!important")})},
|
|
575
|
+
`)},c0=function(){var t=parseInt(document.body.getAttribute(wl)||"0",10);return isFinite(t)?t:0},BX=function(){v.useEffect(function(){return document.body.setAttribute(wl,(c0()+1).toString()),function(){var t=c0()-1;t<=0?document.body.removeAttribute(wl):document.body.setAttribute(wl,t.toString())}},[])},HX=function(t){var n=t.noRelative,s=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;BX();var u=v.useMemo(function(){return LX(o)},[o]);return v.createElement(DX,{styles:WX(u,!n,o,s?"":"!important")})},jf=!1;if(typeof window<"u")try{var Mo=Object.defineProperty({},"passive",{get:function(){return jf=!0,!0}});window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{jf=!1}var ml=jf?{passive:!1}:!1,IX=function(t){return t.tagName==="TEXTAREA"},uS=function(t,n){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!IX(t)&&s[n]==="visible")},FX=function(t){return uS(t,"overflowY")},KX=function(t){return uS(t,"overflowX")},u0=function(t,n){var s=n.ownerDocument,l=n;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=dS(t,l);if(o){var u=OS(t,l),d=u[1],O=u[2];if(d>O)return!0}l=l.parentNode}while(l&&l!==s.body);return!1},JX=function(t){var n=t.scrollTop,s=t.scrollHeight,l=t.clientHeight;return[n,s,l]},e_=function(t){var n=t.scrollLeft,s=t.scrollWidth,l=t.clientWidth;return[n,s,l]},dS=function(t,n){return t==="v"?FX(n):KX(n)},OS=function(t,n){return t==="v"?JX(n):e_(n)},t_=function(t,n){return t==="h"&&n==="rtl"?-1:1},a_=function(t,n,s,l,o){var u=t_(t,window.getComputedStyle(n).direction),d=u*l,O=s.target,m=n.contains(O),p=!1,x=d>0,g=0,b=0;do{if(!O)break;var S=OS(t,O),Q=S[0],k=S[1],T=S[2],j=k-T-u*Q;(Q||j)&&dS(t,O)&&(g+=j,b+=Q);var P=O.parentNode;O=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!m&&O!==document.body||m&&(n.contains(O)||n===O));return(x&&Math.abs(g)<1||!x&&Math.abs(b)<1)&&(p=!0),p},Yo=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},d0=function(t){return[t.deltaX,t.deltaY]},O0=function(t){return t&&"current"in t?t.current:t},n_=function(t,n){return t[0]===n[0]&&t[1]===n[1]},s_=function(t){return`
|
|
576
576
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
577
577
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
578
|
-
`)},l_=0,pl=[];function r_(t){var n=v.useRef([]),s=v.useRef([0,0]),l=v.useRef(),o=v.useState(l_++)[0],u=v.useState(cS)[0],d=v.useRef(t);v.useEffect(function(){d.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var k=$X([t.lockRef.current],(t.shards||[]).map(O0),!0).filter(Boolean);return k.forEach(function(
|
|
578
|
+
`)},l_=0,pl=[];function r_(t){var n=v.useRef([]),s=v.useRef([0,0]),l=v.useRef(),o=v.useState(l_++)[0],u=v.useState(cS)[0],d=v.useRef(t);v.useEffect(function(){d.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var k=$X([t.lockRef.current],(t.shards||[]).map(O0),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var O=v.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!d.current.allowPinchZoom;var j=Yo(k),P=s.current,N="deltaX"in k?k.deltaX:P[0]-j[0],Z="deltaY"in k?k.deltaY:P[1]-j[1],U,C=k.target,X=Math.abs(N)>Math.abs(Z)?"h":"v";if("touches"in k&&X==="h"&&C.type==="range")return!1;var $=window.getSelection(),W=$&&$.anchorNode,E=W?W===C||W.contains(C):!1;if(E)return!1;var ne=u0(X,C);if(!ne)return!0;if(ne?U=X:(U=X==="v"?"h":"v",ne=u0(X,C)),!ne)return!1;if(!l.current&&"changedTouches"in k&&(N||Z)&&(l.current=U),!U)return!0;var re=l.current||U;return a_(re,T,k,re==="h"?N:Z)},[]),m=v.useCallback(function(k){var T=k;if(!(!pl.length||pl[pl.length-1]!==u)){var j="deltaY"in T?d0(T):Yo(T),P=n.current.filter(function(U){return U.name===T.type&&(U.target===T.target||T.target===U.shadowParent)&&n_(U.delta,j)})[0];if(P&&P.should){T.cancelable&&T.preventDefault();return}if(!P){var N=(d.current.shards||[]).map(O0).filter(Boolean).filter(function(U){return U.contains(T.target)}),Z=N.length>0?O(T,N[0]):!d.current.noIsolation;Z&&T.cancelable&&T.preventDefault()}}},[]),p=v.useCallback(function(k,T,j,P){var N={name:k,delta:T,target:j,should:P,shadowParent:i_(j)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(Z){return Z!==N})},1)},[]),x=v.useCallback(function(k){s.current=Yo(k),l.current=void 0},[]),g=v.useCallback(function(k){p(k.type,d0(k),k.target,O(k,t.lockRef.current))},[]),b=v.useCallback(function(k){p(k.type,Yo(k),k.target,O(k,t.lockRef.current))},[]);v.useEffect(function(){return pl.push(u),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",m,ml),document.addEventListener("touchmove",m,ml),document.addEventListener("touchstart",x,ml),function(){pl=pl.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,ml),document.removeEventListener("touchmove",m,ml),document.removeEventListener("touchstart",x,ml)}},[]);var S=t.removeScrollBar,Q=t.inert;return v.createElement(v.Fragment,null,Q?v.createElement(u,{styles:s_(o)}):null,S?v.createElement(HX,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function i_(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const o_=ZX(oS,r_);var fS=v.forwardRef(function(t,n){return v.createElement(Lc,wa({},t,{ref:n,sideCar:o_}))});fS.classNames=Lc.classNames;var c_=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},xl=new WeakMap,Vo=new WeakMap,Uo={},FO=0,hS=function(t){return t&&(t.host||hS(t.parentNode))},u_=function(t,n){return n.map(function(s){if(t.contains(s))return s;var l=hS(s);return l&&t.contains(l)?l:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},d_=function(t,n,s,l){var o=u_(n,Array.isArray(t)?t:[t]);Uo[s]||(Uo[s]=new WeakMap);var u=Uo[s],d=[],O=new Set,m=new Set(o),p=function(g){!g||O.has(g)||(O.add(g),p(g.parentNode))};o.forEach(p);var x=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(b){if(O.has(b))x(b);else try{var S=b.getAttribute(l),Q=S!==null&&S!=="false",k=(xl.get(b)||0)+1,T=(u.get(b)||0)+1;xl.set(b,k),u.set(b,T),d.push(b),k===1&&Q&&Vo.set(b,!0),T===1&&b.setAttribute(s,"true"),Q||b.setAttribute(l,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return x(n),O.clear(),FO++,function(){d.forEach(function(g){var b=xl.get(g)-1,S=u.get(g)-1;xl.set(g,b),u.set(g,S),b||(Vo.has(g)||g.removeAttribute(l),Vo.delete(g)),S||g.removeAttribute(s)}),FO--,FO||(xl=new WeakMap,xl=new WeakMap,Vo=new WeakMap,Uo={})}},O_=function(t,n,s){s===void 0&&(s="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),o=c_(t);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),d_(l,o,s,"aria-hidden")):function(){return null}},Dc="Dialog",[mS]=Ps(Dc),[f_,va]=mS(Dc),pS=t=>{const{__scopeDialog:n,children:s,open:l,defaultOpen:o,onOpenChange:u,modal:d=!0}=t,O=v.useRef(null),m=v.useRef(null),[p,x]=Pc({prop:l,defaultProp:o??!1,onChange:u,caller:Dc});return i.jsx(f_,{scope:n,triggerRef:O,contentRef:m,contentId:Sl(),titleId:Sl(),descriptionId:Sl(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:d,children:s})};pS.displayName=Dc;var xS="DialogTrigger",h_=v.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=va(xS,s),u=rt(n,o.triggerRef);return i.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sh(o.open),...l,ref:u,onClick:Ee(t.onClick,o.onOpenToggle)})});h_.displayName=xS;var vh="DialogPortal",[m_,gS]=mS(vh,{forceMount:void 0}),bS=t=>{const{__scopeDialog:n,forceMount:s,children:l,container:o}=t,u=va(vh,n);return i.jsx(m_,{scope:n,forceMount:s,children:v.Children.map(l,d=>i.jsx(ba,{present:s||u.open,children:i.jsx(Ef,{asChild:!0,container:o,children:d})}))})};bS.displayName=vh;var Sc="DialogOverlay",vS=v.forwardRef((t,n)=>{const s=gS(Sc,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=va(Sc,t.__scopeDialog);return u.modal?i.jsx(ba,{present:l||u.open,children:i.jsx(x_,{...o,ref:n})}):null});vS.displayName=Sc;var p_=ec("DialogOverlay.RemoveScroll"),x_=v.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=va(Sc,s);return i.jsx(fS,{as:p_,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(Be.div,{"data-state":Sh(o.open),...l,ref:n,style:{pointerEvents:"auto",...l.style}})})}),ks="DialogContent",yS=v.forwardRef((t,n)=>{const s=gS(ks,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=va(ks,t.__scopeDialog);return i.jsx(ba,{present:l||u.open,children:u.modal?i.jsx(g_,{...o,ref:n}):i.jsx(b_,{...o,ref:n})})});yS.displayName=ks;var g_=v.forwardRef((t,n)=>{const s=va(ks,t.__scopeDialog),l=v.useRef(null),o=rt(n,s.contentRef,l);return v.useEffect(()=>{const u=l.current;if(u)return O_(u)},[]),i.jsx(SS,{...t,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(t.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=s.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Ee(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,O=d.button===0&&d.ctrlKey===!0;(d.button===2||O)&&u.preventDefault()}),onFocusOutside:Ee(t.onFocusOutside,u=>u.preventDefault())})}),b_=v.forwardRef((t,n)=>{const s=va(ks,t.__scopeDialog),l=v.useRef(!1),o=v.useRef(!1);return i.jsx(SS,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,O;(d=t.onCloseAutoFocus)==null||d.call(t,u),u.defaultPrevented||(l.current||(O=s.triggerRef.current)==null||O.focus(),u.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:u=>{var m,p;(m=t.onInteractOutside)==null||m.call(t,u),u.defaultPrevented||(l.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;((p=s.triggerRef.current)==null?void 0:p.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),SS=v.forwardRef((t,n)=>{const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=t,O=va(ks,s),m=v.useRef(null),p=rt(n,m);return kX(),i.jsxs(i.Fragment,{children:[i.jsx(sS,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:u,children:i.jsx(Pf,{role:"dialog",id:O.contentId,"aria-describedby":O.descriptionId,"aria-labelledby":O.titleId,"data-state":Sh(O.open),...d,ref:p,onDismiss:()=>O.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(v_,{titleId:O.titleId}),i.jsx(S_,{contentRef:m,descriptionId:O.descriptionId})]})]})}),yh="DialogTitle",QS=v.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=va(yh,s);return i.jsx(Be.h2,{id:o.titleId,...l,ref:n})});QS.displayName=yh;var jS="DialogDescription",wS=v.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=va(jS,s);return i.jsx(Be.p,{id:o.descriptionId,...l,ref:n})});wS.displayName=jS;var kS="DialogClose",$S=v.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=va(kS,s);return i.jsx(Be.button,{type:"button",...l,ref:n,onClick:Ee(t.onClick,()=>o.onOpenChange(!1))})});$S.displayName=kS;function Sh(t){return t?"open":"closed"}var TS="DialogTitleWarning",[yZ,PS]=nw(TS,{contentName:ks,titleName:yh,docsSlug:"dialog"}),v_=({titleId:t})=>{const n=PS(TS),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
579
579
|
|
|
580
580
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
581
581
|
|
|
582
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},y_="DialogDescriptionWarning",S_=({contentRef:t,descriptionId:n})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PS(y_).contentName}}.`;return v.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(l))},[l,t,n]),null},NS=pS,zS=bS,RS=vS,CS=yS,XS=QS,_S=wS,ZS=$S;function Q_({children:t,...n}){return i.jsx(NS,{...n,children:t})}function j_({children:t,className:n,title:s,description:l,...o}){return i.jsxs(zS,{children:[i.jsx(RS,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),i.jsxs(CS,{className:le("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n),...o,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[i.jsx(XS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(ZS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:i.jsx(Rt,{size:16})})]}),l&&i.jsx(_S,{className:"sr-only",children:l}),t]})]})}var f0={};function w_({path:t,onNavigate:n}){const s=t.split("/").filter(Boolean);return i.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[i.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:i.jsx(Nb,{size:13})}),s.map((l,o)=>{const u="/"+s.slice(0,o+1).join("/"),d=o===s.length-1;return i.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[i.jsx(ii,{size:11,className:"text-text-4"}),i.jsx("button",{onClick:()=>n(u),className:le("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",d?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:l})]},o)})]})}function AS({open:t,onOpenChange:n,currentPath:s,onSelect:l}){const[o,u]=v.useState(s||f0.HOME||"/"),[d,O]=v.useState([]),[m,p]=v.useState(!1),[x,g]=v.useState(null);v.useEffect(()=>{t&&b(s||"/")},[t]);async function b($){p(!0),g(null);try{const j=await ee.get(`/browse-system?path=${encodeURIComponent($)}`);u(j.current||$),O(j.dirs||[])}catch(j){g(j.message),O([])}p(!1)}function S(){const $=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b($)}function Q(){b(f0.HOME||"/Users")}function k(){l(o),n(!1)}return i.jsx(Q_,{open:t,onOpenChange:n,children:i.jsx(j_,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:i.jsxs("div",{className:"px-5 py-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:S,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(m5,{size:14})}),i.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(hT,{size:14})}),i.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:i.jsx(w_,{path:o,onNavigate:b})})]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:i.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[m&&i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(Lf,{size:18,className:"text-text-3 animate-spin"})}),x&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!m&&!x&&d.length===0&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!m&&!x&&d.map($=>i.jsxs("button",{onClick:()=>b($.path),className:le("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[$.hasChildren?i.jsx(tT,{size:15,className:"text-warning flex-shrink-0"}):i.jsx(Hr,{size:15,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:$.name}),$.hasChildren&&i.jsx(ii,{size:12,className:"text-text-4 flex-shrink-0"})]},$.path))]})}),i.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[i.jsx(Hr,{size:16,className:"text-accent flex-shrink-0"}),i.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(je,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),i.jsxs(je,{variant:"primary",size:"md",onClick:k,className:"gap-1.5",children:[i.jsx(oa,{size:14})," Select Folder"]})]})]})})})}function ES({children:t,...n}){return i.jsx(NS,{...n,children:t})}function qS({children:t,className:n,title:s,side:l="right",width:o=400,...u}){return i.jsxs(zS,{children:[i.jsx(RS,{className:"fixed inset-0 z-40 bg-black/30"}),i.jsxs(CS,{className:le("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",l==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",l==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...u,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[i.jsx(XS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(ZS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:16})})]}),i.jsx(_S,{className:"sr-only",children:"Panel"}),t]})]})}function k_({value:t,onChange:n}){return i.jsx("button",{onClick:()=>n(!t),className:le("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:i.jsx("div",{className:le("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function $_({user:t}){const[n,s]=v.useState(!1),l=(t==null?void 0:t.avatar)||(t==null?void 0:t.picture)||(t==null?void 0:t.photoURL)||(t==null?void 0:t.photo);return l&&!n?i.jsx("img",{src:l,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):i.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:i.jsx(Gb,{size:12,className:"text-accent"})})}function T_({provider:t,onKeyChange:n}){var $,j;const[s,l]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(!1),[m,p]=v.useState(!1),x=W(P=>P.addToast),g=t.authType==="local",b=t.authType==="subscription",S=g||b?t.installed:t.hasKey;async function Q(){if(o.trim())try{await ee.post(`/credentials/${t.id}`,{key:o.trim()}),x("success",`API key set for ${t.name}`),u(""),l(!1),n&&n()}catch(P){x("error","Failed to set key",P.message)}}async function k(){try{await ee.delete(`/credentials/${t.id}`),x("info",`Removed ${t.name} key`),n&&n()}catch(P){x("error","Remove failed",P.message)}}return g?i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:S?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),S?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(oa,{size:8})," Ready"]}):i.jsx(We,{variant:"default",className:"text-2xs",children:"Not installed"})]}),i.jsx("div",{className:"flex-1",children:m?i.jsx(nS,{isInstalled:S,onModelChange:n}):i.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[i.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:S?`${(($=t.models)==null?void 0:$.length)||0} models available`:"Local AI models — free, private, no API key"}),i.jsxs(je,{variant:S?"secondary":"primary",size:"sm",onClick:()=>p(!0),className:"w-full h-7 text-2xs gap-1.5 mt-3",children:[i.jsx(Vf,{size:11}),S?"Manage Models":"Set Up Ollama"]})]})})]}):i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:S?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),S?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(oa,{size:8})," Ready"]}):i.jsx(We,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((j=t.models)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.models.map(P=>i.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:P.name||P.id},P.id))}),b&&S&&!t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[i.jsx(oa,{size:10})," Subscription active"]}),t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[i.jsx(oa,{size:10})," API Connected"]}),i.jsx("button",{onClick:()=>{l(!0),O(!1),u("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),i.jsx("button",{onClick:k,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:t.hasKey?"Update API Key":`${t.name} API Key`}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:P=>u(P.target.value),onKeyDown:P=>P.key==="Enter"&&Q(),type:d?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>O(!d),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:d?i.jsx(Gf,{size:12}):i.jsx(oi,{size:12})})]})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!t.hasKey&&i.jsxs(je,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{l(!0),O(!1),u("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[i.jsx(uc,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function gl({icon:t,label:n,description:s,children:l}){return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:i.jsx(t,{size:12,className:"text-accent"})}),i.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),i.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),i.jsx("div",{className:"mt-auto pt-1",children:l})]})}const MS={telegram:Hf,discord:ci,slack:Cb},Ss={telegram:"Telegram",discord:"Discord",slack:"Slack"},P_={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},N_=["critical","lifecycle","all"];function z_({type:t,open:n,onOpenChange:s}){if(!t)return null;const o={telegram:{title:"Set Up Telegram",icon:Hf,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:ci,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:Cb,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[t];if(!o)return null;const u=o.icon;return i.jsx(ES,{open:n,onOpenChange:s,children:i.jsx(qS,{title:o.title,width:480,children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx(u,{size:16,className:"text-accent"})}),i.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((d,O)=>{var m;return i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[i.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:O+1}),d.title]}),d.note&&i.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:d.note}),d.steps&&i.jsx("ol",{className:"space-y-2 mb-2",children:d.steps.map((p,x)=>i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),i.jsxs("span",{children:[p.text,p.link&&i.jsxs(i.Fragment,{children:[" ",i.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,i.jsx(cc,{size:9})]})]})]})]},x))}),d.scopes&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:d.scopes.map(p=>i.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),d.after&&i.jsx("ol",{className:"space-y-2 mb-2",start:(((m=d.steps)==null?void 0:m.length)||0)+1,children:d.after.map((p,x)=>{var g;return i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((g=d.steps)==null?void 0:g.length)||0)+x+1,"."]}),i.jsx("span",{children:p.text})]},x)})}),d.important&&i.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:d.important}),d.commands&&i.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:d.commands.map(p=>i.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},O)}),i.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[i.jsx(cc,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function R_({gateway:t,onRefresh:n}){var ge,de;const[s,l]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(""),[m,p]=v.useState(!1),[x,g]=v.useState(!1),[b,S]=v.useState(!1),[Q,k]=v.useState([]),[$,j]=v.useState(!1),P=W(K=>K.addToast);v.useEffect(()=>{t.connected&&!t.chatId&&t.type==="slack"&&ee.get(`/gateways/${t.id}/channels`).then(K=>k(Array.isArray(K)?K:[])).catch(()=>{})},[t.connected,t.chatId,t.id,t.type]);const N=MS[t.type]||Bf,Z=t.type==="slack";async function U(){if(o.trim())try{await ee.post(`/gateways/${t.id}/credentials`,{key:"bot_token",value:o.trim()}),Z&&d.trim()&&await ee.post(`/gateways/${t.id}/credentials`,{key:"app_token",value:d.trim()}),P("success","Token saved — connecting..."),u(""),O(""),l(!1);try{await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)}catch(K){P("error","Token saved but connect failed",K.message)}n()}catch(K){P("error","Failed to save token",K.message)}}async function C(){g(!0);try{await ee.post(`/gateways/${t.id}/test`),P("success","Test message sent!")}catch(K){P("error","Test failed",K.message)}g(!1)}async function X(){S(!0);try{t.connected?(await ee.post(`/gateways/${t.id}/disconnect`),P("info",`${Ss[t.type]} disconnected`)):(await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)),n()}catch(K){P("error",t.connected?"Disconnect failed":"Connect failed",K.message)}S(!1)}async function T(K){try{await ee.patch(`/gateways/${t.id}`,{enabled:K}),n()}catch(z){P("error","Update failed",z.message)}}async function G(K){try{await ee.patch(`/gateways/${t.id}`,{notifications:{preset:K}}),n()}catch(z){P("error","Update failed",z.message)}}async function E(K){try{await ee.patch(`/gateways/${t.id}`,{commandPermission:K}),n()}catch(z){P("error","Update failed",z.message)}}async function se(){try{await ee.delete(`/gateways/${t.id}`),P("info",`${Ss[t.type]} gateway removed`),n()}catch(K){P("error","Delete failed",K.message)}}const re=((ge=t.notifications)==null?void 0:ge.preset)||"critical";return i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:t.connected?"running":"crashed",size:"sm"}),i.jsx(N,{size:13,className:"text-text-2"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:Ss[t.type]}),i.jsx("div",{className:"flex-1"}),t.connected?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(Fg,{size:8})," Connected"]}):t.enabled?i.jsx(We,{variant:"warning",className:"text-2xs",children:"Disconnected"}):i.jsx(We,{variant:"default",className:"text-2xs",children:"Disabled"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[i.jsx(oa,{size:10})," Gateway active",t.botUsername&&i.jsxs("span",{className:"text-text-4 ml-1",children:["@",t.botUsername]}),t.botTag&&i.jsx("span",{className:"text-text-4 ml-1",children:t.botTag})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:t.type==="slack"?"Channel":"Chat ID"}),t.chatId?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:t.type==="slack"&&Q.length>0?`#${((de=Q.find(K=>K.id===t.chatId))==null?void 0:de.name)||t.chatId}`:t.chatId}),i.jsx("button",{onClick:async()=>{try{await ee.patch(`/gateways/${t.id}`,{chatId:null}),n()}catch(K){P("error","Failed",K.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):t.type==="slack"&&Q.length>0?i.jsxs("select",{onChange:async K=>{if(K.target.value)try{await ee.patch(`/gateways/${t.id}`,{chatId:K.target.value}),n()}catch(z){P("error","Failed to set channel",z.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[i.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(K=>i.jsxs("option",{value:K.id,children:["#",K.name]},K.id))]}):i.jsxs("div",{className:"text-2xs text-warning font-sans",children:[t.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",i.jsx("input",{placeholder:t.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async K=>{if(K.key==="Enter"&&K.target.value.trim())try{await ee.patch(`/gateways/${t.id}`,{chatId:K.target.value.trim()}),n()}catch(z){P("error","Failed to set channel",z.message)}}})]})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:N_.map(K=>i.jsx("button",{onClick:()=>G(K),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",re===K?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:K},K))})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(K=>i.jsx("button",{onClick:()=>E(K),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(t.commandPermission||"full")===K?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:K==="full"?"Full Access":"Read Only"},K))})]})]}),!t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:t.enabled?t.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!t.hasCredentials&&i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[i.jsx(ic,{size:11}),"How to set up",i.jsx(cc,{size:9})]})]}),i.jsx(z_,{type:t.type,open:$,onOpenChange:j}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[i.jsx(ic,{size:11}),"Where do I get these?"]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:K=>u(K.target.value),onKeyDown:K=>K.key==="Enter"&&!Z&&U(),type:m?"text":"password",placeholder:P_[t.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>p(!m),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:m?i.jsx(Gf,{size:12}):i.jsx(oi,{size:12})})]})]}),Z&&i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),i.jsx("input",{value:d,onChange:K=>O(K.target.value),onKeyDown:K=>K.key==="Enter"&&U(),type:m?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:U,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u(""),O("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&i.jsxs("div",{className:"flex gap-2 mt-2",children:[!t.connected&&i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>l(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(uc,{size:11}),t.enabled?"Set Token":"Configure"]}),t.connected&&i.jsxs(i.Fragment,{children:[i.jsxs(je,{variant:"secondary",size:"sm",onClick:C,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(Ff,{size:11}),x?"Sending...":"Test"]}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>l(!0),className:"h-7 text-2xs px-2.5",children:i.jsx(uc,{size:11})})]}),i.jsx(je,{variant:"ghost",size:"sm",onClick:X,disabled:b,className:"h-7 text-2xs px-2.5",title:t.connected?"Disconnect":"Connect",children:t.connected?i.jsx(Zb,{size:11}):i.jsx(Fg,{size:11})}),i.jsx(k_,{value:t.enabled,onChange:T}),i.jsx("button",{onClick:se,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:i.jsx(Xc,{size:11})})]})]})]})}function C_({existingTypes:t,onAdd:n}){const[s,l]=v.useState(!1),o=["telegram","discord","slack"].filter(u=>!t.includes(u));return o.length===0?null:s?i.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Bf,{size:13,className:"text-accent"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),i.jsx("div",{className:"flex-1"}),i.jsx("button",{onClick:()=>l(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}),i.jsx("div",{className:"p-3 space-y-2",children:o.map(u=>{const d=MS[u];return i.jsxs("button",{onClick:()=>{n(u),l(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[i.jsx(d,{size:14,className:"text-text-3 group-hover:text-accent"}),i.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:Ss[u]})]},u)})})]}):i.jsxs("button",{onClick:()=>l(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:i.jsx(Fn,{size:14,className:"text-accent"})}),i.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function X_(){const[t,n]=v.useState([]),[s,l]=v.useState(null),[o,u]=v.useState(null),[d,O]=v.useState([]),[m,p]=v.useState(!0),[x,g]=v.useState(!1),b=W(X=>X.addToast),S=W(X=>X.marketplaceUser),Q=W(X=>X.marketplaceAuthenticated),k=W(X=>X.marketplaceLogin),$=W(X=>X.marketplaceLogout);function j(){ee.get("/providers").then(X=>n(Array.isArray(X)?X:[])).catch(()=>{})}function P(){ee.get("/gateways").then(X=>O(Array.isArray(X)?X:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([ee.get("/providers"),ee.get("/config"),ee.get("/status"),ee.get("/gateways")]).then(([X,T,G,E])=>{n(Array.isArray(X)?X:[]),l(T),u(G),O(Array.isArray(E)?E:[]),p(!1)}).catch(()=>p(!1))},[]);async function N(X){try{await ee.post("/gateways",{type:X}),b("success",`${Ss[X]} gateway added`),P()}catch(T){b("error","Failed to add gateway",T.message)}}async function Z(X,T){try{const G=await ee.patch("/config",{[X]:T});l(G)}catch(G){b("error","Update failed",G.message)}}if(m)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),i.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[i.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((X,T)=>i.jsx(Nt,{className:"h-40 rounded-lg"},T))}),i.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((X,T)=>i.jsx(Nt,{className:"h-28 rounded-lg"},T))})]})]});const U=t.filter(X=>X.authType==="local"||X.authType==="subscription"?X.installed:X.hasKey).length,C=(s==null?void 0:s.rotationThreshold)||0;return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&i.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&i.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&i.jsxs("span",{children:["Up ",Ec(o.uptime)]})]}),i.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?i.jsxs("div",{className:"flex items-center gap-2.5",children:[i.jsx($_,{user:S}),i.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(S==null?void 0:S.displayName)||"User"}),i.jsxs("button",{onClick:$,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[i.jsx(Rb,{size:10})," Sign out"]})]}):i.jsxs(je,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-2xs gap-1.5 text-text-3",children:[i.jsx(Df,{size:11})," Sign in"]}),i.jsx(Pl,{status:"running",size:"sm"})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[U,"/",t.length," connected"]})]}),i.jsx("div",{className:"grid grid-cols-4 gap-3",children:t.map(X=>i.jsx(T_,{provider:X,onKeyChange:j},X.id))})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[d.filter(X=>X.connected).length,"/",d.length," connected"]})]}),i.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[d.map(X=>i.jsx(R_,{gateway:X,onRefresh:P},X.id)),i.jsx(C_,{existingTypes:d.map(X=>X.type),onAdd:N})]})]}),s&&i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[i.jsx(gl,{icon:Vf,label:"Default Provider",description:"Provider used when spawning new agents.",children:i.jsx("select",{value:s.defaultProvider||"claude-code",onChange:X=>Z("defaultProvider",X.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:t.filter(X=>X.installed||X.hasKey).map(X=>i.jsx("option",{value:X.id,children:X.name},X.id))})}),i.jsx(gl,{icon:Hr,label:"Working Directory",description:"Default root directory for new agents.",children:i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:s.defaultWorkingDir||"Project root"}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:i.jsx(Tb,{size:12})})]})}),i.jsx(gl,{icon:Pb,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(X=>{const T=X==="auto"?0:parseInt(X,10)/100,G=C===T;return i.jsx("button",{onClick:()=>Z("rotationThreshold",T),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",G?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X==="auto"?"Auto":X},X)})})}),i.jsx(gl,{icon:Yb,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(X=>{const T=(s.qcThreshold||2)===X;return i.jsx("button",{onClick:()=>Z("qcThreshold",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X},X)})})}),i.jsx(gl,{icon:Zc,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(X=>{const T=(s.maxAgents||0)===X;return i.jsx("button",{onClick:()=>Z("maxAgents",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X===0?"∞":X},X)})})}),i.jsx(gl,{icon:Ir,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(X=>{const T=(s.journalistInterval||120)===X,G=X<60?`${X}s`:`${X/60}m`;return i.jsx("button",{onClick:()=>Z("journalistInterval",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:G},X)})})})]})]})]})}),i.jsx(AS,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:X=>Z("defaultWorkingDir",X)})]})}const jf=[];function YS(t){const n=(t||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:oi,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:$b,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:ql,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:ui,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:cf,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:cn,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:El,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:Na,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:xP,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:cf,color:"text-success",label:"Done"}:{icon:dn,color:"text-text-3",label:"Activity"}}function vl({text:t}){return t?t.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,s)=>n.startsWith("**")&&n.endsWith("**")?i.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},s):n.startsWith("`")&&n.endsWith("`")?i.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},s):i.jsx("span",{children:n},s)):null}function __({text:t}){if(!t)return null;const n=[],s=t.split(`
|
|
582
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},y_="DialogDescriptionWarning",S_=({contentRef:t,descriptionId:n})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PS(y_).contentName}}.`;return v.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(l))},[l,t,n]),null},NS=pS,zS=bS,RS=vS,CS=yS,XS=QS,_S=wS,ZS=$S;function Q_({children:t,...n}){return i.jsx(NS,{...n,children:t})}function j_({children:t,className:n,title:s,description:l,...o}){return i.jsxs(zS,{children:[i.jsx(RS,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),i.jsxs(CS,{className:le("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n),...o,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[i.jsx(XS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(ZS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:i.jsx(Rt,{size:16})})]}),l&&i.jsx(_S,{className:"sr-only",children:l}),t]})]})}var f0={};function w_({path:t,onNavigate:n}){const s=t.split("/").filter(Boolean);return i.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[i.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:i.jsx(Nb,{size:13})}),s.map((l,o)=>{const u="/"+s.slice(0,o+1).join("/"),d=o===s.length-1;return i.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[i.jsx(ii,{size:11,className:"text-text-4"}),i.jsx("button",{onClick:()=>n(u),className:le("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",d?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:l})]},o)})]})}function AS({open:t,onOpenChange:n,currentPath:s,onSelect:l}){const[o,u]=v.useState(s||f0.HOME||"/"),[d,O]=v.useState([]),[m,p]=v.useState(!1),[x,g]=v.useState(null);v.useEffect(()=>{t&&b(s||"/")},[t]);async function b(T){p(!0),g(null);try{const j=await ee.get(`/browse-system?path=${encodeURIComponent(T)}`);u(j.current||T),O(j.dirs||[])}catch(j){g(j.message),O([])}p(!1)}function S(){const T=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b(T)}function Q(){b(f0.HOME||"/Users")}function k(){l(o),n(!1)}return i.jsx(Q_,{open:t,onOpenChange:n,children:i.jsx(j_,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:i.jsxs("div",{className:"px-5 py-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:S,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(m5,{size:14})}),i.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(hT,{size:14})}),i.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:i.jsx(w_,{path:o,onNavigate:b})})]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:i.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[m&&i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(Df,{size:18,className:"text-text-3 animate-spin"})}),x&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!m&&!x&&d.length===0&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!m&&!x&&d.map(T=>i.jsxs("button",{onClick:()=>b(T.path),className:le("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[T.hasChildren?i.jsx(tT,{size:15,className:"text-warning flex-shrink-0"}):i.jsx(Hr,{size:15,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:T.name}),T.hasChildren&&i.jsx(ii,{size:12,className:"text-text-4 flex-shrink-0"})]},T.path))]})}),i.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[i.jsx(Hr,{size:16,className:"text-accent flex-shrink-0"}),i.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(je,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),i.jsxs(je,{variant:"primary",size:"md",onClick:k,className:"gap-1.5",children:[i.jsx(oa,{size:14})," Select Folder"]})]})]})})})}function ES({children:t,...n}){return i.jsx(NS,{...n,children:t})}function qS({children:t,className:n,title:s,side:l="right",width:o=400,...u}){return i.jsxs(zS,{children:[i.jsx(RS,{className:"fixed inset-0 z-40 bg-black/30"}),i.jsxs(CS,{className:le("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",l==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",l==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...u,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[i.jsx(XS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(ZS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:16})})]}),i.jsx(_S,{className:"sr-only",children:"Panel"}),t]})]})}function k_({value:t,onChange:n}){return i.jsx("button",{onClick:()=>n(!t),className:le("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:i.jsx("div",{className:le("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function $_({user:t}){const[n,s]=v.useState(!1),l=(t==null?void 0:t.avatar)||(t==null?void 0:t.picture)||(t==null?void 0:t.photoURL)||(t==null?void 0:t.photo);return l&&!n?i.jsx("img",{src:l,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):i.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:i.jsx(Gb,{size:12,className:"text-accent"})})}function T_({provider:t,onKeyChange:n}){var T,j;const[s,l]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(!1),[m,p]=v.useState(!1),x=D(P=>P.addToast),g=t.authType==="local",b=t.authType==="subscription",S=g||b?t.installed:t.hasKey;async function Q(){if(o.trim())try{await ee.post(`/credentials/${t.id}`,{key:o.trim()}),x("success",`API key set for ${t.name}`),u(""),l(!1),n&&n()}catch(P){x("error","Failed to set key",P.message)}}async function k(){try{await ee.delete(`/credentials/${t.id}`),x("info",`Removed ${t.name} key`),n&&n()}catch(P){x("error","Remove failed",P.message)}}return g?i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:S?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),S?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(oa,{size:8})," Ready"]}):i.jsx(We,{variant:"default",className:"text-2xs",children:"Not installed"})]}),i.jsx("div",{className:"flex-1",children:m?i.jsx(nS,{isInstalled:S,onModelChange:n}):i.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[i.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:S?`${((T=t.models)==null?void 0:T.length)||0} models available`:"Local AI models — free, private, no API key"}),i.jsxs(je,{variant:S?"secondary":"primary",size:"sm",onClick:()=>p(!0),className:"w-full h-7 text-2xs gap-1.5 mt-3",children:[i.jsx(Uf,{size:11}),S?"Manage Models":"Set Up Ollama"]})]})})]}):i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:S?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),S?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(oa,{size:8})," Ready"]}):i.jsx(We,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((j=t.models)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.models.map(P=>i.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:P.name||P.id},P.id))}),b&&S&&!t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[i.jsx(oa,{size:10})," Subscription active"]}),t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[i.jsx(oa,{size:10})," API Connected"]}),i.jsx("button",{onClick:()=>{l(!0),O(!1),u("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),i.jsx("button",{onClick:k,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:t.hasKey?"Update API Key":`${t.name} API Key`}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:P=>u(P.target.value),onKeyDown:P=>P.key==="Enter"&&Q(),type:d?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>O(!d),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:d?i.jsx(Lf,{size:12}):i.jsx(oi,{size:12})})]})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!t.hasKey&&i.jsxs(je,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{l(!0),O(!1),u("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[i.jsx(uc,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function gl({icon:t,label:n,description:s,children:l}){return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:i.jsx(t,{size:12,className:"text-accent"})}),i.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),i.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),i.jsx("div",{className:"mt-auto pt-1",children:l})]})}const MS={telegram:If,discord:ci,slack:Cb},Ss={telegram:"Telegram",discord:"Discord",slack:"Slack"},P_={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},N_=["critical","lifecycle","all"];function z_({type:t,open:n,onOpenChange:s}){if(!t)return null;const o={telegram:{title:"Set Up Telegram",icon:If,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:ci,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:Cb,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[t];if(!o)return null;const u=o.icon;return i.jsx(ES,{open:n,onOpenChange:s,children:i.jsx(qS,{title:o.title,width:480,children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx(u,{size:16,className:"text-accent"})}),i.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((d,O)=>{var m;return i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[i.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:O+1}),d.title]}),d.note&&i.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:d.note}),d.steps&&i.jsx("ol",{className:"space-y-2 mb-2",children:d.steps.map((p,x)=>i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),i.jsxs("span",{children:[p.text,p.link&&i.jsxs(i.Fragment,{children:[" ",i.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,i.jsx(cc,{size:9})]})]})]})]},x))}),d.scopes&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:d.scopes.map(p=>i.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),d.after&&i.jsx("ol",{className:"space-y-2 mb-2",start:(((m=d.steps)==null?void 0:m.length)||0)+1,children:d.after.map((p,x)=>{var g;return i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((g=d.steps)==null?void 0:g.length)||0)+x+1,"."]}),i.jsx("span",{children:p.text})]},x)})}),d.important&&i.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:d.important}),d.commands&&i.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:d.commands.map(p=>i.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},O)}),i.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[i.jsx(cc,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function R_({gateway:t,onRefresh:n}){var xe,ie;const[s,l]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(""),[m,p]=v.useState(!1),[x,g]=v.useState(!1),[b,S]=v.useState(!1),[Q,k]=v.useState([]),[T,j]=v.useState(!1),P=D(J=>J.addToast);v.useEffect(()=>{t.connected&&!t.chatId&&t.type==="slack"&&ee.get(`/gateways/${t.id}/channels`).then(J=>k(Array.isArray(J)?J:[])).catch(()=>{})},[t.connected,t.chatId,t.id,t.type]);const N=MS[t.type]||Hf,Z=t.type==="slack";async function U(){if(o.trim())try{await ee.post(`/gateways/${t.id}/credentials`,{key:"bot_token",value:o.trim()}),Z&&d.trim()&&await ee.post(`/gateways/${t.id}/credentials`,{key:"app_token",value:d.trim()}),P("success","Token saved — connecting..."),u(""),O(""),l(!1);try{await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)}catch(J){P("error","Token saved but connect failed",J.message)}n()}catch(J){P("error","Failed to save token",J.message)}}async function C(){g(!0);try{await ee.post(`/gateways/${t.id}/test`),P("success","Test message sent!")}catch(J){P("error","Test failed",J.message)}g(!1)}async function X(){S(!0);try{t.connected?(await ee.post(`/gateways/${t.id}/disconnect`),P("info",`${Ss[t.type]} disconnected`)):(await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)),n()}catch(J){P("error",t.connected?"Disconnect failed":"Connect failed",J.message)}S(!1)}async function $(J){try{await ee.patch(`/gateways/${t.id}`,{enabled:J}),n()}catch(z){P("error","Update failed",z.message)}}async function W(J){try{await ee.patch(`/gateways/${t.id}`,{notifications:{preset:J}}),n()}catch(z){P("error","Update failed",z.message)}}async function E(J){try{await ee.patch(`/gateways/${t.id}`,{commandPermission:J}),n()}catch(z){P("error","Update failed",z.message)}}async function ne(){try{await ee.delete(`/gateways/${t.id}`),P("info",`${Ss[t.type]} gateway removed`),n()}catch(J){P("error","Delete failed",J.message)}}const re=((xe=t.notifications)==null?void 0:xe.preset)||"critical";return i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Pl,{status:t.connected?"running":"crashed",size:"sm"}),i.jsx(N,{size:13,className:"text-text-2"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:Ss[t.type]}),i.jsx("div",{className:"flex-1"}),t.connected?i.jsxs(We,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(Kg,{size:8})," Connected"]}):t.enabled?i.jsx(We,{variant:"warning",className:"text-2xs",children:"Disconnected"}):i.jsx(We,{variant:"default",className:"text-2xs",children:"Disabled"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[i.jsx(oa,{size:10})," Gateway active",t.botUsername&&i.jsxs("span",{className:"text-text-4 ml-1",children:["@",t.botUsername]}),t.botTag&&i.jsx("span",{className:"text-text-4 ml-1",children:t.botTag})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:t.type==="slack"?"Channel":"Chat ID"}),t.chatId?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:t.type==="slack"&&Q.length>0?`#${((ie=Q.find(J=>J.id===t.chatId))==null?void 0:ie.name)||t.chatId}`:t.chatId}),i.jsx("button",{onClick:async()=>{try{await ee.patch(`/gateways/${t.id}`,{chatId:null}),n()}catch(J){P("error","Failed",J.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):t.type==="slack"&&Q.length>0?i.jsxs("select",{onChange:async J=>{if(J.target.value)try{await ee.patch(`/gateways/${t.id}`,{chatId:J.target.value}),n()}catch(z){P("error","Failed to set channel",z.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[i.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(J=>i.jsxs("option",{value:J.id,children:["#",J.name]},J.id))]}):i.jsxs("div",{className:"text-2xs text-warning font-sans",children:[t.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",i.jsx("input",{placeholder:t.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async J=>{if(J.key==="Enter"&&J.target.value.trim())try{await ee.patch(`/gateways/${t.id}`,{chatId:J.target.value.trim()}),n()}catch(z){P("error","Failed to set channel",z.message)}}})]})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:N_.map(J=>i.jsx("button",{onClick:()=>W(J),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",re===J?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:J},J))})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(J=>i.jsx("button",{onClick:()=>E(J),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(t.commandPermission||"full")===J?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:J==="full"?"Full Access":"Read Only"},J))})]})]}),!t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:t.enabled?t.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!t.hasCredentials&&i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[i.jsx(ic,{size:11}),"How to set up",i.jsx(cc,{size:9})]})]}),i.jsx(z_,{type:t.type,open:T,onOpenChange:j}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[i.jsx(ic,{size:11}),"Where do I get these?"]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:J=>u(J.target.value),onKeyDown:J=>J.key==="Enter"&&!Z&&U(),type:m?"text":"password",placeholder:P_[t.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>p(!m),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:m?i.jsx(Lf,{size:12}):i.jsx(oi,{size:12})})]})]}),Z&&i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),i.jsx("input",{value:d,onChange:J=>O(J.target.value),onKeyDown:J=>J.key==="Enter"&&U(),type:m?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:U,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u(""),O("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&i.jsxs("div",{className:"flex gap-2 mt-2",children:[!t.connected&&i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>l(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(uc,{size:11}),t.enabled?"Set Token":"Configure"]}),t.connected&&i.jsxs(i.Fragment,{children:[i.jsxs(je,{variant:"secondary",size:"sm",onClick:C,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(Kf,{size:11}),x?"Sending...":"Test"]}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>l(!0),className:"h-7 text-2xs px-2.5",children:i.jsx(uc,{size:11})})]}),i.jsx(je,{variant:"ghost",size:"sm",onClick:X,disabled:b,className:"h-7 text-2xs px-2.5",title:t.connected?"Disconnect":"Connect",children:t.connected?i.jsx(Zb,{size:11}):i.jsx(Kg,{size:11})}),i.jsx(k_,{value:t.enabled,onChange:$}),i.jsx("button",{onClick:ne,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:i.jsx(Xc,{size:11})})]})]})]})}function C_({existingTypes:t,onAdd:n}){const[s,l]=v.useState(!1),o=["telegram","discord","slack"].filter(u=>!t.includes(u));return o.length===0?null:s?i.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Hf,{size:13,className:"text-accent"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),i.jsx("div",{className:"flex-1"}),i.jsx("button",{onClick:()=>l(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}),i.jsx("div",{className:"p-3 space-y-2",children:o.map(u=>{const d=MS[u];return i.jsxs("button",{onClick:()=>{n(u),l(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[i.jsx(d,{size:14,className:"text-text-3 group-hover:text-accent"}),i.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:Ss[u]})]},u)})})]}):i.jsxs("button",{onClick:()=>l(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:i.jsx(Fn,{size:14,className:"text-accent"})}),i.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function X_(){const[t,n]=v.useState([]),[s,l]=v.useState(null),[o,u]=v.useState(null),[d,O]=v.useState([]),[m,p]=v.useState(!0),[x,g]=v.useState(!1),b=D(X=>X.addToast),S=D(X=>X.marketplaceUser),Q=D(X=>X.marketplaceAuthenticated),k=D(X=>X.marketplaceLogin),T=D(X=>X.marketplaceLogout);function j(){ee.get("/providers").then(X=>n(Array.isArray(X)?X:[])).catch(()=>{})}function P(){ee.get("/gateways").then(X=>O(Array.isArray(X)?X:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([ee.get("/providers"),ee.get("/config"),ee.get("/status"),ee.get("/gateways")]).then(([X,$,W,E])=>{n(Array.isArray(X)?X:[]),l($),u(W),O(Array.isArray(E)?E:[]),p(!1)}).catch(()=>p(!1))},[]);async function N(X){try{await ee.post("/gateways",{type:X}),b("success",`${Ss[X]} gateway added`),P()}catch($){b("error","Failed to add gateway",$.message)}}async function Z(X,$){try{const W=await ee.patch("/config",{[X]:$});l(W)}catch(W){b("error","Update failed",W.message)}}if(m)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),i.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[i.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((X,$)=>i.jsx(Nt,{className:"h-40 rounded-lg"},$))}),i.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((X,$)=>i.jsx(Nt,{className:"h-28 rounded-lg"},$))})]})]});const U=t.filter(X=>X.authType==="local"||X.authType==="subscription"?X.installed:X.hasKey).length,C=(s==null?void 0:s.rotationThreshold)||0;return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&i.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&i.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&i.jsxs("span",{children:["Up ",Ec(o.uptime)]})]}),i.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?i.jsxs("div",{className:"flex items-center gap-2.5",children:[i.jsx($_,{user:S}),i.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(S==null?void 0:S.displayName)||"User"}),i.jsxs("button",{onClick:T,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[i.jsx(Rb,{size:10})," Sign out"]})]}):i.jsxs(je,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-2xs gap-1.5 text-text-3",children:[i.jsx(Wf,{size:11})," Sign in"]}),i.jsx(Pl,{status:"running",size:"sm"})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[U,"/",t.length," connected"]})]}),i.jsx("div",{className:"grid grid-cols-4 gap-3",children:t.map(X=>i.jsx(T_,{provider:X,onKeyChange:j},X.id))})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[d.filter(X=>X.connected).length,"/",d.length," connected"]})]}),i.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[d.map(X=>i.jsx(R_,{gateway:X,onRefresh:P},X.id)),i.jsx(C_,{existingTypes:d.map(X=>X.type),onAdd:N})]})]}),s&&i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[i.jsx(gl,{icon:Uf,label:"Default Provider",description:"Provider used when spawning new agents.",children:i.jsx("select",{value:s.defaultProvider||"claude-code",onChange:X=>Z("defaultProvider",X.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:t.filter(X=>X.installed||X.hasKey).map(X=>i.jsx("option",{value:X.id,children:X.name},X.id))})}),i.jsx(gl,{icon:Hr,label:"Working Directory",description:"Default root directory for new agents.",children:i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:s.defaultWorkingDir||"Project root"}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:i.jsx(Tb,{size:12})})]})}),i.jsx(gl,{icon:Pb,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(X=>{const $=X==="auto"?0:parseInt(X,10)/100,W=C===$;return i.jsx("button",{onClick:()=>Z("rotationThreshold",$),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",W?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X==="auto"?"Auto":X},X)})})}),i.jsx(gl,{icon:Yb,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(X=>{const $=(s.qcThreshold||2)===X;return i.jsx("button",{onClick:()=>Z("qcThreshold",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X},X)})})}),i.jsx(gl,{icon:Zc,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(X=>{const $=(s.maxAgents||0)===X;return i.jsx("button",{onClick:()=>Z("maxAgents",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X===0?"∞":X},X)})})}),i.jsx(gl,{icon:Ir,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(X=>{const $=(s.journalistInterval||120)===X,W=X<60?`${X}s`:`${X/60}m`;return i.jsx("button",{onClick:()=>Z("journalistInterval",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:W},X)})})})]})]})]})}),i.jsx(AS,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:X=>Z("defaultWorkingDir",X)})]})}const wf=[];function YS(t){const n=(t||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:oi,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:$b,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:ql,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:ui,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:uf,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:cn,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:El,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:Na,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:xP,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:uf,color:"text-success",label:"Done"}:{icon:dn,color:"text-text-3",label:"Activity"}}function vl({text:t}){return t?t.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,s)=>n.startsWith("**")&&n.endsWith("**")?i.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},s):n.startsWith("`")&&n.endsWith("`")?i.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},s):i.jsx("span",{children:n},s)):null}function __({text:t}){if(!t)return null;const n=[],s=t.split(`
|
|
583
583
|
`);let l=0;for(;l<s.length;){const o=s[l];if(o.trimStart().startsWith("```")){const d=[],O=o.trim().slice(3);for(l++;l<s.length&&!s[l].trimStart().startsWith("```");)d.push(s[l]),l++;l++,n.push({type:"code",content:d.join(`
|
|
584
|
-
`),lang:O});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const d=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:d}),l++;continue}if(/^\s*[-*]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*[-*]\s/.test(s[l]);)d.push(s[l].replace(/^\s*[-*]\s+/,"").trim()),l++;n.push({type:"list",items:d});continue}if(/^\s*\d+[\.)]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*\d+[\.)]\s/.test(s[l]);)d.push(s[l].replace(/^\s*\d+[\.)]\s+/,"").trim()),l++;n.push({type:"numbered",items:d});continue}if(!o.trim()){l++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),l++;continue}const u=[];for(;l<s.length&&s[l].trim()&&!/^#{1,3}\s/.test(s[l])&&!/^\s*[-*]\s/.test(s[l])&&!/^\s*\d+[\.)]\s/.test(s[l])&&!s[l].trimStart().startsWith("```");)u.push(s[l].trim()),l++;u.length>0&&n.push({type:"para",content:u.join(" ")})}return i.jsx("div",{className:"space-y-2",children:n.map((o,u)=>{switch(o.type){case"heading":return i.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[i.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),i.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:i.jsx(vl,{text:o.content})})]},u);case"list":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),i.jsx("span",{className:"min-w-0",children:i.jsx(vl,{text:d})})]},O))},u);case"numbered":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[O+1,"."]}),i.jsx("span",{className:"min-w-0",children:i.jsx(vl,{text:d})})]},O))},u);case"code":return i.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},u);case"note":return i.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[i.jsx(cn,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:i.jsx(vl,{text:o.content})})]},u);case"para":default:return i.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:i.jsx(vl,{text:o.content})},u)}})})}function Z_({text:t}){if(!t)return null;const n=t.split(/(```[\s\S]*?```)/g);return i.jsx("span",{children:n.map((s,l)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return i.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},l)}return i.jsx("span",{children:i.jsx(vl,{text:s})},l)})})}function A_({msg:t}){const n=t.isQuery;return i.jsx("div",{className:"flex justify-end pl-8",children:i.jsxs("div",{className:"max-w-[90%]",children:[n&&i.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[i.jsx(ic,{size:9,className:"text-info"}),i.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),i.jsx("div",{className:le("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:i.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:i.jsx(Z_,{text:t.text})})}),i.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:Ct(t.timestamp)})]})})}function E_({msg:t,agent:n}){var u,d;const[s,l]=v.useState(((u=t.text)==null?void 0:u.length)>600),o=((d=t.text)==null?void 0:d.length)>600;return i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:Ct(t.timestamp)})]}),i.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:i.jsx(__,{text:s?t.text.slice(0,600)+"...":t.text})}),s&&i.jsxs("button",{onClick:()=>l(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(In,{size:11}),"Show full response"]}),o&&!s&&i.jsxs("button",{onClick:()=>l(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(In,{size:11,className:"rotate-180"}),"Collapse"]})]})}function q_({msg:t}){return i.jsxs("div",{className:"flex items-center gap-3 py-2",children:[i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:t.text}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function M_({entries:t}){var u;const[n,s]=v.useState(0);v.useEffect(()=>{if(t.length<=1)return;const d=setInterval(()=>s(O=>(O+1)%t.length),1500);return()=>clearInterval(d)},[t.length]);const l=t[Math.min(n,t.length-1)];YS(l.text);const o=((u=l.text)==null?void 0:u.length)>60?l.text.slice(0,60)+"...":l.text;return i.jsxs("div",{className:"ml-7 flex items-center gap-2 px-3 py-2 rounded-md bg-surface-3/50 border border-border-subtle/30",children:[i.jsx(Lf,{size:11,className:"text-accent animate-spin flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate flex-1 min-w-0 transition-opacity duration-300",children:o}),t.length>1&&i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:t.length})]})}function Y_({agent:t}){const n=W(m=>m.activityLog[t.id])||jf,s=n[n.length-1],l=s?YS(s.text):null,o=(l==null?void 0:l.icon)||dn,u=s&&Date.now()-s.timestamp<1e4,d=u&&s.text?s.text.length>60?s.text.slice(0,60)+"...":s.text:null,O=Math.round((t.contextUsage||0)*100);return i.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[i.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?i.jsxs(i.Fragment,{children:[i.jsx(o,{size:10,className:le(l.color,"flex-shrink-0")}),i.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:d})]}):i.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),i.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:V_(t.tokensUsed)}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${O}%`,background:O>=75?"var(--color-danger)":O>=50?"var(--color-warning)":"var(--color-accent)"}})}),i.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[O,"%"]})]})]})]})}function V_(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function U_({agent:t}){const[n,s]=v.useState([]),l=[{text:`Initializing ${t.name}`,delay:0},{text:`Role: ${t.role}`,delay:400},{text:`Provider: ${t.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return v.useEffect(()=>{const o=l.map((u,d)=>setTimeout(()=>s(O=>[...O,d]),u.delay));return()=>o.forEach(clearTimeout)},[]),i.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[i.jsxs("div",{className:"relative w-9 h-9",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),i.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:l.map((o,u)=>{const d=n.includes(u),O=u===l.length-1;return i.jsxs("div",{className:le("flex items-center gap-2.5 transition-all duration-300",d?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[i.jsx("span",{className:le("w-1 h-1 rounded-full flex-shrink-0",O&&d?"bg-accent":d?"bg-text-3":"bg-transparent")}),i.jsx("span",{className:le("text-[11px] font-mono",O&&d?"text-accent":"text-text-3"),children:o.text}),O&&d&&i.jsxs("span",{className:"flex gap-0.5 ml-1",children:[i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},u)})})]})}function G_({agent:t}){const n=W(j=>j.chatHistory[t.id])||jf,s=W(j=>j.activityLog[t.id])||jf,l=W(j=>j.instructAgent),o=W(j=>j.queryAgent),[u,d]=v.useState(""),[O,m]=v.useState("instruct"),[p,x]=v.useState(!1),g=v.useRef(null),b=v.useRef(null),S=v.useMemo(()=>{var X;const j=[],P=new Set;for(const T of n){const G=`${T.from}:${(X=T.text)==null?void 0:X.slice(0,100)}`;j.find(se=>{var re;return se.kind==="chat"&&`${se.from}:${(re=se.text)==null?void 0:re.slice(0,100)}`===G&&Math.abs(se.ts-T.timestamp)<5e3})||(j.push({...T,kind:"chat",ts:T.timestamp}),P.add(T.text))}const N=P,Z=s.slice(-30);for(const T of Z)(T.text||"").trim()&&!N.has(T.text)&&j.push({...T,kind:"activity",ts:T.timestamp});j.sort((T,G)=>T.ts-G.ts);const U=[];let C=[];for(const T of j)T.kind==="activity"?C.push(T):(C.length>0&&(U.push({kind:"activity-group",entries:C}),C=[]),U.push(T));return C.length>0&&U.push({kind:"activity-group",entries:C}),U},[n,s]);v.useEffect(()=>{g.current&&requestAnimationFrame(()=>{g.current&&(g.current.scrollTop=g.current.scrollHeight)})},[S.length]);async function Q(){var P;const j=u.trim();if(!(!j||p)){if(j==="/rotate"){const N=W.getState().rotateAgent;d("");try{await N(t.id)}catch{}return}d(""),x(!0);try{O==="query"?await o(t.id,j):await l(t.id,j)}catch{}x(!1),(P=b.current)==null||P.focus()}}function k(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),Q())}const $=t.status==="running"||t.status==="starting";return i.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[$&&i.jsx(Y_,{agent:t}),i.jsxs("div",{ref:g,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!S.some(j=>j.from==="agent"||j.kind==="activity-group")&&($?i.jsx(U_,{agent:t}):i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[i.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:i.jsx(ci,{size:18,className:"text-text-4"})}),i.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),S.map((j,P)=>j.kind==="activity-group"?i.jsx(M_,{entries:j.entries},`grp-${P}`):j.from==="user"?i.jsx(A_,{msg:j},`msg-${P}`):j.from==="system"?i.jsx(q_,{msg:j},`msg-${P}`):i.jsx(E_,{msg:j,agent:t},`msg-${P}`)),p&&i.jsxs("div",{className:"flex items-center gap-2 ml-7 py-2",children:[i.jsx("div",{className:"w-5 h-5 rounded-md bg-accent/12 flex items-center justify-center",children:i.jsx(dn,{size:10,className:"text-accent"})}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-2 rounded-2xl bg-surface-2/60 border border-border-subtle",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"400ms"}})]})]})]}),i.jsxs("div",{className:"border-t border-border px-4 py-3 bg-surface-1/50 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[i.jsxs("button",{onClick:()=>m("instruct"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(Cc,{size:10}),"Instruct"]}),i.jsxs("button",{onClick:()=>m("query"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(ic,{size:10}),"Query"]}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:O==="query"?"Read-only — agent keeps working":$?"Directs the agent":"Continues the session"})]}),i.jsxs("div",{className:le("flex items-end gap-2 rounded-xl border bg-surface-0 p-1 transition-colors",O==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[i.jsx("textarea",{ref:b,value:u,onChange:j=>d(j.target.value),onKeyDown:k,placeholder:O==="query"?"Ask about this agent's work...":$?"Send an instruction...":"Continue this session...",rows:1,className:le("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none","max-h-[120px] min-h-[36px]"),style:{height:Math.min(Math.max(36,u.split(`
|
|
585
|
-
`).length*20),120)}}),i.jsx("button",{onClick:Q,disabled:!u.trim()||p,className:le("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",u.trim()?O==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:p?i.jsx(Lf,{size:15,className:"animate-spin"}):i.jsx(Hf,{size:15})})]})]})]})}function FO({options:t,value:n,onChange:s}){return i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(l=>i.jsx("button",{onClick:()=>s(l.value),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===l.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:l.label},l.value))})}function ha({label:t,icon:n,children:s,description:l}){return i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&i.jsx(n,{size:13,className:"text-text-3"}),t]}),l&&i.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:l})]}),s]})}function L_({agent:t}){const n=W(Q=>Q.killAgent),s=W(Q=>Q.rotateAgent),l=W(Q=>Q.spawnAgent),o=W(Q=>Q.closeDetail),u=W(Q=>Q.addToast),[d,O]=v.useState(null),[m,p]=v.useState(!1),x=t.status==="running"||t.status==="starting";async function g(){O("rotate");try{await s(t.id)}catch{}O(null)}async function b(){if(!m){p(!0),setTimeout(()=>p(!1),3e3);return}O("kill");try{await n(t.id),o()}catch{}O(null),p(!1)}async function S(){O("clone");try{await l({role:t.role,provider:t.provider,model:t.model,name:`${t.name}-clone`,scope:t.scope,workingDir:t.workingDir}),u("success",`Cloned ${t.name}`)}catch{}O(null)}return x?i.jsx("div",{className:"space-y-2",children:i.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:d==="rotate",className:"gap-1.5",children:[i.jsx(El,{size:12,className:d==="rotate"?"animate-spin":""}),"Rotate"]}),i.jsxs(je,{variant:"info",size:"md",onClick:S,disabled:!!d,className:"gap-1.5",children:[i.jsx(uf,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(If,{size:12}),m?"Confirm":"Kill"]})]})}):i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsxs(je,{variant:"info",size:"md",onClick:S,disabled:!!d,className:"gap-1.5",children:[i.jsx(uf,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(Xc,{size:12}),m?"Confirm":"Remove"]})]})}function D_({agent:t}){var Xe;const n=W(D=>D.addToast),[s,l]=v.useState([]),[o,u]=v.useState(t.model||""),[d,O]=v.useState(""),[m,p]=v.useState(t.effort||"default"),[x,g]=v.useState(!1),[b,S]=v.useState(""),[Q,k]=v.useState(null),[$,j]=v.useState(!1),[P,N]=v.useState(null),[Z,U]=v.useState(t.routingMode||"auto"),[C,X]=v.useState([]),[T,G]=v.useState("hr"),[E,se]=v.useState("1"),[re,ge]=v.useState(!1),de=t.status==="running"||t.status==="starting";v.useEffect(()=>{K(),ee.get("/skills/installed").then(ie=>X(Array.isArray(ie)?ie:ie.skills||[])).catch(()=>{});function D(){K()}return window.addEventListener("groove:providers-changed",D),()=>window.removeEventListener("groove:providers-changed",D)},[]);function K(){ee.get("/providers").then(D=>l(Array.isArray(D)?D:[])).catch(()=>{})}v.useEffect(()=>{u(t.model||""),ee.get(`/agents/${t.id}/routing/recommend`).then(D=>{U((D==null?void 0:D.mode)||"fixed")}).catch(()=>{})},[t.id,t.model]);const z=s.find(D=>D.id===t.provider);async function B(D,ie){u(ie);try{await ee.patch(`/agents/${t.id}`,{model:ie}),n("success",`Model → ${ie}`)}catch(ze){n("error","Model swap failed",ze.message)}}async function J(D){try{await ee.patch(`/agents/${t.id}`,{workingDir:D}),n("success",`Working dir → ${D.split("/").pop()||D}`)}catch(ie){n("error","Update failed",ie.message)}}async function fe(D){p(D);try{await ee.patch(`/agents/${t.id}`,{effort:D}),n("success",`Effort → ${D}`)}catch(ie){n("error","Update failed",ie.message)}}async function te(D){if(!D.trim())return;const ie=[...t.scope||[],D.trim()];try{await ee.patch(`/agents/${t.id}`,{scope:ie}),O("")}catch(ze){n("error","Scope update failed",ze.message)}}async function Ae(D){const ie=(t.scope||[]).filter((ze,Ot)=>Ot!==D);try{await ee.patch(`/agents/${t.id}`,{scope:ie})}catch(ze){n("error","Scope update failed",ze.message)}}async function Se(D){if(b.trim())try{await ee.post(`/credentials/${D}`,{key:b.trim()}),n("success",`API key set for ${D}`),S(""),k(null),K(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(ie){n("error","Failed to set key",ie.message)}}const ve=t.spawnedAt||t.createdAt;return i.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[i.jsx(ha,{label:"Active Model",icon:Vf,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),i.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(z==null?void 0:z.name)||t.provider})]}),(z==null?void 0:z.canHotSwap)&&de&&i.jsxs(We,{variant:"accent",className:"text-2xs gap-1",children:[i.jsx(Na,{size:8})," Hot-swap"]})]}),((Xe=z==null?void 0:z.models)==null?void 0:Xe.length)>1&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:z.models.map(D=>{const ie=D.id===t.model,ze=!de||z.canHotSwap;return i.jsx("button",{onClick:()=>ze&&B(t.provider,D.id),disabled:!ze,className:le("px-2.5 py-1 rounded-md text-xs font-mono transition-all",ze?"cursor-pointer":"cursor-not-allowed opacity-40",ie?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:D.name||D.id},D.id)})})]})}),i.jsx(L_,{agent:t}),i.jsxs(ha,{label:"Providers",icon:Ig,description:"Click a provider to see its models and connection status.",children:[i.jsx("div",{className:"space-y-1.5",children:s.map(D=>{const ie=D.id===t.provider,ze=D.installed||D.hasKey,Ot=P===D.id,_e=D.models||[];return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[i.jsxs("button",{onClick:()=>N(Ot?null:D.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[i.jsx("div",{className:le("w-2 h-2 rounded-full flex-shrink-0",ze?"bg-success":"bg-text-4")}),i.jsx("span",{className:le("text-xs font-semibold font-sans flex-1 text-left",ze?"text-text-0":"text-text-3"),children:D.name||D.id}),ie&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Active"}),!ze&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:D.authType==="local"?"Not installed":"No key"}),i.jsx(In,{size:12,className:le("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&D.authType==="local"&&i.jsx("div",{className:"border-t border-border-subtle",children:i.jsx(nS,{isInstalled:ze,onModelChange:K})}),Ot&&D.authType!=="local"&&i.jsxs("div",{className:"border-t border-border-subtle",children:[(!ze||D.hasKey)&&i.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===D.id?i.jsxs("div",{className:"flex gap-1.5",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx("input",{value:b,onChange:tt=>S(tt.target.value),onKeyDown:tt=>tt.key==="Enter"&&Se(D.id),type:$?"text":"password",placeholder:`${D.name||D.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>j(!$),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:$?i.jsx(Gf,{size:10}):i.jsx(oi,{size:10})})]}),i.jsx(je,{variant:"primary",size:"sm",onClick:()=>Se(D.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{k(null),S("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):i.jsxs("button",{onClick:()=>{k(D.id),S(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(uc,{size:10}),ze?"Update API key":"Add API key to enable"]})}),ze&&_e.length>0&&_e.map(tt=>{const bt=D.id===t.provider&&tt.id===t.model,vt=!de;return i.jsxs("button",{onClick:()=>vt&&B(D.id,tt.id),disabled:!vt,className:le("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle",vt?"cursor-pointer hover:bg-surface-4/50":"cursor-not-allowed opacity-40",bt?"text-accent":"text-text-2"),children:[bt?i.jsx(oa,{size:11,className:"text-accent flex-shrink-0"}):i.jsx("div",{className:"w-[11px]"}),i.jsx("span",{className:"font-mono flex-1 truncate",children:tt.name||tt.id}),i.jsx(We,{variant:bt?"accent":"default",className:"text-2xs",children:tt.tier})]},tt.id)})]})]},D.id)})}),de&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[i.jsx(cn,{size:10}),i.jsx("span",{children:"Stop agent to switch providers."})]})]}),i.jsx(ha,{label:"Working Directory",icon:Hr,description:"The root directory this agent operates in.",children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:t.workingDir||"Project root"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[i.jsx(Tb,{size:14})," Browse"]})]})}),i.jsx(ha,{label:"Permission Mode",icon:Fr,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:i.jsx(FO,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async D=>{try{await ee.patch(`/agents/${t.id}`,{permission:D}),n("success",`Permission → ${D==="full"?"Full Send":"Agent Approve"}`)}catch(ie){n("error","Update failed",ie.message)}}})}),i.jsxs(ha,{label:"Model Routing",icon:rc,description:"How Groove selects models for this agent's tasks.",children:[i.jsx(FO,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:Z,onChange:async D=>{U(D);try{await ee.post(`/agents/${t.id}/routing`,{mode:D}),n("success",`Routing → ${D}`)}catch(ie){n("error","Update failed",ie.message)}}}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[Z==="fixed"&&"Uses the selected model for all tasks.",Z==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",Z==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),i.jsx(ha,{label:"File Scope",icon:Fr,description:"Restrict which files this agent can access. Empty = unrestricted.",children:i.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((D,ie)=>i.jsxs(We,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[D,i.jsx("button",{onClick:()=>Ae(ie),className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},ie)),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("input",{value:d,onChange:D=>O(D.target.value),onKeyDown:D=>D.key==="Enter"&&te(d),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),i.jsx("button",{onClick:()=>te(d),disabled:!d.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:i.jsx(Fn,{size:12})})]})]})}),i.jsx(ha,{label:"Effort Level",icon:Pb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:i.jsx(FO,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:m,onChange:fe})}),i.jsx(ha,{label:"Agent Details",icon:Ig,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),i.jsx("span",{className:"text-xs text-text-1 font-sans",children:ve?Ct(ve):"—"})]}),t.sessionId&&i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),i.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),i.jsx(ha,{label:"Skills",icon:Vb,description:"Attach installed skills to this agent's context.",children:i.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(D=>i.jsxs(We,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[D,i.jsx("button",{onClick:async()=>{try{await ee.delete(`/agents/${t.id}/skills/${D}`),n("success",`Detached ${D}`)}catch(ie){n("error","Detach failed",ie.message)}},className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},D)),C.filter(D=>!(t.skills||[]).includes(D.id)).length>0&&i.jsxs("div",{className:"relative group",children:[i.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:i.jsx(Fn,{size:12})}),i.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:C.filter(D=>!(t.skills||[]).includes(D.id)).map(D=>i.jsx("button",{onClick:async()=>{try{await ee.post(`/agents/${t.id}/skills/${D.id}`),n("success",`Attached ${D.name||D.id}`)}catch(ie){n("error","Attach failed",ie.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:D.name||D.id},D.id))})]}),(t.skills||[]).length===0&&C.length===0&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),i.jsx(ha,{label:"Schedule",icon:Hg,description:"Run this agent on a recurring schedule.",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),i.jsx("input",{value:E,onChange:D=>se(D.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(D=>i.jsx("button",{onClick:()=>G(D.value),className:le("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",T===D.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:D.label},D.value))}),i.jsxs(je,{variant:"primary",size:"sm",disabled:re||!E||parseInt(E,10)<1,onClick:async()=>{const D=parseInt(E,10);if(!D||D<1)return;const ie={min:D===1?"* * * * *":`*/${D} * * * *`,hr:D===1?"0 * * * *":`0 */${D} * * *`,day:D===1?"0 0 * * *":`0 0 */${D} * *`,wk:`0 0 * * ${D===1?"1":"*"}`,mo:`0 0 ${D===1?"1":D} * *`};ge(!0);try{await ee.post("/schedules",{name:`${t.name} schedule`,cron:ie[T],agentConfig:{role:t.role,provider:t.provider,model:t.model,scope:t.scope,workingDir:t.workingDir,prompt:t.prompt}}),n("success",`Scheduled every ${D} ${T}`)}catch(ze){n("error","Schedule failed",ze.message)}ge(!1)},className:"h-7 px-3 text-2xs gap-1",children:[i.jsx(Hg,{size:10}),re?"...":"Set"]})]})}),t.prompt&&i.jsx(ha,{label:"Original Prompt",icon:rc,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:t.prompt})}),i.jsx(AS,{open:x,onOpenChange:g,currentPath:t.workingDir||"/",onSelect:J})]})}const h0=[];function W_({data:t,isAlive:n,height:s=48}){const l=v.useRef(null);return v.useEffect(()=>{const o=l.current;if(!o||!t.length)return;const u=o.getContext("2d"),d=window.devicePixelRatio||1,O=o.clientWidth,m=o.clientHeight;o.width=O*d,o.height=m*d,u.scale(d,d),u.clearRect(0,0,O,m);const p=t.map(Q=>Q.v),x=Math.min(...p),b=Math.max(...p,1)-x||1;u.beginPath(),u.moveTo(0,m),t.forEach((Q,k)=>{const $=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;u.lineTo($,j)}),u.lineTo(O,m),u.closePath();const S=u.createLinearGradient(0,0,0,m);if(S.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),S.addColorStop(1,"rgba(0,0,0,0)"),u.fillStyle=S,u.fill(),u.beginPath(),u.strokeStyle=n?me.accent:me.text3,u.lineWidth=1.5,t.forEach((Q,k)=>{const $=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;k===0?u.moveTo($,j):u.lineTo($,j)}),u.stroke(),t.length>1&&n){const Q=t[t.length-1],k=O-1,$=m-(Q.v-x)/b*(m-4)-2;u.beginPath(),u.arc(k,$,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc(k,$,2.5,0,Math.PI*2),u.fillStyle=me.accent,u.fill()}},[t,n]),i.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:i.jsx("canvas",{ref:l,className:"w-full h-full"})})}function Go({icon:t,label:n,value:s,color:l,sub:o}){return i.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(t,{size:12,className:l||"text-text-3"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),i.jsx("div",{className:le("text-lg font-bold font-mono tabular-nums",l||"text-text-0"),children:s}),o&&i.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function B_({score:t}){const n=Math.min(Math.max(t,0),100);let s=me.success,l="Healthy";return n<40?(s=me.danger,l="Degraded"):n<70&&(s=me.warning,l="Fair"),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[i.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[i.jsx(OT,{size:11}),"Session Health"]}),i.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),i.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),i.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:l})]})}function H_(t){const n=(t||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:$b,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:oi,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:ql,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:ui,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:cn,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:Na,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:cf,color:"text-success"}:{icon:oc,color:"text-text-4"}}function I_({agent:t}){const n=W(d=>d.tokenTimeline[t.id])||h0,s=W(d=>d.activityLog[t.id])||h0,l=t.status==="running"||t.status==="starting",o=v.useMemo(()=>{if(n.length<2)return 0;const d=n.slice(-10),O=(d[d.length-1].t-d[0].t)/6e4,m=d[d.length-1].v-d[0].v;return O>0?Math.round(m/O):0},[n]),u=v.useMemo(()=>{const d=t.contextUsage||0;let O=100;return d>90?O-=50:d>70?O-=25:d>50&&(O-=10),o>5e3?O-=15:o>3e3&&(O-=8),t.status==="crashed"&&(O=10),t.status==="completed"&&(O=95),Math.max(0,Math.min(100,O))},[t.contextUsage,t.status,o]);return i.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),l&&i.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),i.jsx(W_,{data:n,isAlive:l,height:56})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsx(Go,{icon:J5,label:"Burn Rate",value:o>0?`${ct(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),i.jsx(Go,{icon:V5,label:"Cost",value:Ac(t.costUsd||0),color:"text-text-0"}),i.jsx(Go,{icon:El,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),i.jsx(Go,{icon:Na,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),i.jsx(B_,{score:u}),t.prompt&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),i.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:t.prompt})]}),s.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),i.jsxs("div",{className:"space-y-0 relative",children:[i.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((d,O)=>{const m=H_(d.text),p=m.icon;return i.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[i.jsx("div",{className:le("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:i.jsx(p,{size:9,className:m.color})}),i.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:d.text}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:Ct(d.timestamp)})]},O)})]})]})]})}function F_({agent:t}){const n=W(P=>P.addToast),[s,l]=v.useState([]),[o,u]=v.useState(""),[d,O]=v.useState(null),[m,p]=v.useState(""),[x,g]=v.useState(""),[b,S]=v.useState(!1);async function Q(){try{const P=await ee.get(`/agents/${t.id}/mdfiles`);l(P.files||[]),u(P.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[t.id]);async function k(P){try{const N=await ee.get(`/agents/${t.id}/mdfiles/read?path=${encodeURIComponent(P)}`);p(N.content||""),g(N.content||""),O(P)}catch(N){n("error","Failed to read file",N.message)}}async function $(){if(d){S(!0);try{await ee.put(`/agents/${t.id}/mdfiles/write`,{path:d,content:m}),g(m),n("success",`Saved ${d}`)}catch(P){n("error","Save failed",P.message)}S(!1)}}const j=m!==x;return d?i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[i.jsx("button",{onClick:()=>{O(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:i.jsx(wb,{size:14})}),i.jsx(Dn,{size:12,className:"text-accent"}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:d}),j&&i.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),i.jsxs("button",{onClick:$,disabled:!j||b,className:le("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[i.jsx(LT,{size:10}),b?"Saving...":"Save"]})]}),i.jsx("textarea",{value:m,onChange:P=>p(P.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[i.jsx(Dn,{size:12,className:"text-text-3"}),i.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),i.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(es,{size:11})})]}),o&&i.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),i.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[i.jsx(Dn,{size:20,className:"text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),i.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):i.jsx("div",{className:"py-1",children:s.map(P=>i.jsxs("button",{onClick:()=>k(P.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[i.jsx(Dn,{size:13,className:"text-accent flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:P.name}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:P.path})]}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:P.size>1024?`${(P.size/1024).toFixed(1)}K`:`${P.size}B`})]},P.path))})})]})}const K_={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},J_={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},eZ=[{id:"command",label:"Chat",icon:ci},{id:"config",label:"Config",icon:Mb},{id:"telemetry",label:"Monitor",icon:rc},{id:"mdfiles",label:"Files",icon:Dn}];function tZ({agent:t}){const n=W(m=>m.addToast),[s,l]=v.useState(!1),[o,u]=v.useState(t.name),d=v.useRef(null);async function O(){const m=o.trim();if(!m||m===t.name){l(!1);return}try{await ee.patch(`/agents/${t.id}`,{name:m.replace(/\s+/g,"-")}),n("success",`Renamed → ${m}`)}catch(p){n("error","Rename failed",p.message),u(t.name)}l(!1)}return s?i.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[i.jsx("input",{ref:d,value:o,onChange:m=>u(m.target.value),onKeyDown:m=>{m.key==="Enter"&&O(),m.key==="Escape"&&(u(t.name),l(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),i.jsx("button",{onClick:O,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:i.jsx(oa,{size:12})}),i.jsx("button",{onClick:()=>{u(t.name),l(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[i.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),i.jsx("button",{onClick:()=>{u(t.name),l(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:i.jsx(Cc,{size:10})})]})}function aZ(){const t=W(p=>p.detailPanel),n=W(p=>p.agents),[s,l]=v.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const o=n.find(p=>p.id===t.agentId);if(!o)return null;const u=o.status==="running"||o.status==="starting",d=Math.round((o.contextUsage||0)*100),O=o.spawnedAt||o.createdAt,m=O?Math.floor((Date.now()-new Date(O).getTime())/1e3):0;return Lb(o.role),i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex-shrink-0",children:[i.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(tZ,{agent:o}),i.jsx(We,{variant:K_[o.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:J_[o.status]||o.status})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[i.jsx("span",{className:"capitalize",children:o.role}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[ct(o.tokensUsed||0)," tok"]}),d>0&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{className:le(d>80?"text-danger":d>60?"text-warning":"text-text-3"),children:[d,"% ctx"]})]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{children:Ec(m)})]})]}),i.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:eZ.map(p=>{const x=p.icon,g=s===p.id;return i.jsxs("button",{onClick:()=>l(p.id),className:le("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",g?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[i.jsx(x,{size:11}),p.label]},p.id)})})]}),i.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&i.jsx(G_,{agent:o}),s==="config"&&i.jsx(D_,{agent:o}),s==="telemetry"&&i.jsx(I_,{agent:o}),s==="mdfiles"&&i.jsx(F_,{agent:o})]})]})}const wf=v.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("input",{ref:u,className:le("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));wf.displayName="Input";const VS=v.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("textarea",{ref:u,className:le("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));VS.displayName="Textarea";const nZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Eb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:qb,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:Wf,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:dn,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:Ff,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:_5,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Dn,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Fr,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:M5,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:kT,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:y5,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:dP,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:uT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Rc,tier:"Medium"}];function sZ(){const t=W(E=>E.detailPanel),n=W(E=>E.closeDetail),s=W(E=>E.spawnAgent),l=W(E=>E.fetchProviders),o=(t==null?void 0:t.type)==="spawn",[u,d]=v.useState(""),[O,m]=v.useState(""),[p,x]=v.useState(""),[g,b]=v.useState(""),[S,Q]=v.useState(""),[k,$]=v.useState(""),[j,P]=v.useState([]),[N,Z]=v.useState(!1);v.useEffect(()=>{o&&(l().then(E=>{P(Array.isArray(E)?E:E.providers||[])}).catch(()=>{}),d(""),m(""),x(""),b(""),Q(""),$(""))},[o,l]);const U=u||O,C=j.find(E=>E.id===g),X=(C==null?void 0:C.models)||[],T=j.filter(E=>E.installed);async function G(){if(U){Z(!0);try{const E={role:U,...p&&{name:p.replace(/\s+/g,"-")},...g&&{provider:g},...S&&{model:S},...k&&{prompt:k}};await s(E),n()}catch{}Z(!1)}}return i.jsx(ES,{open:o,onOpenChange:E=>{E||n()},children:i.jsx(qS,{title:"Spawn Agent",width:480,children:i.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[i.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:nZ.map(E=>{const se=Lb(E.id),re=u===E.id;return i.jsxs("button",{onClick:()=>{d(E.id),m("")},className:le("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",re?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[i.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:se.bg},children:i.jsx(E.icon,{size:16,style:{color:se.text}})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans",children:E.label}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.desc})]})]},E.id)})}),i.jsx("div",{className:"mt-3",children:i.jsx(wf,{placeholder:"or type a custom role...",value:O,onChange:E=>{m(E.target.value),d("")},className:"text-xs"})})]}),U&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),i.jsx(wf,{label:"Name (optional)",value:p,onChange:E=>x(E.target.value),placeholder:`${U}-1`}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:g,onChange:E=>{b(E.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[i.jsx("option",{value:"",children:"Auto"}),T.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(In,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:S,onChange:E=>Q(E.target.value),disabled:!g,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[i.jsx("option",{value:"",children:"Auto"}),X.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(In,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&C&&i.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:C.hasKey?i.jsx(We,{variant:"success",children:"API key set"}):C.authType==="subscription"?i.jsx(We,{variant:"accent",children:"Subscription"}):i.jsxs(We,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),i.jsx(VS,{label:"Prompt (optional)",value:k,onChange:E=>$(E.target.value),placeholder:"What should this agent work on?",rows:3})]})]}),i.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[U&&i.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:"Spawning"}),i.jsx(We,{variant:"accent",children:U}),g&&i.jsxs("span",{children:["on ",(C==null?void 0:C.name)||g]}),p&&i.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),i.jsx(je,{variant:"primary",size:"lg",onClick:G,disabled:!U||N,className:"w-full",children:N?"Spawning...":"Spawn Agent"})]})]})})})}function m0({title:t,icon:n,defaultOpen:s=!1,badge:l,children:o,className:u}){const[d,O]=v.useState(s);return i.jsxs("div",{className:le("border-t border-border-subtle",u),children:[i.jsxs("button",{onClick:()=>O(!d),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[i.jsx(ii,{size:12,className:le("text-text-4 transition-transform duration-200 flex-shrink-0",d&&"rotate-90")}),n&&i.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),l&&i.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:l})]}),d&&i.jsx("div",{className:"px-5 pb-4",children:o})]})}function lZ(){const t=W(g=>g.journalistStatus),n=W(g=>g.fetchJournalist),s=W(g=>g.triggerJournalistCycle),[l,o]=v.useState(!0),[u,d]=v.useState(!1);v.useEffect(()=>{n().then(()=>o(!1));const g=setInterval(n,1e4);return()=>clearInterval(g)},[n]);async function O(){d(!0);try{await s()}catch{}d(!1)}if(l)return i.jsxs("div",{className:"p-5 space-y-4",children:[i.jsx(Nt,{className:"h-6 w-32 rounded"}),i.jsx(Nt,{className:"h-20 rounded-md"}),i.jsx(Nt,{className:"h-20 rounded-md"})]});const m=t||{},p=m.lastSynthesis,x=m.history||[];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Ir,{size:16,className:"text-accent"}),i.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:O,disabled:u,className:"gap-1.5 text-2xs",children:[i.jsx(es,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(rc,{size:10}),i.jsxs("span",{children:[m.cycleCount||0," cycles"]})]}),m.lastCycleTime&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(oc,{size:10}),i.jsxs("span",{children:["Last: ",Ct(m.lastCycleTime)]})]}),i.jsx(We,{variant:m.cycleCount>0?"success":"default",className:"text-2xs",children:m.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(Dn,{size:12,className:"text-text-3"}),"Latest Summary"]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&i.jsx(m0,{title:"Project Map",icon:ST,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&i.jsx(m0,{title:"Decisions Log",icon:Dn,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),x.length>0&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(oc,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>i.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[i.jsxs(We,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),i.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),i.jsx("span",{className:"text-text-4 font-sans ml-auto",children:Ct(g.timestamp)})]}),g.summary&&i.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&i.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[i.jsx(Ir,{size:28,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),i.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function rZ({children:t,height:n,onHeightChange:s,visible:l,fullHeight:o,tabs:u,activeTab:d,onSelectTab:O,onAddTab:m,onCloseTab:p,onToggleFullHeight:x,onMinimize:g}){const b=v.useRef(!1),S=v.useRef(0),Q=v.useRef(0),k=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,S.current=j.clientY,Q.current=n;function P(Z){if(!b.current)return;const U=S.current-Z.clientY,C=Math.min(Math.max(Q.current+U,120),600);s(C)}function N(){b.current=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",N)}document.addEventListener("mousemove",P),document.addEventListener("mouseup",N)},[n,s,o]);if(!l)return null;const $=u||[{id:"default",label:"Terminal"}];return i.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:k}),i.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[i.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[$.map(j=>i.jsxs("button",{onClick:()=>O==null?void 0:O(j.id),className:le("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===d?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[i.jsx(ui,{size:10}),i.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),$.length>1&&i.jsx("button",{onClick:P=>{P.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:9})})]},j.id)),i.jsx("button",{onClick:m,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:i.jsx(Fn,{size:11})})]}),i.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?i.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:i.jsx(NT,{size:12})}):i.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:i.jsx(jT,{size:12})})})]}),i.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const iZ={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let KO=0;function oZ({tabId:t,visible:n}){const s=v.useRef(null),l=v.useRef(null),o=v.useRef(null),u=v.useRef(null),d=v.useRef(!1);return v.useEffect(()=>{if(!s.current||d.current)return;d.current=!0;const O=new Gj({theme:iZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),m=new Lj;O.loadAddon(m),O.loadAddon(new Dj),O.open(s.current),l.current=O,requestAnimationFrame(()=>m.fit());function p(){const g=W.getState().ws;if(!g||g.readyState!==WebSocket.OPEN){setTimeout(p,500);return}g.send(JSON.stringify({type:"terminal:spawn",cols:O.cols,rows:O.rows}));function b(S){let Q;try{Q=JSON.parse(S.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?O.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(O.write(`\r
|
|
584
|
+
`),lang:O});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const d=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:d}),l++;continue}if(/^\s*[-*]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*[-*]\s/.test(s[l]);)d.push(s[l].replace(/^\s*[-*]\s+/,"").trim()),l++;n.push({type:"list",items:d});continue}if(/^\s*\d+[\.)]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*\d+[\.)]\s/.test(s[l]);)d.push(s[l].replace(/^\s*\d+[\.)]\s+/,"").trim()),l++;n.push({type:"numbered",items:d});continue}if(!o.trim()){l++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),l++;continue}const u=[];for(;l<s.length&&s[l].trim()&&!/^#{1,3}\s/.test(s[l])&&!/^\s*[-*]\s/.test(s[l])&&!/^\s*\d+[\.)]\s/.test(s[l])&&!s[l].trimStart().startsWith("```");)u.push(s[l].trim()),l++;u.length>0&&n.push({type:"para",content:u.join(" ")})}return i.jsx("div",{className:"space-y-2",children:n.map((o,u)=>{switch(o.type){case"heading":return i.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[i.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),i.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:i.jsx(vl,{text:o.content})})]},u);case"list":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),i.jsx("span",{className:"min-w-0",children:i.jsx(vl,{text:d})})]},O))},u);case"numbered":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[O+1,"."]}),i.jsx("span",{className:"min-w-0",children:i.jsx(vl,{text:d})})]},O))},u);case"code":return i.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},u);case"note":return i.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[i.jsx(cn,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:i.jsx(vl,{text:o.content})})]},u);case"para":default:return i.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:i.jsx(vl,{text:o.content})},u)}})})}function Z_({text:t}){if(!t)return null;const n=t.split(/(```[\s\S]*?```)/g);return i.jsx("span",{children:n.map((s,l)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return i.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},l)}return i.jsx("span",{children:i.jsx(vl,{text:s})},l)})})}function A_({msg:t}){const n=t.isQuery;return i.jsx("div",{className:"flex justify-end pl-8",children:i.jsxs("div",{className:"max-w-[90%]",children:[n&&i.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[i.jsx(ic,{size:9,className:"text-info"}),i.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),i.jsx("div",{className:le("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:i.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:i.jsx(Z_,{text:t.text})})}),i.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:Ct(t.timestamp)})]})})}function E_({msg:t,agent:n}){var u,d;const[s,l]=v.useState(((u=t.text)==null?void 0:u.length)>600),o=((d=t.text)==null?void 0:d.length)>600;return i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:Ct(t.timestamp)})]}),i.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:i.jsx(__,{text:s?t.text.slice(0,600)+"...":t.text})}),s&&i.jsxs("button",{onClick:()=>l(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(In,{size:11}),"Show full response"]}),o&&!s&&i.jsxs("button",{onClick:()=>l(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(In,{size:11,className:"rotate-180"}),"Collapse"]})]})}function q_({msg:t}){return i.jsxs("div",{className:"flex items-center gap-3 py-2",children:[i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:t.text}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function M_({entries:t}){var u;const[n,s]=v.useState(0);v.useEffect(()=>{if(t.length<=1)return;const d=setInterval(()=>s(O=>(O+1)%t.length),1500);return()=>clearInterval(d)},[t.length]);const l=t[Math.min(n,t.length-1)];YS(l.text);const o=((u=l.text)==null?void 0:u.length)>60?l.text.slice(0,60)+"...":l.text;return i.jsxs("div",{className:"ml-7 flex items-center gap-2 px-3 py-2 rounded-md bg-surface-3/50 border border-border-subtle/30",children:[i.jsx(Df,{size:11,className:"text-accent animate-spin flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate flex-1 min-w-0 transition-opacity duration-300",children:o}),t.length>1&&i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:t.length})]})}function Y_({agent:t}){const n=D(m=>m.activityLog[t.id])||wf,s=n[n.length-1],l=s?YS(s.text):null,o=(l==null?void 0:l.icon)||dn,u=s&&Date.now()-s.timestamp<1e4,d=u&&s.text?s.text.length>60?s.text.slice(0,60)+"...":s.text:null,O=Math.round((t.contextUsage||0)*100);return i.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[i.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?i.jsxs(i.Fragment,{children:[i.jsx(o,{size:10,className:le(l.color,"flex-shrink-0")}),i.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:d})]}):i.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),i.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:V_(t.tokensUsed)}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${O}%`,background:O>=75?"var(--color-danger)":O>=50?"var(--color-warning)":"var(--color-accent)"}})}),i.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[O,"%"]})]})]})]})}function V_(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function U_({agent:t}){const[n,s]=v.useState([]),l=[{text:`Initializing ${t.name}`,delay:0},{text:`Role: ${t.role}`,delay:400},{text:`Provider: ${t.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return v.useEffect(()=>{const o=l.map((u,d)=>setTimeout(()=>s(O=>[...O,d]),u.delay));return()=>o.forEach(clearTimeout)},[]),i.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[i.jsxs("div",{className:"relative w-9 h-9",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),i.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:l.map((o,u)=>{const d=n.includes(u),O=u===l.length-1;return i.jsxs("div",{className:le("flex items-center gap-2.5 transition-all duration-300",d?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[i.jsx("span",{className:le("w-1 h-1 rounded-full flex-shrink-0",O&&d?"bg-accent":d?"bg-text-3":"bg-transparent")}),i.jsx("span",{className:le("text-[11px] font-mono",O&&d?"text-accent":"text-text-3"),children:o.text}),O&&d&&i.jsxs("span",{className:"flex gap-0.5 ml-1",children:[i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},u)})})]})}function G_({agent:t}){const n=D(j=>j.chatHistory[t.id])||wf,s=D(j=>j.activityLog[t.id])||wf,l=D(j=>j.instructAgent),o=D(j=>j.queryAgent),[u,d]=v.useState(""),[O,m]=v.useState("instruct"),[p,x]=v.useState(!1),g=v.useRef(null),b=v.useRef(null),S=v.useMemo(()=>{var X;const j=[],P=new Set;for(const $ of n){const W=`${$.from}:${(X=$.text)==null?void 0:X.slice(0,100)}`;j.find(ne=>{var re;return ne.kind==="chat"&&`${ne.from}:${(re=ne.text)==null?void 0:re.slice(0,100)}`===W&&Math.abs(ne.ts-$.timestamp)<5e3})||(j.push({...$,kind:"chat",ts:$.timestamp}),P.add($.text))}const N=P,Z=s.slice(-30);for(const $ of Z)($.text||"").trim()&&!N.has($.text)&&j.push({...$,kind:"activity",ts:$.timestamp});j.sort(($,W)=>$.ts-W.ts);const U=[];let C=[];for(const $ of j)$.kind==="activity"?C.push($):(C.length>0&&(U.push({kind:"activity-group",entries:C}),C=[]),U.push($));return C.length>0&&U.push({kind:"activity-group",entries:C}),U},[n,s]);v.useEffect(()=>{g.current&&requestAnimationFrame(()=>{g.current&&(g.current.scrollTop=g.current.scrollHeight)})},[S.length]);async function Q(){var P;const j=u.trim();if(!(!j||p)){if(j==="/rotate"){const N=D.getState().rotateAgent;d("");try{await N(t.id)}catch{}return}d(""),x(!0);try{O==="query"?await o(t.id,j):await l(t.id,j)}catch{}x(!1),(P=b.current)==null||P.focus()}}function k(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),Q())}const T=t.status==="running"||t.status==="starting";return i.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[T&&i.jsx(Y_,{agent:t}),i.jsxs("div",{ref:g,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!S.some(j=>j.from==="agent"||j.kind==="activity-group")&&(T?i.jsx(U_,{agent:t}):i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[i.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:i.jsx(ci,{size:18,className:"text-text-4"})}),i.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),S.map((j,P)=>j.kind==="activity-group"?i.jsx(M_,{entries:j.entries},`grp-${P}`):j.from==="user"?i.jsx(A_,{msg:j},`msg-${P}`):j.from==="system"?i.jsx(q_,{msg:j},`msg-${P}`):i.jsx(E_,{msg:j,agent:t},`msg-${P}`)),p&&i.jsxs("div",{className:"flex items-center gap-2 ml-7 py-2",children:[i.jsx("div",{className:"w-5 h-5 rounded-md bg-accent/12 flex items-center justify-center",children:i.jsx(dn,{size:10,className:"text-accent"})}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-2 rounded-2xl bg-surface-2/60 border border-border-subtle",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"400ms"}})]})]})]}),i.jsxs("div",{className:"border-t border-border px-4 py-3 bg-surface-1/50 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[i.jsxs("button",{onClick:()=>m("instruct"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(Cc,{size:10}),"Instruct"]}),i.jsxs("button",{onClick:()=>m("query"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(ic,{size:10}),"Query"]}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:O==="query"?"Read-only — agent keeps working":T?"Directs the agent":"Continues the session"})]}),i.jsxs("div",{className:le("flex items-end gap-2 rounded-xl border bg-surface-0 p-1 transition-colors",O==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[i.jsx("textarea",{ref:b,value:u,onChange:j=>d(j.target.value),onKeyDown:k,placeholder:O==="query"?"Ask about this agent's work...":T?"Send an instruction...":"Continue this session...",rows:1,className:le("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none","max-h-[120px] min-h-[36px]"),style:{height:Math.min(Math.max(36,u.split(`
|
|
585
|
+
`).length*20),120)}}),i.jsx("button",{onClick:Q,disabled:!u.trim()||p,className:le("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",u.trim()?O==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:p?i.jsx(Df,{size:15,className:"animate-spin"}):i.jsx(If,{size:15})})]})]})]})}function KO({options:t,value:n,onChange:s}){return i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(l=>i.jsx("button",{onClick:()=>s(l.value),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===l.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:l.label},l.value))})}function ha({label:t,icon:n,children:s,description:l}){return i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&i.jsx(n,{size:13,className:"text-text-3"}),t]}),l&&i.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:l})]}),s]})}function L_({agent:t}){const n=D(Q=>Q.killAgent),s=D(Q=>Q.rotateAgent),l=D(Q=>Q.spawnAgent),o=D(Q=>Q.closeDetail),u=D(Q=>Q.addToast),[d,O]=v.useState(null),[m,p]=v.useState(!1),x=t.status==="running"||t.status==="starting";async function g(){O("rotate");try{await s(t.id)}catch{}O(null)}async function b(){if(!m){p(!0),setTimeout(()=>p(!1),3e3);return}O("kill");try{await n(t.id),o()}catch{}O(null),p(!1)}async function S(){O("clone");try{await l({role:t.role,provider:t.provider,model:t.model,name:`${t.name}-clone`,scope:t.scope,workingDir:t.workingDir}),u("success",`Cloned ${t.name}`)}catch{}O(null)}return x?i.jsx("div",{className:"space-y-2",children:i.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:d==="rotate",className:"gap-1.5",children:[i.jsx(El,{size:12,className:d==="rotate"?"animate-spin":""}),"Rotate"]}),i.jsxs(je,{variant:"info",size:"md",onClick:S,disabled:!!d,className:"gap-1.5",children:[i.jsx(df,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(Ff,{size:12}),m?"Confirm":"Kill"]})]})}):i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsxs(je,{variant:"info",size:"md",onClick:S,disabled:!!d,className:"gap-1.5",children:[i.jsx(df,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(Xc,{size:12}),m?"Confirm":"Remove"]})]})}function D_({agent:t}){var Xe;const n=D(L=>L.addToast),[s,l]=v.useState([]),[o,u]=v.useState(t.model||""),[d,O]=v.useState(""),[m,p]=v.useState(t.effort||"default"),[x,g]=v.useState(!1),[b,S]=v.useState(""),[Q,k]=v.useState(null),[T,j]=v.useState(!1),[P,N]=v.useState(null),[Z,U]=v.useState(t.routingMode||"auto"),[C,X]=v.useState([]),[$,W]=v.useState("hr"),[E,ne]=v.useState("1"),[re,xe]=v.useState(!1),ie=t.status==="running"||t.status==="starting";v.useEffect(()=>{J(),ee.get("/skills/installed").then(oe=>X(Array.isArray(oe)?oe:oe.skills||[])).catch(()=>{});function L(){J()}return window.addEventListener("groove:providers-changed",L),()=>window.removeEventListener("groove:providers-changed",L)},[]);function J(){ee.get("/providers").then(L=>l(Array.isArray(L)?L:[])).catch(()=>{})}v.useEffect(()=>{u(t.model||""),ee.get(`/agents/${t.id}/routing/recommend`).then(L=>{U((L==null?void 0:L.mode)||"fixed")}).catch(()=>{})},[t.id,t.model]);const z=s.find(L=>L.id===t.provider);async function B(L,oe){u(oe);try{await ee.patch(`/agents/${t.id}`,{model:oe}),n("success",`Model → ${oe}`)}catch(ze){n("error","Model swap failed",ze.message)}}async function I(L){try{await ee.patch(`/agents/${t.id}`,{workingDir:L}),n("success",`Working dir → ${L.split("/").pop()||L}`)}catch(oe){n("error","Update failed",oe.message)}}async function fe(L){p(L);try{await ee.patch(`/agents/${t.id}`,{effort:L}),n("success",`Effort → ${L}`)}catch(oe){n("error","Update failed",oe.message)}}async function te(L){if(!L.trim())return;const oe=[...t.scope||[],L.trim()];try{await ee.patch(`/agents/${t.id}`,{scope:oe}),O("")}catch(ze){n("error","Scope update failed",ze.message)}}async function Ae(L){const oe=(t.scope||[]).filter((ze,Ot)=>Ot!==L);try{await ee.patch(`/agents/${t.id}`,{scope:oe})}catch(ze){n("error","Scope update failed",ze.message)}}async function Se(L){if(b.trim())try{await ee.post(`/credentials/${L}`,{key:b.trim()}),n("success",`API key set for ${L}`),S(""),k(null),J(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(oe){n("error","Failed to set key",oe.message)}}const ve=t.spawnedAt||t.createdAt;return i.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[i.jsx(ha,{label:"Active Model",icon:Uf,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),i.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(z==null?void 0:z.name)||t.provider})]}),(z==null?void 0:z.canHotSwap)&&ie&&i.jsxs(We,{variant:"accent",className:"text-2xs gap-1",children:[i.jsx(Na,{size:8})," Hot-swap"]})]}),((Xe=z==null?void 0:z.models)==null?void 0:Xe.length)>1&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:z.models.map(L=>{const oe=L.id===t.model,ze=!ie||z.canHotSwap;return i.jsx("button",{onClick:()=>ze&&B(t.provider,L.id),disabled:!ze,className:le("px-2.5 py-1 rounded-md text-xs font-mono transition-all",ze?"cursor-pointer":"cursor-not-allowed opacity-40",oe?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:L.name||L.id},L.id)})})]})}),i.jsx(L_,{agent:t}),i.jsxs(ha,{label:"Providers",icon:Fg,description:"Click a provider to see its models and connection status.",children:[i.jsx("div",{className:"space-y-1.5",children:s.map(L=>{const oe=L.id===t.provider,ze=L.installed||L.hasKey,Ot=P===L.id,_e=L.models||[];return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[i.jsxs("button",{onClick:()=>N(Ot?null:L.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[i.jsx("div",{className:le("w-2 h-2 rounded-full flex-shrink-0",ze?"bg-success":"bg-text-4")}),i.jsx("span",{className:le("text-xs font-semibold font-sans flex-1 text-left",ze?"text-text-0":"text-text-3"),children:L.name||L.id}),oe&&i.jsx(We,{variant:"accent",className:"text-2xs",children:"Active"}),!ze&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:L.authType==="local"?"Not installed":"No key"}),i.jsx(In,{size:12,className:le("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&L.authType==="local"&&i.jsx("div",{className:"border-t border-border-subtle",children:i.jsx(nS,{isInstalled:ze,onModelChange:J})}),Ot&&L.authType!=="local"&&i.jsxs("div",{className:"border-t border-border-subtle",children:[(!ze||L.hasKey)&&i.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===L.id?i.jsxs("div",{className:"flex gap-1.5",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx("input",{value:b,onChange:tt=>S(tt.target.value),onKeyDown:tt=>tt.key==="Enter"&&Se(L.id),type:T?"text":"password",placeholder:`${L.name||L.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>j(!T),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:T?i.jsx(Lf,{size:10}):i.jsx(oi,{size:10})})]}),i.jsx(je,{variant:"primary",size:"sm",onClick:()=>Se(L.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{k(null),S("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):i.jsxs("button",{onClick:()=>{k(L.id),S(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(uc,{size:10}),ze?"Update API key":"Add API key to enable"]})}),ze&&_e.length>0&&_e.map(tt=>{const bt=L.id===t.provider&&tt.id===t.model,vt=!ie;return i.jsxs("button",{onClick:()=>vt&&B(L.id,tt.id),disabled:!vt,className:le("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle",vt?"cursor-pointer hover:bg-surface-4/50":"cursor-not-allowed opacity-40",bt?"text-accent":"text-text-2"),children:[bt?i.jsx(oa,{size:11,className:"text-accent flex-shrink-0"}):i.jsx("div",{className:"w-[11px]"}),i.jsx("span",{className:"font-mono flex-1 truncate",children:tt.name||tt.id}),i.jsx(We,{variant:bt?"accent":"default",className:"text-2xs",children:tt.tier})]},tt.id)})]})]},L.id)})}),ie&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[i.jsx(cn,{size:10}),i.jsx("span",{children:"Stop agent to switch providers."})]})]}),i.jsx(ha,{label:"Working Directory",icon:Hr,description:"The root directory this agent operates in.",children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:t.workingDir||"Project root"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[i.jsx(Tb,{size:14})," Browse"]})]})}),i.jsx(ha,{label:"Permission Mode",icon:Fr,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:i.jsx(KO,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async L=>{try{await ee.patch(`/agents/${t.id}`,{permission:L}),n("success",`Permission → ${L==="full"?"Full Send":"Agent Approve"}`)}catch(oe){n("error","Update failed",oe.message)}}})}),i.jsxs(ha,{label:"Model Routing",icon:rc,description:"How Groove selects models for this agent's tasks.",children:[i.jsx(KO,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:Z,onChange:async L=>{U(L);try{await ee.post(`/agents/${t.id}/routing`,{mode:L}),n("success",`Routing → ${L}`)}catch(oe){n("error","Update failed",oe.message)}}}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[Z==="fixed"&&"Uses the selected model for all tasks.",Z==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",Z==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),i.jsx(ha,{label:"File Scope",icon:Fr,description:"Restrict which files this agent can access. Empty = unrestricted.",children:i.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((L,oe)=>i.jsxs(We,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[L,i.jsx("button",{onClick:()=>Ae(oe),className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},oe)),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("input",{value:d,onChange:L=>O(L.target.value),onKeyDown:L=>L.key==="Enter"&&te(d),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),i.jsx("button",{onClick:()=>te(d),disabled:!d.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:i.jsx(Fn,{size:12})})]})]})}),i.jsx(ha,{label:"Effort Level",icon:Pb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:i.jsx(KO,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:m,onChange:fe})}),i.jsx(ha,{label:"Agent Details",icon:Fg,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),i.jsx("span",{className:"text-xs text-text-1 font-sans",children:ve?Ct(ve):"—"})]}),t.sessionId&&i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),i.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),i.jsx(ha,{label:"Skills",icon:Vb,description:"Attach installed skills to this agent's context.",children:i.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(L=>i.jsxs(We,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[L,i.jsx("button",{onClick:async()=>{try{await ee.delete(`/agents/${t.id}/skills/${L}`),n("success",`Detached ${L}`)}catch(oe){n("error","Detach failed",oe.message)}},className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},L)),C.filter(L=>!(t.skills||[]).includes(L.id)).length>0&&i.jsxs("div",{className:"relative group",children:[i.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:i.jsx(Fn,{size:12})}),i.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:C.filter(L=>!(t.skills||[]).includes(L.id)).map(L=>i.jsx("button",{onClick:async()=>{try{await ee.post(`/agents/${t.id}/skills/${L.id}`),n("success",`Attached ${L.name||L.id}`)}catch(oe){n("error","Attach failed",oe.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:L.name||L.id},L.id))})]}),(t.skills||[]).length===0&&C.length===0&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),i.jsx(ha,{label:"Schedule",icon:Ig,description:"Run this agent on a recurring schedule.",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),i.jsx("input",{value:E,onChange:L=>ne(L.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(L=>i.jsx("button",{onClick:()=>W(L.value),className:le("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",$===L.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:L.label},L.value))}),i.jsxs(je,{variant:"primary",size:"sm",disabled:re||!E||parseInt(E,10)<1,onClick:async()=>{const L=parseInt(E,10);if(!L||L<1)return;const oe={min:L===1?"* * * * *":`*/${L} * * * *`,hr:L===1?"0 * * * *":`0 */${L} * * *`,day:L===1?"0 0 * * *":`0 0 */${L} * *`,wk:`0 0 * * ${L===1?"1":"*"}`,mo:`0 0 ${L===1?"1":L} * *`};xe(!0);try{await ee.post("/schedules",{name:`${t.name} schedule`,cron:oe[$],agentConfig:{role:t.role,provider:t.provider,model:t.model,scope:t.scope,workingDir:t.workingDir,prompt:t.prompt}}),n("success",`Scheduled every ${L} ${$}`)}catch(ze){n("error","Schedule failed",ze.message)}xe(!1)},className:"h-7 px-3 text-2xs gap-1",children:[i.jsx(Ig,{size:10}),re?"...":"Set"]})]})}),t.prompt&&i.jsx(ha,{label:"Original Prompt",icon:rc,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:t.prompt})}),i.jsx(AS,{open:x,onOpenChange:g,currentPath:t.workingDir||"/",onSelect:I})]})}const h0=[];function W_({data:t,isAlive:n,height:s=48}){const l=v.useRef(null);return v.useEffect(()=>{const o=l.current;if(!o||!t.length)return;const u=o.getContext("2d"),d=window.devicePixelRatio||1,O=o.clientWidth,m=o.clientHeight;o.width=O*d,o.height=m*d,u.scale(d,d),u.clearRect(0,0,O,m);const p=t.map(Q=>Q.v),x=Math.min(...p),b=Math.max(...p,1)-x||1;u.beginPath(),u.moveTo(0,m),t.forEach((Q,k)=>{const T=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;u.lineTo(T,j)}),u.lineTo(O,m),u.closePath();const S=u.createLinearGradient(0,0,0,m);if(S.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),S.addColorStop(1,"rgba(0,0,0,0)"),u.fillStyle=S,u.fill(),u.beginPath(),u.strokeStyle=n?me.accent:me.text3,u.lineWidth=1.5,t.forEach((Q,k)=>{const T=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;k===0?u.moveTo(T,j):u.lineTo(T,j)}),u.stroke(),t.length>1&&n){const Q=t[t.length-1],k=O-1,T=m-(Q.v-x)/b*(m-4)-2;u.beginPath(),u.arc(k,T,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc(k,T,2.5,0,Math.PI*2),u.fillStyle=me.accent,u.fill()}},[t,n]),i.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:i.jsx("canvas",{ref:l,className:"w-full h-full"})})}function Go({icon:t,label:n,value:s,color:l,sub:o}){return i.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(t,{size:12,className:l||"text-text-3"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),i.jsx("div",{className:le("text-lg font-bold font-mono tabular-nums",l||"text-text-0"),children:s}),o&&i.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function B_({score:t}){const n=Math.min(Math.max(t,0),100);let s=me.success,l="Healthy";return n<40?(s=me.danger,l="Degraded"):n<70&&(s=me.warning,l="Fair"),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[i.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[i.jsx(OT,{size:11}),"Session Health"]}),i.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),i.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),i.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:l})]})}function H_(t){const n=(t||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:$b,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:oi,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:ql,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:ui,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:cn,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:Na,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:uf,color:"text-success"}:{icon:oc,color:"text-text-4"}}function I_({agent:t}){const n=D(d=>d.tokenTimeline[t.id])||h0,s=D(d=>d.activityLog[t.id])||h0,l=t.status==="running"||t.status==="starting",o=v.useMemo(()=>{if(n.length<2)return 0;const d=n.slice(-10),O=(d[d.length-1].t-d[0].t)/6e4,m=d[d.length-1].v-d[0].v;return O>0?Math.round(m/O):0},[n]),u=v.useMemo(()=>{const d=t.contextUsage||0;let O=100;return d>90?O-=50:d>70?O-=25:d>50&&(O-=10),o>5e3?O-=15:o>3e3&&(O-=8),t.status==="crashed"&&(O=10),t.status==="completed"&&(O=95),Math.max(0,Math.min(100,O))},[t.contextUsage,t.status,o]);return i.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),l&&i.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),i.jsx(W_,{data:n,isAlive:l,height:56})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsx(Go,{icon:J5,label:"Burn Rate",value:o>0?`${ct(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),i.jsx(Go,{icon:V5,label:"Cost",value:Ac(t.costUsd||0),color:"text-text-0"}),i.jsx(Go,{icon:El,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),i.jsx(Go,{icon:Na,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),i.jsx(B_,{score:u}),t.prompt&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),i.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:t.prompt})]}),s.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),i.jsxs("div",{className:"space-y-0 relative",children:[i.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((d,O)=>{const m=H_(d.text),p=m.icon;return i.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[i.jsx("div",{className:le("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:i.jsx(p,{size:9,className:m.color})}),i.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:d.text}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:Ct(d.timestamp)})]},O)})]})]})]})}function F_({agent:t}){const n=D(P=>P.addToast),[s,l]=v.useState([]),[o,u]=v.useState(""),[d,O]=v.useState(null),[m,p]=v.useState(""),[x,g]=v.useState(""),[b,S]=v.useState(!1);async function Q(){try{const P=await ee.get(`/agents/${t.id}/mdfiles`);l(P.files||[]),u(P.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[t.id]);async function k(P){try{const N=await ee.get(`/agents/${t.id}/mdfiles/read?path=${encodeURIComponent(P)}`);p(N.content||""),g(N.content||""),O(P)}catch(N){n("error","Failed to read file",N.message)}}async function T(){if(d){S(!0);try{await ee.put(`/agents/${t.id}/mdfiles/write`,{path:d,content:m}),g(m),n("success",`Saved ${d}`)}catch(P){n("error","Save failed",P.message)}S(!1)}}const j=m!==x;return d?i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[i.jsx("button",{onClick:()=>{O(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:i.jsx(wb,{size:14})}),i.jsx(Dn,{size:12,className:"text-accent"}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:d}),j&&i.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),i.jsxs("button",{onClick:T,disabled:!j||b,className:le("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[i.jsx(LT,{size:10}),b?"Saving...":"Save"]})]}),i.jsx("textarea",{value:m,onChange:P=>p(P.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[i.jsx(Dn,{size:12,className:"text-text-3"}),i.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),i.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(es,{size:11})})]}),o&&i.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),i.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[i.jsx(Dn,{size:20,className:"text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),i.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):i.jsx("div",{className:"py-1",children:s.map(P=>i.jsxs("button",{onClick:()=>k(P.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[i.jsx(Dn,{size:13,className:"text-accent flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:P.name}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:P.path})]}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:P.size>1024?`${(P.size/1024).toFixed(1)}K`:`${P.size}B`})]},P.path))})})]})}const K_={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},J_={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},eZ=[{id:"command",label:"Chat",icon:ci},{id:"config",label:"Config",icon:Mb},{id:"telemetry",label:"Monitor",icon:rc},{id:"mdfiles",label:"Files",icon:Dn}];function tZ({agent:t}){const n=D(m=>m.addToast),[s,l]=v.useState(!1),[o,u]=v.useState(t.name),d=v.useRef(null);async function O(){const m=o.trim();if(!m||m===t.name){l(!1);return}try{await ee.patch(`/agents/${t.id}`,{name:m.replace(/\s+/g,"-")}),n("success",`Renamed → ${m}`)}catch(p){n("error","Rename failed",p.message),u(t.name)}l(!1)}return s?i.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[i.jsx("input",{ref:d,value:o,onChange:m=>u(m.target.value),onKeyDown:m=>{m.key==="Enter"&&O(),m.key==="Escape"&&(u(t.name),l(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),i.jsx("button",{onClick:O,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:i.jsx(oa,{size:12})}),i.jsx("button",{onClick:()=>{u(t.name),l(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[i.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),i.jsx("button",{onClick:()=>{u(t.name),l(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:i.jsx(Cc,{size:10})})]})}function aZ(){const t=D(p=>p.detailPanel),n=D(p=>p.agents),[s,l]=v.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const o=n.find(p=>p.id===t.agentId);if(!o)return null;const u=o.status==="running"||o.status==="starting",d=Math.round((o.contextUsage||0)*100),O=o.spawnedAt||o.createdAt,m=O?Math.floor((Date.now()-new Date(O).getTime())/1e3):0;return Lb(o.role),i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex-shrink-0",children:[i.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(tZ,{agent:o}),i.jsx(We,{variant:K_[o.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:J_[o.status]||o.status})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[i.jsx("span",{className:"capitalize",children:o.role}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[ct(o.tokensUsed||0)," tok"]}),d>0&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{className:le(d>80?"text-danger":d>60?"text-warning":"text-text-3"),children:[d,"% ctx"]})]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{children:Ec(m)})]})]}),i.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:eZ.map(p=>{const x=p.icon,g=s===p.id;return i.jsxs("button",{onClick:()=>l(p.id),className:le("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",g?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[i.jsx(x,{size:11}),p.label]},p.id)})})]}),i.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&i.jsx(G_,{agent:o}),s==="config"&&i.jsx(D_,{agent:o}),s==="telemetry"&&i.jsx(I_,{agent:o}),s==="mdfiles"&&i.jsx(F_,{agent:o})]})]})}const kf=v.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("input",{ref:u,className:le("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));kf.displayName="Input";const VS=v.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("textarea",{ref:u,className:le("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));VS.displayName="Textarea";const nZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Eb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:qb,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:Bf,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:dn,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:Kf,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:_5,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Dn,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Fr,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:M5,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:kT,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:y5,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:dP,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:uT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Rc,tier:"Medium"}];function sZ(){const t=D(E=>E.detailPanel),n=D(E=>E.closeDetail),s=D(E=>E.spawnAgent),l=D(E=>E.fetchProviders),o=(t==null?void 0:t.type)==="spawn",[u,d]=v.useState(""),[O,m]=v.useState(""),[p,x]=v.useState(""),[g,b]=v.useState(""),[S,Q]=v.useState(""),[k,T]=v.useState(""),[j,P]=v.useState([]),[N,Z]=v.useState(!1);v.useEffect(()=>{o&&(l().then(E=>{P(Array.isArray(E)?E:E.providers||[])}).catch(()=>{}),d(""),m(""),x(""),b(""),Q(""),T(""))},[o,l]);const U=u||O,C=j.find(E=>E.id===g),X=(C==null?void 0:C.models)||[],$=j.filter(E=>E.installed);async function W(){if(U){Z(!0);try{const E={role:U,...p&&{name:p.replace(/\s+/g,"-")},...g&&{provider:g},...S&&{model:S},...k&&{prompt:k}};await s(E),n()}catch{}Z(!1)}}return i.jsx(ES,{open:o,onOpenChange:E=>{E||n()},children:i.jsx(qS,{title:"Spawn Agent",width:480,children:i.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[i.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:nZ.map(E=>{const ne=Lb(E.id),re=u===E.id;return i.jsxs("button",{onClick:()=>{d(E.id),m("")},className:le("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",re?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[i.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:ne.bg},children:i.jsx(E.icon,{size:16,style:{color:ne.text}})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans",children:E.label}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.desc})]})]},E.id)})}),i.jsx("div",{className:"mt-3",children:i.jsx(kf,{placeholder:"or type a custom role...",value:O,onChange:E=>{m(E.target.value),d("")},className:"text-xs"})})]}),U&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),i.jsx(kf,{label:"Name (optional)",value:p,onChange:E=>x(E.target.value),placeholder:`${U}-1`}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:g,onChange:E=>{b(E.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[i.jsx("option",{value:"",children:"Auto"}),$.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(In,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:S,onChange:E=>Q(E.target.value),disabled:!g,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[i.jsx("option",{value:"",children:"Auto"}),X.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(In,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&C&&i.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:C.hasKey?i.jsx(We,{variant:"success",children:"API key set"}):C.authType==="subscription"?i.jsx(We,{variant:"accent",children:"Subscription"}):i.jsxs(We,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),i.jsx(VS,{label:"Prompt (optional)",value:k,onChange:E=>T(E.target.value),placeholder:"What should this agent work on?",rows:3})]})]}),i.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[U&&i.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:"Spawning"}),i.jsx(We,{variant:"accent",children:U}),g&&i.jsxs("span",{children:["on ",(C==null?void 0:C.name)||g]}),p&&i.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),i.jsx(je,{variant:"primary",size:"lg",onClick:W,disabled:!U||N,className:"w-full",children:N?"Spawning...":"Spawn Agent"})]})]})})})}function m0({title:t,icon:n,defaultOpen:s=!1,badge:l,children:o,className:u}){const[d,O]=v.useState(s);return i.jsxs("div",{className:le("border-t border-border-subtle",u),children:[i.jsxs("button",{onClick:()=>O(!d),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[i.jsx(ii,{size:12,className:le("text-text-4 transition-transform duration-200 flex-shrink-0",d&&"rotate-90")}),n&&i.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),l&&i.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:l})]}),d&&i.jsx("div",{className:"px-5 pb-4",children:o})]})}function lZ(){const t=D(g=>g.journalistStatus),n=D(g=>g.fetchJournalist),s=D(g=>g.triggerJournalistCycle),[l,o]=v.useState(!0),[u,d]=v.useState(!1);v.useEffect(()=>{n().then(()=>o(!1));const g=setInterval(n,1e4);return()=>clearInterval(g)},[n]);async function O(){d(!0);try{await s()}catch{}d(!1)}if(l)return i.jsxs("div",{className:"p-5 space-y-4",children:[i.jsx(Nt,{className:"h-6 w-32 rounded"}),i.jsx(Nt,{className:"h-20 rounded-md"}),i.jsx(Nt,{className:"h-20 rounded-md"})]});const m=t||{},p=m.lastSynthesis,x=m.history||[];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Ir,{size:16,className:"text-accent"}),i.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:O,disabled:u,className:"gap-1.5 text-2xs",children:[i.jsx(es,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),i.jsx(Ht,{className:"flex-1",children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(rc,{size:10}),i.jsxs("span",{children:[m.cycleCount||0," cycles"]})]}),m.lastCycleTime&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(oc,{size:10}),i.jsxs("span",{children:["Last: ",Ct(m.lastCycleTime)]})]}),i.jsx(We,{variant:m.cycleCount>0?"success":"default",className:"text-2xs",children:m.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(Dn,{size:12,className:"text-text-3"}),"Latest Summary"]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&i.jsx(m0,{title:"Project Map",icon:ST,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&i.jsx(m0,{title:"Decisions Log",icon:Dn,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),x.length>0&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(oc,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>i.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[i.jsxs(We,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),i.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),i.jsx("span",{className:"text-text-4 font-sans ml-auto",children:Ct(g.timestamp)})]}),g.summary&&i.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&i.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[i.jsx(Ir,{size:28,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),i.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function rZ({children:t,height:n,onHeightChange:s,visible:l,fullHeight:o,tabs:u,activeTab:d,onSelectTab:O,onAddTab:m,onCloseTab:p,onToggleFullHeight:x,onMinimize:g}){const b=v.useRef(!1),S=v.useRef(0),Q=v.useRef(0),k=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,S.current=j.clientY,Q.current=n;function P(Z){if(!b.current)return;const U=S.current-Z.clientY,C=Math.min(Math.max(Q.current+U,120),600);s(C)}function N(){b.current=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",N)}document.addEventListener("mousemove",P),document.addEventListener("mouseup",N)},[n,s,o]);if(!l)return null;const T=u||[{id:"default",label:"Terminal"}];return i.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:k}),i.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[i.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[T.map(j=>i.jsxs("button",{onClick:()=>O==null?void 0:O(j.id),className:le("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===d?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[i.jsx(ui,{size:10}),i.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),T.length>1&&i.jsx("button",{onClick:P=>{P.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:9})})]},j.id)),i.jsx("button",{onClick:m,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:i.jsx(Fn,{size:11})})]}),i.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?i.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:i.jsx(NT,{size:12})}):i.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:i.jsx(jT,{size:12})})})]}),i.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const iZ={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let JO=0;function oZ({tabId:t,visible:n}){const s=v.useRef(null),l=v.useRef(null),o=v.useRef(null),u=v.useRef(null),d=v.useRef(!1);return v.useEffect(()=>{if(!s.current||d.current)return;d.current=!0;const O=new Gj({theme:iZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),m=new Lj;O.loadAddon(m),O.loadAddon(new Dj),O.open(s.current),l.current=O,requestAnimationFrame(()=>m.fit());function p(){const g=D.getState().ws;if(!g||g.readyState!==WebSocket.OPEN){setTimeout(p,500);return}g.send(JSON.stringify({type:"terminal:spawn",cols:O.cols,rows:O.rows}));function b(S){let Q;try{Q=JSON.parse(S.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?O.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(O.write(`\r
|
|
586
586
|
\x1B[90m[session ended]\x1B[0m\r
|
|
587
|
-
`),o.current=null)}g.addEventListener("message",b),u.current={ws:g,handler:b},O.onData(S=>{const Q=
|
|
587
|
+
`),o.current=null)}g.addEventListener("message",b),u.current={ws:g,handler:b},O.onData(S=>{const Q=D.getState().ws;(Q==null?void 0:Q.readyState)===WebSocket.OPEN&&o.current&&Q.send(JSON.stringify({type:"terminal:input",id:o.current,data:S}))}),O.onResize(({cols:S,rows:Q})=>{const k=D.getState().ws;(k==null?void 0:k.readyState)===WebSocket.OPEN&&o.current&&k.send(JSON.stringify({type:"terminal:resize",id:o.current,rows:Q,cols:S}))})}p();const x=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{m.fit()}catch{}})});return x.observe(s.current),()=>{x.disconnect();const g=D.getState().ws;(g==null?void 0:g.readyState)===WebSocket.OPEN&&o.current&&g.send(JSON.stringify({type:"terminal:kill",id:o.current})),u.current&&u.current.ws.removeEventListener("message",u.current.handler),O.dispose(),d.current=!1}},[]),v.useEffect(()=>{n&&l.current&&requestAnimationFrame(()=>{var O,m,p,x,g;try{(g=(x=(p=(m=(O=l.current._addonManager)==null?void 0:O._addons)==null?void 0:m[0])==null?void 0:p.instance)==null?void 0:x.fit)==null||g.call(x)}catch{}})},[n]),i.jsx("div",{ref:s,className:"w-full h-full",style:{display:n?"block":"none"}})}function cZ(){const t=D(b=>b.terminalVisible),n=D(b=>b.terminalHeight),s=D(b=>b.setTerminalVisible),l=D(b=>b.setTerminalHeight),o=D(b=>b.terminalFullHeight),u=D(b=>b.setTerminalFullHeight),[d,O]=v.useState([{id:"term-0",label:"Terminal"}]),[m,p]=v.useState("term-0"),x=v.useCallback(()=>{JO++;const b=`term-${JO}`;O(S=>[...S,{id:b,label:`Terminal ${JO+1}`}]),p(b)},[]),g=v.useCallback(b=>{O(S=>{const Q=S.filter(k=>k.id!==b);if(Q.length===0)return s(!1),S;if(m===b){const k=S.findIndex(j=>j.id===b),T=Q[Math.min(k,Q.length-1)];p(T.id)}return Q})},[m,s]);return i.jsx(rZ,{visible:t,height:n,onHeightChange:l,fullHeight:o,tabs:d,activeTab:m,onSelectTab:p,onAddTab:x,onCloseTab:g,onToggleFullHeight:()=>u(!0),onMinimize:()=>u(!1),children:d.map(b=>i.jsx(oZ,{tabId:b.id,visible:b.id===m},b.id))})}class uZ extends Vn.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?i.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[i.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),i.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),i.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),i.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-6 px-4 py-2 bg-accent text-surface-0 rounded-md font-medium text-sm cursor-pointer",children:"Try Again"})]}):this.props.children}}function dZ(){const t=D(o=>o.activeView),n=D(o=>o.detailPanel);let s;switch(t){case"agents":s=i.jsx(t1,{});break;case"editor":s=i.jsx(tC,{});break;case"dashboard":s=i.jsx(VC,{});break;case"marketplace":s=i.jsx(rX,{});break;case"teams":s=i.jsx(dX,{});break;case"settings":s=i.jsx(X_,{});break;default:s=i.jsx(t1,{})}let l=null;if(n)switch(n.type){case"agent":l=i.jsx(aZ,{});break;case"journalist":l=i.jsx(lZ,{});break;case"spawn":l=null;break}return i.jsxs(AP,{detailContent:l,terminalContent:i.jsx(cZ,{}),children:[s,i.jsx(sZ,{})]})}function OZ(){return i.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[i.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),i.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function fZ(){const t=D(s=>s.connect),n=D(s=>s.hydrated);return v.useEffect(()=>{t()},[t]),n?i.jsx(uZ,{children:i.jsx(dZ,{})}):i.jsx(OZ,{})}Fj.createRoot(document.getElementById("root")).render(i.jsx(v.StrictMode,{children:i.jsx(fZ,{})}));
|