groove-dev 0.19.4 → 0.19.6
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/CHANGELOG.md +17 -0
- package/node_modules/@groove-dev/cli/bin/groove.js +1 -1
- package/node_modules/@groove-dev/gui/.groove/codebase-index.json +3 -3
- package/node_modules/@groove-dev/gui/.groove/timeline.json +144 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-CJUQO4Kb.js +537 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-saapU4LM.css +1 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/app.jsx +2 -0
- package/node_modules/@groove-dev/gui/src/components/layout/activity-bar.jsx +1 -1
- package/node_modules/@groove-dev/gui/src/stores/groove.js +1 -1
- package/node_modules/@groove-dev/gui/src/views/settings.jsx +400 -0
- package/package.json +1 -1
- package/packages/cli/bin/groove.js +1 -1
- package/packages/gui/dist/assets/index-CJUQO4Kb.js +537 -0
- package/packages/gui/dist/assets/index-saapU4LM.css +1 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/src/app.jsx +2 -0
- package/packages/gui/src/components/layout/activity-bar.jsx +1 -1
- package/packages/gui/src/stores/groove.js +1 -1
- package/packages/gui/src/views/settings.jsx +400 -0
- package/node_modules/@groove-dev/gui/.groove/daemon.host +0 -1
- package/node_modules/@groove-dev/gui/.groove/daemon.pid +0 -1
- package/node_modules/@groove-dev/gui/AGENTS_REGISTRY.md +0 -9
- package/node_modules/@groove-dev/gui/dist/assets/index-DgIS4D-j.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-eysbqREF.js +0 -537
- package/packages/gui/dist/assets/index-DgIS4D-j.css +0 -1
- package/packages/gui/dist/assets/index-eysbqREF.js +0 -537
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
import{r as D2,c as W2,a as y,j as c,b as a0,A as n0,m as s0,R as An}from"./vendor-C0HXlhrU.js";import{r as B2,a as l0,R as H2,H as qn,P as Mn,b as I2,u as F2,c as K2,d as J2,i as e$,B as t$}from"./reactflow-BQPfi37R.js";import{P as r0,N as df,a as Kr,D as a$,b as tn,T as da,I as hc,s as $s,t as z,L as bs,i as i0,c as o0,d as c0,e as Jr,f as kl,g as n$,h as ml,j as qo,k as ws,l as mc,m as Be,E as vl,n as ma,o as Yn,p as u0,q as ff,r as O0,u as s$,v as l$,w as r$,x as Ed,y as i$,z as Mr,A as o$,B as c$,C as u$,F as d0,G as O$,H as lg,J as d$,K as f$,M as h$,O as m$,Q as p$,R as x$,S as g$,U as b$,V as v$,W as y$,X as Q$,Y as S$,Z as $$}from"./codemirror-BBL3i_JW.js";import{D as w$,o as j$,L as T$}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const O of u.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&r(O)}).observe(document,{childList:!0,subtree:!0});function s(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=s(i);fetch(i.href,u)}})();var IO={exports:{}},kr={},FO={exports:{}},KO={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* scheduler.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var rg;function k$(){return rg||(rg=1,(function(t){function n(_,I){var F=_.length;_.push(I);e:for(;0<F;){var he=F-1>>>1,K=_[he];if(0<i(K,I))_[he]=I,_[F]=K,F=he;else break e}}function s(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var I=_[0],F=_.pop();if(F!==I){_[0]=F;e:for(var he=0,K=_.length,Ue=K>>>1;he<Ue;){var Re=2*(he+1)-1,ye=_[Re],Ye=Re+1,V=_[Ye];if(0>i(ye,F))Ye<K&&0>i(V,ye)?(_[he]=V,_[Ye]=F,he=Ye):(_[he]=ye,_[Re]=F,he=Re);else if(Ye<K&&0>i(V,F))_[he]=V,_[Ye]=F,he=Ye;else break e}}return I}function i(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.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 O=Date,f=O.now();t.unstable_now=function(){return O.now()-f}}var m=[],p=[],g=1,x=null,b=3,Q=!1,j=!1,$=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function C(_){for(var I=s(p);I!==null;){if(I.callback===null)r(p);else if(I.startTime<=_)r(p),I.sortIndex=I.expirationTime,n(m,I);else break;I=s(p)}}function q(_){if($=!1,C(_),!j)if(s(m)!==null)j=!0,X||(X=!0,fe());else{var I=s(p);I!==null&&pe(q,I.startTime-_)}}var X=!1,G=-1,U=5,te=-1;function H(){return w?!0:!(t.unstable_now()-te<U)}function Oe(){if(w=!1,X){var _=t.unstable_now();te=_;var I=!0;try{e:{j=!1,$&&($=!1,N(G),G=-1),Q=!0;var F=b;try{t:{for(C(_),x=s(m);x!==null&&!(x.expirationTime>_&&H());){var he=x.callback;if(typeof he=="function"){x.callback=null,b=x.priorityLevel;var K=he(x.expirationTime<=_);if(_=t.unstable_now(),typeof K=="function"){x.callback=K,C(_),I=!0;break t}x===s(m)&&r(m),C(_)}else r(m);x=s(m)}if(x!==null)I=!0;else{var Ue=s(p);Ue!==null&&pe(q,Ue.startTime-_),I=!1}}break e}finally{x=null,b=F,Q=!1}I=void 0}}finally{I?fe():X=!1}}}var fe;if(typeof Z=="function")fe=function(){Z(Oe)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,me=ve.port2;ve.port1.onmessage=Oe,fe=function(){me.postMessage(null)}}else fe=function(){k(Oe,0)};function pe(_,I){G=k(function(){_(t.unstable_now())},I)}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(_){_.callback=null},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(_){switch(b){case 1:case 2:case 3:var I=3;break;default:I=b}var F=b;b=I;try{return _()}finally{b=F}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=b;b=_;try{return I()}finally{b=F}},t.unstable_scheduleCallback=function(_,I,F){var he=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?he+F:he):F=he,_){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=F+K,_={id:g++,callback:I,priorityLevel:_,startTime:F,expirationTime:K,sortIndex:-1},F>he?(_.sortIndex=F,n(p,_),s(m)===null&&_===s(p)&&($?(N(G),G=-1):$=!0,pe(q,F-he))):(_.sortIndex=K,n(m,_),j||Q||(j=!0,X||(X=!0,fe()))),_},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(_){var I=b;return function(){var F=b;b=I;try{return _.apply(this,arguments)}finally{b=F}}}})(KO)),KO}var ig;function P$(){return ig||(ig=1,FO.exports=k$()),FO.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-dom-client.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var og;function z$(){if(og)return kr;og=1;var t=P$(),n=D2(),s=B2();function r(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}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 i(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var a=e,l=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(l=a.return),e=a.return;while(e)}return a.tag===3?l:null}function O(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 f(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(r(188))}function p(e){var a=e.alternate;if(!a){if(a=u(e),a===null)throw Error(r(188));return a!==e?null:e}for(var l=e,o=a;;){var d=l.return;if(d===null)break;var h=d.alternate;if(h===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===l)return m(d),e;if(h===o)return m(d),a;h=h.sibling}throw Error(r(188))}if(l.return!==o.return)l=d,o=h;else{for(var v=!1,S=d.child;S;){if(S===l){v=!0,l=d,o=h;break}if(S===o){v=!0,o=d,l=h;break}S=S.sibling}if(!v){for(S=h.child;S;){if(S===l){v=!0,l=h,o=d;break}if(S===o){v=!0,o=h,l=d;break}S=S.sibling}if(!v)throw Error(r(189))}}if(l.alternate!==o)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:a}function g(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=g(e),a!==null)return a;e=e.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),Oe=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=Oe&&e[Oe]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case q:return"Suspense";case X:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case Z:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case C:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return a=e.displayName||null,a!==null?a:me(e.type)||"Memo";case U:a=e._payload,e=e._init;try{return me(e(a))}catch{}}return null}var pe=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},he=[],K=-1;function Ue(e){return{current:e}}function Re(e){0>K||(e.current=he[K],he[K]=null,K--)}function ye(e,a){K++,he[K]=e.current,e.current=a}var Ye=Ue(null),V=Ue(null),ie=Ue(null),ke=Ue(null);function Ot(e,a){switch(ye(ie,a),ye(V,e),ye(Ye,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?kx(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=kx(a),e=Px(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Re(Ye),ye(Ye,e)}function Xe(){Re(Ye),Re(V),Re(ie)}function et(e){e.memoizedState!==null&&ye(ke,e);var a=Ye.current,l=Px(a,e.type);a!==l&&(ye(V,e),ye(Ye,l))}function gt(e){V.current===e&&(Re(Ye),Re(V)),ke.current===e&&(Re(ke),$r._currentValue=F)}var bt,Bt;function vt(e){if(bt===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);bt=a&&a[1]||"",Bt=-1<l.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+bt+e+Bt}var _l=!1;function Zl(e,a){if(!e||_l)return"";_l=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Y){var M=Y}Reflect.construct(e,[],B)}else{try{B.call()}catch(Y){M=Y}e.call(B.prototype)}}else{try{throw Error()}catch(Y){M=Y}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(Y){if(Y&&M&&typeof Y.stack=="string")return[Y.stack,M.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),v=h[0],S=h[1];if(v&&S){var T=v.split(`
|
|
20
|
+
`),E=S.split(`
|
|
21
|
+
`);for(d=o=0;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;for(;d<E.length&&!E[d].includes("DetermineComponentFrameRoot");)d++;if(o===T.length||d===E.length)for(o=T.length-1,d=E.length-1;1<=o&&0<=d&&T[o]!==E[d];)d--;for(;1<=o&&0<=d;o--,d--)if(T[o]!==E[d]){if(o!==1||d!==1)do if(o--,d--,0>d||T[o]!==E[d]){var D=`
|
|
22
|
+
`+T[o].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=o&&0<=d);break}}}finally{_l=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vt(l):""}function Zc(e,a){switch(e.tag){case 26:case 27:case 5:return vt(e.type);case 16:return vt("Lazy");case 13:return e.child!==a&&a!==null?vt("Suspense Fallback"):vt("Suspense");case 19:return vt("SuspenseList");case 0:case 15:return Zl(e.type,!1);case 11:return Zl(e.type.render,!1);case 1:return Zl(e.type,!0);case 31:return vt("Activity");default:return""}}function li(e){try{var a="",l=null;do a+=Zc(e,l),l=e,e=e.return;while(e);return a}catch(o){return`
|
|
23
|
+
Error generating stack: `+o.message+`
|
|
24
|
+
`+o.stack}}var rn=Object.prototype.hasOwnProperty,Cc=t.unstable_scheduleCallback,Ac=t.unstable_cancelCallback,$Q=t.unstable_shouldYield,wQ=t.unstable_requestPaint,zt=t.unstable_now,jQ=t.unstable_getCurrentPriorityLevel,rh=t.unstable_ImmediatePriority,ih=t.unstable_UserBlockingPriority,ri=t.unstable_NormalPriority,TQ=t.unstable_LowPriority,oh=t.unstable_IdlePriority,kQ=t.log,PQ=t.unstable_setDisableYieldValue,Cl=null,Nt=null;function on(e){if(typeof kQ=="function"&&PQ(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Cl,e)}catch{}}var Rt=Math.clz32?Math.clz32:RQ,zQ=Math.log,NQ=Math.LN2;function RQ(e){return e>>>=0,e===0?32:31-(zQ(e)/NQ|0)|0}var ii=256,oi=262144,ci=4194304;function In(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 ui(e,a,l){var o=e.pendingLanes;if(o===0)return 0;var d=0,h=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~h,o!==0?d=In(o):(v&=S,v!==0?d=In(v):l||(l=S&~e,l!==0&&(d=In(l))))):(S=o&~h,S!==0?d=In(S):v!==0?d=In(v):l||(l=o&~e,l!==0&&(d=In(l)))),d===0?0:a!==0&&a!==d&&(a&h)===0&&(h=d&-d,l=a&-a,h>=l||h===32&&(l&4194048)!==0)?a:d}function Al(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function XQ(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 ch(){var e=ci;return ci<<=1,(ci&62914560)===0&&(ci=4194304),e}function Ec(e){for(var a=[],l=0;31>l;l++)a.push(e);return a}function El(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _Q(e,a,l,o,d,h){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,T=e.expirationTimes,E=e.hiddenUpdates;for(l=v&~l;0<l;){var D=31-Rt(l),B=1<<D;S[D]=0,T[D]=-1;var M=E[D];if(M!==null)for(E[D]=null,D=0;D<M.length;D++){var Y=M[D];Y!==null&&(Y.lane&=-536870913)}l&=~B}o!==0&&uh(e,o,0),h!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=h&~(v&~a))}function uh(e,a,l){e.pendingLanes|=a,e.suspendedLanes&=~a;var o=31-Rt(a);e.entangledLanes|=a,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Oh(e,a){var l=e.entangledLanes|=a;for(e=e.entanglements;l;){var o=31-Rt(l),d=1<<o;d&a|e[o]&a&&(e[o]|=a),l&=~d}}function dh(e,a){var l=a&-a;return l=(l&42)!==0?1:qc(l),(l&(e.suspendedLanes|a))!==0?0:l}function qc(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 Mc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fh(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Kx(e.type))}function hh(e,a){var l=I.p;try{return I.p=e,a()}finally{I.p=l}}var cn=Math.random().toString(36).slice(2),dt="__reactFiber$"+cn,Qt="__reactProps$"+cn,ks="__reactContainer$"+cn,Yc="__reactEvents$"+cn,ZQ="__reactListeners$"+cn,CQ="__reactHandles$"+cn,mh="__reactResources$"+cn,ql="__reactMarker$"+cn;function Vc(e){delete e[dt],delete e[Qt],delete e[Yc],delete e[ZQ],delete e[CQ]}function Ps(e){var a=e[dt];if(a)return a;for(var l=e.parentNode;l;){if(a=l[ks]||l[dt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(e=Cx(e);e!==null;){if(l=e[dt])return l;e=Cx(e)}return a}e=l,l=e.parentNode}return null}function zs(e){if(e=e[dt]||e[ks]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Ml(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(r(33))}function Ns(e){var a=e[mh];return a||(a=e[mh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ct(e){e[ql]=!0}var ph=new Set,xh={};function Fn(e,a){Rs(e,a),Rs(e+"Capture",a)}function Rs(e,a){for(xh[e]=a,e=0;e<a.length;e++)ph.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]*$"),gh={},bh={};function EQ(e){return rn.call(bh,e)?!0:rn.call(gh,e)?!1:AQ.test(e)?bh[e]=!0:(gh[e]=!0,!1)}function Oi(e,a,l){if(EQ(a))if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+l)}}function di(e,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+l)}}function Pa(e,a,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(a,l,""+o)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function qQ(e,a,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return d.call(this)},set:function(v){l=""+v,h.call(this,v)}}),Object.defineProperty(e,a,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Uc(e){if(!e._valueTracker){var a=vh(e)?"checked":"value";e._valueTracker=qQ(e,a,""+e[a])}}function yh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var l=a.getValue(),o="";return e&&(o=vh(e)?e.checked?"true":"false":e.value),e=o,e!==l?(a.setValue(e),!0):!1}function fi(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 MQ=/[\n"\\]/g;function It(e){return e.replace(MQ,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Gc(e,a,l,o,d,h,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),a!=null?v==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ht(a)):e.value!==""+Ht(a)&&(e.value=""+Ht(a)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),a!=null?Lc(e,v,Ht(a)):l!=null?Lc(e,v,Ht(l)):o!=null&&e.removeAttribute("value"),d==null&&h!=null&&(e.defaultChecked=!!h),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Ht(S):e.removeAttribute("name")}function Qh(e,a,l,o,d,h,v,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),a!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){Uc(e);return}l=l!=null?""+Ht(l):"",a=a!=null?""+Ht(a):l,S||a===e.value||(e.value=a),e.defaultValue=a}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Uc(e)}function Lc(e,a,l){a==="number"&&fi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Xs(e,a,l,o){if(e=e.options,a){a={};for(var d=0;d<l.length;d++)a["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=a.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&o&&(e[l].defaultSelected=!0)}else{for(l=""+Ht(l),a=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}a!==null||e[d].disabled||(a=e[d])}a!==null&&(a.selected=!0)}}function Sh(e,a,l){if(a!=null&&(a=""+Ht(a),a!==e.value&&(e.value=a),l==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=l!=null?""+Ht(l):""}function $h(e,a,l,o){if(a==null){if(o!=null){if(l!=null)throw Error(r(92));if(pe(o)){if(1<o.length)throw Error(r(93));o=o[0]}l=o}l==null&&(l=""),a=l}l=Ht(a),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),Uc(e)}function _s(e,a){if(a){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=a;return}}e.textContent=a}var YQ=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 wh(e,a,l){var o=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":o?e.setProperty(a,l):typeof l!="number"||l===0||YQ.has(a)?a==="float"?e.cssFloat=l:e[a]=(""+l).trim():e[a]=l+"px"}function jh(e,a,l){if(a!=null&&typeof a!="object")throw Error(r(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in a)o=a[d],a.hasOwnProperty(d)&&l[d]!==o&&wh(e,d,o)}else for(var h in a)a.hasOwnProperty(h)&&wh(e,h,a[h])}function Dc(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 VQ=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"]]),UQ=/^[\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 hi(e){return UQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function za(){}var Wc=null;function Bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zs=null,Cs=null;function Th(e){var a=zs(e);if(a&&(e=a.stateNode)){var l=e[Qt]||null;e:switch(e=a.stateNode,a.type){case"input":if(Gc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+It(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var o=l[a];if(o!==e&&o.form===e.form){var d=o[Qt]||null;if(!d)throw Error(r(90));Gc(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<l.length;a++)o=l[a],o.form===e.form&&yh(o)}break e;case"textarea":Sh(e,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Xs(e,!!l.multiple,a,!1)}}}var Hc=!1;function kh(e,a,l){if(Hc)return e(a,l);Hc=!0;try{var o=e(a);return o}finally{if(Hc=!1,(Zs!==null||Cs!==null)&&(to(),Zs&&(a=Zs,e=Cs,Cs=Zs=null,Th(a),e)))for(a=0;a<e.length;a++)Th(e[a])}}function Yl(e,a){var l=e.stateNode;if(l===null)return null;var o=l[Qt]||null;if(o===null)return null;l=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,a,typeof l));return l}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ic=!1;if(Na)try{var Vl={};Object.defineProperty(Vl,"passive",{get:function(){Ic=!0}}),window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Ic=!1}var un=null,Fc=null,mi=null;function Ph(){if(mi)return mi;var e,a=Fc,l=a.length,o,d="value"in un?un.value:un.textContent,h=d.length;for(e=0;e<l&&a[e]===d[e];e++);var v=l-e;for(o=1;o<=v&&a[l-o]===d[h-o];o++);return mi=d.slice(e,1<o?1-o:void 0)}function pi(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 xi(){return!0}function zh(){return!1}function St(e){function a(l,o,d,h,v){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?xi:zh,this.isPropagationStopped=zh,this}return x(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),a}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=St(Kn),Ul=x({},Kn,{view:0,detail:0}),GQ=St(Ul),Kc,Jc,Gl,bi=x({},Ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tu,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!==Gl&&(Gl&&e.type==="mousemove"?(Kc=e.screenX-Gl.screenX,Jc=e.screenY-Gl.screenY):Jc=Kc=0,Gl=e),Kc)},movementY:function(e){return"movementY"in e?e.movementY:Jc}}),Nh=St(bi),LQ=x({},bi,{dataTransfer:0}),DQ=St(LQ),WQ=x({},Ul,{relatedTarget:0}),eu=St(WQ),BQ=x({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0}),HQ=St(BQ),IQ=x({},Kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FQ=St(IQ),KQ=x({},Kn,{data:0}),Rh=St(KQ),JQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eS={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"},tS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aS(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=tS[e])?!!a[e]:!1}function tu(){return aS}var nS=x({},Ul,{key:function(e){if(e.key){var a=JQ[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tu,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sS=St(nS),lS=x({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xh=St(lS),rS=x({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tu}),iS=St(rS),oS=x({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),cS=St(oS),uS=x({},bi,{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}),OS=St(uS),dS=x({},Kn,{newState:0,oldState:0}),fS=St(dS),hS=[9,13,27,32],au=Na&&"CompositionEvent"in window,Ll=null;Na&&"documentMode"in document&&(Ll=document.documentMode);var mS=Na&&"TextEvent"in window&&!Ll,_h=Na&&(!au||Ll&&8<Ll&&11>=Ll),Zh=" ",Ch=!1;function Ah(e,a){switch(e){case"keyup":return hS.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var As=!1;function pS(e,a){switch(e){case"compositionend":return Eh(a);case"keypress":return a.which!==32?null:(Ch=!0,Zh);case"textInput":return e=a.data,e===Zh&&Ch?null:e;default:return null}}function xS(e,a){if(As)return e==="compositionend"||!au&&Ah(e,a)?(e=Ph(),mi=Fc=un=null,As=!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 _h&&a.locale!=="ko"?null:a.data;default:return null}}var gS={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 qh(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!gS[e.type]:a==="textarea"}function Mh(e,a,l,o){Zs?Cs?Cs.push(o):Cs=[o]:Zs=o,a=oo(a,"onChange"),0<a.length&&(l=new gi("onChange","change",null,l,o),e.push({event:l,listeners:a}))}var Dl=null,Wl=null;function bS(e){Qx(e,0)}function vi(e){var a=Ml(e);if(yh(a))return e}function Yh(e,a){if(e==="change")return a}var Vh=!1;if(Na){var nu;if(Na){var su="oninput"in document;if(!su){var Uh=document.createElement("div");Uh.setAttribute("oninput","return;"),su=typeof Uh.oninput=="function"}nu=su}else nu=!1;Vh=nu&&(!document.documentMode||9<document.documentMode)}function Gh(){Dl&&(Dl.detachEvent("onpropertychange",Lh),Wl=Dl=null)}function Lh(e){if(e.propertyName==="value"&&vi(Wl)){var a=[];Mh(a,Wl,e,Bc(e)),kh(bS,a)}}function vS(e,a,l){e==="focusin"?(Gh(),Dl=a,Wl=l,Dl.attachEvent("onpropertychange",Lh)):e==="focusout"&&Gh()}function yS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vi(Wl)}function QS(e,a){if(e==="click")return vi(a)}function SS(e,a){if(e==="input"||e==="change")return vi(a)}function $S(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Xt=typeof Object.is=="function"?Object.is:$S;function Bl(e,a){if(Xt(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var l=Object.keys(e),o=Object.keys(a);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var d=l[o];if(!rn.call(a,d)||!Xt(e[d],a[d]))return!1}return!0}function Dh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,a){var l=Dh(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=a&&o>=a)return{node:l,offset:a-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Dh(l)}}function Bh(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Bh(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Hh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=fi(e.document);a instanceof e.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)e=a.contentWindow;else break;a=fi(e.document)}return a}function lu(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 wS=Na&&"documentMode"in document&&11>=document.documentMode,Es=null,ru=null,Hl=null,iu=!1;function Ih(e,a,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;iu||Es==null||Es!==fi(o)||(o=Es,"selectionStart"in o&&lu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hl&&Bl(Hl,o)||(Hl=o,o=oo(ru,"onSelect"),0<o.length&&(a=new gi("onSelect","select",null,a,l),e.push({event:a,listeners:o}),a.target=Es)))}function Jn(e,a){var l={};return l[e.toLowerCase()]=a.toLowerCase(),l["Webkit"+e]="webkit"+a,l["Moz"+e]="moz"+a,l}var qs={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},ou={},Fh={};Na&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete qs.animationend.animation,delete qs.animationiteration.animation,delete qs.animationstart.animation),"TransitionEvent"in window||delete qs.transitionend.transition);function es(e){if(ou[e])return ou[e];if(!qs[e])return e;var a=qs[e],l;for(l in a)if(a.hasOwnProperty(l)&&l in Fh)return ou[e]=a[l];return e}var Kh=es("animationend"),Jh=es("animationiteration"),em=es("animationstart"),jS=es("transitionrun"),TS=es("transitionstart"),kS=es("transitioncancel"),tm=es("transitionend"),am=new Map,cu="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(" ");cu.push("scrollEnd");function oa(e,a){am.set(e,a),Fn(a,[e])}var yi=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)},Ft=[],Ms=0,uu=0;function Qi(){for(var e=Ms,a=uu=Ms=0;a<e;){var l=Ft[a];Ft[a++]=null;var o=Ft[a];Ft[a++]=null;var d=Ft[a];Ft[a++]=null;var h=Ft[a];if(Ft[a++]=null,o!==null&&d!==null){var v=o.pending;v===null?d.next=d:(d.next=v.next,v.next=d),o.pending=d}h!==0&&nm(l,d,h)}}function Si(e,a,l,o){Ft[Ms++]=e,Ft[Ms++]=a,Ft[Ms++]=l,Ft[Ms++]=o,uu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ou(e,a,l,o){return Si(e,a,l,o),$i(e)}function ts(e,a){return Si(e,null,null,a),$i(e)}function nm(e,a,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var d=!1,h=e.return;h!==null;)h.childLanes|=l,o=h.alternate,o!==null&&(o.childLanes|=l),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(d=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,d&&a!==null&&(d=31-Rt(l),e=h.hiddenUpdates,o=e[d],o===null?e[d]=[a]:o.push(a),a.lane=l|536870912),h):null}function $i(e){if(50<xr)throw xr=0,vO=null,Error(r(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Ys={};function PS(e,a,l,o){this.tag=e,this.key=l,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,a,l,o){return new PS(e,a,l,o)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ra(e,a){var l=e.alternate;return l===null?(l=_t(e.tag,a,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=a,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,a=e.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function sm(e,a){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,a=l.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function wi(e,a,l,o,d,h){var v=0;if(o=e,typeof e=="function")du(e)&&(v=1);else if(typeof e=="string")v=_2(e,l,Ye.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=_t(31,l,a,d),e.elementType=te,e.lanes=h,e;case $:return as(l.children,d,h,a);case w:v=8,d|=24;break;case k:return e=_t(12,l,a,d|2),e.elementType=k,e.lanes=h,e;case q:return e=_t(13,l,a,d),e.elementType=q,e.lanes=h,e;case X:return e=_t(19,l,a,d),e.elementType=X,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:v=10;break e;case N:v=9;break e;case C:v=11;break e;case G:v=14;break e;case U:v=16,o=null;break e}v=29,l=Error(r(130,e===null?"null":typeof e,"")),o=null}return a=_t(v,l,a,d),a.elementType=e,a.type=o,a.lanes=h,a}function as(e,a,l,o){return e=_t(7,e,o,a),e.lanes=l,e}function fu(e,a,l){return e=_t(6,e,null,a),e.lanes=l,e}function lm(e){var a=_t(18,null,null,0);return a.stateNode=e,a}function hu(e,a,l){return a=_t(4,e.children!==null?e.children:[],e.key,a),a.lanes=l,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var rm=new WeakMap;function Kt(e,a){if(typeof e=="object"&&e!==null){var l=rm.get(e);return l!==void 0?l:(a={value:e,source:a,stack:li(a)},rm.set(e,a),a)}return{value:e,source:a,stack:li(a)}}var Vs=[],Us=0,ji=null,Il=0,Jt=[],ea=0,On=null,ga=1,ba="";function Xa(e,a){Vs[Us++]=Il,Vs[Us++]=ji,ji=e,Il=a}function im(e,a,l){Jt[ea++]=ga,Jt[ea++]=ba,Jt[ea++]=On,On=e;var o=ga;e=ba;var d=32-Rt(o)-1;o&=~(1<<d),l+=1;var h=32-Rt(a)+d;if(30<h){var v=d-d%5;h=(o&(1<<v)-1).toString(32),o>>=v,d-=v,ga=1<<32-Rt(a)+d|l<<d|o,ba=h+e}else ga=1<<h|l<<d|o,ba=e}function mu(e){e.return!==null&&(Xa(e,1),im(e,1,0))}function pu(e){for(;e===ji;)ji=Vs[--Us],Vs[Us]=null,Il=Vs[--Us],Vs[Us]=null;for(;e===On;)On=Jt[--ea],Jt[ea]=null,ba=Jt[--ea],Jt[ea]=null,ga=Jt[--ea],Jt[ea]=null}function om(e,a){Jt[ea++]=ga,Jt[ea++]=ba,Jt[ea++]=On,ga=a.id,ba=a.overflow,On=e}var ft=null,Ge=null,je=!1,dn=null,ta=!1,xu=Error(r(519));function fn(e){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(Kt(a,e)),xu}function cm(e){var a=e.stateNode,l=e.type,o=e.memoizedProps;switch(a[dt]=e,a[Qt]=o,l){case"dialog":Se("cancel",a),Se("close",a);break;case"iframe":case"object":case"embed":Se("load",a);break;case"video":case"audio":for(l=0;l<br.length;l++)Se(br[l],a);break;case"source":Se("error",a);break;case"img":case"image":case"link":Se("error",a),Se("load",a);break;case"details":Se("toggle",a);break;case"input":Se("invalid",a),Qh(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Se("invalid",a);break;case"textarea":Se("invalid",a),$h(a,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||o.suppressHydrationWarning===!0||jx(a.textContent,l)?(o.popover!=null&&(Se("beforetoggle",a),Se("toggle",a)),o.onScroll!=null&&Se("scroll",a),o.onScrollEnd!=null&&Se("scrollend",a),o.onClick!=null&&(a.onclick=za),a=!0):a=!1,a||fn(e,!0)}function um(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:ft=ft.return}}function Gs(e){if(e!==ft)return!1;if(!je)return um(e),je=!0,!1;var a=e.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ZO(e.type,e.memoizedProps)),l=!l),l&&Ge&&fn(e),um(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=Zx(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=Zx(e)}else a===27?(a=Ge,Tn(e.type)?(e=MO,MO=null,Ge=e):Ge=a):Ge=ft?na(e.stateNode.nextSibling):null;return!0}function ns(){Ge=ft=null,je=!1}function gu(){var e=dn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),dn=null),e}function Fl(e){dn===null?dn=[e]:dn.push(e)}var bu=Ue(null),ss=null,_a=null;function hn(e,a,l){ye(bu,a._currentValue),a._currentValue=l}function Za(e){e._currentValue=bu.current,Re(bu)}function vu(e,a,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),e===l)break;e=e.return}}function yu(e,a,l,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var h=d.dependencies;if(h!==null){var v=d.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=d;for(var T=0;T<a.length;T++)if(S.context===a[T]){h.lanes|=l,S=h.alternate,S!==null&&(S.lanes|=l),vu(h.return,l,e),o||(v=null);break e}h=S.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=l,h=v.alternate,h!==null&&(h.lanes|=l),vu(v,l,e),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===e){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function Ls(e,a,l,o){e=null;for(var d=a,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var S=d.type;Xt(d.pendingProps.value,v.value)||(e!==null?e.push(S):e=[S])}}else if(d===ke.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push($r):e=[$r])}d=d.return}e!==null&&yu(a,e,l,o),a.flags|=262144}function Ti(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ls(e){ss=e,_a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return Om(ss,e)}function ki(e,a){return ss===null&&ls(e),Om(e,a)}function Om(e,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},_a===null){if(e===null)throw Error(r(308));_a=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else _a=_a.next=a;return l}var zS=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){a.aborted=!0,e.forEach(function(l){return l()})}},NS=t.unstable_scheduleCallback,RS=t.unstable_NormalPriority,tt={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new zS,data:new Map,refCount:0}}function Kl(e){e.refCount--,e.refCount===0&&NS(RS,function(){e.controller.abort()})}var Jl=null,Su=0,Ds=0,Ws=null;function XS(e,a){if(Jl===null){var l=Jl=[];Su=0,Ds=jO(),Ws={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Su++,a.then(dm,dm),a}function dm(){if(--Su===0&&Jl!==null){Ws!==null&&(Ws.status="fulfilled");var e=Jl;Jl=null,Ds=0,Ws=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function _S(e,a){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){o.status="fulfilled",o.value=a;for(var d=0;d<l.length;d++)(0,l[d])(a)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var fm=_.S;_.S=function(e,a){Ip=zt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&XS(e,a),fm!==null&&fm(e,a)};var rs=Ue(null);function $u(){var e=rs.current;return e!==null?e:Ve.pooledCache}function Pi(e,a){a===null?ye(rs,rs.current):ye(rs,a.pool)}function hm(){var e=$u();return e===null?null:{parent:tt._currentValue,pool:e}}var Bs=Error(r(460)),wu=Error(r(474)),zi=Error(r(542)),Ni={then:function(){}};function mm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pm(e,a,l){switch(l=e[l],l===void 0?e.push(a):l!==a&&(a.then(za,za),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,gm(e),e;default:if(typeof a.status=="string")a.then(za,za);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=a,e.status="pending",e.then(function(o){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=o}},function(o){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,gm(e),e}throw os=a,Bs}}function is(e){try{var a=e._init;return a(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(os=l,Bs):l}}var os=null;function xm(){if(os===null)throw Error(r(459));var e=os;return os=null,e}function gm(e){if(e===Bs||e===zi)throw Error(r(483))}var Hs=null,er=0;function Ri(e){var a=er;return er+=1,Hs===null&&(Hs=[]),pm(Hs,e,a)}function tr(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Xi(e,a){throw a.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(a),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function bm(e){function a(R,P){if(e){var A=R.deletions;A===null?(R.deletions=[P],R.flags|=16):A.push(P)}}function l(R,P){if(!e)return null;for(;P!==null;)a(R,P),P=P.sibling;return null}function o(R){for(var P=new Map;R!==null;)R.key!==null?P.set(R.key,R):P.set(R.index,R),R=R.sibling;return P}function d(R,P){return R=Ra(R,P),R.index=0,R.sibling=null,R}function h(R,P,A){return R.index=A,e?(A=R.alternate,A!==null?(A=A.index,A<P?(R.flags|=67108866,P):A):(R.flags|=67108866,P)):(R.flags|=1048576,P)}function v(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function S(R,P,A,W){return P===null||P.tag!==6?(P=fu(A,R.mode,W),P.return=R,P):(P=d(P,A),P.return=R,P)}function T(R,P,A,W){var ue=A.type;return ue===$?D(R,P,A.props.children,W,A.key):P!==null&&(P.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===U&&is(ue)===P.type)?(P=d(P,A.props),tr(P,A),P.return=R,P):(P=wi(A.type,A.key,A.props,null,R.mode,W),tr(P,A),P.return=R,P)}function E(R,P,A,W){return P===null||P.tag!==4||P.stateNode.containerInfo!==A.containerInfo||P.stateNode.implementation!==A.implementation?(P=hu(A,R.mode,W),P.return=R,P):(P=d(P,A.children||[]),P.return=R,P)}function D(R,P,A,W,ue){return P===null||P.tag!==7?(P=as(A,R.mode,W,ue),P.return=R,P):(P=d(P,A),P.return=R,P)}function B(R,P,A){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=fu(""+P,R.mode,A),P.return=R,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Q:return A=wi(P.type,P.key,P.props,null,R.mode,A),tr(A,P),A.return=R,A;case j:return P=hu(P,R.mode,A),P.return=R,P;case U:return P=is(P),B(R,P,A)}if(pe(P)||fe(P))return P=as(P,R.mode,A,null),P.return=R,P;if(typeof P.then=="function")return B(R,Ri(P),A);if(P.$$typeof===Z)return B(R,ki(R,P),A);Xi(R,P)}return null}function M(R,P,A,W){var ue=P!==null?P.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return ue!==null?null:S(R,P,""+A,W);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Q:return A.key===ue?T(R,P,A,W):null;case j:return A.key===ue?E(R,P,A,W):null;case U:return A=is(A),M(R,P,A,W)}if(pe(A)||fe(A))return ue!==null?null:D(R,P,A,W,null);if(typeof A.then=="function")return M(R,P,Ri(A),W);if(A.$$typeof===Z)return M(R,P,ki(R,A),W);Xi(R,A)}return null}function Y(R,P,A,W,ue){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return R=R.get(A)||null,S(P,R,""+W,ue);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case Q:return R=R.get(W.key===null?A:W.key)||null,T(P,R,W,ue);case j:return R=R.get(W.key===null?A:W.key)||null,E(P,R,W,ue);case U:return W=is(W),Y(R,P,A,W,ue)}if(pe(W)||fe(W))return R=R.get(A)||null,D(P,R,W,ue,null);if(typeof W.then=="function")return Y(R,P,A,Ri(W),ue);if(W.$$typeof===Z)return Y(R,P,A,ki(P,W),ue);Xi(P,W)}return null}function se(R,P,A,W){for(var ue=null,Pe=null,oe=P,ge=P=0,we=null;oe!==null&&ge<A.length;ge++){oe.index>ge?(we=oe,oe=null):we=oe.sibling;var ze=M(R,oe,A[ge],W);if(ze===null){oe===null&&(oe=we);break}e&&oe&&ze.alternate===null&&a(R,oe),P=h(ze,P,ge),Pe===null?ue=ze:Pe.sibling=ze,Pe=ze,oe=we}if(ge===A.length)return l(R,oe),je&&Xa(R,ge),ue;if(oe===null){for(;ge<A.length;ge++)oe=B(R,A[ge],W),oe!==null&&(P=h(oe,P,ge),Pe===null?ue=oe:Pe.sibling=oe,Pe=oe);return je&&Xa(R,ge),ue}for(oe=o(oe);ge<A.length;ge++)we=Y(oe,R,ge,A[ge],W),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ge:we.key),P=h(we,P,ge),Pe===null?ue=we:Pe.sibling=we,Pe=we);return e&&oe.forEach(function(Rn){return a(R,Rn)}),je&&Xa(R,ge),ue}function de(R,P,A,W){if(A==null)throw Error(r(151));for(var ue=null,Pe=null,oe=P,ge=P=0,we=null,ze=A.next();oe!==null&&!ze.done;ge++,ze=A.next()){oe.index>ge?(we=oe,oe=null):we=oe.sibling;var Rn=M(R,oe,ze.value,W);if(Rn===null){oe===null&&(oe=we);break}e&&oe&&Rn.alternate===null&&a(R,oe),P=h(Rn,P,ge),Pe===null?ue=Rn:Pe.sibling=Rn,Pe=Rn,oe=we}if(ze.done)return l(R,oe),je&&Xa(R,ge),ue;if(oe===null){for(;!ze.done;ge++,ze=A.next())ze=B(R,ze.value,W),ze!==null&&(P=h(ze,P,ge),Pe===null?ue=ze:Pe.sibling=ze,Pe=ze);return je&&Xa(R,ge),ue}for(oe=o(oe);!ze.done;ge++,ze=A.next())ze=Y(oe,R,ge,ze.value,W),ze!==null&&(e&&ze.alternate!==null&&oe.delete(ze.key===null?ge:ze.key),P=h(ze,P,ge),Pe===null?ue=ze:Pe.sibling=ze,Pe=ze);return e&&oe.forEach(function(L2){return a(R,L2)}),je&&Xa(R,ge),ue}function Me(R,P,A,W){if(typeof A=="object"&&A!==null&&A.type===$&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case Q:e:{for(var ue=A.key;P!==null;){if(P.key===ue){if(ue=A.type,ue===$){if(P.tag===7){l(R,P.sibling),W=d(P,A.props.children),W.return=R,R=W;break e}}else if(P.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===U&&is(ue)===P.type){l(R,P.sibling),W=d(P,A.props),tr(W,A),W.return=R,R=W;break e}l(R,P);break}else a(R,P);P=P.sibling}A.type===$?(W=as(A.props.children,R.mode,W,A.key),W.return=R,R=W):(W=wi(A.type,A.key,A.props,null,R.mode,W),tr(W,A),W.return=R,R=W)}return v(R);case j:e:{for(ue=A.key;P!==null;){if(P.key===ue)if(P.tag===4&&P.stateNode.containerInfo===A.containerInfo&&P.stateNode.implementation===A.implementation){l(R,P.sibling),W=d(P,A.children||[]),W.return=R,R=W;break e}else{l(R,P);break}else a(R,P);P=P.sibling}W=hu(A,R.mode,W),W.return=R,R=W}return v(R);case U:return A=is(A),Me(R,P,A,W)}if(pe(A))return se(R,P,A,W);if(fe(A)){if(ue=fe(A),typeof ue!="function")throw Error(r(150));return A=ue.call(A),de(R,P,A,W)}if(typeof A.then=="function")return Me(R,P,Ri(A),W);if(A.$$typeof===Z)return Me(R,P,ki(R,A),W);Xi(R,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,P!==null&&P.tag===6?(l(R,P.sibling),W=d(P,A),W.return=R,R=W):(l(R,P),W=fu(A,R.mode,W),W.return=R,R=W),v(R)):l(R,P)}return function(R,P,A,W){try{er=0;var ue=Me(R,P,A,W);return Hs=null,ue}catch(oe){if(oe===Bs||oe===zi)throw oe;var Pe=_t(29,oe,null,R.mode);return Pe.lanes=W,Pe.return=R,Pe}finally{}}}var cs=bm(!0),vm=bm(!1),mn=!1;function ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(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 pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xn(e,a,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(_e&2)!==0){var d=o.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a,a=$i(e),nm(e,null,l),a}return Si(e,o,a,l),$i(e)}function ar(e,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var o=a.lanes;o&=e.pendingLanes,l|=o,a.lanes=l,Oh(e,l)}}function ku(e,a){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?d=h=v:h=h.next=v,l=l.next}while(l!==null);h===null?d=h=a:h=h.next=a}else d=h=a;l={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=a:e.next=a,l.lastBaseUpdate=a}var Pu=!1;function nr(){if(Pu){var e=Ws;if(e!==null)throw e}}function sr(e,a,l,o){Pu=!1;var d=e.updateQueue;mn=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var T=S,E=T.next;T.next=null,v===null?h=E:v.next=E,v=T;var D=e.alternate;D!==null&&(D=D.updateQueue,S=D.lastBaseUpdate,S!==v&&(S===null?D.firstBaseUpdate=E:S.next=E,D.lastBaseUpdate=T))}if(h!==null){var B=d.baseState;v=0,D=E=T=null,S=h;do{var M=S.lane&-536870913,Y=M!==S.lane;if(Y?($e&M)===M:(o&M)===M){M!==0&&M===Ds&&(Pu=!0),D!==null&&(D=D.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var se=e,de=S;M=a;var Me=l;switch(de.tag){case 1:if(se=de.payload,typeof se=="function"){B=se.call(Me,B,M);break e}B=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=de.payload,M=typeof se=="function"?se.call(Me,B,M):se,M==null)break e;B=x({},B,M);break e;case 2:mn=!0}}M=S.callback,M!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=d.callbacks,Y===null?d.callbacks=[M]:Y.push(M))}else Y={lane:M,tag:S.tag,payload:S.payload,callback:S.callback,next:null},D===null?(E=D=Y,T=B):D=D.next=Y,v|=M;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,d.lastBaseUpdate=Y,d.shared.pending=null}}while(!0);D===null&&(T=B),d.baseState=T,d.firstBaseUpdate=E,d.lastBaseUpdate=D,h===null&&(d.shared.lanes=0),Qn|=v,e.lanes=v,e.memoizedState=B}}function ym(e,a){if(typeof e!="function")throw Error(r(191,e));e.call(a)}function Qm(e,a){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ym(l[e],a)}var Is=Ue(null),_i=Ue(0);function Sm(e,a){e=Ga,ye(_i,e),ye(Is,a),Ga=e|a.baseLanes}function zu(){ye(_i,Ga),ye(Is,Is.current)}function Nu(){Ga=_i.current,Re(Is),Re(_i)}var Zt=Ue(null),aa=null;function gn(e){var a=e.alternate;ye(Ke,Ke.current&1),ye(Zt,e),aa===null&&(a===null||Is.current!==null||a.memoizedState!==null)&&(aa=e)}function Ru(e){ye(Ke,Ke.current),ye(Zt,e),aa===null&&(aa=e)}function $m(e){e.tag===22?(ye(Ke,Ke.current),ye(Zt,e),aa===null&&(aa=e)):bn()}function bn(){ye(Ke,Ke.current),ye(Zt,Zt.current)}function Ct(e){Re(Zt),aa===e&&(aa=null),Re(Ke)}var Ke=Ue(0);function Zi(e){for(var a=e;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||EO(l)||qO(l)))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 Ca=0,xe=null,Ee=null,at=null,Ci=!1,Fs=!1,us=!1,Ai=0,lr=0,Ks=null,ZS=0;function Ie(){throw Error(r(321))}function Xu(e,a){if(a===null)return!1;for(var l=0;l<a.length&&l<e.length;l++)if(!Xt(e[l],a[l]))return!1;return!0}function _u(e,a,l,o,d,h){return Ca=h,xe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=e===null||e.memoizedState===null?ip:Hu,us=!1,h=l(o,d),us=!1,Fs&&(h=jm(a,l,o,d)),wm(e),h}function wm(e){_.H=or;var a=Ee!==null&&Ee.next!==null;if(Ca=0,at=Ee=xe=null,Ci=!1,lr=0,Ks=null,a)throw Error(r(300));e===null||nt||(e=e.dependencies,e!==null&&Ti(e)&&(nt=!0))}function jm(e,a,l,o){xe=e;var d=0;do{if(Fs&&(Ks=null),lr=0,Fs=!1,25<=d)throw Error(r(301));if(d+=1,at=Ee=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}_.H=op,h=a(l,o)}while(Fs);return h}function CS(){var e=_.H,a=e.useState()[0];return a=typeof a.then=="function"?rr(a):a,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(xe.flags|=1024),a}function Zu(){var e=Ai!==0;return Ai=0,e}function Cu(e,a,l){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~l}function Au(e){if(Ci){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Ci=!1}Ca=0,at=Ee=xe=null,Fs=!1,lr=Ai=0,Ks=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?xe.memoizedState=at=e:at=at.next=e,at}function Je(){if(Ee===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var a=at===null?xe.memoizedState:at.next;if(a!==null)at=a,Ee=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},at===null?xe.memoizedState=at=e:at=at.next=e}return at}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rr(e){var a=lr;return lr+=1,Ks===null&&(Ks=[]),e=pm(Ks,e,a),a=xe,(at===null?a.memoizedState:at.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?ip:Hu),e}function qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rr(e);if(e.$$typeof===Z)return ht(e)}throw Error(r(438,String(e)))}function Eu(e){var a=null,l=xe.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var o=xe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Ei(),xe.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(e),o=0;o<e;o++)l[o]=H;return a.index++,l}function Aa(e,a){return typeof a=="function"?a(e):a}function Mi(e){var a=Je();return qu(a,Ee,e)}function qu(e,a,l){var o=e.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=l;var d=e.baseQueue,h=o.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}a.baseQueue=d=h,o.pending=null}if(h=e.baseState,d===null)e.memoizedState=h;else{a=d.next;var S=v=null,T=null,E=a,D=!1;do{var B=E.lane&-536870913;if(B!==E.lane?($e&B)===B:(Ca&B)===B){var M=E.revertLane;if(M===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),B===Ds&&(D=!0);else if((Ca&M)===M){E=E.next,M===Ds&&(D=!0);continue}else B={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},T===null?(S=T=B,v=h):T=T.next=B,xe.lanes|=M,Qn|=M;B=E.action,us&&l(h,B),h=E.hasEagerState?E.eagerState:l(h,B)}else M={lane:B,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},T===null?(S=T=M,v=h):T=T.next=M,xe.lanes|=B,Qn|=B;E=E.next}while(E!==null&&E!==a);if(T===null?v=h:T.next=S,!Xt(h,e.memoizedState)&&(nt=!0,D&&(l=Ws,l!==null)))throw l;e.memoizedState=h,e.baseState=v,e.baseQueue=T,o.lastRenderedState=h}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Mu(e){var a=Je(),l=a.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var o=l.dispatch,d=l.pending,h=a.memoizedState;if(d!==null){l.pending=null;var v=d=d.next;do h=e(h,v.action),v=v.next;while(v!==d);Xt(h,a.memoizedState)||(nt=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),l.lastRenderedState=h}return[h,o]}function Tm(e,a,l){var o=xe,d=Je(),h=je;if(h){if(l===void 0)throw Error(r(407));l=l()}else l=a();var v=!Xt((Ee||d).memoizedState,l);if(v&&(d.memoizedState=l,nt=!0),d=d.queue,Uu(zm.bind(null,o,d,e),[e]),d.getSnapshot!==a||v||at!==null&&at.memoizedState.tag&1){if(o.flags|=2048,Js(9,{destroy:void 0},Pm.bind(null,o,d,l,a),null),Ve===null)throw Error(r(349));h||(Ca&127)!==0||km(o,a,l)}return l}function km(e,a,l){e.flags|=16384,e={getSnapshot:a,value:l},a=xe.updateQueue,a===null?(a=Ei(),xe.updateQueue=a,a.stores=[e]):(l=a.stores,l===null?a.stores=[e]:l.push(e))}function Pm(e,a,l,o){a.value=l,a.getSnapshot=o,Nm(a)&&Rm(e)}function zm(e,a,l){return l(function(){Nm(a)&&Rm(e)})}function Nm(e){var a=e.getSnapshot;e=e.value;try{var l=a();return!Xt(e,l)}catch{return!0}}function Rm(e){var a=ts(e,2);a!==null&&kt(a,e,2)}function Yu(e){var a=yt();if(typeof e=="function"){var l=e;if(e=l(),us){on(!0);try{l()}finally{on(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:e},a}function Xm(e,a,l,o){return e.baseState=l,qu(e,Ee,typeof o=="function"?o:Aa)}function AS(e,a,l,o,d){if(Ui(e))throw Error(r(485));if(e=a.action,e!==null){var h={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){h.listeners.push(v)}};_.T!==null?l(!0):h.isTransition=!1,o(h),l=a.pending,l===null?(h.next=a.pending=h,_m(a,h)):(h.next=l.next,a.pending=l.next=h)}}function _m(e,a){var l=a.action,o=a.payload,d=e.state;if(a.isTransition){var h=_.T,v={};_.T=v;try{var S=l(d,o),T=_.S;T!==null&&T(v,S),Zm(e,a,S)}catch(E){Vu(e,a,E)}finally{h!==null&&v.types!==null&&(h.types=v.types),_.T=h}}else try{h=l(d,o),Zm(e,a,h)}catch(E){Vu(e,a,E)}}function Zm(e,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){Cm(e,a,o)},function(o){return Vu(e,a,o)}):Cm(e,a,l)}function Cm(e,a,l){a.status="fulfilled",a.value=l,Am(a),e.state=l,a=e.pending,a!==null&&(l=a.next,l===a?e.pending=null:(l=l.next,a.next=l,_m(e,l)))}function Vu(e,a,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=l,Am(a),a=a.next;while(a!==o)}e.action=null}function Am(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function Em(e,a){return a}function qm(e,a){if(je){var l=Ve.formState;if(l!==null){e:{var o=xe;if(je){if(Ge){t:{for(var d=Ge,h=ta;d.nodeType!==8;){if(!h){d=null;break t}if(d=na(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){Ge=na(d.nextSibling),o=d.data==="F!";break e}}fn(o)}o=!1}o&&(a=l[0])}}return l=yt(),l.memoizedState=l.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:a},l.queue=o,l=sp.bind(null,xe,o),o.dispatch=l,o=Yu(!1),h=Bu.bind(null,xe,!1,o.queue),o=yt(),d={state:a,dispatch:null,action:e,pending:null},o.queue=d,l=AS.bind(null,xe,d,h,l),d.dispatch=l,o.memoizedState=e,[a,l,!1]}function Mm(e){var a=Je();return Ym(a,Ee,e)}function Ym(e,a,l){if(a=qu(e,a,Em)[0],e=Mi(Aa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=rr(a)}catch(v){throw v===Bs?zi:v}else o=a;a=Je();var d=a.queue,h=d.dispatch;return l!==a.memoizedState&&(xe.flags|=2048,Js(9,{destroy:void 0},ES.bind(null,d,l),null)),[o,h,e]}function ES(e,a){e.action=a}function Vm(e){var a=Je(),l=Ee;if(l!==null)return Ym(a,l,e);Je(),a=a.memoizedState,l=Je();var o=l.queue.dispatch;return l.memoizedState=e,[a,o,!1]}function Js(e,a,l,o){return e={tag:e,create:l,deps:o,inst:a,next:null},a=xe.updateQueue,a===null&&(a=Ei(),xe.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,a.lastEffect=e),e}function Um(){return Je().memoizedState}function Yi(e,a,l,o){var d=yt();xe.flags|=e,d.memoizedState=Js(1|a,{destroy:void 0},l,o===void 0?null:o)}function Vi(e,a,l,o){var d=Je();o=o===void 0?null:o;var h=d.memoizedState.inst;Ee!==null&&o!==null&&Xu(o,Ee.memoizedState.deps)?d.memoizedState=Js(a,h,l,o):(xe.flags|=e,d.memoizedState=Js(1|a,h,l,o))}function Gm(e,a){Yi(8390656,8,e,a)}function Uu(e,a){Vi(2048,8,e,a)}function qS(e){xe.flags|=4;var a=xe.updateQueue;if(a===null)a=Ei(),xe.updateQueue=a,a.events=[e];else{var l=a.events;l===null?a.events=[e]:l.push(e)}}function Lm(e){var a=Je().memoizedState;return qS({ref:a,nextImpl:e}),function(){if((_e&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Dm(e,a){return Vi(4,2,e,a)}function Wm(e,a){return Vi(4,4,e,a)}function Bm(e,a){if(typeof a=="function"){e=e();var l=a(e);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Hm(e,a,l){l=l!=null?l.concat([e]):null,Vi(4,4,Bm.bind(null,a,e),l)}function Gu(){}function Im(e,a){var l=Je();a=a===void 0?null:a;var o=l.memoizedState;return a!==null&&Xu(a,o[1])?o[0]:(l.memoizedState=[e,a],e)}function Fm(e,a){var l=Je();a=a===void 0?null:a;var o=l.memoizedState;if(a!==null&&Xu(a,o[1]))return o[0];if(o=e(),us){on(!0);try{e()}finally{on(!1)}}return l.memoizedState=[o,a],o}function Lu(e,a,l){return l===void 0||(Ca&1073741824)!==0&&($e&261930)===0?e.memoizedState=a:(e.memoizedState=l,e=Kp(),xe.lanes|=e,Qn|=e,l)}function Km(e,a,l,o){return Xt(l,a)?l:Is.current!==null?(e=Lu(e,l,o),Xt(e,a)||(nt=!0),e):(Ca&42)===0||(Ca&1073741824)!==0&&($e&261930)===0?(nt=!0,e.memoizedState=l):(e=Kp(),xe.lanes|=e,Qn|=e,a)}function Jm(e,a,l,o,d){var h=I.p;I.p=h!==0&&8>h?h:8;var v=_.T,S={};_.T=S,Bu(e,!1,a,l);try{var T=d(),E=_.S;if(E!==null&&E(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=_S(T,o);ir(e,a,D,qt(e))}else ir(e,a,o,qt(e))}catch(B){ir(e,a,{then:function(){},status:"rejected",reason:B},qt())}finally{I.p=h,v!==null&&S.types!==null&&(v.types=S.types),_.T=v}}function MS(){}function Du(e,a,l,o){if(e.tag!==5)throw Error(r(476));var d=ep(e).queue;Jm(e,d,a,F,l===null?MS:function(){return tp(e),l(o)})}function ep(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:F},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:l},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function tp(e){var a=ep(e);a.next===null&&(a=e.alternate.memoizedState),ir(e,a.next.queue,{},qt())}function Wu(){return ht($r)}function ap(){return Je().memoizedState}function np(){return Je().memoizedState}function YS(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var l=qt();e=pn(l);var o=xn(a,e,l);o!==null&&(kt(o,a,l),ar(o,a,l)),a={cache:Qu()},e.payload=a;return}a=a.return}}function VS(e,a,l){var o=qt();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ui(e)?lp(a,l):(l=Ou(e,a,l,o),l!==null&&(kt(l,e,o),rp(l,a,o)))}function sp(e,a,l){var o=qt();ir(e,a,l,o)}function ir(e,a,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))lp(a,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var v=a.lastRenderedState,S=h(v,l);if(d.hasEagerState=!0,d.eagerState=S,Xt(S,v))return Si(e,a,d,0),Ve===null&&Qi(),!1}catch{}finally{}if(l=Ou(e,a,d,o),l!==null)return kt(l,e,o),rp(l,a,o),!0}return!1}function Bu(e,a,l,o){if(o={lane:2,revertLane:jO(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(a)throw Error(r(479))}else a=Ou(e,l,o,2),a!==null&&kt(a,e,2)}function Ui(e){var a=e.alternate;return e===xe||a!==null&&a===xe}function lp(e,a){Fs=Ci=!0;var l=e.pending;l===null?a.next=a:(a.next=l.next,l.next=a),e.pending=a}function rp(e,a,l){if((l&4194048)!==0){var o=a.lanes;o&=e.pendingLanes,l|=o,a.lanes=l,Oh(e,l)}}var or={readContext:ht,use:qi,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};or.useEffectEvent=Ie;var ip={readContext:ht,use:qi,useCallback:function(e,a){return yt().memoizedState=[e,a===void 0?null:a],e},useContext:ht,useEffect:Gm,useImperativeHandle:function(e,a,l){l=l!=null?l.concat([e]):null,Yi(4194308,4,Bm.bind(null,a,e),l)},useLayoutEffect:function(e,a){return Yi(4194308,4,e,a)},useInsertionEffect:function(e,a){Yi(4,2,e,a)},useMemo:function(e,a){var l=yt();a=a===void 0?null:a;var o=e();if(us){on(!0);try{e()}finally{on(!1)}}return l.memoizedState=[o,a],o},useReducer:function(e,a,l){var o=yt();if(l!==void 0){var d=l(a);if(us){on(!0);try{l(a)}finally{on(!1)}}}else d=a;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=VS.bind(null,xe,e),[o.memoizedState,e]},useRef:function(e){var a=yt();return e={current:e},a.memoizedState=e},useState:function(e){e=Yu(e);var a=e.queue,l=sp.bind(null,xe,a);return a.dispatch=l,[e.memoizedState,l]},useDebugValue:Gu,useDeferredValue:function(e,a){var l=yt();return Lu(l,e,a)},useTransition:function(){var e=Yu(!1);return e=Jm.bind(null,xe,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,l){var o=xe,d=yt();if(je){if(l===void 0)throw Error(r(407));l=l()}else{if(l=a(),Ve===null)throw Error(r(349));($e&127)!==0||km(o,a,l)}d.memoizedState=l;var h={value:l,getSnapshot:a};return d.queue=h,Gm(zm.bind(null,o,h,e),[e]),o.flags|=2048,Js(9,{destroy:void 0},Pm.bind(null,o,h,l,a),null),l},useId:function(){var e=yt(),a=Ve.identifierPrefix;if(je){var l=ba,o=ga;l=(o&~(1<<32-Rt(o)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Ai++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=ZS++,a="_"+a+"r_"+l.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:Wu,useFormState:qm,useActionState:qm,useOptimistic:function(e){var a=yt();a.memoizedState=a.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Bu.bind(null,xe,!0,l),l.dispatch=a,[e,a]},useMemoCache:Eu,useCacheRefresh:function(){return yt().memoizedState=YS.bind(null,xe)},useEffectEvent:function(e){var a=yt(),l={impl:e};return a.memoizedState=l,function(){if((_e&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Hu={readContext:ht,use:qi,useCallback:Im,useContext:ht,useEffect:Uu,useImperativeHandle:Hm,useInsertionEffect:Dm,useLayoutEffect:Wm,useMemo:Fm,useReducer:Mi,useRef:Um,useState:function(){return Mi(Aa)},useDebugValue:Gu,useDeferredValue:function(e,a){var l=Je();return Km(l,Ee.memoizedState,e,a)},useTransition:function(){var e=Mi(Aa)[0],a=Je().memoizedState;return[typeof e=="boolean"?e:rr(e),a]},useSyncExternalStore:Tm,useId:ap,useHostTransitionStatus:Wu,useFormState:Mm,useActionState:Mm,useOptimistic:function(e,a){var l=Je();return Xm(l,Ee,e,a)},useMemoCache:Eu,useCacheRefresh:np};Hu.useEffectEvent=Lm;var op={readContext:ht,use:qi,useCallback:Im,useContext:ht,useEffect:Uu,useImperativeHandle:Hm,useInsertionEffect:Dm,useLayoutEffect:Wm,useMemo:Fm,useReducer:Mu,useRef:Um,useState:function(){return Mu(Aa)},useDebugValue:Gu,useDeferredValue:function(e,a){var l=Je();return Ee===null?Lu(l,e,a):Km(l,Ee.memoizedState,e,a)},useTransition:function(){var e=Mu(Aa)[0],a=Je().memoizedState;return[typeof e=="boolean"?e:rr(e),a]},useSyncExternalStore:Tm,useId:ap,useHostTransitionStatus:Wu,useFormState:Vm,useActionState:Vm,useOptimistic:function(e,a){var l=Je();return Ee!==null?Xm(l,Ee,e,a):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Eu,useCacheRefresh:np};op.useEffectEvent=Lm;function Iu(e,a,l,o){a=e.memoizedState,l=l(o,a),l=l==null?a:x({},a,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Fu={enqueueSetState:function(e,a,l){e=e._reactInternals;var o=qt(),d=pn(o);d.payload=a,l!=null&&(d.callback=l),a=xn(e,d,o),a!==null&&(kt(a,e,o),ar(a,e,o))},enqueueReplaceState:function(e,a,l){e=e._reactInternals;var o=qt(),d=pn(o);d.tag=1,d.payload=a,l!=null&&(d.callback=l),a=xn(e,d,o),a!==null&&(kt(a,e,o),ar(a,e,o))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var l=qt(),o=pn(l);o.tag=2,a!=null&&(o.callback=a),a=xn(e,o,l),a!==null&&(kt(a,e,l),ar(a,e,l))}};function cp(e,a,l,o,d,h,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,v):a.prototype&&a.prototype.isPureReactComponent?!Bl(l,o)||!Bl(d,h):!0}function up(e,a,l,o){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,o),a.state!==e&&Fu.enqueueReplaceState(a,a.state,null)}function Os(e,a){var l=a;if("ref"in a){l={};for(var o in a)o!=="ref"&&(l[o]=a[o])}if(e=e.defaultProps){l===a&&(l=x({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Op(e){yi(e)}function dp(e){console.error(e)}function fp(e){yi(e)}function Gi(e,a){try{var l=e.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function hp(e,a,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ku(e,a,l){return l=pn(l),l.tag=3,l.payload={element:null},l.callback=function(){Gi(e,a)},l}function mp(e){return e=pn(e),e.tag=3,e}function pp(e,a,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var h=o.value;e.payload=function(){return d(h)},e.callback=function(){hp(a,l,o)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){hp(a,l,o),typeof d!="function"&&(Sn===null?Sn=new Set([this]):Sn.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function US(e,a,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=l.alternate,a!==null&&Ls(a,l,d,!0),l=Zt.current,l!==null){switch(l.tag){case 31:case 13:return aa===null?ao():l.alternate===null&&Fe===0&&(Fe=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Ni?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([o]):a.add(o),SO(e,o,d)),!1;case 22:return l.flags|=65536,o===Ni?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([o]):l.add(o)),SO(e,o,d)),!1}throw Error(r(435,l.tag))}return SO(e,o,d),ao(),!1}if(je)return a=Zt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,o!==xu&&(e=Error(r(422),{cause:o}),Fl(Kt(e,l)))):(o!==xu&&(a=Error(r(423),{cause:o}),Fl(Kt(a,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=Kt(o,l),d=Ku(e.stateNode,o,d),ku(e,d),Fe!==4&&(Fe=2)),!1;var h=Error(r(520),{cause:o});if(h=Kt(h,l),pr===null?pr=[h]:pr.push(h),Fe!==4&&(Fe=2),a===null)return!0;o=Kt(o,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=Ku(l.stateNode,o,e),ku(l,e),!1;case 1:if(a=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Sn===null||!Sn.has(h))))return l.flags|=65536,d&=-d,l.lanes|=d,d=mp(d),pp(d,e,l,o),ku(l,d),!1}l=l.return}while(l!==null);return!1}var Ju=Error(r(461)),nt=!1;function mt(e,a,l,o){a.child=e===null?vm(a,null,l,o):cs(a,e.child,l,o)}function xp(e,a,l,o,d){l=l.render;var h=a.ref;if("ref"in o){var v={};for(var S in o)S!=="ref"&&(v[S]=o[S])}else v=o;return ls(a),o=_u(e,a,l,v,h,d),S=Zu(),e!==null&&!nt?(Cu(e,a,d),Ea(e,a,d)):(je&&S&&mu(a),a.flags|=1,mt(e,a,o,d),a.child)}function gp(e,a,l,o,d){if(e===null){var h=l.type;return typeof h=="function"&&!du(h)&&h.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=h,bp(e,a,h,o,d)):(e=wi(l.type,null,o,a,a.mode,d),e.ref=a.ref,e.return=a,a.child=e)}if(h=e.child,!iO(e,d)){var v=h.memoizedProps;if(l=l.compare,l=l!==null?l:Bl,l(v,o)&&e.ref===a.ref)return Ea(e,a,d)}return a.flags|=1,e=Ra(h,o),e.ref=a.ref,e.return=a,a.child=e}function bp(e,a,l,o,d){if(e!==null){var h=e.memoizedProps;if(Bl(h,o)&&e.ref===a.ref)if(nt=!1,a.pendingProps=o=h,iO(e,d))(e.flags&131072)!==0&&(nt=!0);else return a.lanes=e.lanes,Ea(e,a,d)}return eO(e,a,l,o,d)}function vp(e,a,l,o){var d=o.children,h=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,e!==null){for(o=a.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~h}else o=0,a.child=null;return yp(e,a,h,l,o)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pi(a,h!==null?h.cachePool:null),h!==null?Sm(a,h):zu(),$m(a);else return o=a.lanes=536870912,yp(e,a,h!==null?h.baseLanes|l:l,l,o)}else h!==null?(Pi(a,h.cachePool),Sm(a,h),bn(),a.memoizedState=null):(e!==null&&Pi(a,null),zu(),bn());return mt(e,a,d,l),a.child}function cr(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function yp(e,a,l,o,d){var h=$u();return h=h===null?null:{parent:tt._currentValue,pool:h},a.memoizedState={baseLanes:l,cachePool:h},e!==null&&Pi(a,null),zu(),$m(a),e!==null&&Ls(e,a,o,!0),a.childLanes=d,null}function Li(e,a){return a=Wi({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Qp(e,a,l){return cs(a,e.child,null,l),e=Li(a,a.pendingProps),e.flags|=2,Ct(a),a.memoizedState=null,e}function GS(e,a,l){var o=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(je){if(o.mode==="hidden")return e=Li(a,o),a.lanes=536870912,cr(null,e);if(Ru(a),(e=Ge)?(e=_x(e,ta),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:On!==null?{id:ga,overflow:ba}:null,retryLane:536870912,hydrationErrors:null},l=lm(e),l.return=a,a.child=l,ft=a,Ge=null)):e=null,e===null)throw fn(a);return a.lanes=536870912,null}return Li(a,o)}var h=e.memoizedState;if(h!==null){var v=h.dehydrated;if(Ru(a),d)if(a.flags&256)a.flags&=-257,a=Qp(e,a,l);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(r(558));else if(nt||Ls(e,a,l,!1),d=(l&e.childLanes)!==0,nt||d){if(o=Ve,o!==null&&(v=dh(o,l),v!==0&&v!==h.retryLane))throw h.retryLane=v,ts(e,v),kt(o,e,v),Ju;ao(),a=Qp(e,a,l)}else e=h.treeContext,Ge=na(v.nextSibling),ft=a,je=!0,dn=null,ta=!1,e!==null&&om(a,e),a=Li(a,o),a.flags|=4096;return a}return e=Ra(e.child,{mode:o.mode,children:o.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Di(e,a){var l=a.ref;if(l===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(a.flags|=4194816)}}function eO(e,a,l,o,d){return ls(a),l=_u(e,a,l,o,void 0,d),o=Zu(),e!==null&&!nt?(Cu(e,a,d),Ea(e,a,d)):(je&&o&&mu(a),a.flags|=1,mt(e,a,l,d),a.child)}function Sp(e,a,l,o,d,h){return ls(a),a.updateQueue=null,l=jm(a,o,l,d),wm(e),o=Zu(),e!==null&&!nt?(Cu(e,a,h),Ea(e,a,h)):(je&&o&&mu(a),a.flags|=1,mt(e,a,l,h),a.child)}function $p(e,a,l,o,d){if(ls(a),a.stateNode===null){var h=Ys,v=l.contextType;typeof v=="object"&&v!==null&&(h=ht(v)),h=new l(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Fu,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},ju(a),v=l.contextType,h.context=typeof v=="object"&&v!==null?ht(v):Ys,h.state=a.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(Iu(a,l,v,o),h.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(v=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),v!==h.state&&Fu.enqueueReplaceState(h,h.state,null),sr(a,o,h,d),nr(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(e===null){h=a.stateNode;var S=a.memoizedProps,T=Os(l,S);h.props=T;var E=h.context,D=l.contextType;v=Ys,typeof D=="object"&&D!==null&&(v=ht(D));var B=l.getDerivedStateFromProps;D=typeof B=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,D||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||E!==v)&&up(a,h,o,v),mn=!1;var M=a.memoizedState;h.state=M,sr(a,o,h,d),nr(),E=a.memoizedState,S||M!==E||mn?(typeof B=="function"&&(Iu(a,l,B,o),E=a.memoizedState),(T=mn||cp(a,l,T,o,M,E,v))?(D||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=o,a.memoizedState=E),h.props=o,h.state=E,h.context=v,o=T):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Tu(e,a),v=a.memoizedProps,D=Os(l,v),h.props=D,B=a.pendingProps,M=h.context,E=l.contextType,T=Ys,typeof E=="object"&&E!==null&&(T=ht(E)),S=l.getDerivedStateFromProps,(E=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==B||M!==T)&&up(a,h,o,T),mn=!1,M=a.memoizedState,h.state=M,sr(a,o,h,d),nr();var Y=a.memoizedState;v!==B||M!==Y||mn||e!==null&&e.dependencies!==null&&Ti(e.dependencies)?(typeof S=="function"&&(Iu(a,l,S,o),Y=a.memoizedState),(D=mn||cp(a,l,D,o,M,Y,T)||e!==null&&e.dependencies!==null&&Ti(e.dependencies))?(E||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,Y,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,Y,T)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&M===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&M===e.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=Y),h.props=o,h.state=Y,h.context=T,o=D):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&M===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&M===e.memoizedState||(a.flags|=1024),o=!1)}return h=o,Di(e,a),o=(a.flags&128)!==0,h||o?(h=a.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,e!==null&&o?(a.child=cs(a,e.child,null,d),a.child=cs(a,null,l,d)):mt(e,a,l,d),a.memoizedState=h.state,e=a.child):e=Ea(e,a,d),e}function wp(e,a,l,o){return ns(),a.flags|=256,mt(e,a,l,o),a.child}var tO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function aO(e){return{baseLanes:e,cachePool:hm()}}function nO(e,a,l){return e=e!==null?e.childLanes&~l:0,a&&(e|=Et),e}function jp(e,a,l){var o=a.pendingProps,d=!1,h=(a.flags&128)!==0,v;if((v=h)||(v=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),v&&(d=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,e===null){if(je){if(d?gn(a):bn(),(e=Ge)?(e=_x(e,ta),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:On!==null?{id:ga,overflow:ba}:null,retryLane:536870912,hydrationErrors:null},l=lm(e),l.return=a,a.child=l,ft=a,Ge=null)):e=null,e===null)throw fn(a);return qO(e)?a.lanes=32:a.lanes=536870912,null}var S=o.children;return o=o.fallback,d?(bn(),d=a.mode,S=Wi({mode:"hidden",children:S},d),o=as(o,d,l,null),S.return=a,o.return=a,S.sibling=o,a.child=S,o=a.child,o.memoizedState=aO(l),o.childLanes=nO(e,v,l),a.memoizedState=tO,cr(null,o)):(gn(a),sO(a,S))}var T=e.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(h)a.flags&256?(gn(a),a.flags&=-257,a=lO(e,a,l)):a.memoizedState!==null?(bn(),a.child=e.child,a.flags|=128,a=null):(bn(),S=o.fallback,d=a.mode,o=Wi({mode:"visible",children:o.children},d),S=as(S,d,l,null),S.flags|=2,o.return=a,S.return=a,o.sibling=S,a.child=o,cs(a,e.child,null,l),o=a.child,o.memoizedState=aO(l),o.childLanes=nO(e,v,l),a.memoizedState=tO,a=cr(null,o));else if(gn(a),qO(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var E=v.dgst;v=E,o=Error(r(419)),o.stack="",o.digest=v,Fl({value:o,source:null,stack:null}),a=lO(e,a,l)}else if(nt||Ls(e,a,l,!1),v=(l&e.childLanes)!==0,nt||v){if(v=Ve,v!==null&&(o=dh(v,l),o!==0&&o!==T.retryLane))throw T.retryLane=o,ts(e,o),kt(v,e,o),Ju;EO(S)||ao(),a=lO(e,a,l)}else EO(S)?(a.flags|=192,a.child=e.child,a=null):(e=T.treeContext,Ge=na(S.nextSibling),ft=a,je=!0,dn=null,ta=!1,e!==null&&om(a,e),a=sO(a,o.children),a.flags|=4096);return a}return d?(bn(),S=o.fallback,d=a.mode,T=e.child,E=T.sibling,o=Ra(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,E!==null?S=Ra(E,S):(S=as(S,d,l,null),S.flags|=2),S.return=a,o.return=a,o.sibling=S,a.child=o,cr(null,o),o=a.child,S=e.child.memoizedState,S===null?S=aO(l):(d=S.cachePool,d!==null?(T=tt._currentValue,d=d.parent!==T?{parent:T,pool:T}:d):d=hm(),S={baseLanes:S.baseLanes|l,cachePool:d}),o.memoizedState=S,o.childLanes=nO(e,v,l),a.memoizedState=tO,cr(e.child,o)):(gn(a),l=e.child,e=l.sibling,l=Ra(l,{mode:"visible",children:o.children}),l.return=a,l.sibling=null,e!==null&&(v=a.deletions,v===null?(a.deletions=[e],a.flags|=16):v.push(e)),a.child=l,a.memoizedState=null,l)}function sO(e,a){return a=Wi({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Wi(e,a){return e=_t(22,e,null,a),e.lanes=0,e}function lO(e,a,l){return cs(a,e.child,null,l),e=sO(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Tp(e,a,l){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a),vu(e.return,a,l)}function rO(e,a,l,o,d,h){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:h}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=l,v.tailMode=d,v.treeForkCount=h)}function kp(e,a,l){var o=a.pendingProps,d=o.revealOrder,h=o.tail;o=o.children;var v=Ke.current,S=(v&2)!==0;if(S?(v=v&1|2,a.flags|=128):v&=1,ye(Ke,v),mt(e,a,o,l),o=je?Il:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tp(e,l,a);else if(e.tag===19)Tp(e,l,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(d){case"forwards":for(l=a.child,d=null;l!==null;)e=l.alternate,e!==null&&Zi(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=a.child,a.child=null):(d=l.sibling,l.sibling=null),rO(a,!1,d,l,h,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=a.child,a.child=null;d!==null;){if(e=d.alternate,e!==null&&Zi(e)===null){a.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}rO(a,!0,l,null,h,o);break;case"together":rO(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function Ea(e,a,l){if(e!==null&&(a.dependencies=e.dependencies),Qn|=a.lanes,(l&a.childLanes)===0)if(e!==null){if(Ls(e,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(r(153));if(a.child!==null){for(e=a.child,l=Ra(e,e.pendingProps),a.child=l,l.return=a;e.sibling!==null;)e=e.sibling,l=l.sibling=Ra(e,e.pendingProps),l.return=a;l.sibling=null}return a.child}function iO(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Ti(e)))}function LS(e,a,l){switch(a.tag){case 3:Ot(a,a.stateNode.containerInfo),hn(a,tt,e.memoizedState.cache),ns();break;case 27:case 5:et(a);break;case 4:Ot(a,a.stateNode.containerInfo);break;case 10:hn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ru(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(gn(a),a.flags|=128,null):(l&a.child.childLanes)!==0?jp(e,a,l):(gn(a),e=Ea(e,a,l),e!==null?e.sibling:null);gn(a);break;case 19:var d=(e.flags&128)!==0;if(o=(l&a.childLanes)!==0,o||(Ls(e,a,l,!1),o=(l&a.childLanes)!==0),d){if(o)return kp(e,a,l);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ye(Ke,Ke.current),o)break;return null;case 22:return a.lanes=0,vp(e,a,l,a.pendingProps);case 24:hn(a,tt,e.memoizedState.cache)}return Ea(e,a,l)}function Pp(e,a,l){if(e!==null)if(e.memoizedProps!==a.pendingProps)nt=!0;else{if(!iO(e,l)&&(a.flags&128)===0)return nt=!1,LS(e,a,l);nt=(e.flags&131072)!==0}else nt=!1,je&&(a.flags&1048576)!==0&&im(a,Il,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(e=is(a.elementType),a.type=e,typeof e=="function")du(e)?(o=Os(e,o),a.tag=1,a=$p(null,a,e,o,l)):(a.tag=0,a=eO(null,a,e,o,l));else{if(e!=null){var d=e.$$typeof;if(d===C){a.tag=11,a=xp(null,a,e,o,l);break e}else if(d===G){a.tag=14,a=gp(null,a,e,o,l);break e}}throw a=me(e)||e,Error(r(306,a,""))}}return a;case 0:return eO(e,a,a.type,a.pendingProps,l);case 1:return o=a.type,d=Os(o,a.pendingProps),$p(e,a,o,d,l);case 3:e:{if(Ot(a,a.stateNode.containerInfo),e===null)throw Error(r(387));o=a.pendingProps;var h=a.memoizedState;d=h.element,Tu(e,a),sr(a,o,null,l);var v=a.memoizedState;if(o=v.cache,hn(a,tt,o),o!==h.cache&&yu(a,[tt],l,!0),nr(),o=v.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=wp(e,a,o,l);break e}else if(o!==d){d=Kt(Error(r(424)),a),Fl(d),a=wp(e,a,o,l);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(Ge=na(e.firstChild),ft=a,je=!0,dn=null,ta=!0,l=vm(a,null,o,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ns(),o===d){a=Ea(e,a,l);break e}mt(e,a,o,l)}a=a.child}return a;case 26:return Di(e,a),e===null?(l=Mx(a.type,null,a.pendingProps,null))?a.memoizedState=l:je||(l=a.type,e=a.pendingProps,o=co(ie.current).createElement(l),o[dt]=a,o[Qt]=e,pt(o,l,e),ct(o),a.stateNode=o):a.memoizedState=Mx(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return et(a),e===null&&je&&(o=a.stateNode=Ax(a.type,a.pendingProps,ie.current),ft=a,ta=!0,d=Ge,Tn(a.type)?(MO=d,Ge=na(o.firstChild)):Ge=d),mt(e,a,a.pendingProps.children,l),Di(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&je&&((d=o=Ge)&&(o=y2(o,a.type,a.pendingProps,ta),o!==null?(a.stateNode=o,ft=a,Ge=na(o.firstChild),ta=!1,d=!0):d=!1),d||fn(a)),et(a),d=a.type,h=a.pendingProps,v=e!==null?e.memoizedProps:null,o=h.children,ZO(d,h)?o=null:v!==null&&ZO(d,v)&&(a.flags|=32),a.memoizedState!==null&&(d=_u(e,a,CS,null,null,l),$r._currentValue=d),Di(e,a),mt(e,a,o,l),a.child;case 6:return e===null&&je&&((e=l=Ge)&&(l=Q2(l,a.pendingProps,ta),l!==null?(a.stateNode=l,ft=a,Ge=null,e=!0):e=!1),e||fn(a)),null;case 13:return jp(e,a,l);case 4:return Ot(a,a.stateNode.containerInfo),o=a.pendingProps,e===null?a.child=cs(a,null,o,l):mt(e,a,o,l),a.child;case 11:return xp(e,a,a.type,a.pendingProps,l);case 7:return mt(e,a,a.pendingProps,l),a.child;case 8:return mt(e,a,a.pendingProps.children,l),a.child;case 12:return mt(e,a,a.pendingProps.children,l),a.child;case 10:return o=a.pendingProps,hn(a,a.type,o.value),mt(e,a,o.children,l),a.child;case 9:return d=a.type._context,o=a.pendingProps.children,ls(a),d=ht(d),o=o(d),a.flags|=1,mt(e,a,o,l),a.child;case 14:return gp(e,a,a.type,a.pendingProps,l);case 15:return bp(e,a,a.type,a.pendingProps,l);case 19:return kp(e,a,l);case 31:return GS(e,a,l);case 22:return vp(e,a,l,a.pendingProps);case 24:return ls(a),o=ht(tt),e===null?(d=$u(),d===null&&(d=Ve,h=Qu(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=l),d=h),a.memoizedState={parent:o,cache:d},ju(a),hn(a,tt,d)):((e.lanes&l)!==0&&(Tu(e,a),sr(a,null,null,l),nr()),d=e.memoizedState,h=a.memoizedState,d.parent!==o?(d={parent:o,cache:o},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),hn(a,tt,o)):(o=h.cache,hn(a,tt,o),o!==d.cache&&yu(a,[tt],l,!0))),mt(e,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function qa(e){e.flags|=4}function oO(e,a,l,o,d){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(ax())e.flags|=8192;else throw os=Ni,wu}else e.flags&=-16777217}function zp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lx(a))if(ax())e.flags|=8192;else throw os=Ni,wu}function Bi(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?ch():536870912,e.lanes|=a,nl|=a)}function ur(e,a){if(!je)switch(e.tailMode){case"hidden":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Le(e){var a=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(a)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=l,a}function DS(e,a,l){var o=a.pendingProps;switch(pu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(a),null;case 1:return Le(a),null;case 3:return l=a.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Za(tt),Xe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Gs(a)?qa(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,gu())),Le(a),null;case 26:var d=a.type,h=a.memoizedState;return e===null?(qa(a),h!==null?(Le(a),zp(a,h)):(Le(a),oO(a,d,null,o,l))):h?h!==e.memoizedState?(qa(a),Le(a),zp(a,h)):(Le(a),a.flags&=-16777217):(e=e.memoizedProps,e!==o&&qa(a),Le(a),oO(a,d,e,o,l)),null;case 27:if(gt(a),l=ie.current,d=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&qa(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Le(a),null}e=Ye.current,Gs(a)?cm(a):(e=Ax(d,o,l),a.stateNode=e,qa(a))}return Le(a),null;case 5:if(gt(a),d=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&qa(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return Le(a),null}if(h=Ye.current,Gs(a))cm(a);else{var v=co(ie.current);switch(h){case 1:h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=v.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?v.createElement(d,{is:o.is}):v.createElement(d)}}h[dt]=a,h[Qt]=o;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=h;e:switch(pt(h,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&qa(a)}}return Le(a),oO(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,l),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==o&&qa(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(e=ie.current,Gs(a)){if(e=a.stateNode,l=a.memoizedProps,o=null,d=ft,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[dt]=a,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||jx(e.nodeValue,l)),e||fn(a,!0)}else e=co(e).createTextNode(o),e[dt]=a,a.stateNode=e}return Le(a),null;case 31:if(l=a.memoizedState,e===null||e.memoizedState!==null){if(o=Gs(a),l!==null){if(e===null){if(!o)throw Error(r(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[dt]=a}else ns(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Le(a),e=!1}else l=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return a.flags&256?(Ct(a),a):(Ct(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Le(a),null;case 13:if(o=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Gs(a),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[dt]=a}else ns(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Le(a),d=!1}else d=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(Ct(a),a):(Ct(a),null)}return Ct(a),(a.flags&128)!==0?(a.lanes=l,a):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=a.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==d&&(o.flags|=2048)),l!==e&&l&&(a.child.flags|=8192),Bi(a,a.updateQueue),Le(a),null);case 4:return Xe(),e===null&&zO(a.stateNode.containerInfo),Le(a),null;case 10:return Za(a.type),Le(a),null;case 19:if(Re(Ke),o=a.memoizedState,o===null)return Le(a),null;if(d=(a.flags&128)!==0,h=o.rendering,h===null)if(d)ur(o,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(h=Zi(e),h!==null){for(a.flags|=128,ur(o,!1),e=h.updateQueue,a.updateQueue=e,Bi(a,e),a.subtreeFlags=0,e=l,l=a.child;l!==null;)sm(l,e),l=l.sibling;return ye(Ke,Ke.current&1|2),je&&Xa(a,o.treeForkCount),a.child}e=e.sibling}o.tail!==null&&zt()>Ji&&(a.flags|=128,d=!0,ur(o,!1),a.lanes=4194304)}else{if(!d)if(e=Zi(h),e!==null){if(a.flags|=128,d=!0,e=e.updateQueue,a.updateQueue=e,Bi(a,e),ur(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!je)return Le(a),null}else 2*zt()-o.renderingStartTime>Ji&&l!==536870912&&(a.flags|=128,d=!0,ur(o,!1),a.lanes=4194304);o.isBackwards?(h.sibling=a.child,a.child=h):(e=o.last,e!==null?e.sibling=h:a.child=h,o.last=h)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=zt(),e.sibling=null,l=Ke.current,ye(Ke,d?l&1|2:l&1),je&&Xa(a,o.treeForkCount),e):(Le(a),null);case 22:case 23:return Ct(a),Nu(),o=a.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(l&536870912)!==0&&(a.flags&128)===0&&(Le(a),a.subtreeFlags&6&&(a.flags|=8192)):Le(a),l=a.updateQueue,l!==null&&Bi(a,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==l&&(a.flags|=2048),e!==null&&Re(rs),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Za(tt),Le(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function WS(e,a){switch(pu(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Za(tt),Xe(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return gt(a),null;case 31:if(a.memoizedState!==null){if(Ct(a),a.alternate===null)throw Error(r(340));ns()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Ct(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ns()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Re(Ke),null;case 4:return Xe(),null;case 10:return Za(a.type),null;case 22:case 23:return Ct(a),Nu(),e!==null&&Re(rs),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Za(tt),null;case 25:return null;default:return null}}function Np(e,a){switch(pu(a),a.tag){case 3:Za(tt),Xe();break;case 26:case 27:case 5:gt(a);break;case 4:Xe();break;case 31:a.memoizedState!==null&&Ct(a);break;case 13:Ct(a);break;case 19:Re(Ke);break;case 10:Za(a.type);break;case 22:case 23:Ct(a),Nu(),e!==null&&Re(rs);break;case 24:Za(tt)}}function Or(e,a){try{var l=a.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&e)===e){o=void 0;var h=l.create,v=l.inst;o=h(),v.destroy=o}l=l.next}while(l!==d)}}catch(S){Ae(a,a.return,S)}}function vn(e,a,l){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var h=d.next;o=h;do{if((o.tag&e)===e){var v=o.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,d=a;var T=l,E=S;try{E()}catch(D){Ae(d,T,D)}}}o=o.next}while(o!==h)}}catch(D){Ae(a,a.return,D)}}function Rp(e){var a=e.updateQueue;if(a!==null){var l=e.stateNode;try{Qm(a,l)}catch(o){Ae(e,e.return,o)}}}function Xp(e,a,l){l.props=Os(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Ae(e,a,o)}}function dr(e,a){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(d){Ae(e,a,d)}}function va(e,a){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Ae(e,a,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Ae(e,a,d)}else l.current=null}function _p(e){var a=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(d){Ae(e,e.return,d)}}function cO(e,a,l){try{var o=e.stateNode;m2(o,e.type,l,a),o[Qt]=a}catch(d){Ae(e,e.return,d)}}function Zp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tn(e.type)||e.tag===4}function uO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zp(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&&Tn(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 OO(e,a,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(e),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=za));else if(o!==4&&(o===27&&Tn(e.type)&&(l=e.stateNode,a=null),e=e.child,e!==null))for(OO(e,a,l),e=e.sibling;e!==null;)OO(e,a,l),e=e.sibling}function Hi(e,a,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?l.insertBefore(e,a):l.appendChild(e);else if(o!==4&&(o===27&&Tn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hi(e,a,l),e=e.sibling;e!==null;)Hi(e,a,l),e=e.sibling}function Cp(e){var a=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);pt(a,o,l),a[dt]=e,a[Qt]=l}catch(h){Ae(e,e.return,h)}}var Ma=!1,st=!1,dO=!1,Ap=typeof WeakSet=="function"?WeakSet:Set,ut=null;function BS(e,a){if(e=e.containerInfo,XO=xo,e=Hh(e),lu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var d=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var v=0,S=-1,T=-1,E=0,D=0,B=e,M=null;t:for(;;){for(var Y;B!==l||d!==0&&B.nodeType!==3||(S=v+d),B!==h||o!==0&&B.nodeType!==3||(T=v+o),B.nodeType===3&&(v+=B.nodeValue.length),(Y=B.firstChild)!==null;)M=B,B=Y;for(;;){if(B===e)break t;if(M===l&&++E===d&&(S=v),M===h&&++D===o&&(T=v),(Y=B.nextSibling)!==null)break;B=M,M=B.parentNode}B=Y}l=S===-1||T===-1?null:{start:S,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(_O={focusedElem:e,selectionRange:l},xo=!1,ut=a;ut!==null;)if(a=ut,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,ut=e;else for(;ut!==null;){switch(a=ut,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(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,l=a,d=h.memoizedProps,h=h.memoizedState,o=l.stateNode;try{var se=Os(l.type,d);e=o.getSnapshotBeforeUpdate(se,h),o.__reactInternalSnapshotBeforeUpdate=e}catch(de){Ae(l,l.return,de)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,l=e.nodeType,l===9)AO(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":AO(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(r(163))}if(e=a.sibling,e!==null){e.return=a.return,ut=e;break}ut=a.return}}function Ep(e,a,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Va(e,l),o&4&&Or(5,l);break;case 1:if(Va(e,l),o&4)if(e=l.stateNode,a===null)try{e.componentDidMount()}catch(v){Ae(l,l.return,v)}else{var d=Os(l.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(d,a,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ae(l,l.return,v)}}o&64&&Rp(l),o&512&&dr(l,l.return);break;case 3:if(Va(e,l),o&64&&(e=l.updateQueue,e!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Qm(e,a)}catch(v){Ae(l,l.return,v)}}break;case 27:a===null&&o&4&&Cp(l);case 26:case 5:Va(e,l),a===null&&o&4&&_p(l),o&512&&dr(l,l.return);break;case 12:Va(e,l);break;case 31:Va(e,l),o&4&&Yp(e,l);break;case 13:Va(e,l),o&4&&Vp(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=n2.bind(null,l),S2(e,l))));break;case 22:if(o=l.memoizedState!==null||Ma,!o){a=a!==null&&a.memoizedState!==null||st,d=Ma;var h=st;Ma=o,(st=a)&&!h?Ua(e,l,(l.subtreeFlags&8772)!==0):Va(e,l),Ma=d,st=h}break;case 30:break;default:Va(e,l)}}function qp(e){var a=e.alternate;a!==null&&(e.alternate=null,qp(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&Vc(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 We=null,$t=!1;function Ya(e,a,l){for(l=l.child;l!==null;)Mp(e,a,l),l=l.sibling}function Mp(e,a,l){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Cl,l)}catch{}switch(l.tag){case 26:st||va(l,a),Ya(e,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:st||va(l,a);var o=We,d=$t;Tn(l.type)&&(We=l.stateNode,$t=!1),Ya(e,a,l),yr(l.stateNode),We=o,$t=d;break;case 5:st||va(l,a);case 6:if(o=We,d=$t,We=null,Ya(e,a,l),We=o,$t=d,We!==null)if($t)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(l.stateNode)}catch(h){Ae(l,a,h)}else try{We.removeChild(l.stateNode)}catch(h){Ae(l,a,h)}break;case 18:We!==null&&($t?(e=We,Rx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ol(e)):Rx(We,l.stateNode));break;case 4:o=We,d=$t,We=l.stateNode.containerInfo,$t=!0,Ya(e,a,l),We=o,$t=d;break;case 0:case 11:case 14:case 15:vn(2,l,a),st||vn(4,l,a),Ya(e,a,l);break;case 1:st||(va(l,a),o=l.stateNode,typeof o.componentWillUnmount=="function"&&Xp(l,a,o)),Ya(e,a,l);break;case 21:Ya(e,a,l);break;case 22:st=(o=st)||l.memoizedState!==null,Ya(e,a,l),st=o;break;default:Ya(e,a,l)}}function Yp(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ol(e)}catch(l){Ae(a,a.return,l)}}}function Vp(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ol(e)}catch(l){Ae(a,a.return,l)}}function HS(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Ap),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Ap),a;default:throw Error(r(435,e.tag))}}function Ii(e,a){var l=HS(e);a.forEach(function(o){if(!l.has(o)){l.add(o);var d=s2.bind(null,e,o);o.then(d,d)}})}function wt(e,a){var l=a.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],h=e,v=a,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(Tn(S.type)){We=S.stateNode,$t=!1;break e}break;case 5:We=S.stateNode,$t=!1;break e;case 3:case 4:We=S.stateNode.containerInfo,$t=!0;break e}S=S.return}if(We===null)throw Error(r(160));Mp(h,v,d),We=null,$t=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Up(a,e),a=a.sibling}var ca=null;function Up(e,a){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(a,e),jt(e),o&4&&(vn(3,e,e.return),Or(3,e),vn(5,e,e.return));break;case 1:wt(a,e),jt(e),o&512&&(st||l===null||va(l,l.return)),o&64&&Ma&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var d=ca;if(wt(a,e),jt(e),o&512&&(st||l===null||va(l,l.return)),o&4){var h=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":h=d.getElementsByTagName("title")[0],(!h||h[ql]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(o),d.head.insertBefore(h,d.querySelector("head > title"))),pt(h,o,l),h[dt]=e,ct(h),o=h;break e;case"link":var v=Ux("link","href",d).get(o+(l.href||""));if(v){for(var S=0;S<v.length;S++)if(h=v[S],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(S,1);break t}}h=d.createElement(o),pt(h,o,l),d.head.appendChild(h);break;case"meta":if(v=Ux("meta","content",d).get(o+(l.content||""))){for(S=0;S<v.length;S++)if(h=v[S],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(S,1);break t}}h=d.createElement(o),pt(h,o,l),d.head.appendChild(h);break;default:throw Error(r(468,o))}h[dt]=e,ct(h),o=h}e.stateNode=o}else Gx(d,e.type,e.stateNode);else e.stateNode=Vx(d,o,e.memoizedProps);else h!==o?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,o===null?Gx(d,e.type,e.stateNode):Vx(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&cO(e,e.memoizedProps,l.memoizedProps)}break;case 27:wt(a,e),jt(e),o&512&&(st||l===null||va(l,l.return)),l!==null&&o&4&&cO(e,e.memoizedProps,l.memoizedProps);break;case 5:if(wt(a,e),jt(e),o&512&&(st||l===null||va(l,l.return)),e.flags&32){d=e.stateNode;try{_s(d,"")}catch(se){Ae(e,e.return,se)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,cO(e,d,l!==null?l.memoizedProps:d)),o&1024&&(dO=!0);break;case 6:if(wt(a,e),jt(e),o&4){if(e.stateNode===null)throw Error(r(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(se){Ae(e,e.return,se)}}break;case 3:if(fo=null,d=ca,ca=uo(a.containerInfo),wt(a,e),ca=d,jt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{Ol(a.containerInfo)}catch(se){Ae(e,e.return,se)}dO&&(dO=!1,Gp(e));break;case 4:o=ca,ca=uo(e.stateNode.containerInfo),wt(a,e),jt(e),ca=o;break;case 12:wt(a,e),jt(e);break;case 31:wt(a,e),jt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ii(e,o)));break;case 13:wt(a,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ki=zt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ii(e,o)));break;case 22:d=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,E=Ma,D=st;if(Ma=E||d,st=D||T,wt(a,e),st=D,Ma=E,jt(e),o&8192)e:for(a=e.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(l===null||T||Ma||st||ds(e)),l=null,a=e;;){if(a.tag===5||a.tag===26){if(l===null){T=l=a;try{if(h=T.stateNode,d)v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=T.stateNode;var B=T.memoizedProps.style,M=B!=null&&B.hasOwnProperty("display")?B.display:null;S.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(se){Ae(T,T.return,se)}}}else if(a.tag===6){if(l===null){T=a;try{T.stateNode.nodeValue=d?"":T.memoizedProps}catch(se){Ae(T,T.return,se)}}}else if(a.tag===18){if(l===null){T=a;try{var Y=T.stateNode;d?Xx(Y,!0):Xx(T.stateNode,!1)}catch(se){Ae(T,T.return,se)}}}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;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Ii(e,l))));break;case 19:wt(a,e),jt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Ii(e,o)));break;case 30:break;case 21:break;default:wt(a,e),jt(e)}}function jt(e){var a=e.flags;if(a&2){try{for(var l,o=e.return;o!==null;){if(Zp(o)){l=o;break}o=o.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var d=l.stateNode,h=uO(e);Hi(e,h,d);break;case 5:var v=l.stateNode;l.flags&32&&(_s(v,""),l.flags&=-33);var S=uO(e);Hi(e,S,v);break;case 3:case 4:var T=l.stateNode.containerInfo,E=uO(e);OO(e,E,T);break;default:throw Error(r(161))}}catch(D){Ae(e,e.return,D)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Gp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;Gp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Va(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ep(e,a.alternate,a),a=a.sibling}function ds(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:vn(4,a,a.return),ds(a);break;case 1:va(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Xp(a,a.return,l),ds(a);break;case 27:yr(a.stateNode);case 26:case 5:va(a,a.return),ds(a);break;case 22:a.memoizedState===null&&ds(a);break;case 30:ds(a);break;default:ds(a)}e=e.sibling}}function Ua(e,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,d=e,h=a,v=h.flags;switch(h.tag){case 0:case 11:case 15:Ua(d,h,l),Or(4,h);break;case 1:if(Ua(d,h,l),o=h,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(E){Ae(o,o.return,E)}if(o=h,d=o.updateQueue,d!==null){var S=o.stateNode;try{var T=d.shared.hiddenCallbacks;if(T!==null)for(d.shared.hiddenCallbacks=null,d=0;d<T.length;d++)ym(T[d],S)}catch(E){Ae(o,o.return,E)}}l&&v&64&&Rp(h),dr(h,h.return);break;case 27:Cp(h);case 26:case 5:Ua(d,h,l),l&&o===null&&v&4&&_p(h),dr(h,h.return);break;case 12:Ua(d,h,l);break;case 31:Ua(d,h,l),l&&v&4&&Yp(d,h);break;case 13:Ua(d,h,l),l&&v&4&&Vp(d,h);break;case 22:h.memoizedState===null&&Ua(d,h,l),dr(h,h.return);break;case 30:break;default:Ua(d,h,l)}a=a.sibling}}function fO(e,a){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Kl(l))}function hO(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&Kl(e))}function ua(e,a,l,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Lp(e,a,l,o),a=a.sibling}function Lp(e,a,l,o){var d=a.flags;switch(a.tag){case 0:case 11:case 15:ua(e,a,l,o),d&2048&&Or(9,a);break;case 1:ua(e,a,l,o);break;case 3:ua(e,a,l,o),d&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&Kl(e)));break;case 12:if(d&2048){ua(e,a,l,o),e=a.stateNode;try{var h=a.memoizedProps,v=h.id,S=h.onPostCommit;typeof S=="function"&&S(v,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ae(a,a.return,T)}}else ua(e,a,l,o);break;case 31:ua(e,a,l,o);break;case 13:ua(e,a,l,o);break;case 23:break;case 22:h=a.stateNode,v=a.alternate,a.memoizedState!==null?h._visibility&2?ua(e,a,l,o):fr(e,a):h._visibility&2?ua(e,a,l,o):(h._visibility|=2,el(e,a,l,o,(a.subtreeFlags&10256)!==0||!1)),d&2048&&fO(v,a);break;case 24:ua(e,a,l,o),d&2048&&hO(a.alternate,a);break;default:ua(e,a,l,o)}}function el(e,a,l,o,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=e,v=a,S=l,T=o,E=v.flags;switch(v.tag){case 0:case 11:case 15:el(h,v,S,T,d),Or(8,v);break;case 23:break;case 22:var D=v.stateNode;v.memoizedState!==null?D._visibility&2?el(h,v,S,T,d):fr(h,v):(D._visibility|=2,el(h,v,S,T,d)),d&&E&2048&&fO(v.alternate,v);break;case 24:el(h,v,S,T,d),d&&E&2048&&hO(v.alternate,v);break;default:el(h,v,S,T,d)}a=a.sibling}}function fr(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=e,o=a,d=o.flags;switch(o.tag){case 22:fr(l,o),d&2048&&fO(o.alternate,o);break;case 24:fr(l,o),d&2048&&hO(o.alternate,o);break;default:fr(l,o)}a=a.sibling}}var hr=8192;function tl(e,a,l){if(e.subtreeFlags&hr)for(e=e.child;e!==null;)Dp(e,a,l),e=e.sibling}function Dp(e,a,l){switch(e.tag){case 26:tl(e,a,l),e.flags&hr&&e.memoizedState!==null&&Z2(l,ca,e.memoizedState,e.memoizedProps);break;case 5:tl(e,a,l);break;case 3:case 4:var o=ca;ca=uo(e.stateNode.containerInfo),tl(e,a,l),ca=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=hr,hr=16777216,tl(e,a,l),hr=o):tl(e,a,l));break;default:tl(e,a,l)}}function Wp(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 mr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var o=a[l];ut=o,Hp(o,e)}Wp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bp(e),e=e.sibling}function Bp(e){switch(e.tag){case 0:case 11:case 15:mr(e),e.flags&2048&&vn(9,e,e.return);break;case 3:mr(e);break;case 12:mr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,Fi(e)):mr(e);break;default:mr(e)}}function Fi(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var o=a[l];ut=o,Hp(o,e)}Wp(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:vn(8,a,a.return),Fi(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Fi(a));break;default:Fi(a)}e=e.sibling}}function Hp(e,a){for(;ut!==null;){var l=ut;switch(l.tag){case 0:case 11:case 15:vn(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Kl(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,ut=o;else e:for(l=e;ut!==null;){o=ut;var d=o.sibling,h=o.return;if(qp(o),o===l){ut=null;break e}if(d!==null){d.return=h,ut=d;break e}ut=h}}}var IS={getCacheForType:function(e){var a=ht(tt),l=a.data.get(e);return l===void 0&&(l=e(),a.data.set(e,l)),l},cacheSignal:function(){return ht(tt).controller.signal}},FS=typeof WeakMap=="function"?WeakMap:Map,_e=0,Ve=null,Qe=null,$e=0,Ce=0,At=null,yn=!1,al=!1,mO=!1,Ga=0,Fe=0,Qn=0,fs=0,pO=0,Et=0,nl=0,pr=null,Tt=null,xO=!1,Ki=0,Ip=0,Ji=1/0,eo=null,Sn=null,rt=0,$n=null,sl=null,La=0,gO=0,bO=null,Fp=null,xr=0,vO=null;function qt(){return(_e&2)!==0&&$e!==0?$e&-$e:_.T!==null?jO():fh()}function Kp(){if(Et===0)if(($e&536870912)===0||je){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),Et=e}else Et=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Et}function kt(e,a,l){(e===Ve&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(ll(e,0),wn(e,$e,Et,!1)),El(e,l),((_e&2)===0||e!==Ve)&&(e===Ve&&((_e&2)===0&&(fs|=l),Fe===4&&wn(e,$e,Et,!1)),ya(e))}function Jp(e,a,l){if((_e&6)!==0)throw Error(r(327));var o=!l&&(a&127)===0&&(a&e.expiredLanes)===0||Al(e,a),d=o?e2(e,a):QO(e,a,!0),h=o;do{if(d===0){al&&!o&&wn(e,a,0,!1);break}else{if(l=e.current.alternate,h&&!KS(l)){d=QO(e,a,!1),h=!1;continue}if(d===2){if(h=a,e.errorRecoveryDisabledLanes&h)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var S=e;d=pr;var T=S.current.memoizedState.isDehydrated;if(T&&(ll(S,v).flags|=256),v=QO(S,v,!1),v!==2){if(mO&&!T){S.errorRecoveryDisabledLanes|=h,fs|=h,d=4;break e}h=Tt,Tt=d,h!==null&&(Tt===null?Tt=h:Tt.push.apply(Tt,h))}d=v}if(h=!1,d!==2)continue}}if(d===1){ll(e,0),wn(e,a,0,!0);break}e:{switch(o=e,h=d,h){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:wn(o,a,Et,!yn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(d=Ki+300-zt(),10<d)){if(wn(o,a,Et,!yn),ui(o,0,!0)!==0)break e;La=a,o.timeoutHandle=zx(ex.bind(null,o,l,Tt,eo,xO,a,Et,fs,nl,yn,h,"Throttled",-0,0),d);break e}ex(o,l,Tt,eo,xO,a,Et,fs,nl,yn,h,null,-0,0)}}break}while(!0);ya(e)}function ex(e,a,l,o,d,h,v,S,T,E,D,B,M,Y){if(e.timeoutHandle=-1,B=a.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:za},Dp(a,h,B);var se=(h&62914560)===h?Ki-zt():(h&4194048)===h?Ip-zt():0;if(se=C2(B,se),se!==null){La=h,e.cancelPendingCommit=se(ox.bind(null,e,a,h,l,o,d,v,S,T,D,B,null,M,Y)),wn(e,h,v,!E);return}}ox(e,a,h,l,o,d,v,S,T)}function KS(e){for(var a=e;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var d=l[o],h=d.getSnapshot;d=d.value;try{if(!Xt(h(),d))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;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 wn(e,a,l,o){a&=~pO,a&=~fs,e.suspendedLanes|=a,e.pingedLanes&=~a,o&&(e.warmLanes|=a),o=e.expirationTimes;for(var d=a;0<d;){var h=31-Rt(d),v=1<<h;o[h]=-1,d&=~v}l!==0&&uh(e,l,a)}function to(){return(_e&6)===0?(gr(0),!1):!0}function yO(){if(Qe!==null){if(Ce===0)var e=Qe.return;else e=Qe,_a=ss=null,Au(e),Hs=null,er=0,e=Qe;for(;e!==null;)Np(e.alternate,e),e=e.return;Qe=null}}function ll(e,a){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,g2(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),La=0,yO(),Ve=e,Qe=l=Ra(e.current,null),$e=a,Ce=0,At=null,yn=!1,al=Al(e,a),mO=!1,nl=Et=pO=fs=Qn=Fe=0,Tt=pr=null,xO=!1,(a&8)!==0&&(a|=a&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=a;0<o;){var d=31-Rt(o),h=1<<d;a|=e[d],o&=~h}return Ga=a,Qi(),l}function tx(e,a){xe=null,_.H=or,a===Bs||a===zi?(a=xm(),Ce=3):a===wu?(a=xm(),Ce=4):Ce=a===Ju?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,At=a,Qe===null&&(Fe=1,Gi(e,Kt(a,e.current)))}function ax(){var e=Zt.current;return e===null?!0:($e&4194048)===$e?aa===null:($e&62914560)===$e||($e&536870912)!==0?e===aa:!1}function nx(){var e=_.H;return _.H=or,e===null?or:e}function sx(){var e=_.A;return _.A=IS,e}function ao(){Fe=4,yn||($e&4194048)!==$e&&Zt.current!==null||(al=!0),(Qn&134217727)===0&&(fs&134217727)===0||Ve===null||wn(Ve,$e,Et,!1)}function QO(e,a,l){var o=_e;_e|=2;var d=nx(),h=sx();(Ve!==e||$e!==a)&&(eo=null,ll(e,a)),a=!1;var v=Fe;e:do try{if(Ce!==0&&Qe!==null){var S=Qe,T=At;switch(Ce){case 8:yO(),v=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(a=!0);var E=Ce;if(Ce=0,At=null,rl(e,S,T,E),l&&al){v=0;break e}break;default:E=Ce,Ce=0,At=null,rl(e,S,T,E)}}JS(),v=Fe;break}catch(D){tx(e,D)}while(!0);return a&&e.shellSuspendCounter++,_a=ss=null,_e=o,_.H=d,_.A=h,Qe===null&&(Ve=null,$e=0,Qi()),v}function JS(){for(;Qe!==null;)lx(Qe)}function e2(e,a){var l=_e;_e|=2;var o=nx(),d=sx();Ve!==e||$e!==a?(eo=null,Ji=zt()+500,ll(e,a)):al=Al(e,a);e:do try{if(Ce!==0&&Qe!==null){a=Qe;var h=At;t:switch(Ce){case 1:Ce=0,At=null,rl(e,a,h,1);break;case 2:case 9:if(mm(h)){Ce=0,At=null,rx(a);break}a=function(){Ce!==2&&Ce!==9||Ve!==e||(Ce=7),ya(e)},h.then(a,a);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:mm(h)?(Ce=0,At=null,rx(a)):(Ce=0,At=null,rl(e,a,h,7));break;case 5:var v=null;switch(Qe.tag){case 26:v=Qe.memoizedState;case 5:case 27:var S=Qe;if(v?Lx(v):S.stateNode.complete){Ce=0,At=null;var T=S.sibling;if(T!==null)Qe=T;else{var E=S.return;E!==null?(Qe=E,no(E)):Qe=null}break t}}Ce=0,At=null,rl(e,a,h,5);break;case 6:Ce=0,At=null,rl(e,a,h,6);break;case 8:yO(),Fe=6;break e;default:throw Error(r(462))}}t2();break}catch(D){tx(e,D)}while(!0);return _a=ss=null,_.H=o,_.A=d,_e=l,Qe!==null?0:(Ve=null,$e=0,Qi(),Fe)}function t2(){for(;Qe!==null&&!$Q();)lx(Qe)}function lx(e){var a=Pp(e.alternate,e,Ga);e.memoizedProps=e.pendingProps,a===null?no(e):Qe=a}function rx(e){var a=e,l=a.alternate;switch(a.tag){case 15:case 0:a=Sp(l,a,a.pendingProps,a.type,void 0,$e);break;case 11:a=Sp(l,a,a.pendingProps,a.type.render,a.ref,$e);break;case 5:Au(a);default:Np(l,a),a=Qe=sm(a,Ga),a=Pp(l,a,Ga)}e.memoizedProps=e.pendingProps,a===null?no(e):Qe=a}function rl(e,a,l,o){_a=ss=null,Au(a),Hs=null,er=0;var d=a.return;try{if(US(e,d,a,l,$e)){Fe=1,Gi(e,Kt(l,e.current)),Qe=null;return}}catch(h){if(d!==null)throw Qe=d,h;Fe=1,Gi(e,Kt(l,e.current)),Qe=null;return}a.flags&32768?(je||o===1?e=!0:al||($e&536870912)!==0?e=!1:(yn=e=!0,(o===2||o===9||o===3||o===6)&&(o=Zt.current,o!==null&&o.tag===13&&(o.flags|=16384))),ix(a,e)):no(a)}function no(e){var a=e;do{if((a.flags&32768)!==0){ix(a,yn);return}e=a.return;var l=DS(a.alternate,a,Ga);if(l!==null){Qe=l;return}if(a=a.sibling,a!==null){Qe=a;return}Qe=a=e}while(a!==null);Fe===0&&(Fe=5)}function ix(e,a){do{var l=WS(e.alternate,e);if(l!==null){l.flags&=32767,Qe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=l}while(e!==null);Fe=6,Qe=null}function ox(e,a,l,o,d,h,v,S,T){e.cancelPendingCommit=null;do so();while(rt!==0);if((_e&6)!==0)throw Error(r(327));if(a!==null){if(a===e.current)throw Error(r(177));if(h=a.lanes|a.childLanes,h|=uu,_Q(e,l,h,v,S,T),e===Ve&&(Qe=Ve=null,$e=0),sl=a,$n=e,La=l,gO=h,bO=d,Fp=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,l2(ri,function(){return fx(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=_.T,_.T=null,d=I.p,I.p=2,v=_e,_e|=4;try{BS(e,a,l)}finally{_e=v,I.p=d,_.T=o}}rt=1,cx(),ux(),Ox()}}function cx(){if(rt===1){rt=0;var e=$n,a=sl,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var o=I.p;I.p=2;var d=_e;_e|=4;try{Up(a,e);var h=_O,v=Hh(e.containerInfo),S=h.focusedElem,T=h.selectionRange;if(v!==S&&S&&S.ownerDocument&&Bh(S.ownerDocument.documentElement,S)){if(T!==null&&lu(S)){var E=T.start,D=T.end;if(D===void 0&&(D=E),"selectionStart"in S)S.selectionStart=E,S.selectionEnd=Math.min(D,S.value.length);else{var B=S.ownerDocument||document,M=B&&B.defaultView||window;if(M.getSelection){var Y=M.getSelection(),se=S.textContent.length,de=Math.min(T.start,se),Me=T.end===void 0?de:Math.min(T.end,se);!Y.extend&&de>Me&&(v=Me,Me=de,de=v);var R=Wh(S,de),P=Wh(S,Me);if(R&&P&&(Y.rangeCount!==1||Y.anchorNode!==R.node||Y.anchorOffset!==R.offset||Y.focusNode!==P.node||Y.focusOffset!==P.offset)){var A=B.createRange();A.setStart(R.node,R.offset),Y.removeAllRanges(),de>Me?(Y.addRange(A),Y.extend(P.node,P.offset)):(A.setEnd(P.node,P.offset),Y.addRange(A))}}}}for(B=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&B.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<B.length;S++){var W=B[S];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}xo=!!XO,_O=XO=null}finally{_e=d,I.p=o,_.T=l}}e.current=a,rt=2}}function ux(){if(rt===2){rt=0;var e=$n,a=sl,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var o=I.p;I.p=2;var d=_e;_e|=4;try{Ep(e,a.alternate,a)}finally{_e=d,I.p=o,_.T=l}}rt=3}}function Ox(){if(rt===4||rt===3){rt=0,wQ();var e=$n,a=sl,l=La,o=Fp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?rt=5:(rt=0,sl=$n=null,dx(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Sn=null),Mc(l),a=a.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Cl,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=_.T,d=I.p,I.p=2,_.T=null;try{for(var h=e.onRecoverableError,v=0;v<o.length;v++){var S=o[v];h(S.value,{componentStack:S.stack})}}finally{_.T=a,I.p=d}}(La&3)!==0&&so(),ya(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===vO?xr++:(xr=0,vO=e):xr=0,gr(0)}}function dx(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,Kl(a)))}function so(){return cx(),ux(),Ox(),fx()}function fx(){if(rt!==5)return!1;var e=$n,a=gO;gO=0;var l=Mc(La),o=_.T,d=I.p;try{I.p=32>l?32:l,_.T=null,l=bO,bO=null;var h=$n,v=La;if(rt=0,sl=$n=null,La=0,(_e&6)!==0)throw Error(r(331));var S=_e;if(_e|=4,Bp(h.current),Lp(h,h.current,v,l),_e=S,gr(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Cl,h)}catch{}return!0}finally{I.p=d,_.T=o,dx(e,a)}}function hx(e,a,l){a=Kt(l,a),a=Ku(e.stateNode,a,2),e=xn(e,a,2),e!==null&&(El(e,2),ya(e))}function Ae(e,a,l){if(e.tag===3)hx(e,e,l);else for(;a!==null;){if(a.tag===3){hx(a,e,l);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Sn===null||!Sn.has(o))){e=Kt(l,e),l=mp(2),o=xn(a,l,2),o!==null&&(pp(l,o,a,e),El(o,2),ya(o));break}}a=a.return}}function SO(e,a,l){var o=e.pingCache;if(o===null){o=e.pingCache=new FS;var d=new Set;o.set(a,d)}else d=o.get(a),d===void 0&&(d=new Set,o.set(a,d));d.has(l)||(mO=!0,d.add(l),e=a2.bind(null,e,a,l),a.then(e,e))}function a2(e,a,l){var o=e.pingCache;o!==null&&o.delete(a),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ve===e&&($e&l)===l&&(Fe===4||Fe===3&&($e&62914560)===$e&&300>zt()-Ki?(_e&2)===0&&ll(e,0):pO|=l,nl===$e&&(nl=0)),ya(e)}function mx(e,a){a===0&&(a=ch()),e=ts(e,a),e!==null&&(El(e,a),ya(e))}function n2(e){var a=e.memoizedState,l=0;a!==null&&(l=a.retryLane),mx(e,l)}function s2(e,a){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),mx(e,l)}function l2(e,a){return Cc(e,a)}var lo=null,il=null,$O=!1,ro=!1,wO=!1,jn=0;function ya(e){e!==il&&e.next===null&&(il===null?lo=il=e:il=il.next=e),ro=!0,$O||($O=!0,i2())}function gr(e,a){if(!wO&&ro){wO=!0;do for(var l=!1,o=lo;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var h=0;else{var v=o.suspendedLanes,S=o.pingedLanes;h=(1<<31-Rt(42|e)+1)-1,h&=d&~(v&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,bx(o,h))}else h=$e,h=ui(o,o===Ve?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Al(o,h)||(l=!0,bx(o,h));o=o.next}while(l);wO=!1}}function r2(){px()}function px(){ro=$O=!1;var e=0;jn!==0&&x2()&&(e=jn);for(var a=zt(),l=null,o=lo;o!==null;){var d=o.next,h=xx(o,a);h===0?(o.next=null,l===null?lo=d:l.next=d,d===null&&(il=l)):(l=o,(e!==0||(h&3)!==0)&&(ro=!0)),o=d}rt!==0&&rt!==5||gr(e),jn!==0&&(jn=0)}function xx(e,a){for(var l=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var v=31-Rt(h),S=1<<v,T=d[v];T===-1?((S&l)===0||(S&o)!==0)&&(d[v]=XQ(S,a)):T<=a&&(e.expiredLanes|=S),h&=~S}if(a=Ve,l=$e,l=ui(e,e===a?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===a&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ac(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Al(e,l)){if(a=l&-l,a===e.callbackPriority)return a;switch(o!==null&&Ac(o),Mc(l)){case 2:case 8:l=ih;break;case 32:l=ri;break;case 268435456:l=oh;break;default:l=ri}return o=gx.bind(null,e),l=Cc(l,o),e.callbackPriority=a,e.callbackNode=l,a}return o!==null&&o!==null&&Ac(o),e.callbackPriority=2,e.callbackNode=null,2}function gx(e,a){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(so()&&e.callbackNode!==l)return null;var o=$e;return o=ui(e,e===Ve?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Jp(e,o,a),xx(e,zt()),e.callbackNode!=null&&e.callbackNode===l?gx.bind(null,e):null)}function bx(e,a){if(so())return null;Jp(e,a,!0)}function i2(){b2(function(){(_e&6)!==0?Cc(rh,r2):px()})}function jO(){if(jn===0){var e=Ds;e===0&&(e=ii,ii<<=1,(ii&261888)===0&&(ii=256)),jn=e}return jn}function vx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hi(""+e)}function yx(e,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,e.id&&l.setAttribute("form",e.id),a.parentNode.insertBefore(l,a),e=new FormData(e),l.parentNode.removeChild(l),e}function o2(e,a,l,o,d){if(a==="submit"&&l&&l.stateNode===d){var h=vx((d[Qt]||null).action),v=o.submitter;v&&(a=(a=v[Qt]||null)?vx(a.formAction):v.getAttribute("formAction"),a!==null&&(h=a,v=null));var S=new gi("action","action",null,o,d);e.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(jn!==0){var T=v?yx(d,v):new FormData(d);Du(l,{pending:!0,data:T,method:d.method,action:h},null,T)}}else typeof h=="function"&&(S.preventDefault(),T=v?yx(d,v):new FormData(d),Du(l,{pending:!0,data:T,method:d.method,action:h},h,T))},currentTarget:d}]})}}for(var TO=0;TO<cu.length;TO++){var kO=cu[TO],c2=kO.toLowerCase(),u2=kO[0].toUpperCase()+kO.slice(1);oa(c2,"on"+u2)}oa(Kh,"onAnimationEnd"),oa(Jh,"onAnimationIteration"),oa(em,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(jS,"onTransitionRun"),oa(TS,"onTransitionStart"),oa(kS,"onTransitionCancel"),oa(tm,"onTransitionEnd"),Rs("onMouseEnter",["mouseout","mouseover"]),Rs("onMouseLeave",["mouseout","mouseover"]),Rs("onPointerEnter",["pointerout","pointerover"]),Rs("onPointerLeave",["pointerout","pointerover"]),Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var br="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(" "),O2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(br));function Qx(e,a){a=(a&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],d=o.event;o=o.listeners;e:{var h=void 0;if(a)for(var v=o.length-1;0<=v;v--){var S=o[v],T=S.instance,E=S.currentTarget;if(S=S.listener,T!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=E;try{h(d)}catch(D){yi(D)}d.currentTarget=null,h=T}else for(v=0;v<o.length;v++){if(S=o[v],T=S.instance,E=S.currentTarget,S=S.listener,T!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=E;try{h(d)}catch(D){yi(D)}d.currentTarget=null,h=T}}}}function Se(e,a){var l=a[Yc];l===void 0&&(l=a[Yc]=new Set);var o=e+"__bubble";l.has(o)||(Sx(a,e,2,!1),l.add(o))}function PO(e,a,l){var o=0;a&&(o|=4),Sx(l,e,o,a)}var io="_reactListening"+Math.random().toString(36).slice(2);function zO(e){if(!e[io]){e[io]=!0,ph.forEach(function(l){l!=="selectionchange"&&(O2.has(l)||PO(l,!1,e),PO(l,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[io]||(a[io]=!0,PO("selectionchange",!1,a))}}function Sx(e,a,l,o){switch(Kx(a)){case 2:var d=q2;break;case 8:d=M2;break;default:d=LO}l=d.bind(null,a,l,e),d=void 0,!Ic||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(a,l,{capture:!0,passive:d}):e.addEventListener(a,l,!0):d!==void 0?e.addEventListener(a,l,{passive:d}):e.addEventListener(a,l,!1)}function NO(e,a,l,o,d){var h=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var S=o.stateNode.containerInfo;if(S===d)break;if(v===4)for(v=o.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;S!==null;){if(v=Ps(S),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){o=h=v;continue e}S=S.parentNode}}o=o.return}kh(function(){var E=h,D=Bc(l),B=[];e:{var M=am.get(e);if(M!==void 0){var Y=gi,se=e;switch(e){case"keypress":if(pi(l)===0)break e;case"keydown":case"keyup":Y=sS;break;case"focusin":se="focus",Y=eu;break;case"focusout":se="blur",Y=eu;break;case"beforeblur":case"afterblur":Y=eu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=DQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=iS;break;case Kh:case Jh:case em:Y=HQ;break;case tm:Y=cS;break;case"scroll":case"scrollend":Y=GQ;break;case"wheel":Y=OS;break;case"copy":case"cut":case"paste":Y=FQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Xh;break;case"toggle":case"beforetoggle":Y=fS}var de=(a&4)!==0,Me=!de&&(e==="scroll"||e==="scrollend"),R=de?M!==null?M+"Capture":null:M;de=[];for(var P=E,A;P!==null;){var W=P;if(A=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||A===null||R===null||(W=Yl(P,R),W!=null&&de.push(vr(P,W,A))),Me)break;P=P.return}0<de.length&&(M=new Y(M,se,null,l,D),B.push({event:M,listeners:de}))}}if((a&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",M&&l!==Wc&&(se=l.relatedTarget||l.fromElement)&&(Ps(se)||se[ks]))break e;if((Y||M)&&(M=D.window===D?D:(M=D.ownerDocument)?M.defaultView||M.parentWindow:window,Y?(se=l.relatedTarget||l.toElement,Y=E,se=se?Ps(se):null,se!==null&&(Me=u(se),de=se.tag,se!==Me||de!==5&&de!==27&&de!==6)&&(se=null)):(Y=null,se=E),Y!==se)){if(de=Nh,W="onMouseLeave",R="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(de=Xh,W="onPointerLeave",R="onPointerEnter",P="pointer"),Me=Y==null?M:Ml(Y),A=se==null?M:Ml(se),M=new de(W,P+"leave",Y,l,D),M.target=Me,M.relatedTarget=A,W=null,Ps(D)===E&&(de=new de(R,P+"enter",se,l,D),de.target=A,de.relatedTarget=Me,W=de),Me=W,Y&&se)t:{for(de=d2,R=Y,P=se,A=0,W=R;W;W=de(W))A++;W=0;for(var ue=P;ue;ue=de(ue))W++;for(;0<A-W;)R=de(R),A--;for(;0<W-A;)P=de(P),W--;for(;A--;){if(R===P||P!==null&&R===P.alternate){de=R;break t}R=de(R),P=de(P)}de=null}else de=null;Y!==null&&$x(B,M,Y,de,!1),se!==null&&Me!==null&&$x(B,Me,se,de,!0)}}e:{if(M=E?Ml(E):window,Y=M.nodeName&&M.nodeName.toLowerCase(),Y==="select"||Y==="input"&&M.type==="file")var Pe=Yh;else if(qh(M))if(Vh)Pe=SS;else{Pe=yS;var oe=vS}else Y=M.nodeName,!Y||Y.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?E&&Dc(E.elementType)&&(Pe=Yh):Pe=QS;if(Pe&&(Pe=Pe(e,E))){Mh(B,Pe,l,D);break e}oe&&oe(e,M,E),e==="focusout"&&E&&M.type==="number"&&E.memoizedProps.value!=null&&Lc(M,"number",M.value)}switch(oe=E?Ml(E):window,e){case"focusin":(qh(oe)||oe.contentEditable==="true")&&(Es=oe,ru=E,Hl=null);break;case"focusout":Hl=ru=Es=null;break;case"mousedown":iu=!0;break;case"contextmenu":case"mouseup":case"dragend":iu=!1,Ih(B,l,D);break;case"selectionchange":if(wS)break;case"keydown":case"keyup":Ih(B,l,D)}var ge;if(au)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else As?Ah(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(_h&&l.locale!=="ko"&&(As||we!=="onCompositionStart"?we==="onCompositionEnd"&&As&&(ge=Ph()):(un=D,Fc="value"in un?un.value:un.textContent,As=!0)),oe=oo(E,we),0<oe.length&&(we=new Rh(we,e,null,l,D),B.push({event:we,listeners:oe}),ge?we.data=ge:(ge=Eh(l),ge!==null&&(we.data=ge)))),(ge=mS?pS(e,l):xS(e,l))&&(we=oo(E,"onBeforeInput"),0<we.length&&(oe=new Rh("onBeforeInput","beforeinput",null,l,D),B.push({event:oe,listeners:we}),oe.data=ge)),o2(B,e,E,l,D)}Qx(B,a)})}function vr(e,a,l){return{instance:e,listener:a,currentTarget:l}}function oo(e,a){for(var l=a+"Capture",o=[];e!==null;){var d=e,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=Yl(e,l),d!=null&&o.unshift(vr(e,d,h)),d=Yl(e,a),d!=null&&o.push(vr(e,d,h))),e.tag===3)return o;e=e.return}return[]}function d2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $x(e,a,l,o,d){for(var h=a._reactName,v=[];l!==null&&l!==o;){var S=l,T=S.alternate,E=S.stateNode;if(S=S.tag,T!==null&&T===o)break;S!==5&&S!==26&&S!==27||E===null||(T=E,d?(E=Yl(l,h),E!=null&&v.unshift(vr(l,E,T))):d||(E=Yl(l,h),E!=null&&v.push(vr(l,E,T)))),l=l.return}v.length!==0&&e.push({event:a,listeners:v})}var f2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function wx(e){return(typeof e=="string"?e:""+e).replace(f2,`
|
|
25
|
+
`).replace(h2,"")}function jx(e,a){return a=wx(a),wx(e)===a}function qe(e,a,l,o,d,h){switch(l){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||_s(e,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&_s(e,""+o);break;case"className":di(e,"class",o);break;case"tabIndex":di(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":di(e,l,o);break;case"style":jh(e,o,h);break;case"data":if(a!=="object"){di(e,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=hi(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(a!=="input"&&qe(e,a,"name",d.name,d,null),qe(e,a,"formEncType",d.formEncType,d,null),qe(e,a,"formMethod",d.formMethod,d,null),qe(e,a,"formTarget",d.formTarget,d,null)):(qe(e,a,"encType",d.encType,d,null),qe(e,a,"method",d.method,d,null),qe(e,a,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=hi(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=za);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=hi(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":Se("beforetoggle",e),Se("toggle",e),Oi(e,"popover",o);break;case"xlinkActuate":Pa(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Pa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Pa(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Pa(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Pa(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Pa(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Pa(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Oi(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=VQ.get(l)||l,Oi(e,l,o))}}function RO(e,a,l,o,d,h){switch(l){case"style":jh(e,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof o=="string"?_s(e,o):(typeof o=="number"||typeof o=="bigint")&&_s(e,""+o);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"onClick":o!=null&&(e.onclick=za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),a=l.slice(2,d?l.length-7:void 0),h=e[Qt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(a,h,d),typeof o=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(a,o,d);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):Oi(e,l,o)}}}function pt(e,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var o=!1,d=!1,h;for(h in l)if(l.hasOwnProperty(h)){var v=l[h];if(v!=null)switch(h){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:qe(e,a,h,v,l,null)}}d&&qe(e,a,"srcSet",l.srcSet,l,null),o&&qe(e,a,"src",l.src,l,null);return;case"input":Se("invalid",e);var S=h=v=d=null,T=null,E=null;for(o in l)if(l.hasOwnProperty(o)){var D=l[o];if(D!=null)switch(o){case"name":d=D;break;case"type":v=D;break;case"checked":T=D;break;case"defaultChecked":E=D;break;case"value":h=D;break;case"defaultValue":S=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,a));break;default:qe(e,a,o,D,l,null)}}Qh(e,h,S,T,E,v,d,!1);return;case"select":Se("invalid",e),o=v=h=null;for(d in l)if(l.hasOwnProperty(d)&&(S=l[d],S!=null))switch(d){case"value":h=S;break;case"defaultValue":v=S;break;case"multiple":o=S;default:qe(e,a,d,S,l,null)}a=h,l=v,e.multiple=!!o,a!=null?Xs(e,!!o,a,!1):l!=null&&Xs(e,!!o,l,!0);return;case"textarea":Se("invalid",e),h=d=o=null;for(v in l)if(l.hasOwnProperty(v)&&(S=l[v],S!=null))switch(v){case"value":o=S;break;case"defaultValue":d=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:qe(e,a,v,S,l,null)}$h(e,o,d,h);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(o=l[T],o!=null))switch(T){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:qe(e,a,T,o,l,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(o=0;o<br.length;o++)Se(br[o],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(E in l)if(l.hasOwnProperty(E)&&(o=l[E],o!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:qe(e,a,E,o,l,null)}return;default:if(Dc(a)){for(D in l)l.hasOwnProperty(D)&&(o=l[D],o!==void 0&&RO(e,a,D,o,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(o=l[S],o!=null&&qe(e,a,S,o,l,null))}function m2(e,a,l,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,v=null,S=null,T=null,E=null,D=null;for(Y in l){var B=l[Y];if(l.hasOwnProperty(Y)&&B!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":T=B;default:o.hasOwnProperty(Y)||qe(e,a,Y,null,o,B)}}for(var M in o){var Y=o[M];if(B=l[M],o.hasOwnProperty(M)&&(Y!=null||B!=null))switch(M){case"type":h=Y;break;case"name":d=Y;break;case"checked":E=Y;break;case"defaultChecked":D=Y;break;case"value":v=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,a));break;default:Y!==B&&qe(e,a,M,Y,o,B)}}Gc(e,v,S,T,E,D,h,d);return;case"select":Y=v=S=M=null;for(h in l)if(T=l[h],l.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":Y=T;default:o.hasOwnProperty(h)||qe(e,a,h,null,o,T)}for(d in o)if(h=o[d],T=l[d],o.hasOwnProperty(d)&&(h!=null||T!=null))switch(d){case"value":M=h;break;case"defaultValue":S=h;break;case"multiple":v=h;default:h!==T&&qe(e,a,d,h,o,T)}a=S,l=v,o=Y,M!=null?Xs(e,!!l,M,!1):!!o!=!!l&&(a!=null?Xs(e,!!l,a,!0):Xs(e,!!l,l?[]:"",!1));return;case"textarea":Y=M=null;for(S in l)if(d=l[S],l.hasOwnProperty(S)&&d!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:qe(e,a,S,null,o,d)}for(v in o)if(d=o[v],h=l[v],o.hasOwnProperty(v)&&(d!=null||h!=null))switch(v){case"value":M=d;break;case"defaultValue":Y=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==h&&qe(e,a,v,d,o,h)}Sh(e,M,Y);return;case"option":for(var se in l)if(M=l[se],l.hasOwnProperty(se)&&M!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:qe(e,a,se,null,o,M)}for(T in o)if(M=o[T],Y=l[T],o.hasOwnProperty(T)&&M!==Y&&(M!=null||Y!=null))switch(T){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:qe(e,a,T,M,o,Y)}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 de in l)M=l[de],l.hasOwnProperty(de)&&M!=null&&!o.hasOwnProperty(de)&&qe(e,a,de,null,o,M);for(E in o)if(M=o[E],Y=l[E],o.hasOwnProperty(E)&&M!==Y&&(M!=null||Y!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,a));break;default:qe(e,a,E,M,o,Y)}return;default:if(Dc(a)){for(var Me in l)M=l[Me],l.hasOwnProperty(Me)&&M!==void 0&&!o.hasOwnProperty(Me)&&RO(e,a,Me,void 0,o,M);for(D in o)M=o[D],Y=l[D],!o.hasOwnProperty(D)||M===Y||M===void 0&&Y===void 0||RO(e,a,D,M,o,Y);return}}for(var R in l)M=l[R],l.hasOwnProperty(R)&&M!=null&&!o.hasOwnProperty(R)&&qe(e,a,R,null,o,M);for(B in o)M=o[B],Y=l[B],!o.hasOwnProperty(B)||M===Y||M==null&&Y==null||qe(e,a,B,M,o,Y)}function Tx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],h=d.transferSize,v=d.initiatorType,S=d.duration;if(h&&S&&Tx(v)){for(v=0,S=d.responseEnd,o+=1;o<l.length;o++){var T=l[o],E=T.startTime;if(E>S)break;var D=T.transferSize,B=T.initiatorType;D&&Tx(B)&&(T=T.responseEnd,v+=D*(T<S?1:(S-E)/(T-E)))}if(--o,a+=8*(h+v)/(d.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 XO=null,_O=null;function co(e){return e.nodeType===9?e:e.ownerDocument}function kx(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 Px(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 ZO(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 CO=null;function x2(){var e=window.event;return e&&e.type==="popstate"?e===CO?!1:(CO=e,!0):(CO=null,!1)}var zx=typeof setTimeout=="function"?setTimeout:void 0,g2=typeof clearTimeout=="function"?clearTimeout:void 0,Nx=typeof Promise=="function"?Promise:void 0,b2=typeof queueMicrotask=="function"?queueMicrotask:typeof Nx<"u"?function(e){return Nx.resolve(null).then(e).catch(v2)}:zx;function v2(e){setTimeout(function(){throw e})}function Tn(e){return e==="head"}function Rx(e,a){var l=a,o=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(d),Ol(a);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")yr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,yr(l);for(var h=l.firstChild;h;){var v=h.nextSibling,S=h.nodeName;h[ql]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=v}}else l==="body"&&yr(e.ownerDocument.body);l=d}while(l);Ol(a)}function Xx(e,a){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function AO(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":AO(l),Vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function y2(e,a,l,o){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ql])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!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=na(e.nextSibling),e===null)break}return null}function Q2(e,a,l){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=na(e.nextSibling),e===null))return null;return e}function _x(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=na(e.nextSibling),e===null))return null;return e}function EO(e){return e.data==="$?"||e.data==="$~"}function qO(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S2(e,a){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||l.readyState!=="loading")a();else{var o=function(){a(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function na(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 MO=null;function Zx(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(a===0)return na(e.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}e=e.nextSibling}return null}function Cx(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return e;a--}else l!=="/$"&&l!=="/&"||a++}e=e.previousSibling}return null}function Ax(e,a,l){switch(a=co(l),e){case"html":if(e=a.documentElement,!e)throw Error(r(452));return e;case"head":if(e=a.head,!e)throw Error(r(453));return e;case"body":if(e=a.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function yr(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Vc(e)}var sa=new Map,Ex=new Set;function uo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Da=I.d;I.d={f:$2,r:w2,D:j2,C:T2,L:k2,m:P2,X:N2,S:z2,M:R2};function $2(){var e=Da.f(),a=to();return e||a}function w2(e){var a=zs(e);a!==null&&a.tag===5&&a.type==="form"?tp(a):Da.r(e)}var ol=typeof document>"u"?null:document;function qx(e,a,l){var o=ol;if(o&&typeof a=="string"&&a){var d=It(a);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),Ex.has(d)||(Ex.add(d),e={rel:e,crossOrigin:l,href:a},o.querySelector(d)===null&&(a=o.createElement("link"),pt(a,"link",e),ct(a),o.head.appendChild(a)))}}function j2(e){Da.D(e),qx("dns-prefetch",e,null)}function T2(e,a){Da.C(e,a),qx("preconnect",e,a)}function k2(e,a,l){Da.L(e,a,l);var o=ol;if(o&&e&&a){var d='link[rel="preload"][as="'+It(a)+'"]';a==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+It(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+It(l.imageSizes)+'"]')):d+='[href="'+It(e)+'"]';var h=d;switch(a){case"style":h=cl(e);break;case"script":h=ul(e)}sa.has(h)||(e=x({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:e,as:a},l),sa.set(h,e),o.querySelector(d)!==null||a==="style"&&o.querySelector(Qr(h))||a==="script"&&o.querySelector(Sr(h))||(a=o.createElement("link"),pt(a,"link",e),ct(a),o.head.appendChild(a)))}}function P2(e,a){Da.m(e,a);var l=ol;if(l&&e){var o=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+It(o)+'"][href="'+It(e)+'"]',h=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ul(e)}if(!sa.has(h)&&(e=x({rel:"modulepreload",href:e},a),sa.set(h,e),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sr(h)))return}o=l.createElement("link"),pt(o,"link",e),ct(o),l.head.appendChild(o)}}}function z2(e,a,l){Da.S(e,a,l);var o=ol;if(o&&e){var d=Ns(o).hoistableStyles,h=cl(e);a=a||"default";var v=d.get(h);if(!v){var S={loading:0,preload:null};if(v=o.querySelector(Qr(h)))S.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":a},l),(l=sa.get(h))&&YO(e,l);var T=v=o.createElement("link");ct(T),pt(T,"link",e),T._p=new Promise(function(E,D){T.onload=E,T.onerror=D}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Oo(v,a,o)}v={type:"stylesheet",instance:v,count:1,state:S},d.set(h,v)}}}function N2(e,a){Da.X(e,a);var l=ol;if(l&&e){var o=Ns(l).hoistableScripts,d=ul(e),h=o.get(d);h||(h=l.querySelector(Sr(d)),h||(e=x({src:e,async:!0},a),(a=sa.get(d))&&VO(e,a),h=l.createElement("script"),ct(h),pt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(d,h))}}function R2(e,a){Da.M(e,a);var l=ol;if(l&&e){var o=Ns(l).hoistableScripts,d=ul(e),h=o.get(d);h||(h=l.querySelector(Sr(d)),h||(e=x({src:e,async:!0,type:"module"},a),(a=sa.get(d))&&VO(e,a),h=l.createElement("script"),ct(h),pt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(d,h))}}function Mx(e,a,l,o){var d=(d=ie.current)?uo(d):null;if(!d)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=cl(l.href),l=Ns(d).hoistableStyles,o=l.get(a),o||(o={type:"style",instance:null,count:0,state:null},l.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=cl(l.href);var h=Ns(d).hoistableStyles,v=h.get(e);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,v),(h=d.querySelector(Qr(e)))&&!h._p&&(v.instance=h,v.state.loading=5),sa.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},sa.set(e,l),h||X2(d,e,l,v.state))),a&&o===null)throw Error(r(528,""));return v}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ul(l),l=Ns(d).hoistableScripts,o=l.get(a),o||(o={type:"script",instance:null,count:0,state:null},l.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function cl(e){return'href="'+It(e)+'"'}function Qr(e){return'link[rel="stylesheet"]['+e+"]"}function Yx(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function X2(e,a,l,o){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=e.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),pt(a,"link",l),ct(a),e.head.appendChild(a))}function ul(e){return'[src="'+It(e)+'"]'}function Sr(e){return"script[async]"+e}function Vx(e,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var o=e.querySelector('style[data-href~="'+It(l.href)+'"]');if(o)return a.instance=o,ct(o),o;var d=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ct(o),pt(o,"style",d),Oo(o,l.precedence,e),a.instance=o;case"stylesheet":d=cl(l.href);var h=e.querySelector(Qr(d));if(h)return a.state.loading|=4,a.instance=h,ct(h),h;o=Yx(l),(d=sa.get(d))&&YO(o,d),h=(e.ownerDocument||e).createElement("link"),ct(h);var v=h;return v._p=new Promise(function(S,T){v.onload=S,v.onerror=T}),pt(h,"link",o),a.state.loading|=4,Oo(h,l.precedence,e),a.instance=h;case"script":return h=ul(l.src),(d=e.querySelector(Sr(h)))?(a.instance=d,ct(d),d):(o=l,(d=sa.get(h))&&(o=x({},l),VO(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),ct(d),pt(d,"link",o),e.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Oo(o,l.precedence,e));return a.instance}function Oo(e,a,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,h=d,v=0;v<o.length;v++){var S=o[v];if(S.dataset.precedence===a)h=S;else if(h!==d)break}h?h.parentNode.insertBefore(e,h.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(e,a.firstChild))}function YO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function VO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var fo=null;function Ux(e,a,l){if(fo===null){var o=new Map,d=fo=new Map;d.set(l,o)}else d=fo,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var h=l[d];if(!(h[ql]||h[dt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var v=h.getAttribute(a)||"";v=e+v;var S=o.get(v);S?S.push(h):o.set(v,[h])}}return o}function Gx(e,a,l){e=e.ownerDocument||e,e.head.insertBefore(l,a==="title"?e.querySelector("head > title"):null)}function _2(e,a,l){if(l===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 Lx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z2(e,a,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=cl(o.href),h=a.querySelector(Qr(d));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=ho.bind(e),a.then(e,e)),l.state.loading|=4,l.instance=h,ct(h);return}h=a.ownerDocument||a,o=Yx(o),(d=sa.get(d))&&YO(o,d),h=h.createElement("link"),ct(h);var v=h;v._p=new Promise(function(S,T){v.onload=S,v.onerror=T}),pt(h,"link",o),l.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ho.bind(e),a.addEventListener("load",l),a.addEventListener("error",l))}}var UO=0;function C2(e,a){return e.stylesheets&&e.count===0&&po(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&po(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+a);0<e.imgBytes&&UO===0&&(UO=62500*p2());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&po(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>UO?50:800)+a);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function ho(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)po(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var mo=null;function po(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,mo=new Map,a.forEach(A2,e),mo=null,ho.call(e))}function A2(e,a){if(!(a.state.loading&4)){var l=mo.get(e);if(l)var o=l.get(null);else{l=new Map,mo.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var v=d[h];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),o=v)}o&&l.set(null,o)}d=a.instance,v=d.getAttribute("data-precedence"),h=l.get(v)||o,h===o&&l.set(null,d),l.set(v,d),this.count++,o=ho.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),h?h.parentNode.insertBefore(d,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),a.state.loading|=4}}var $r={$$typeof:Z,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function E2(e,a,l,o,d,h,v,S,T){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=Ec(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ec(0),this.hiddenUpdates=Ec(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Dx(e,a,l,o,d,h,v,S,T,E,D,B){return e=new E2(e,a,l,v,T,E,D,B,S),a=1,h===!0&&(a|=24),h=_t(3,null,null,a),e.current=h,h.stateNode=e,a=Qu(),a.refCount++,e.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:l,cache:a},ju(h),e}function Wx(e){return e?(e=Ys,e):Ys}function Bx(e,a,l,o,d,h){d=Wx(d),o.context===null?o.context=d:o.pendingContext=d,o=pn(a),o.payload={element:l},h=h===void 0?null:h,h!==null&&(o.callback=h),l=xn(e,o,a),l!==null&&(kt(l,e,a),ar(l,e,a))}function Hx(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<a?l:a}}function GO(e,a){Hx(e,a),(e=e.alternate)&&Hx(e,a)}function Ix(e){if(e.tag===13||e.tag===31){var a=ts(e,67108864);a!==null&&kt(a,e,67108864),GO(e,67108864)}}function Fx(e){if(e.tag===13||e.tag===31){var a=qt();a=qc(a);var l=ts(e,a);l!==null&&kt(l,e,a),GO(e,a)}}var xo=!0;function q2(e,a,l,o){var d=_.T;_.T=null;var h=I.p;try{I.p=2,LO(e,a,l,o)}finally{I.p=h,_.T=d}}function M2(e,a,l,o){var d=_.T;_.T=null;var h=I.p;try{I.p=8,LO(e,a,l,o)}finally{I.p=h,_.T=d}}function LO(e,a,l,o){if(xo){var d=DO(o);if(d===null)NO(e,a,o,go,l),Jx(e,o);else if(V2(d,e,a,l,o))o.stopPropagation();else if(Jx(e,o),a&4&&-1<Y2.indexOf(e)){for(;d!==null;){var h=zs(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var v=In(h.pendingLanes);if(v!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var T=1<<31-Rt(v);S.entanglements[1]|=T,v&=~T}ya(h),(_e&6)===0&&(Ji=zt()+500,gr(0))}}break;case 31:case 13:S=ts(h,2),S!==null&&kt(S,h,2),to(),GO(h,2)}if(h=DO(o),h===null&&NO(e,a,o,go,l),h===d)break;d=h}d!==null&&o.stopPropagation()}else NO(e,a,o,null,l)}}function DO(e){return e=Bc(e),WO(e)}var go=null;function WO(e){if(go=null,e=Ps(e),e!==null){var a=u(e);if(a===null)e=null;else{var l=a.tag;if(l===13){if(e=O(a),e!==null)return e;e=null}else if(l===31){if(e=f(a),e!==null)return e;e=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return go=e,null}function Kx(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(jQ()){case rh:return 2;case ih:return 8;case ri:case TQ:return 32;case oh:return 268435456;default:return 32}default:return 32}}var BO=!1,kn=null,Pn=null,zn=null,wr=new Map,jr=new Map,Nn=[],Y2="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 Jx(e,a){switch(e){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":wr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":jr.delete(a.pointerId)}}function Tr(e,a,l,o,d,h){return e===null||e.nativeEvent!==h?(e={blockedOn:a,domEventName:l,eventSystemFlags:o,nativeEvent:h,targetContainers:[d]},a!==null&&(a=zs(a),a!==null&&Ix(a)),e):(e.eventSystemFlags|=o,a=e.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),e)}function V2(e,a,l,o,d){switch(a){case"focusin":return kn=Tr(kn,e,a,l,o,d),!0;case"dragenter":return Pn=Tr(Pn,e,a,l,o,d),!0;case"mouseover":return zn=Tr(zn,e,a,l,o,d),!0;case"pointerover":var h=d.pointerId;return wr.set(h,Tr(wr.get(h)||null,e,a,l,o,d)),!0;case"gotpointercapture":return h=d.pointerId,jr.set(h,Tr(jr.get(h)||null,e,a,l,o,d)),!0}return!1}function eg(e){var a=Ps(e.target);if(a!==null){var l=u(a);if(l!==null){if(a=l.tag,a===13){if(a=O(l),a!==null){e.blockedOn=a,hh(e.priority,function(){Fx(l)});return}}else if(a===31){if(a=f(l),a!==null){e.blockedOn=a,hh(e.priority,function(){Fx(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bo(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var l=DO(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);Wc=o,l.target.dispatchEvent(o),Wc=null}else return a=zs(l),a!==null&&Ix(a),e.blockedOn=l,!1;a.shift()}return!0}function tg(e,a,l){bo(e)&&l.delete(a)}function U2(){BO=!1,kn!==null&&bo(kn)&&(kn=null),Pn!==null&&bo(Pn)&&(Pn=null),zn!==null&&bo(zn)&&(zn=null),wr.forEach(tg),jr.forEach(tg)}function vo(e,a){e.blockedOn===a&&(e.blockedOn=null,BO||(BO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U2)))}var yo=null;function ag(e){yo!==e&&(yo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){yo===e&&(yo=null);for(var a=0;a<e.length;a+=3){var l=e[a],o=e[a+1],d=e[a+2];if(typeof o!="function"){if(WO(o||l)===null)continue;break}var h=zs(l);h!==null&&(e.splice(a,3),a-=3,Du(h,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function Ol(e){function a(T){return vo(T,e)}kn!==null&&vo(kn,e),Pn!==null&&vo(Pn,e),zn!==null&&vo(zn,e),wr.forEach(a),jr.forEach(a);for(var l=0;l<Nn.length;l++){var o=Nn[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Nn.length&&(l=Nn[0],l.blockedOn===null);)eg(l),l.blockedOn===null&&Nn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],h=l[o+1],v=d[Qt]||null;if(typeof h=="function")v||ag(l);else if(v){var S=null;if(h&&h.hasAttribute("formAction")){if(d=h,v=h[Qt]||null)S=v.formAction;else if(WO(d)!==null)continue}else S=v.action;typeof S=="function"?l[o+1]=S:(l.splice(o,3),o-=3),ag(l)}}}function ng(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),o||setTimeout(l,20)}function l(){if(!o&&!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 o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function HO(e){this._internalRoot=e}Qo.prototype.render=HO.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(r(409));var l=a.current,o=qt();Bx(l,o,e,a,null,null)},Qo.prototype.unmount=HO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Bx(e.current,2,null,e,null,null),to(),a[ks]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var a=fh();e={blockedOn:null,target:e,priority:a};for(var l=0;l<Nn.length&&a!==0&&a<Nn[l].priority;l++);Nn.splice(l,0,e),l===0&&eg(e)}};var sg=n.version;if(sg!=="19.2.4")throw Error(r(527,sg,"19.2.4"));I.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(a),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var G2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Cl=So.inject(G2),Nt=So}catch{}}return kr.createRoot=function(e,a){if(!i(e))throw Error(r(299));var l=!1,o="",d=Op,h=dp,v=fp;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=Dx(e,1,!1,null,null,l,o,null,d,h,v,ng),e[ks]=a.current,zO(e),new HO(a)},kr.hydrateRoot=function(e,a,l){if(!i(e))throw Error(r(299));var o=!1,d="",h=Op,v=dp,S=fp,T=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),a=Dx(e,1,!0,a,l??null,o,d,T,h,v,S,ng),a.context=Wx(null),l=a.current,o=qt(),o=qc(o),d=pn(o),d.callback=null,xn(l,d,o),l=o,a.current.lanes=l,El(a,l),ya(a),e[ks]=a.current,zO(e),new Qo(a)},kr.version="19.2.4",kr}var cg;function N$(){if(cg)return IO.exports;cg=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(),IO.exports=z$(),IO.exports}var R$=N$();const X$="/api";class _$ extends Error{constructor(n,s,r){super(n),this.name="ApiError",this.status=s,this.body=r}}async function Pr(t,n,s){const r=`${X$}${n}`,i={method:t,headers:{}};s!==void 0&&(i.headers["Content-Type"]="application/json",i.body=JSON.stringify(s));const u=await fetch(r,i),O=await u.text();let f;try{f=JSON.parse(O)}catch{f=O}if(!u.ok)throw new _$((f==null?void 0:f.error)||(f==null?void 0:f.message)||`Request failed: ${u.status}`,u.status,f);return f}const ae={get:t=>Pr("GET",t),post:(t,n)=>Pr("POST",t,n),put:(t,n)=>Pr("PUT",t,n),patch:(t,n)=>Pr("PATCH",t,n),delete:(t,n)=>Pr("DELETE",t,n)},Z$=`ws://${window.location.hostname}:${window.location.port||31415}`;let C$=0;function ug(t,n={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(n))}catch{return n}}function zr(t,n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}const L=W2((t,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,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:ug("groove:activityLog"),chatHistory:ug("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(Z$);t({ws:s}),s.onopen=()=>{t({connected:!0}),ae.get("/status").then(r=>{const i={};r.host&&r.host!=="127.0.0.1"&&(i.daemonHost=r.host);const u=window.location.port||"80";String(r.port)!==u&&(i.tunneled=!0),Object.keys(i).length>0&&t(i)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=r=>{var u,O,f;const i=JSON.parse(r.data);switch(i.type){case"state":{const m={...n().tokenTimeline},p=Date.now();for(const g of i.data){m[g.id]||(m[g.id]=[]);const x=m[g.id],b=x[x.length-1];(!b||g.tokensUsed!==b.v||p-b.t>5e3)&&(x.push({t:p,v:g.tokensUsed||0}),x.length>200&&(m[g.id]=x.slice(-200)))}t({agents:i.data,tokenTimeline:m,hydrated:!0});break}case"agent:output":{const{agentId:m,data:p}=i,g=typeof p.data=="string"?p.data:Array.isArray(p.data)?p.data.filter(x=>x.type==="text").map(x=>x.text).join(`
|
|
26
|
+
`):JSON.stringify(p.data);if((p.subtype==="assistant"||p.type==="result")&&g&&g.trim()){const x={...n().chatHistory};x[m]||(x[m]=[]),x[m]=[...x[m].slice(-100),{from:"agent",text:g.trim(),timestamp:Date.now()}],t({chatHistory:x}),zr("groove:chatHistory",x)}else{const x={...n().activityLog};x[m]||(x[m]=[]),x[m]=[...x[m].slice(-200),{timestamp:Date.now(),text:g||"",type:p.type}],t({activityLog:x}),zr("groove:activityLog",x)}break}case"agent:exit":{const m=n().agents.find(Q=>Q.id===i.agentId),p=(m==null?void 0:m.name)||i.agentId,g=i.status==="killed"||i.code===143||i.code===137,x=i.status==="completed"?`${p} completed`:g?`${p} stopped`:`${p} crashed (exit ${i.code})`,b=i.status==="completed"?"success":g?"info":"warning";n().addToast(b,x),(m==null?void 0:m.role)==="planner"&&i.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${i.name} auto-spawned`,"Auditing phase 1 work");break;case"rotation:start":n().addToast("info",`Rotating ${i.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${i.agentName}`,`Saved ${i.tokensSaved} tokens`);const m=n().detailPanel;(m==null?void 0:m.type)==="agent"&&m.agentId===i.oldAgentId&&i.newAgentId&&t(p=>{var b,Q;const g={...p.chatHistory},x={...p.tokenTimeline};return(b=g[i.oldAgentId])!=null&&b.length&&(g[i.newAgentId]=[...g[i.oldAgentId]]),(Q=x[i.oldAgentId])!=null&&Q.length&&(x[i.newAgentId]=[...x[i.oldAgentId]]),{chatHistory:g,tokenTimeline:x,detailPanel:{type:"agent",agentId:i.newAgentId}}});break}case"rotation:failed":n().addToast("error","Rotation failed",i.error);break;case"file:changed":{const m=n().editorRecentSaves[i.path];if(m&&Date.now()-m<2e3)break;t(p=>({editorChangedFiles:{...p.editorChangedFiles,[i.path]:i.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":t(m=>({pendingApprovals:[...m.pendingApprovals,i.data]})),n().addToast("warning",`Approval needed: ${((u=i.data)==null?void 0:u.agentName)||"agent"}`,(f=(O=i.data)==null?void 0:O.action)==null?void 0:f.description);break;case"approval:resolved":{const m=i.data;t(p=>({pendingApprovals:p.pendingApprovals.filter(g=>g.id!==m.id),resolvedApprovals:[m,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${i.agentName||"agent"}`,i.filePath?`File: ${i.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${i.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:i.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${i.name||i.role||"agent"}`);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 ae.get("/teams"),r=s.teams||[],i=s.defaultTeamId,{activeTeamId:u}=n(),f=r.map(m=>m.id).includes(u)?u:i;t({teams:r,activeTeamId:f}),f&&localStorage.setItem("groove:activeTeamId",f)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s){try{const r=await ae.post("/teams",{name:s});return t({activeTeamId:r.id}),localStorage.setItem("groove:activeTeamId",r.id),n().addToast("success",`Team "${s}" created`),r}catch(r){throw n().addToast("error","Failed to create team",r.message),r}},async deleteTeam(s){const r=n().teams.find(i=>i.id===s);if(r!=null&&r.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await ae.delete(`/teams/${s}`),n().addToast("info",`Team "${r==null?void 0:r.name}" deleted`)}catch(i){n().addToast("error","Failed to delete team",i.message)}},async renameTeam(s,r){try{const i=await ae.patch(`/teams/${s}`,{name:r});return t(u=>({teams:u.teams.map(O=>O.id===s?i:O)})),i}catch(i){throw n().addToast("error","Failed to rename team",i.message),i}},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,r,i){const u=++C$;t(O=>({toasts:[...O.toasts,{id:u,type:s,message:r,detail:i}]}))},removeToast(s){t(r=>({toasts:r.toasts.filter(i=>i.id!==s)}))},async checkMarketplaceAuth(){try{const s=await ae.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await ae.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const r=setInterval(async()=>{var i,u;try{const O=await ae.get("/auth/status");O.authenticated&&(clearInterval(r),t({marketplaceAuthenticated:!0,marketplaceUser:O.user}),n().addToast("success",`Signed in as ${((i=O.user)==null?void 0:i.displayName)||((u=O.user)==null?void 0:u.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(r),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await ae.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 r=await ae.post("/auth/checkout",{skillId:s});return r.url&&window.open(r.url,"_blank"),r}catch(r){throw n().addToast("error","Checkout failed",r.message),r}},async fetchApprovals(){try{const s=await ae.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await ae.post(`/approvals/${s}/approve`),t(r=>({pendingApprovals:r.pendingApprovals.filter(i=>i.id!==s)})),n().addToast("success","Approved")}catch(r){n().addToast("error","Approve failed",r.message)}},async rejectRequest(s,r=""){try{await ae.post(`/approvals/${s}/reject`,{reason:r}),t(i=>({pendingApprovals:i.pendingApprovals.filter(u=>u.id!==s)})),n().addToast("info","Rejected")}catch(i){n().addToast("error","Reject failed",i.message)}},async checkRecommendedTeam(){var s;try{const r=await ae.get("/recommended-team");r&&((s=r.agents)!=null&&s.length)?t({recommendedTeam:r}):t({recommendedTeam:null})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(){try{const s=await ae.post("/recommended-team/launch");return t({recommendedTeam:null}),n().addToast("success",`Launched ${s.launched} agents`,s.phase2Pending?`${s.phase2Pending} QC agents queued`:void 0),ae.post("/cleanup").catch(()=>{}),s}catch(s){throw n().addToast("error","Launch failed",s.message),s}},async fetchJournalist(){try{const s=await ae.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await ae.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 r=n().activeTeamId,i=await ae.post("/agents",{...s,teamId:r});return n().addToast("success",`Spawned ${i.name}`),i}catch(r){throw n().addToast("error","Spawn failed",r.message),r}},async killAgent(s,r=!1){try{await ae.delete(`/agents/${s}?purge=${r}`)}catch(i){n().addToast("error","Kill failed",i.message)}},async rotateAgent(s){try{return await ae.post(`/agents/${s}/rotate`)}catch(r){throw n().addToast("error","Rotation failed",r.message),r}},async fetchProviders(){return ae.get("/providers")},addChatMessage(s,r,i,u=!1){t(O=>{const f={...O.chatHistory};return f[s]||(f[s]=[]),f[s]=[...f[s].slice(-100),{from:r,text:i,timestamp:Date.now(),isQuery:u}],zr("groove:chatHistory",f),{chatHistory:f}})},async instructAgent(s,r){var O,f;const i=n().agents.find(m=>m.id===s),u=i&&(i.status==="running"||i.status==="starting");n().addChatMessage(s,"user",r,!1),n().addChatMessage(s,"system",u?"sending instruction...":"continuing conversation...");try{const m=await ae.post(`/agents/${s}/instruct`,{message:r});for(const p of["chatHistory","activityLog","tokenTimeline"]){const g=n()[p][s];g!=null&&g.length&&t(x=>({[p]:{...x[p],[m.id]:[...g]}}))}return(O=n().chatHistory[s])!=null&&O.length&&zr("groove:chatHistory",n().chatHistory),(f=n().activityLog[s])!=null&&f.length&&zr("groove:activityLog",n().activityLog),n().selectAgent(m.id),n().addChatMessage(m.id,"system","agent resumed with context"),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}},async queryAgent(s,r){n().addChatMessage(s,"user",r,!0);try{const i=await ae.post(`/agents/${s}/query`,{message:r});return n().addChatMessage(s,"agent",i.response),i}catch(i){throw n().addChatMessage(s,"system",`query failed: ${i.message}`),i}},async openFile(s){var u;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){t(O=>({editorActiveFile:s,editorOpenTabs:O.editorOpenTabs.includes(s)?O.editorOpenTabs:[...O.editorOpenTabs,s]}));return}const r=(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(r)){t(O=>({editorActiveFile:s,editorOpenTabs:[...O.editorOpenTabs,s]}));return}try{const O=await ae.get(`/files/read?path=${encodeURIComponent(s)}`);if(O.binary){n().addToast("warning","Binary file — cannot open");return}t(m=>({editorFiles:{...m.editorFiles,[s]:{content:O.content,originalContent:O.content,language:O.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:m.editorOpenTabs.includes(s)?m.editorOpenTabs:[...m.editorOpenTabs,s]}));const f=n().ws;(f==null?void 0:f.readyState)===1&&f.send(JSON.stringify({type:"editor:watch",path:s}))}catch(O){n().addToast("error","Failed to open file",O.message)}},closeFile(s){t(i=>{const u=i.editorOpenTabs.filter(p=>p!==s),O={...i.editorFiles};delete O[s];const f={...i.editorChangedFiles};delete f[s];let m=i.editorActiveFile;if(m===s){const p=i.editorOpenTabs.indexOf(s);m=u[Math.min(p,u.length-1)]||null}return{editorOpenTabs:u,editorFiles:O,editorChangedFiles:f,editorActiveFile:m}});const r=n().ws;(r==null?void 0:r.readyState)===1&&r.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,r){t(i=>({editorFiles:{...i.editorFiles,[s]:{...i.editorFiles[s],content:r}}}))},async saveFile(s){const r=n().editorFiles[s];if(r)try{await ae.post("/files/write",{path:s,content:r.content}),t(i=>({editorFiles:{...i.editorFiles,[s]:{...i.editorFiles[s],originalContent:r.content}},editorChangedFiles:(()=>{const u={...i.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...i.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(i){n().addToast("error","Save failed",i.message)}},async reloadFile(s){try{const r=await ae.get(`/files/read?path=${encodeURIComponent(s)}`);if(r.binary)return;t(i=>({editorFiles:{...i.editorFiles,[s]:{content:r.content,originalContent:r.content,language:r.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...i.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(r=>{const i={...r.editorChangedFiles};return delete i[s],{editorChangedFiles:i}})},async fetchTreeDir(s){try{const r=await ae.get(`/files/tree?path=${encodeURIComponent(s)}`);t(i=>({editorTreeCache:{...i.editorTreeCache,[s]:r.entries}}))}catch{}},async createFile(s){try{await ae.post("/files/create",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","File created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async createDir(s){try{await ae.post("/files/mkdir",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","Folder created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async deleteFile(s){try{await ae.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),t(i=>{const u={...i.editorTreeCache};return delete u[s],{editorTreeCache:u}}),n().addToast("success","Deleted"),!0}catch(r){return n().addToast("error","Delete failed",r.message),!1}},async renameFile(s,r){try{await ae.post("/files/rename",{oldPath:s,newPath:r}),t(O=>{const f=O.editorOpenTabs.map(g=>g===s?r:g),m={...O.editorFiles};m[s]&&(m[r]=m[s],delete m[s]);const p=O.editorActiveFile===s?r:O.editorActiveFile;return{editorOpenTabs:f,editorFiles:m,editorActiveFile:p}});const i=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=r.includes("/")?r.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(i),u!==i&&await n().fetchTreeDir(u),n().addToast("success","Renamed"),!0}catch(i){return n().addToast("error","Rename failed",i.message),!1}}}));function A$(t){y.useEffect(()=>{function n(s){for(const r of t){const i=r.meta?s.metaKey||s.ctrlKey:!0,u=r.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===r.key.toLowerCase()&&i&&u){s.preventDefault(),r.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}function Ze(t,n,{checkForDefaultPrevented:s=!0}={}){return function(i){if(t==null||t(i),s===!1||!i.defaultPrevented)return n==null?void 0:n(i)}}function Og(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function f0(...t){return n=>{let s=!1;const r=t.map(i=>{const u=Og(i,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let i=0;i<r.length;i++){const u=r[i];typeof u=="function"?u():Og(t[i],null)}}}}function lt(...t){return y.useCallback(f0(...t),t)}function E$(t,n){const s=y.createContext(n),r=u=>{const{children:O,...f}=u,m=y.useMemo(()=>f,Object.values(f));return c.jsx(s.Provider,{value:m,children:O})};r.displayName=t+"Provider";function i(u){const O=y.useContext(s);if(O)return O;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[r,i]}function js(t,n=[]){let s=[];function r(u,O){const f=y.createContext(O),m=s.length;s=[...s,O];const p=x=>{var k;const{scope:b,children:Q,...j}=x,$=((k=b==null?void 0:b[t])==null?void 0:k[m])||f,w=y.useMemo(()=>j,Object.values(j));return c.jsx($.Provider,{value:w,children:Q})};p.displayName=u+"Provider";function g(x,b){var $;const Q=(($=b==null?void 0:b[t])==null?void 0:$[m])||f,j=y.useContext(Q);if(j)return j;if(O!==void 0)return O;throw new Error(`\`${x}\` must be used within \`${u}\``)}return[p,g]}const i=()=>{const u=s.map(O=>y.createContext(O));return function(f){const m=(f==null?void 0:f[t])||u;return y.useMemo(()=>({[`__scope${t}`]:{...f,[t]:m}}),[f,m])}};return i.scopeName=t,[r,q$(i,...n)]}function q$(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(u){const O=r.reduce((f,{useScope:m,scopeName:p})=>{const x=m(u)[`__scope${p}`];return{...f,...x}},{});return y.useMemo(()=>({[`__scope${n.scopeName}`]:O}),[O])}};return s.scopeName=n.scopeName,s}function Ho(t){const n=M$(t),s=y.forwardRef((r,i)=>{const{children:u,...O}=r,f=y.Children.toArray(u),m=f.find(V$);if(m){const p=m.props.children,g=f.map(x=>x===m?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:x);return c.jsx(n,{...O,ref:i,children:y.isValidElement(p)?y.cloneElement(p,void 0,g):null})}return c.jsx(n,{...O,ref:i,children:u})});return s.displayName=`${t}.Slot`,s}function M$(t){const n=y.forwardRef((s,r)=>{const{children:i,...u}=s;if(y.isValidElement(i)){const O=G$(i),f=U$(u,i.props);return i.type!==y.Fragment&&(f.ref=r?f0(r,O):O),y.cloneElement(i,f)}return y.Children.count(i)>1?y.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var h0=Symbol("radix.slottable");function Y$(t){const n=({children:s})=>c.jsx(c.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=h0,n}function V$(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===h0}function U$(t,n){const s={...n};for(const r in n){const i=t[r],u=n[r];/^on[A-Z]/.test(r)?i&&u?s[r]=(...f)=>{const m=u(...f);return i(...f),m}:i&&(s[r]=i):r==="style"?s[r]={...i,...u}:r==="className"&&(s[r]=[i,u].filter(Boolean).join(" "))}return{...t,...s}}function G$(t){var r,i;let n=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var L$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=L$.reduce((t,n)=>{const s=Ho(`Primitive.${n}`),r=y.forwardRef((i,u)=>{const{asChild:O,...f}=i,m=O?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...f,ref:u})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{});function D$(t,n){t&&l0.flushSync(()=>t.dispatchEvent(n))}function Pt(t){const n=y.useRef(t);return y.useEffect(()=>{n.current=t}),y.useMemo(()=>(...s)=>{var r;return(r=n.current)==null?void 0:r.call(n,...s)},[])}function W$(t,n=globalThis==null?void 0:globalThis.document){const s=Pt(t);y.useEffect(()=>{const r=i=>{i.key==="Escape"&&s(i)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[s,n])}var B$="DismissableLayer",qd="dismissableLayer.update",H$="dismissableLayer.pointerDownOutside",I$="dismissableLayer.focusOutside",dg,m0=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hf=y.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:O,onDismiss:f,...m}=t,p=y.useContext(m0),[g,x]=y.useState(null),b=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,Q]=y.useState({}),j=lt(n,G=>x(G)),$=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),k=$.indexOf(w),N=g?$.indexOf(g):-1,Z=p.layersWithOutsidePointerEventsDisabled.size>0,C=N>=k,q=J$(G=>{const U=G.target,te=[...p.branches].some(H=>H.contains(U));!C||te||(i==null||i(G),O==null||O(G),G.defaultPrevented||f==null||f())},b),X=ew(G=>{const U=G.target;[...p.branches].some(H=>H.contains(U))||(u==null||u(G),O==null||O(G),G.defaultPrevented||f==null||f())},b);return W$(G=>{N===p.layers.size-1&&(r==null||r(G),!G.defaultPrevented&&f&&(G.preventDefault(),f()))},b),y.useEffect(()=>{if(g)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(dg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),fg(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=dg)}},[g,b,s,p]),y.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),fg())},[g,p]),y.useEffect(()=>{const G=()=>Q({});return document.addEventListener(qd,G),()=>document.removeEventListener(qd,G)},[]),c.jsx(De.div,{...m,ref:j,style:{pointerEvents:Z?C?"auto":"none":void 0,...t.style},onFocusCapture:Ze(t.onFocusCapture,X.onFocusCapture),onBlurCapture:Ze(t.onBlurCapture,X.onBlurCapture),onPointerDownCapture:Ze(t.onPointerDownCapture,q.onPointerDownCapture)})});hf.displayName=B$;var F$="DismissableLayerBranch",K$=y.forwardRef((t,n)=>{const s=y.useContext(m0),r=y.useRef(null),i=lt(n,r);return y.useEffect(()=>{const u=r.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),c.jsx(De.div,{...t,ref:i})});K$.displayName=F$;function J$(t,n=globalThis==null?void 0:globalThis.document){const s=Pt(t),r=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const u=f=>{if(f.target&&!r.current){let m=function(){p0(H$,s,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",i.current),i.current=m,n.addEventListener("click",i.current,{once:!0})):m()}else n.removeEventListener("click",i.current);r.current=!1},O=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(O),n.removeEventListener("pointerdown",u),n.removeEventListener("click",i.current)}},[n,s]),{onPointerDownCapture:()=>r.current=!0}}function ew(t,n=globalThis==null?void 0:globalThis.document){const s=Pt(t),r=y.useRef(!1);return y.useEffect(()=>{const i=u=>{u.target&&!r.current&&p0(I$,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",i),()=>n.removeEventListener("focusin",i)},[n,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fg(){const t=new CustomEvent(qd);document.dispatchEvent(t)}function p0(t,n,s,{discrete:r}){const i=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&i.addEventListener(t,n,{once:!0}),r?D$(i,u):i.dispatchEvent(u)}var an=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},tw=a0[" useId ".trim().toString()]||(()=>{}),aw=0;function pl(t){const[n,s]=y.useState(tw());return an(()=>{s(r=>r??String(aw++))},[t]),t||(n?`radix-${n}`:"")}const nw=["top","right","bottom","left"],Vn=Math.min,Ut=Math.max,Io=Math.round,$o=Math.floor,$a=t=>({x:t,y:t}),sw={left:"right",right:"left",bottom:"top",top:"bottom"};function Md(t,n,s){return Ut(t,Vn(n,s))}function nn(t,n){return typeof t=="function"?t(n):t}function sn(t){return t.split("-")[0]}function Pl(t){return t.split("-")[1]}function mf(t){return t==="x"?"y":"x"}function pf(t){return t==="y"?"height":"width"}function Sa(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function xf(t){return mf(Sa(t))}function lw(t,n,s){s===void 0&&(s=!1);const r=Pl(t),i=xf(t),u=pf(i);let O=i==="x"?r===(s?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(O=Fo(O)),[O,Fo(O)]}function rw(t){const n=Fo(t);return[Yd(t),n,Yd(n)]}function Yd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const hg=["left","right"],mg=["right","left"],iw=["top","bottom"],ow=["bottom","top"];function cw(t,n,s){switch(t){case"top":case"bottom":return s?n?mg:hg:n?hg:mg;case"left":case"right":return n?iw:ow;default:return[]}}function uw(t,n,s,r){const i=Pl(t);let u=cw(sn(t),s==="start",r);return i&&(u=u.map(O=>O+"-"+i),n&&(u=u.concat(u.map(Yd)))),u}function Fo(t){const n=sn(t);return sw[n]+t.slice(n.length)}function Ow(t){return{top:0,right:0,bottom:0,left:0,...t}}function x0(t){return typeof t!="number"?Ow(t):{top:t,right:t,bottom:t,left:t}}function Ko(t){const{x:n,y:s,width:r,height:i}=t;return{width:r,height:i,top:s,left:n,right:n+r,bottom:s+i,x:n,y:s}}function pg(t,n,s){let{reference:r,floating:i}=t;const u=Sa(n),O=xf(n),f=pf(O),m=sn(n),p=u==="y",g=r.x+r.width/2-i.width/2,x=r.y+r.height/2-i.height/2,b=r[f]/2-i[f]/2;let Q;switch(m){case"top":Q={x:g,y:r.y-i.height};break;case"bottom":Q={x:g,y:r.y+r.height};break;case"right":Q={x:r.x+r.width,y:x};break;case"left":Q={x:r.x-i.width,y:x};break;default:Q={x:r.x,y:r.y}}switch(Pl(n)){case"start":Q[O]-=b*(s&&p?-1:1);break;case"end":Q[O]+=b*(s&&p?-1:1);break}return Q}async function dw(t,n){var s;n===void 0&&(n={});const{x:r,y:i,platform:u,rects:O,elements:f,strategy:m}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:b=!1,padding:Q=0}=nn(n,t),j=x0(Q),w=f[b?x==="floating"?"reference":"floating":x],k=Ko(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(w)))==null||s?w:w.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:p,rootBoundary:g,strategy:m})),N=x==="floating"?{x:r,y:i,width:O.floating.width,height:O.floating.height}:O.reference,Z=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),C=await(u.isElement==null?void 0:u.isElement(Z))?await(u.getScale==null?void 0:u.getScale(Z))||{x:1,y:1}:{x:1,y:1},q=Ko(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:Z,strategy:m}):N);return{top:(k.top-q.top+j.top)/C.y,bottom:(q.bottom-k.bottom+j.bottom)/C.y,left:(k.left-q.left+j.left)/C.x,right:(q.right-k.right+j.right)/C.x}}const fw=50,hw=async(t,n,s)=>{const{placement:r="bottom",strategy:i="absolute",middleware:u=[],platform:O}=s,f=O.detectOverflow?O:{...O,detectOverflow:dw},m=await(O.isRTL==null?void 0:O.isRTL(n));let p=await O.getElementRects({reference:t,floating:n,strategy:i}),{x:g,y:x}=pg(p,r,m),b=r,Q=0;const j={};for(let $=0;$<u.length;$++){const w=u[$];if(!w)continue;const{name:k,fn:N}=w,{x:Z,y:C,data:q,reset:X}=await N({x:g,y:x,initialPlacement:r,placement:b,strategy:i,middlewareData:j,rects:p,platform:f,elements:{reference:t,floating:n}});g=Z??g,x=C??x,j[k]={...j[k],...q},X&&Q<fw&&(Q++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(p=X.rects===!0?await O.getElementRects({reference:t,floating:n,strategy:i}):X.rects),{x:g,y:x}=pg(p,b,m)),$=-1)}return{x:g,y:x,placement:b,strategy:i,middlewareData:j}},mw=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:r,placement:i,rects:u,platform:O,elements:f,middlewareData:m}=n,{element:p,padding:g=0}=nn(t,n)||{};if(p==null)return{};const x=x0(g),b={x:s,y:r},Q=xf(i),j=pf(Q),$=await O.getDimensions(p),w=Q==="y",k=w?"top":"left",N=w?"bottom":"right",Z=w?"clientHeight":"clientWidth",C=u.reference[j]+u.reference[Q]-b[Q]-u.floating[j],q=b[Q]-u.reference[Q],X=await(O.getOffsetParent==null?void 0:O.getOffsetParent(p));let G=X?X[Z]:0;(!G||!await(O.isElement==null?void 0:O.isElement(X)))&&(G=f.floating[Z]||u.floating[j]);const U=C/2-q/2,te=G/2-$[j]/2-1,H=Vn(x[k],te),Oe=Vn(x[N],te),fe=H,ve=G-$[j]-Oe,me=G/2-$[j]/2+U,pe=Md(fe,me,ve),_=!m.arrow&&Pl(i)!=null&&me!==pe&&u.reference[j]/2-(me<fe?H:Oe)-$[j]/2<0,I=_?me<fe?me-fe:me-ve:0;return{[Q]:b[Q]+I,data:{[Q]:pe,centerOffset:me-pe-I,..._&&{alignmentOffset:I}},reset:_}}}),pw=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,r;const{placement:i,middlewareData:u,rects:O,initialPlacement:f,platform:m,elements:p}=n,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:$=!0,...w}=nn(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const k=sn(i),N=Sa(f),Z=sn(f)===f,C=await(m.isRTL==null?void 0:m.isRTL(p.floating)),q=b||(Z||!$?[Fo(f)]:rw(f)),X=j!=="none";!b&&X&&q.push(...uw(f,$,j,C));const G=[f,...q],U=await m.detectOverflow(n,w),te=[];let H=((r=u.flip)==null?void 0:r.overflows)||[];if(g&&te.push(U[k]),x){const me=lw(i,O,C);te.push(U[me[0]],U[me[1]])}if(H=[...H,{placement:i,overflows:te}],!te.every(me=>me<=0)){var Oe,fe;const me=(((Oe=u.flip)==null?void 0:Oe.index)||0)+1,pe=G[me];if(pe&&(!(x==="alignment"?N!==Sa(pe):!1)||H.every(F=>Sa(F.placement)===N?F.overflows[0]>0:!0)))return{data:{index:me,overflows:H},reset:{placement:pe}};let _=(fe=H.filter(I=>I.overflows[0]<=0).sort((I,F)=>I.overflows[1]-F.overflows[1])[0])==null?void 0:fe.placement;if(!_)switch(Q){case"bestFit":{var ve;const I=(ve=H.filter(F=>{if(X){const he=Sa(F.placement);return he===N||he==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(he=>he>0).reduce((he,K)=>he+K,0)]).sort((F,he)=>F[1]-he[1])[0])==null?void 0:ve[0];I&&(_=I);break}case"initialPlacement":_=f;break}if(i!==_)return{reset:{placement:_}}}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 gg(t){return nw.some(n=>t[n]>=0)}const xw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s,platform:r}=n,{strategy:i="referenceHidden",...u}=nn(t,n);switch(i){case"referenceHidden":{const O=await r.detectOverflow(n,{...u,elementContext:"reference"}),f=xg(O,s.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:gg(f)}}}case"escaped":{const O=await r.detectOverflow(n,{...u,altBoundary:!0}),f=xg(O,s.floating);return{data:{escapedOffsets:f,escaped:gg(f)}}}default:return{}}}}},g0=new Set(["left","top"]);async function gw(t,n){const{placement:s,platform:r,elements:i}=t,u=await(r.isRTL==null?void 0:r.isRTL(i.floating)),O=sn(s),f=Pl(s),m=Sa(s)==="y",p=g0.has(O)?-1:1,g=u&&m?-1:1,x=nn(n,t);let{mainAxis:b,crossAxis:Q,alignmentAxis:j}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof j=="number"&&(Q=f==="end"?j*-1:j),m?{x:Q*g,y:b*p}:{x:b*p,y:Q*g}}const bw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,r;const{x:i,y:u,placement:O,middlewareData:f}=n,m=await gw(n,t);return O===((s=f.offset)==null?void 0:s.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+m.x,y:u+m.y,data:{...m,placement:O}}}}},vw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:r,placement:i,platform:u}=n,{mainAxis:O=!0,crossAxis:f=!1,limiter:m={fn:k=>{let{x:N,y:Z}=k;return{x:N,y:Z}}},...p}=nn(t,n),g={x:s,y:r},x=await u.detectOverflow(n,p),b=Sa(sn(i)),Q=mf(b);let j=g[Q],$=g[b];if(O){const k=Q==="y"?"top":"left",N=Q==="y"?"bottom":"right",Z=j+x[k],C=j-x[N];j=Md(Z,j,C)}if(f){const k=b==="y"?"top":"left",N=b==="y"?"bottom":"right",Z=$+x[k],C=$-x[N];$=Md(Z,$,C)}const w=m.fn({...n,[Q]:j,[b]:$});return{...w,data:{x:w.x-s,y:w.y-r,enabled:{[Q]:O,[b]:f}}}}}},yw=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:r,placement:i,rects:u,middlewareData:O}=n,{offset:f=0,mainAxis:m=!0,crossAxis:p=!0}=nn(t,n),g={x:s,y:r},x=Sa(i),b=mf(x);let Q=g[b],j=g[x];const $=nn(f,n),w=typeof $=="number"?{mainAxis:$,crossAxis:0}:{mainAxis:0,crossAxis:0,...$};if(m){const Z=b==="y"?"height":"width",C=u.reference[b]-u.floating[Z]+w.mainAxis,q=u.reference[b]+u.reference[Z]-w.mainAxis;Q<C?Q=C:Q>q&&(Q=q)}if(p){var k,N;const Z=b==="y"?"width":"height",C=g0.has(sn(i)),q=u.reference[x]-u.floating[Z]+(C&&((k=O.offset)==null?void 0:k[x])||0)+(C?0:w.crossAxis),X=u.reference[x]+u.reference[Z]+(C?0:((N=O.offset)==null?void 0:N[x])||0)-(C?w.crossAxis:0);j<q?j=q:j>X&&(j=X)}return{[b]:Q,[x]:j}}}},Qw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,r;const{placement:i,rects:u,platform:O,elements:f}=n,{apply:m=()=>{},...p}=nn(t,n),g=await O.detectOverflow(n,p),x=sn(i),b=Pl(i),Q=Sa(i)==="y",{width:j,height:$}=u.floating;let w,k;x==="top"||x==="bottom"?(w=x,k=b===(await(O.isRTL==null?void 0:O.isRTL(f.floating))?"start":"end")?"left":"right"):(k=x,w=b==="end"?"top":"bottom");const N=$-g.top-g.bottom,Z=j-g.left-g.right,C=Vn($-g[w],N),q=Vn(j-g[k],Z),X=!n.middlewareData.shift;let G=C,U=q;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&(U=Z),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(G=N),X&&!b){const H=Ut(g.left,0),Oe=Ut(g.right,0),fe=Ut(g.top,0),ve=Ut(g.bottom,0);Q?U=j-2*(H!==0||Oe!==0?H+Oe:Ut(g.left,g.right)):G=$-2*(fe!==0||ve!==0?fe+ve:Ut(g.top,g.bottom))}await m({...n,availableWidth:U,availableHeight:G});const te=await O.getDimensions(f.floating);return j!==te.width||$!==te.height?{reset:{rects:!0}}:{}}}};function pc(){return typeof window<"u"}function zl(t){return b0(t)?(t.nodeName||"").toLowerCase():"#document"}function Gt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function ja(t){var n;return(n=(b0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function b0(t){return pc()?t instanceof Node||t instanceof Gt(t).Node:!1}function fa(t){return pc()?t instanceof Element||t instanceof Gt(t).Element:!1}function ln(t){return pc()?t instanceof HTMLElement||t instanceof Gt(t).HTMLElement:!1}function bg(t){return!pc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Gt(t).ShadowRoot}function ei(t){const{overflow:n,overflowX:s,overflowY:r,display:i}=ha(t);return/auto|scroll|overlay|hidden|clip/.test(n+r+s)&&i!=="inline"&&i!=="contents"}function Sw(t){return/^(table|td|th)$/.test(zl(t))}function xc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const $w=/transform|translate|scale|rotate|perspective|filter/,ww=/paint|layout|strict|content/,hs=t=>!!t&&t!=="none";let JO;function gf(t){const n=fa(t)?ha(t):t;return hs(n.transform)||hs(n.translate)||hs(n.scale)||hs(n.rotate)||hs(n.perspective)||!bf()&&(hs(n.backdropFilter)||hs(n.filter))||$w.test(n.willChange||"")||ww.test(n.contain||"")}function jw(t){let n=Un(t);for(;ln(n)&&!yl(n);){if(gf(n))return n;if(xc(n))return null;n=Un(n)}return null}function bf(){return JO==null&&(JO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),JO}function yl(t){return/^(html|body|#document)$/.test(zl(t))}function ha(t){return Gt(t).getComputedStyle(t)}function gc(t){return fa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Un(t){if(zl(t)==="html")return t;const n=t.assignedSlot||t.parentNode||bg(t)&&t.host||ja(t);return bg(n)?n.host:n}function v0(t){const n=Un(t);return yl(n)?t.ownerDocument?t.ownerDocument.body:t.body:ln(n)&&ei(n)?n:v0(n)}function Yr(t,n,s){var r;n===void 0&&(n=[]),s===void 0&&(s=!0);const i=v0(t),u=i===((r=t.ownerDocument)==null?void 0:r.body),O=Gt(i);if(u){const f=Vd(O);return n.concat(O,O.visualViewport||[],ei(i)?i:[],f&&s?Yr(f):[])}else return n.concat(i,Yr(i,[],s))}function Vd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function y0(t){const n=ha(t);let s=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=ln(t),u=i?t.offsetWidth:s,O=i?t.offsetHeight:r,f=Io(s)!==u||Io(r)!==O;return f&&(s=u,r=O),{width:s,height:r,$:f}}function vf(t){return fa(t)?t:t.contextElement}function xl(t){const n=vf(t);if(!ln(n))return $a(1);const s=n.getBoundingClientRect(),{width:r,height:i,$:u}=y0(n);let O=(u?Io(s.width):s.width)/r,f=(u?Io(s.height):s.height)/i;return(!O||!Number.isFinite(O))&&(O=1),(!f||!Number.isFinite(f))&&(f=1),{x:O,y:f}}const Tw=$a(0);function Q0(t){const n=Gt(t);return!bf()||!n.visualViewport?Tw:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function kw(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==Gt(t)?!1:n}function vs(t,n,s,r){n===void 0&&(n=!1),s===void 0&&(s=!1);const i=t.getBoundingClientRect(),u=vf(t);let O=$a(1);n&&(r?fa(r)&&(O=xl(r)):O=xl(t));const f=kw(u,s,r)?Q0(u):$a(0);let m=(i.left+f.x)/O.x,p=(i.top+f.y)/O.y,g=i.width/O.x,x=i.height/O.y;if(u){const b=Gt(u),Q=r&&fa(r)?Gt(r):r;let j=b,$=Vd(j);for(;$&&r&&Q!==j;){const w=xl($),k=$.getBoundingClientRect(),N=ha($),Z=k.left+($.clientLeft+parseFloat(N.paddingLeft))*w.x,C=k.top+($.clientTop+parseFloat(N.paddingTop))*w.y;m*=w.x,p*=w.y,g*=w.x,x*=w.y,m+=Z,p+=C,j=Gt($),$=Vd(j)}}return Ko({width:g,height:x,x:m,y:p})}function bc(t,n){const s=gc(t).scrollLeft;return n?n.left+s:vs(ja(t)).left+s}function S0(t,n){const s=t.getBoundingClientRect(),r=s.left+n.scrollLeft-bc(t,s),i=s.top+n.scrollTop;return{x:r,y:i}}function Pw(t){let{elements:n,rect:s,offsetParent:r,strategy:i}=t;const u=i==="fixed",O=ja(r),f=n?xc(n.floating):!1;if(r===O||f&&u)return s;let m={scrollLeft:0,scrollTop:0},p=$a(1);const g=$a(0),x=ln(r);if((x||!x&&!u)&&((zl(r)!=="body"||ei(O))&&(m=gc(r)),x)){const Q=vs(r);p=xl(r),g.x=Q.x+r.clientLeft,g.y=Q.y+r.clientTop}const b=O&&!x&&!u?S0(O,m):$a(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-m.scrollLeft*p.x+g.x+b.x,y:s.y*p.y-m.scrollTop*p.y+g.y+b.y}}function zw(t){return Array.from(t.getClientRects())}function Nw(t){const n=ja(t),s=gc(t),r=t.ownerDocument.body,i=Ut(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),u=Ut(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let O=-s.scrollLeft+bc(t);const f=-s.scrollTop;return ha(r).direction==="rtl"&&(O+=Ut(n.clientWidth,r.clientWidth)-i),{width:i,height:u,x:O,y:f}}const vg=25;function Rw(t,n){const s=Gt(t),r=ja(t),i=s.visualViewport;let u=r.clientWidth,O=r.clientHeight,f=0,m=0;if(i){u=i.width,O=i.height;const g=bf();(!g||g&&n==="fixed")&&(f=i.offsetLeft,m=i.offsetTop)}const p=bc(r);if(p<=0){const g=r.ownerDocument,x=g.body,b=getComputedStyle(x),Q=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,j=Math.abs(r.clientWidth-x.clientWidth-Q);j<=vg&&(u-=j)}else p<=vg&&(u+=p);return{width:u,height:O,x:f,y:m}}function Xw(t,n){const s=vs(t,!0,n==="fixed"),r=s.top+t.clientTop,i=s.left+t.clientLeft,u=ln(t)?xl(t):$a(1),O=t.clientWidth*u.x,f=t.clientHeight*u.y,m=i*u.x,p=r*u.y;return{width:O,height:f,x:m,y:p}}function yg(t,n,s){let r;if(n==="viewport")r=Rw(t,s);else if(n==="document")r=Nw(ja(t));else if(fa(n))r=Xw(n,s);else{const i=Q0(t);r={x:n.x-i.x,y:n.y-i.y,width:n.width,height:n.height}}return Ko(r)}function $0(t,n){const s=Un(t);return s===n||!fa(s)||yl(s)?!1:ha(s).position==="fixed"||$0(s,n)}function _w(t,n){const s=n.get(t);if(s)return s;let r=Yr(t,[],!1).filter(f=>fa(f)&&zl(f)!=="body"),i=null;const u=ha(t).position==="fixed";let O=u?Un(t):t;for(;fa(O)&&!yl(O);){const f=ha(O),m=gf(O);!m&&f.position==="fixed"&&(i=null),(u?!m&&!i:!m&&f.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ei(O)&&!m&&$0(t,O))?r=r.filter(g=>g!==O):i=f,O=Un(O)}return n.set(t,r),r}function Zw(t){let{element:n,boundary:s,rootBoundary:r,strategy:i}=t;const O=[...s==="clippingAncestors"?xc(n)?[]:_w(n,this._c):[].concat(s),r],f=yg(n,O[0],i);let m=f.top,p=f.right,g=f.bottom,x=f.left;for(let b=1;b<O.length;b++){const Q=yg(n,O[b],i);m=Ut(Q.top,m),p=Vn(Q.right,p),g=Vn(Q.bottom,g),x=Ut(Q.left,x)}return{width:p-x,height:g-m,x,y:m}}function Cw(t){const{width:n,height:s}=y0(t);return{width:n,height:s}}function Aw(t,n,s){const r=ln(n),i=ja(n),u=s==="fixed",O=vs(t,!0,u,n);let f={scrollLeft:0,scrollTop:0};const m=$a(0);function p(){m.x=bc(i)}if(r||!r&&!u)if((zl(n)!=="body"||ei(i))&&(f=gc(n)),r){const Q=vs(n,!0,u,n);m.x=Q.x+n.clientLeft,m.y=Q.y+n.clientTop}else i&&p();u&&!r&&i&&p();const g=i&&!r&&!u?S0(i,f):$a(0),x=O.left+f.scrollLeft-m.x-g.x,b=O.top+f.scrollTop-m.y-g.y;return{x,y:b,width:O.width,height:O.height}}function ed(t){return ha(t).position==="static"}function Qg(t,n){if(!ln(t)||ha(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return ja(t)===s&&(s=s.ownerDocument.body),s}function w0(t,n){const s=Gt(t);if(xc(t))return s;if(!ln(t)){let i=Un(t);for(;i&&!yl(i);){if(fa(i)&&!ed(i))return i;i=Un(i)}return s}let r=Qg(t,n);for(;r&&Sw(r)&&ed(r);)r=Qg(r,n);return r&&yl(r)&&ed(r)&&!gf(r)?s:r||jw(t)||s}const Ew=async function(t){const n=this.getOffsetParent||w0,s=this.getDimensions,r=await s(t.floating);return{reference:Aw(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qw(t){return ha(t).direction==="rtl"}const Mw={convertOffsetParentRelativeRectToViewportRelativeRect:Pw,getDocumentElement:ja,getClippingRect:Zw,getOffsetParent:w0,getElementRects:Ew,getClientRects:zw,getDimensions:Cw,getScale:xl,isElement:fa,isRTL:qw};function j0(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function Yw(t,n){let s=null,r;const i=ja(t);function u(){var f;clearTimeout(r),(f=s)==null||f.disconnect(),s=null}function O(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),u();const p=t.getBoundingClientRect(),{left:g,top:x,width:b,height:Q}=p;if(f||n(),!b||!Q)return;const j=$o(x),$=$o(i.clientWidth-(g+b)),w=$o(i.clientHeight-(x+Q)),k=$o(g),Z={rootMargin:-j+"px "+-$+"px "+-w+"px "+-k+"px",threshold:Ut(0,Vn(1,m))||1};let C=!0;function q(X){const G=X[0].intersectionRatio;if(G!==m){if(!C)return O();G?O(!1,G):r=setTimeout(()=>{O(!1,1e-7)},1e3)}G===1&&!j0(p,t.getBoundingClientRect())&&O(),C=!1}try{s=new IntersectionObserver(q,{...Z,root:i.ownerDocument})}catch{s=new IntersectionObserver(q,Z)}s.observe(t)}return O(!0),u}function Vw(t,n,s,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:O=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=r,p=vf(t),g=i||u?[...p?Yr(p):[],...n?Yr(n):[]]:[];g.forEach(k=>{i&&k.addEventListener("scroll",s,{passive:!0}),u&&k.addEventListener("resize",s)});const x=p&&f?Yw(p,s):null;let b=-1,Q=null;O&&(Q=new ResizeObserver(k=>{let[N]=k;N&&N.target===p&&Q&&n&&(Q.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var Z;(Z=Q)==null||Z.observe(n)})),s()}),p&&!m&&Q.observe(p),n&&Q.observe(n));let j,$=m?vs(t):null;m&&w();function w(){const k=vs(t);$&&!j0($,k)&&s(),$=k,j=requestAnimationFrame(w)}return s(),()=>{var k;g.forEach(N=>{i&&N.removeEventListener("scroll",s),u&&N.removeEventListener("resize",s)}),x==null||x(),(k=Q)==null||k.disconnect(),Q=null,m&&cancelAnimationFrame(j)}}const Uw=bw,Gw=vw,Lw=pw,Dw=Qw,Ww=xw,Sg=mw,Bw=yw,Hw=(t,n,s)=>{const r=new Map,i={platform:Mw,...s},u={...i.platform,_c:r};return hw(t,n,{...i,platform:u})};var Iw=typeof document<"u",Fw=function(){},Mo=Iw?y.useLayoutEffect:Fw;function Jo(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,r,i;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(r=s;r--!==0;)if(!Jo(t[r],n[r]))return!1;return!0}if(i=Object.keys(t),s=i.length,s!==Object.keys(n).length)return!1;for(r=s;r--!==0;)if(!{}.hasOwnProperty.call(n,i[r]))return!1;for(r=s;r--!==0;){const u=i[r];if(!(u==="_owner"&&t.$$typeof)&&!Jo(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function T0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function $g(t,n){const s=T0(t);return Math.round(n*s)/s}function td(t){const n=y.useRef(t);return Mo(()=>{n.current=t}),n}function Kw(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:r=[],platform:i,elements:{reference:u,floating:O}={},transform:f=!0,whileElementsMounted:m,open:p}=t,[g,x]=y.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,Q]=y.useState(r);Jo(b,r)||Q(r);const[j,$]=y.useState(null),[w,k]=y.useState(null),N=y.useCallback(F=>{F!==X.current&&(X.current=F,$(F))},[]),Z=y.useCallback(F=>{F!==G.current&&(G.current=F,k(F))},[]),C=u||j,q=O||w,X=y.useRef(null),G=y.useRef(null),U=y.useRef(g),te=m!=null,H=td(m),Oe=td(i),fe=td(p),ve=y.useCallback(()=>{if(!X.current||!G.current)return;const F={placement:n,strategy:s,middleware:b};Oe.current&&(F.platform=Oe.current),Hw(X.current,G.current,F).then(he=>{const K={...he,isPositioned:fe.current!==!1};me.current&&!Jo(U.current,K)&&(U.current=K,l0.flushSync(()=>{x(K)}))})},[b,n,s,Oe,fe]);Mo(()=>{p===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,x(F=>({...F,isPositioned:!1})))},[p]);const me=y.useRef(!1);Mo(()=>(me.current=!0,()=>{me.current=!1}),[]),Mo(()=>{if(C&&(X.current=C),q&&(G.current=q),C&&q){if(H.current)return H.current(C,q,ve);ve()}},[C,q,ve,H,te]);const pe=y.useMemo(()=>({reference:X,floating:G,setReference:N,setFloating:Z}),[N,Z]),_=y.useMemo(()=>({reference:C,floating:q}),[C,q]),I=y.useMemo(()=>{const F={position:s,left:0,top:0};if(!_.floating)return F;const he=$g(_.floating,g.x),K=$g(_.floating,g.y);return f?{...F,transform:"translate("+he+"px, "+K+"px)",...T0(_.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:he,top:K}},[s,f,_.floating,g.x,g.y]);return y.useMemo(()=>({...g,update:ve,refs:pe,elements:_,floatingStyles:I}),[g,ve,pe,_,I])}const Jw=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:r,padding:i}=typeof t=="function"?t(s):t;return r&&n(r)?r.current!=null?Sg({element:r.current,padding:i}).fn(s):{}:r?Sg({element:r,padding:i}).fn(s):{}}}},ej=(t,n)=>{const s=Uw(t);return{name:s.name,fn:s.fn,options:[t,n]}},tj=(t,n)=>{const s=Gw(t);return{name:s.name,fn:s.fn,options:[t,n]}},aj=(t,n)=>({fn:Bw(t).fn,options:[t,n]}),nj=(t,n)=>{const s=Lw(t);return{name:s.name,fn:s.fn,options:[t,n]}},sj=(t,n)=>{const s=Dw(t);return{name:s.name,fn:s.fn,options:[t,n]}},lj=(t,n)=>{const s=Ww(t);return{name:s.name,fn:s.fn,options:[t,n]}},rj=(t,n)=>{const s=Jw(t);return{name:s.name,fn:s.fn,options:[t,n]}};var ij="Arrow",k0=y.forwardRef((t,n)=>{const{children:s,width:r=10,height:i=5,...u}=t;return c.jsx(De.svg,{...u,ref:n,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});k0.displayName=ij;var oj=k0;function cj(t){const[n,s]=y.useState(void 0);return an(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const u=i[0];let O,f;if("borderBoxSize"in u){const m=u.borderBoxSize,p=Array.isArray(m)?m[0]:m;O=p.inlineSize,f=p.blockSize}else O=t.offsetWidth,f=t.offsetHeight;s({width:O,height:f})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else s(void 0)},[t]),n}var yf="Popper",[P0,z0]=js(yf),[uj,N0]=P0(yf),R0=t=>{const{__scopePopper:n,children:s}=t,[r,i]=y.useState(null);return c.jsx(uj,{scope:n,anchor:r,onAnchorChange:i,children:s})};R0.displayName=yf;var X0="PopperAnchor",_0=y.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:r,...i}=t,u=N0(X0,s),O=y.useRef(null),f=lt(n,O),m=y.useRef(null);return y.useEffect(()=>{const p=m.current;m.current=(r==null?void 0:r.current)||O.current,p!==m.current&&u.onAnchorChange(m.current)}),r?null:c.jsx(De.div,{...i,ref:f})});_0.displayName=X0;var Qf="PopperContent",[Oj,dj]=P0(Qf),Z0=y.forwardRef((t,n)=>{var ke,Ot,Xe,et,gt,bt;const{__scopePopper:s,side:r="bottom",sideOffset:i=0,align:u="center",alignOffset:O=0,arrowPadding:f=0,avoidCollisions:m=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:b=!1,updatePositionStrategy:Q="optimized",onPlaced:j,...$}=t,w=N0(Qf,s),[k,N]=y.useState(null),Z=lt(n,Bt=>N(Bt)),[C,q]=y.useState(null),X=cj(C),G=(X==null?void 0:X.width)??0,U=(X==null?void 0:X.height)??0,te=r+(u!=="center"?"-"+u:""),H=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Oe=Array.isArray(p)?p:[p],fe=Oe.length>0,ve={padding:H,boundary:Oe.filter(hj),altBoundary:fe},{refs:me,floatingStyles:pe,placement:_,isPositioned:I,middlewareData:F}=Kw({strategy:"fixed",placement:te,whileElementsMounted:(...Bt)=>Vw(...Bt,{animationFrame:Q==="always"}),elements:{reference:w.anchor},middleware:[ej({mainAxis:i+U,alignmentAxis:O}),m&&tj({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?aj():void 0,...ve}),m&&nj({...ve}),sj({...ve,apply:({elements:Bt,rects:vt,availableWidth:_l,availableHeight:Zl})=>{const{width:Zc,height:li}=vt.reference,rn=Bt.floating.style;rn.setProperty("--radix-popper-available-width",`${_l}px`),rn.setProperty("--radix-popper-available-height",`${Zl}px`),rn.setProperty("--radix-popper-anchor-width",`${Zc}px`),rn.setProperty("--radix-popper-anchor-height",`${li}px`)}}),C&&rj({element:C,padding:f}),mj({arrowWidth:G,arrowHeight:U}),b&&lj({strategy:"referenceHidden",...ve})]}),[he,K]=E0(_),Ue=Pt(j);an(()=>{I&&(Ue==null||Ue())},[I,Ue]);const Re=(ke=F.arrow)==null?void 0:ke.x,ye=(Ot=F.arrow)==null?void 0:Ot.y,Ye=((Xe=F.arrow)==null?void 0:Xe.centerOffset)!==0,[V,ie]=y.useState();return an(()=>{k&&ie(window.getComputedStyle(k).zIndex)},[k]),c.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:I?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[(et=F.transformOrigin)==null?void 0:et.x,(gt=F.transformOrigin)==null?void 0:gt.y].join(" "),...((bt=F.hide)==null?void 0:bt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(Oj,{scope:s,placedSide:he,onArrowChange:q,arrowX:Re,arrowY:ye,shouldHideArrow:Ye,children:c.jsx(De.div,{"data-side":he,"data-align":K,...$,ref:Z,style:{...$.style,animation:I?void 0:"none"}})})})});Z0.displayName=Qf;var C0="PopperArrow",fj={top:"bottom",right:"left",bottom:"top",left:"right"},A0=y.forwardRef(function(n,s){const{__scopePopper:r,...i}=n,u=dj(C0,r),O=fj[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[O]: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:c.jsx(oj,{...i,ref:s,style:{...i.style,display:"block"}})})});A0.displayName=C0;function hj(t){return t!==null}var mj=t=>({name:"transformOrigin",options:t,fn(n){var w,k,N;const{placement:s,rects:r,middlewareData:i}=n,O=((w=i.arrow)==null?void 0:w.centerOffset)!==0,f=O?0:t.arrowWidth,m=O?0:t.arrowHeight,[p,g]=E0(s),x={start:"0%",center:"50%",end:"100%"}[g],b=(((k=i.arrow)==null?void 0:k.x)??0)+f/2,Q=(((N=i.arrow)==null?void 0:N.y)??0)+m/2;let j="",$="";return p==="bottom"?(j=O?x:`${b}px`,$=`${-m}px`):p==="top"?(j=O?x:`${b}px`,$=`${r.floating.height+m}px`):p==="right"?(j=`${-m}px`,$=O?x:`${Q}px`):p==="left"&&(j=`${r.floating.width+m}px`,$=O?x:`${Q}px`),{data:{x:j,y:$}}}});function E0(t){const[n,s="center"]=t.split("-");return[n,s]}var pj=R0,xj=_0,gj=Z0,bj=A0,vj="Portal",Sf=y.forwardRef((t,n)=>{var f;const{container:s,...r}=t,[i,u]=y.useState(!1);an(()=>u(!0),[]);const O=s||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return O?H2.createPortal(c.jsx(De.div,{...r,ref:n}),O):null});Sf.displayName=vj;function yj(t,n){return y.useReducer((s,r)=>n[s][r]??s,t)}var pa=t=>{const{present:n,children:s}=t,r=Qj(n),i=typeof s=="function"?s({present:r.isPresent}):y.Children.only(s),u=lt(r.ref,Sj(i));return typeof s=="function"||r.isPresent?y.cloneElement(i,{ref:u}):null};pa.displayName="Presence";function Qj(t){const[n,s]=y.useState(),r=y.useRef(null),i=y.useRef(t),u=y.useRef("none"),O=t?"mounted":"unmounted",[f,m]=yj(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=wo(r.current);u.current=f==="mounted"?p:"none"},[f]),an(()=>{const p=r.current,g=i.current;if(g!==t){const b=u.current,Q=wo(p);t?m("MOUNT"):Q==="none"||(p==null?void 0:p.display)==="none"?m("UNMOUNT"):m(g&&b!==Q?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,m]),an(()=>{if(n){let p;const g=n.ownerDocument.defaultView??window,x=Q=>{const $=wo(r.current).includes(CSS.escape(Q.animationName));if(Q.target===n&&$&&(m("ANIMATION_END"),!i.current)){const w=n.style.animationFillMode;n.style.animationFillMode="forwards",p=g.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=w)})}},b=Q=>{Q.target===n&&(u.current=wo(r.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",x),n.addEventListener("animationend",x),()=>{g.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",x),n.removeEventListener("animationend",x)}}else m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:y.useCallback(p=>{r.current=p?getComputedStyle(p):null,s(p)},[])}}function wo(t){return(t==null?void 0:t.animationName)||"none"}function Sj(t){var r,i;let n=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var $j=a0[" useInsertionEffect ".trim().toString()]||an;function vc({prop:t,defaultProp:n,onChange:s=()=>{},caller:r}){const[i,u,O]=wj({defaultProp:n,onChange:s}),f=t!==void 0,m=f?t:i;{const g=y.useRef(t!==void 0);y.useEffect(()=>{const x=g.current;x!==f&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${f?"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.`),g.current=f},[f,r])}const p=y.useCallback(g=>{var x;if(f){const b=jj(g)?g(t):g;b!==t&&((x=O.current)==null||x.call(O,b))}else u(g)},[f,t,u,O]);return[m,p]}function wj({defaultProp:t,onChange:n}){const[s,r]=y.useState(t),i=y.useRef(s),u=y.useRef(n);return $j(()=>{u.current=n},[n]),y.useEffect(()=>{var O;i.current!==s&&((O=u.current)==null||O.call(u,s),i.current=s)},[s,i]),[s,r,u]}function jj(t){return typeof t=="function"}var Tj=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"}),kj="VisuallyHidden",q0=y.forwardRef((t,n)=>c.jsx(De.span,{...t,ref:n,style:{...Tj,...t.style}}));q0.displayName=kj;var Pj=q0,[yc]=js("Tooltip",[z0]),Qc=z0(),M0="TooltipProvider",zj=700,Ud="tooltip.open",[Nj,$f]=yc(M0),Y0=t=>{const{__scopeTooltip:n,delayDuration:s=zj,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:u}=t,O=y.useRef(!0),f=y.useRef(!1),m=y.useRef(0);return y.useEffect(()=>{const p=m.current;return()=>window.clearTimeout(p)},[]),c.jsx(Nj,{scope:n,isOpenDelayedRef:O,delayDuration:s,onOpen:y.useCallback(()=>{window.clearTimeout(m.current),O.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>O.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:y.useCallback(p=>{f.current=p},[]),disableHoverableContent:i,children:u})};Y0.displayName=M0;var Vr="Tooltip",[Rj,ti]=yc(Vr),V0=t=>{const{__scopeTooltip:n,children:s,open:r,defaultOpen:i,onOpenChange:u,disableHoverableContent:O,delayDuration:f}=t,m=$f(Vr,t.__scopeTooltip),p=Qc(n),[g,x]=y.useState(null),b=pl(),Q=y.useRef(0),j=O??m.disableHoverableContent,$=f??m.delayDuration,w=y.useRef(!1),[k,N]=vc({prop:r,defaultProp:i??!1,onChange:G=>{G?(m.onOpen(),document.dispatchEvent(new CustomEvent(Ud))):m.onClose(),u==null||u(G)},caller:Vr}),Z=y.useMemo(()=>k?w.current?"delayed-open":"instant-open":"closed",[k]),C=y.useCallback(()=>{window.clearTimeout(Q.current),Q.current=0,w.current=!1,N(!0)},[N]),q=y.useCallback(()=>{window.clearTimeout(Q.current),Q.current=0,N(!1)},[N]),X=y.useCallback(()=>{window.clearTimeout(Q.current),Q.current=window.setTimeout(()=>{w.current=!0,N(!0),Q.current=0},$)},[$,N]);return y.useEffect(()=>()=>{Q.current&&(window.clearTimeout(Q.current),Q.current=0)},[]),c.jsx(pj,{...p,children:c.jsx(Rj,{scope:n,contentId:b,open:k,stateAttribute:Z,trigger:g,onTriggerChange:x,onTriggerEnter:y.useCallback(()=>{m.isOpenDelayedRef.current?X():C()},[m.isOpenDelayedRef,X,C]),onTriggerLeave:y.useCallback(()=>{j?q():(window.clearTimeout(Q.current),Q.current=0)},[q,j]),onOpen:C,onClose:q,disableHoverableContent:j,children:s})})};V0.displayName=Vr;var Gd="TooltipTrigger",U0=y.forwardRef((t,n)=>{const{__scopeTooltip:s,...r}=t,i=ti(Gd,s),u=$f(Gd,s),O=Qc(s),f=y.useRef(null),m=lt(n,f,i.onTriggerChange),p=y.useRef(!1),g=y.useRef(!1),x=y.useCallback(()=>p.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(xj,{asChild:!0,...O,children:c.jsx(De.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:m,onPointerMove:Ze(t.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ze(t.onPointerLeave,()=>{i.onTriggerLeave(),g.current=!1}),onPointerDown:Ze(t.onPointerDown,()=>{i.open&&i.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Ze(t.onFocus,()=>{p.current||i.onOpen()}),onBlur:Ze(t.onBlur,i.onClose),onClick:Ze(t.onClick,i.onClose)})})});U0.displayName=Gd;var wf="TooltipPortal",[Xj,_j]=yc(wf,{forceMount:void 0}),G0=t=>{const{__scopeTooltip:n,forceMount:s,children:r,container:i}=t,u=ti(wf,n);return c.jsx(Xj,{scope:n,forceMount:s,children:c.jsx(pa,{present:s||u.open,children:c.jsx(Sf,{asChild:!0,container:i,children:r})})})};G0.displayName=wf;var Ql="TooltipContent",L0=y.forwardRef((t,n)=>{const s=_j(Ql,t.__scopeTooltip),{forceMount:r=s.forceMount,side:i="top",...u}=t,O=ti(Ql,t.__scopeTooltip);return c.jsx(pa,{present:r||O.open,children:O.disableHoverableContent?c.jsx(D0,{side:i,...u,ref:n}):c.jsx(Zj,{side:i,...u,ref:n})})}),Zj=y.forwardRef((t,n)=>{const s=ti(Ql,t.__scopeTooltip),r=$f(Ql,t.__scopeTooltip),i=y.useRef(null),u=lt(n,i),[O,f]=y.useState(null),{trigger:m,onClose:p}=s,g=i.current,{onPointerInTransitChange:x}=r,b=y.useCallback(()=>{f(null),x(!1)},[x]),Q=y.useCallback((j,$)=>{const w=j.currentTarget,k={x:j.clientX,y:j.clientY},N=qj(k,w.getBoundingClientRect()),Z=Mj(k,N),C=Yj($.getBoundingClientRect()),q=Uj([...Z,...C]);f(q),x(!0)},[x]);return y.useEffect(()=>()=>b(),[b]),y.useEffect(()=>{if(m&&g){const j=w=>Q(w,g),$=w=>Q(w,m);return m.addEventListener("pointerleave",j),g.addEventListener("pointerleave",$),()=>{m.removeEventListener("pointerleave",j),g.removeEventListener("pointerleave",$)}}},[m,g,Q,b]),y.useEffect(()=>{if(O){const j=$=>{const w=$.target,k={x:$.clientX,y:$.clientY},N=(m==null?void 0:m.contains(w))||(g==null?void 0:g.contains(w)),Z=!Vj(k,O);N?b():Z&&(b(),p())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[m,g,O,p,b]),c.jsx(D0,{...t,ref:u})}),[Cj,Aj]=yc(Vr,{isInside:!1}),Ej=Y$("TooltipContent"),D0=y.forwardRef((t,n)=>{const{__scopeTooltip:s,children:r,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:O,...f}=t,m=ti(Ql,s),p=Qc(s),{onClose:g}=m;return y.useEffect(()=>(document.addEventListener(Ud,g),()=>document.removeEventListener(Ud,g)),[g]),y.useEffect(()=>{if(m.trigger){const x=b=>{const Q=b.target;Q!=null&&Q.contains(m.trigger)&&g()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[m.trigger,g]),c.jsx(hf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:O,onFocusOutside:x=>x.preventDefault(),onDismiss:g,children:c.jsxs(gj,{"data-state":m.stateAttribute,...p,...f,ref:n,style:{...f.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:[c.jsx(Ej,{children:r}),c.jsx(Cj,{scope:s,isInside:!0,children:c.jsx(Pj,{id:m.contentId,role:"tooltip",children:i||r})})]})})});L0.displayName=Ql;var W0="TooltipArrow",B0=y.forwardRef((t,n)=>{const{__scopeTooltip:s,...r}=t,i=Qc(s);return Aj(W0,s).isInside?null:c.jsx(bj,{...i,...r,ref:n})});B0.displayName=W0;function qj(t,n){const s=Math.abs(n.top-t.y),r=Math.abs(n.bottom-t.y),i=Math.abs(n.right-t.x),u=Math.abs(n.left-t.x);switch(Math.min(s,r,i,u)){case u:return"left";case i:return"right";case s:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Mj(t,n,s=5){const r=[];switch(n){case"top":r.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":r.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":r.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":r.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return r}function Yj(t){const{top:n,right:s,bottom:r,left:i}=t;return[{x:i,y:n},{x:s,y:n},{x:s,y:r},{x:i,y:r}]}function Vj(t,n){const{x:s,y:r}=t;let i=!1;for(let u=0,O=n.length-1;u<n.length;O=u++){const f=n[u],m=n[O],p=f.x,g=f.y,x=m.x,b=m.y;g>r!=b>r&&s<(x-p)*(r-g)/(b-g)+p&&(i=!i)}return i}function Uj(t){const n=t.slice();return n.sort((s,r)=>s.x<r.x?-1:s.x>r.x?1:s.y<r.y?-1:s.y>r.y?1:0),Gj(n)}function Gj(t){if(t.length<=1)return t.slice();const n=[];for(let r=0;r<t.length;r++){const i=t[r];for(;n.length>=2;){const u=n[n.length-1],O=n[n.length-2];if((u.x-O.x)*(i.y-O.y)>=(u.y-O.y)*(i.x-O.x))n.pop();else break}n.push(i)}n.pop();const s=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;s.length>=2;){const u=s[s.length-1],O=s[s.length-2];if((u.x-O.x)*(i.y-O.y)>=(u.y-O.y)*(i.x-O.x))s.pop();else break}s.push(i)}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 Lj=Y0,Dj=V0,Wj=U0,Bj=G0,Hj=L0,Ij=B0;function H0(t){var n,s,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(s=H0(t[n]))&&(r&&(r+=" "),r+=s)}else for(s in t)t[s]&&(r&&(r+=" "),r+=s);return r}function Fj(){for(var t,n,s=0,r="",i=arguments.length;s<i;s++)(t=arguments[s])&&(n=H0(t))&&(r&&(r+=" "),r+=n);return r}const Kj=(t,n)=>{const s=new Array(t.length+n.length);for(let r=0;r<t.length;r++)s[r]=t[r];for(let r=0;r<n.length;r++)s[t.length+r]=n[r];return s},Jj=(t,n)=>({classGroupId:t,validator:n}),I0=(t=new Map,n=null,s)=>({nextPart:t,validators:n,classGroupId:s}),ec="-",wg=[],eT="arbitrary..",tT=t=>{const n=nT(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:O=>{if(O.startsWith("[")&&O.endsWith("]"))return aT(O);const f=O.split(ec),m=f[0]===""&&f.length>1?1:0;return F0(f,m,n)},getConflictingClassGroupIds:(O,f)=>{if(f){const m=r[O],p=s[O];return m?p?Kj(p,m):m:p||wg}return s[O]||wg}}},F0=(t,n,s)=>{if(t.length-n===0)return s.classGroupId;const i=t[n],u=s.nextPart.get(i);if(u){const p=F0(t,n+1,u);if(p)return p}const O=s.validators;if(O===null)return;const f=n===0?t.join(ec):t.slice(n).join(ec),m=O.length;for(let p=0;p<m;p++){const g=O[p];if(g.validator(f))return g.classGroupId}},aT=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),s=n.indexOf(":"),r=n.slice(0,s);return r?eT+r:void 0})(),nT=t=>{const{theme:n,classGroups:s}=t;return sT(s,n)},sT=(t,n)=>{const s=I0();for(const r in t){const i=t[r];jf(i,s,r,n)}return s},jf=(t,n,s,r)=>{const i=t.length;for(let u=0;u<i;u++){const O=t[u];lT(O,n,s,r)}},lT=(t,n,s,r)=>{if(typeof t=="string"){rT(t,n,s);return}if(typeof t=="function"){iT(t,n,s,r);return}oT(t,n,s,r)},rT=(t,n,s)=>{const r=t===""?n:K0(n,t);r.classGroupId=s},iT=(t,n,s,r)=>{if(cT(t)){jf(t(r),n,s,r);return}n.validators===null&&(n.validators=[]),n.validators.push(Jj(s,t))},oT=(t,n,s,r)=>{const i=Object.entries(t),u=i.length;for(let O=0;O<u;O++){const[f,m]=i[O];jf(m,K0(n,f),s,r)}},K0=(t,n)=>{let s=t;const r=n.split(ec),i=r.length;for(let u=0;u<i;u++){const O=r[u];let f=s.nextPart.get(O);f||(f=I0(),s.nextPart.set(O,f)),s=f}return s},cT=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,uT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),r=Object.create(null);const i=(u,O)=>{s[u]=O,n++,n>t&&(n=0,r=s,s=Object.create(null))};return{get(u){let O=s[u];if(O!==void 0)return O;if((O=r[u])!==void 0)return i(u,O),O},set(u,O){u in s?s[u]=O:i(u,O)}}},Ld="!",jg=":",OT=[],Tg=(t,n,s,r,i)=>({modifiers:t,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:r,isExternal:i}),dT=t=>{const{prefix:n,experimentalParseClassName:s}=t;let r=i=>{const u=[];let O=0,f=0,m=0,p;const g=i.length;for(let $=0;$<g;$++){const w=i[$];if(O===0&&f===0){if(w===jg){u.push(i.slice(m,$)),m=$+1;continue}if(w==="/"){p=$;continue}}w==="["?O++:w==="]"?O--:w==="("?f++:w===")"&&f--}const x=u.length===0?i:i.slice(m);let b=x,Q=!1;x.endsWith(Ld)?(b=x.slice(0,-1),Q=!0):x.startsWith(Ld)&&(b=x.slice(1),Q=!0);const j=p&&p>m?p-m:void 0;return Tg(u,Q,b,j)};if(n){const i=n+jg,u=r;r=O=>O.startsWith(i)?u(O.slice(i.length)):Tg(OT,!1,O,void 0,!0)}if(s){const i=r;r=u=>s({className:u,parseClassName:i})}return r},fT=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((s,r)=>{n.set(s,1e6+r)}),s=>{const r=[];let i=[];for(let u=0;u<s.length;u++){const O=s[u],f=O[0]==="[",m=n.has(O);f||m?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(O)):i.push(O)}return i.length>0&&(i.sort(),r.push(...i)),r}},hT=t=>({cache:uT(t.cacheSize),parseClassName:dT(t),sortModifiers:fT(t),...tT(t)}),mT=/\s+/,pT=(t,n)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:u}=n,O=[],f=t.trim().split(mT);let m="";for(let p=f.length-1;p>=0;p-=1){const g=f[p],{isExternal:x,modifiers:b,hasImportantModifier:Q,baseClassName:j,maybePostfixModifierPosition:$}=s(g);if(x){m=g+(m.length>0?" "+m:m);continue}let w=!!$,k=r(w?j.substring(0,$):j);if(!k){if(!w){m=g+(m.length>0?" "+m:m);continue}if(k=r(j),!k){m=g+(m.length>0?" "+m:m);continue}w=!1}const N=b.length===0?"":b.length===1?b[0]:u(b).join(":"),Z=Q?N+Ld:N,C=Z+k;if(O.indexOf(C)>-1)continue;O.push(C);const q=i(k,w);for(let X=0;X<q.length;++X){const G=q[X];O.push(Z+G)}m=g+(m.length>0?" "+m:m)}return m},xT=(...t)=>{let n=0,s,r,i="";for(;n<t.length;)(s=t[n++])&&(r=J0(s))&&(i&&(i+=" "),i+=r);return i},J0=t=>{if(typeof t=="string")return t;let n,s="";for(let r=0;r<t.length;r++)t[r]&&(n=J0(t[r]))&&(s&&(s+=" "),s+=n);return s},gT=(t,...n)=>{let s,r,i,u;const O=m=>{const p=n.reduce((g,x)=>x(g),t());return s=hT(p),r=s.cache.get,i=s.cache.set,u=f,f(m)},f=m=>{const p=r(m);if(p)return p;const g=pT(m,s);return i(m,g),g};return u=O,(...m)=>u(xT(...m))},bT=[],it=t=>{const n=s=>s[t]||bT;return n.isThemeGetter=!0,n},eb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,yT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QT=/\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$/,ST=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xn=t=>vT.test(t),be=t=>!!t&&!Number.isNaN(Number(t)),_n=t=>!!t&&Number.isInteger(Number(t)),ad=t=>t.endsWith("%")&&be(t.slice(0,-1)),Wa=t=>yT.test(t),ab=()=>!0,jT=t=>QT.test(t)&&!ST.test(t),Tf=()=>!1,TT=t=>$T.test(t),kT=t=>wT.test(t),PT=t=>!le(t)&&!re(t),zT=t=>Wn(t,lb,Tf),le=t=>eb.test(t),ms=t=>Wn(t,rb,jT),kg=t=>Wn(t,ET,be),NT=t=>Wn(t,ob,ab),RT=t=>Wn(t,ib,Tf),Pg=t=>Wn(t,nb,Tf),XT=t=>Wn(t,sb,kT),jo=t=>Wn(t,cb,TT),re=t=>tb.test(t),Nr=t=>Ts(t,rb),_T=t=>Ts(t,ib),zg=t=>Ts(t,nb),ZT=t=>Ts(t,lb),CT=t=>Ts(t,sb),To=t=>Ts(t,cb,!0),AT=t=>Ts(t,ob,!0),Wn=(t,n,s)=>{const r=eb.exec(t);return r?r[1]?n(r[1]):s(r[2]):!1},Ts=(t,n,s=!1)=>{const r=tb.exec(t);return r?r[1]?n(r[1]):s:!1},nb=t=>t==="position"||t==="percentage",sb=t=>t==="image"||t==="url",lb=t=>t==="length"||t==="size"||t==="bg-size",rb=t=>t==="length",ET=t=>t==="number",ib=t=>t==="family-name",ob=t=>t==="number"||t==="weight",cb=t=>t==="shadow",qT=()=>{const t=it("color"),n=it("font"),s=it("text"),r=it("font-weight"),i=it("tracking"),u=it("leading"),O=it("breakpoint"),f=it("container"),m=it("spacing"),p=it("radius"),g=it("shadow"),x=it("inset-shadow"),b=it("text-shadow"),Q=it("drop-shadow"),j=it("blur"),$=it("perspective"),w=it("aspect"),k=it("ease"),N=it("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...C(),re,le],X=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],U=()=>[re,le,m],te=()=>[Xn,"full","auto",...U()],H=()=>[_n,"none","subgrid",re,le],Oe=()=>["auto",{span:["full",_n,re,le]},_n,re,le],fe=()=>[_n,"auto",re,le],ve=()=>["auto","min","max","fr",re,le],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...U()],I=()=>[Xn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],F=()=>[Xn,"screen","full","dvw","lvw","svw","min","max","fit",...U()],he=()=>[Xn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],K=()=>[t,re,le],Ue=()=>[...C(),zg,Pg,{position:[re,le]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",ZT,zT,{size:[re,le]}],Ye=()=>[ad,Nr,ms],V=()=>["","none","full",p,re,le],ie=()=>["",be,Nr,ms],ke=()=>["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"],Xe=()=>[be,ad,zg,Pg],et=()=>["","none",j,re,le],gt=()=>["none",be,re,le],bt=()=>["none",be,re,le],Bt=()=>[be,re,le],vt=()=>[Xn,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wa],breakpoint:[Wa],color:[ab],container:[Wa],"drop-shadow":[Wa],ease:["in","out","in-out"],font:[PT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wa],shadow:[Wa],spacing:["px",be],text:[Wa],"text-shadow":[Wa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xn,le,re,w]}],container:["container"],columns:[{columns:[be,le,re,f]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:q()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[_n,"auto",re,le]}],basis:[{basis:[Xn,"full","auto",f,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,Xn,"auto","initial","none",le]}],grow:[{grow:["",be,re,le]}],shrink:[{shrink:["",be,re,le]}],order:[{order:[_n,"first","last","none",re,le]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[f,"screen",...I()]}],"min-w":[{"min-w":[f,"screen","none",...I()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[O]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",s,Nr,ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,AT,NT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,le]}],"font-family":[{font:[_T,RT,n]}],"font-features":[{"font-features":[le]}],"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:[i,re,le]}],"line-clamp":[{"line-clamp":[be,"none",re,kg]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",re,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",re,ms]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[be,"auto",re,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,le]}],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",re,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ue()}],"bg-repeat":[{bg:Re()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_n,re,le],radial:["",re,le],conic:[_n,re,le]},CT,XT]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Ye()}],"gradient-via-pos":[{via:Ye()}],"gradient-to-pos":[{to:Ye()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"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:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,re,le]}],"outline-w":[{outline:["",be,Nr,ms]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,To,jo]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",x,To,jo]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[be,ms]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",b,To,jo]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[be,re,le]}],"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":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":Xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Xe()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Xe()}],"mask-image-t-to-pos":[{"mask-t-to":Xe()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Xe()}],"mask-image-r-to-pos":[{"mask-r-to":Xe()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Xe()}],"mask-image-b-to-pos":[{"mask-b-to":Xe()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Xe()}],"mask-image-l-to-pos":[{"mask-l-to":Xe()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Xe()}],"mask-image-x-to-pos":[{"mask-x-to":Xe()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Xe()}],"mask-image-y-to-pos":[{"mask-y-to":Xe()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[re,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":Xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Xe()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":Xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Xe()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ue()}],"mask-repeat":[{mask:Re()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,le]}],filter:[{filter:["","none",re,le]}],blur:[{blur:et()}],brightness:[{brightness:[be,re,le]}],contrast:[{contrast:[be,re,le]}],"drop-shadow":[{"drop-shadow":["","none",Q,To,jo]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",be,re,le]}],"hue-rotate":[{"hue-rotate":[be,re,le]}],invert:[{invert:["",be,re,le]}],saturate:[{saturate:[be,re,le]}],sepia:[{sepia:["",be,re,le]}],"backdrop-filter":[{"backdrop-filter":["","none",re,le]}],"backdrop-blur":[{"backdrop-blur":et()}],"backdrop-brightness":[{"backdrop-brightness":[be,re,le]}],"backdrop-contrast":[{"backdrop-contrast":[be,re,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,re,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,re,le]}],"backdrop-invert":[{"backdrop-invert":["",be,re,le]}],"backdrop-opacity":[{"backdrop-opacity":[be,re,le]}],"backdrop-saturate":[{"backdrop-saturate":[be,re,le]}],"backdrop-sepia":[{"backdrop-sepia":["",be,re,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",re,le]}],ease:[{ease:["linear","initial",k,re,le]}],delay:[{delay:[be,re,le]}],animate:[{animate:["none",N,re,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,re,le]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:gt()}],"rotate-x":[{"rotate-x":gt()}],"rotate-y":[{"rotate-y":gt()}],"rotate-z":[{"rotate-z":gt()}],scale:[{scale:bt()}],"scale-x":[{"scale-x":bt()}],"scale-y":[{"scale-y":bt()}],"scale-z":[{"scale-z":bt()}],"scale-3d":["scale-3d"],skew:[{skew:Bt()}],"skew-x":[{"skew-x":Bt()}],"skew-y":[{"skew-y":Bt()}],transform:[{transform:[re,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:vt()}],"translate-x":[{"translate-x":vt()}],"translate-y":[{"translate-y":vt()}],"translate-z":[{"translate-z":vt()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",re,le]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",re,le]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[be,Nr,ms,kg]}],stroke:[{stroke:["none",...K()]}],"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"]}},MT=gT(qT);function ne(...t){return MT(Fj(t))}function YT({children:t}){return c.jsx(Lj,{delayDuration:300,children:t})}function Ng({children:t,content:n,side:s="top",className:r}){return n?c.jsxs(Dj,{children:[c.jsx(Wj,{asChild:!0,children:t}),c.jsx(Bj,{children:c.jsxs(Hj,{side:s,sideOffset:6,className:ne("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",r),children:[n,c.jsx(Ij,{className:"fill-surface-4"})]})})]}):t}/**
|
|
27
|
+
* @license lucide-react v1.7.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const ub=(...t)=>t.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim();/**
|
|
32
|
+
* @license lucide-react v1.7.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const VT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
37
|
+
* @license lucide-react v1.7.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const UT=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase());/**
|
|
42
|
+
* @license lucide-react v1.7.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Rg=t=>{const n=UT(t);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
47
|
+
* @license lucide-react v1.7.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var nd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
52
|
+
* @license lucide-react v1.7.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const GT=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},LT=y.createContext({}),DT=()=>y.useContext(LT),WT=y.forwardRef(({color:t,size:n,strokeWidth:s,absoluteStrokeWidth:r,className:i="",children:u,iconNode:O,...f},m)=>{const{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:x=!1,color:b="currentColor",className:Q=""}=DT()??{},j=r??x?Number(s??g)*24/Number(n??p):s??g;return y.createElement("svg",{ref:m,...nd,width:n??p??nd.width,height:n??p??nd.height,stroke:t??b,strokeWidth:j,className:ub("lucide",Q,i),...!u&&!GT(f)&&{"aria-hidden":"true"},...f},[...O.map(([$,w])=>y.createElement($,w)),...Array.isArray(u)?u:[u]])});/**
|
|
57
|
+
* @license lucide-react v1.7.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const ee=(t,n)=>{const s=y.forwardRef(({className:r,...i},u)=>y.createElement(WT,{ref:u,iconNode:n,className:ub(`lucide-${VT(Rg(t))}`,`lucide-${t}`,r),...i}));return s.displayName=Rg(t),s};/**
|
|
62
|
+
* @license lucide-react v1.7.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const BT=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],tc=ee("activity",BT);/**
|
|
67
|
+
* @license lucide-react v1.7.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const HT=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],IT=ee("arrow-up",HT);/**
|
|
72
|
+
* @license lucide-react v1.7.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const FT=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],KT=ee("calculator",FT);/**
|
|
77
|
+
* @license lucide-react v1.7.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const JT=[["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"}]],Xg=ee("calendar",JT);/**
|
|
82
|
+
* @license lucide-react v1.7.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const ek=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Sc=ee("chart-column",ek);/**
|
|
87
|
+
* @license lucide-react v1.7.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const tk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gn=ee("check",tk);/**
|
|
92
|
+
* @license lucide-react v1.7.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const ak=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ln=ee("chevron-down",ak);/**
|
|
97
|
+
* @license lucide-react v1.7.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const nk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sk=ee("chevron-left",nk);/**
|
|
102
|
+
* @license lucide-react v1.7.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const lk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ai=ee("chevron-right",lk);/**
|
|
107
|
+
* @license lucide-react v1.7.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const rk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Sl=ee("circle-alert",rk);/**
|
|
112
|
+
* @license lucide-react v1.7.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const ik=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ur=ee("circle-check-big",ik);/**
|
|
117
|
+
* @license lucide-react v1.7.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const ok=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dd=ee("circle-check",ok);/**
|
|
122
|
+
* @license lucide-react v1.7.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const ck=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uk=ee("circle-x",ck);/**
|
|
127
|
+
* @license lucide-react v1.7.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const Ok=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ac=ee("clock",Ok);/**
|
|
132
|
+
* @license lucide-react v1.7.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const dk=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],fk=ee("cloud",dk);/**
|
|
137
|
+
* @license lucide-react v1.7.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const hk=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Bn=ee("code-xml",hk);/**
|
|
142
|
+
* @license lucide-react v1.7.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const mk=[["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"}]],Wd=ee("copy",mk);/**
|
|
147
|
+
* @license lucide-react v1.7.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const pk=[["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"}]],Ob=ee("cpu",pk);/**
|
|
152
|
+
* @license lucide-react v1.7.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const xk=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],gk=ee("database",xk);/**
|
|
157
|
+
* @license lucide-react v1.7.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const bk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],vk=ee("dollar-sign",bk);/**
|
|
162
|
+
* @license lucide-react v1.7.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const yk=[["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"}]],kf=ee("download",yk);/**
|
|
167
|
+
* @license lucide-react v1.7.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Qk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Sk=ee("external-link",Qk);/**
|
|
172
|
+
* @license lucide-react v1.7.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const $k=[["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"}]],db=ee("eye-off",$k);/**
|
|
177
|
+
* @license lucide-react v1.7.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const wk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$c=ee("eye",wk);/**
|
|
182
|
+
* @license lucide-react v1.7.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const jk=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],fb=ee("file-pen",jk);/**
|
|
187
|
+
* @license lucide-react v1.7.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Tk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Bd=ee("file-text",Tk);/**
|
|
192
|
+
* @license lucide-react v1.7.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const kk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Pk=ee("file",kk);/**
|
|
197
|
+
* @license lucide-react v1.7.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const zk=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Nk=ee("flame",zk);/**
|
|
202
|
+
* @license lucide-react v1.7.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Rk=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],Xk=ee("folder-closed",Rk);/**
|
|
207
|
+
* @license lucide-react v1.7.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const _k=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Gr=ee("folder-open",_k);/**
|
|
212
|
+
* @license lucide-react v1.7.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const Zk=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],Ck=ee("folder-search",Zk);/**
|
|
217
|
+
* @license lucide-react v1.7.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const Ak=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Ek=ee("folder",Ak);/**
|
|
222
|
+
* @license lucide-react v1.7.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const qk=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],hb=ee("gauge",qk);/**
|
|
227
|
+
* @license lucide-react v1.7.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const Mk=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],mb=ee("hard-drive",Mk);/**
|
|
232
|
+
* @license lucide-react v1.7.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Yk=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Vk=ee("headphones",Yk);/**
|
|
237
|
+
* @license lucide-react v1.7.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const Uk=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Gk=ee("heart",Uk);/**
|
|
242
|
+
* @license lucide-react v1.7.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const Lk=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Dk=ee("house",Lk);/**
|
|
247
|
+
* @license lucide-react v1.7.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Wk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pb=ee("info",Wk);/**
|
|
252
|
+
* @license lucide-react v1.7.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const Bk=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],xb=ee("key",Bk);/**
|
|
257
|
+
* @license lucide-react v1.7.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const Hk=[["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"}]],Hd=ee("layers",Hk);/**
|
|
262
|
+
* @license lucide-react v1.7.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const Ik=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],gb=ee("loader-circle",Ik);/**
|
|
267
|
+
* @license lucide-react v1.7.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const Fk=[["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"}]],Pf=ee("log-in",Fk);/**
|
|
272
|
+
* @license lucide-react v1.7.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const Kk=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],bb=ee("log-out",Kk);/**
|
|
277
|
+
* @license lucide-react v1.7.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const Jk=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],e5=ee("map",Jk);/**
|
|
282
|
+
* @license lucide-react v1.7.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const t5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],a5=ee("maximize-2",t5);/**
|
|
287
|
+
* @license lucide-react v1.7.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const n5=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],s5=ee("megaphone",n5);/**
|
|
292
|
+
* @license lucide-react v1.7.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const l5=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zf=ee("message-square",l5);/**
|
|
297
|
+
* @license lucide-react v1.7.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const r5=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],i5=ee("minimize-2",r5);/**
|
|
302
|
+
* @license lucide-react v1.7.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const o5=[["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"}]],Nf=ee("monitor",o5);/**
|
|
307
|
+
* @license lucide-react v1.7.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const c5=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],vb=ee("network",c5);/**
|
|
312
|
+
* @license lucide-react v1.7.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const u5=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Lr=ee("newspaper",u5);/**
|
|
317
|
+
* @license lucide-react v1.7.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const O5=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],yb=ee("package",O5);/**
|
|
322
|
+
* @license lucide-react v1.7.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const d5=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],f5=ee("pencil",d5);/**
|
|
327
|
+
* @license lucide-react v1.7.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const h5=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],m5=ee("plug",h5);/**
|
|
332
|
+
* @license lucide-react v1.7.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const p5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ys=ee("plus",p5);/**
|
|
337
|
+
* @license lucide-react v1.7.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const x5=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Qb=ee("puzzle",x5);/**
|
|
342
|
+
* @license lucide-react v1.7.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const g5=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Nl=ee("refresh-cw",g5);/**
|
|
347
|
+
* @license lucide-react v1.7.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const b5=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Sb=ee("rocket",b5);/**
|
|
352
|
+
* @license lucide-react v1.7.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const v5=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Rl=ee("rotate-cw",v5);/**
|
|
357
|
+
* @license lucide-react v1.7.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const y5=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xl=ee("search",y5);/**
|
|
362
|
+
* @license lucide-react v1.7.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const Q5=[["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"}]],S5=ee("send",Q5);/**
|
|
367
|
+
* @license lucide-react v1.7.0 - ISC
|
|
368
|
+
*
|
|
369
|
+
* This source code is licensed under the ISC license.
|
|
370
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
+
*/const $5=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],$b=ee("server",$5);/**
|
|
372
|
+
* @license lucide-react v1.7.0 - ISC
|
|
373
|
+
*
|
|
374
|
+
* This source code is licensed under the ISC license.
|
|
375
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
+
*/const w5=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rf=ee("settings",w5);/**
|
|
377
|
+
* @license lucide-react v1.7.0 - ISC
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the ISC license.
|
|
380
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
+
*/const j5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],wb=ee("shield-check",j5);/**
|
|
382
|
+
* @license lucide-react v1.7.0 - ISC
|
|
383
|
+
*
|
|
384
|
+
* This source code is licensed under the ISC license.
|
|
385
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
+
*/const T5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],k5=ee("shield-x",T5);/**
|
|
387
|
+
* @license lucide-react v1.7.0 - ISC
|
|
388
|
+
*
|
|
389
|
+
* This source code is licensed under the ISC license.
|
|
390
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
+
*/const P5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Dr=ee("shield",P5);/**
|
|
392
|
+
* @license lucide-react v1.7.0 - ISC
|
|
393
|
+
*
|
|
394
|
+
* This source code is licensed under the ISC license.
|
|
395
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
+
*/const z5=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],sd=ee("shopping-bag",z5);/**
|
|
397
|
+
* @license lucide-react v1.7.0 - ISC
|
|
398
|
+
*
|
|
399
|
+
* This source code is licensed under the ISC license.
|
|
400
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
+
*/const N5=[["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"}]],jb=ee("skull",N5);/**
|
|
402
|
+
* @license lucide-react v1.7.0 - ISC
|
|
403
|
+
*
|
|
404
|
+
* This source code is licensed under the ISC license.
|
|
405
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
+
*/const R5=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Tb=ee("sparkles",R5);/**
|
|
407
|
+
* @license lucide-react v1.7.0 - ISC
|
|
408
|
+
*
|
|
409
|
+
* This source code is licensed under the ISC license.
|
|
410
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
+
*/const X5=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],kb=ee("star",X5);/**
|
|
412
|
+
* @license lucide-react v1.7.0 - ISC
|
|
413
|
+
*
|
|
414
|
+
* This source code is licensed under the ISC license.
|
|
415
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
+
*/const _5=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ni=ee("terminal",_5);/**
|
|
417
|
+
* @license lucide-react v1.7.0 - ISC
|
|
418
|
+
*
|
|
419
|
+
* This source code is licensed under the ISC license.
|
|
420
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
+
*/const Z5=[["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"}]],Pb=ee("test-tube",Z5);/**
|
|
422
|
+
* @license lucide-react v1.7.0 - ISC
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the ISC license.
|
|
425
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
+
*/const C5=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zb=ee("trash-2",C5);/**
|
|
427
|
+
* @license lucide-react v1.7.0 - ISC
|
|
428
|
+
*
|
|
429
|
+
* This source code is licensed under the ISC license.
|
|
430
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
+
*/const A5=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],wc=ee("triangle-alert",A5);/**
|
|
432
|
+
* @license lucide-react v1.7.0 - ISC
|
|
433
|
+
*
|
|
434
|
+
* This source code is licensed under the ISC license.
|
|
435
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
+
*/const E5=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],q5=ee("upload",E5);/**
|
|
437
|
+
* @license lucide-react v1.7.0 - ISC
|
|
438
|
+
*
|
|
439
|
+
* This source code is licensed under the ISC license.
|
|
440
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
+
*/const M5=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Y5=ee("user-check",M5);/**
|
|
442
|
+
* @license lucide-react v1.7.0 - ISC
|
|
443
|
+
*
|
|
444
|
+
* This source code is licensed under the ISC license.
|
|
445
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
+
*/const V5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],U5=ee("user-plus",V5);/**
|
|
447
|
+
* @license lucide-react v1.7.0 - ISC
|
|
448
|
+
*
|
|
449
|
+
* This source code is licensed under the ISC license.
|
|
450
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
+
*/const G5=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Yo=ee("user",G5);/**
|
|
452
|
+
* @license lucide-react v1.7.0 - ISC
|
|
453
|
+
*
|
|
454
|
+
* This source code is licensed under the ISC license.
|
|
455
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
+
*/const L5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],jc=ee("users",L5);/**
|
|
457
|
+
* @license lucide-react v1.7.0 - ISC
|
|
458
|
+
*
|
|
459
|
+
* This source code is licensed under the ISC license.
|
|
460
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
+
*/const D5=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],W5=ee("wrench",D5);/**
|
|
462
|
+
* @license lucide-react v1.7.0 - ISC
|
|
463
|
+
*
|
|
464
|
+
* This source code is licensed under the ISC license.
|
|
465
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
+
*/const B5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lt=ee("x",B5);/**
|
|
467
|
+
* @license lucide-react v1.7.0 - ISC
|
|
468
|
+
*
|
|
469
|
+
* This source code is licensed under the ISC license.
|
|
470
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
+
*/const H5=[["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"}]],Hn=ee("zap",H5),I5={success:Ur,error:Sl,info:pb,warning:wc},F5={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},K5={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},J5={success:3e3,error:0,info:5e3,warning:5e3};function eP({toast:t}){const n=L(i=>i.removeToast),s=I5[t.type]||pb,r=J5[t.type];return y.useEffect(()=>{if(!r)return;const i=setTimeout(()=>n(t.id),r);return()=>clearTimeout(i)},[t.id,r,n]),c.jsxs(s0.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:ne("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",F5[t.type]),children:[c.jsx(s,{size:16,className:ne("flex-shrink-0",K5[t.type])}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&c.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),c.jsx("button",{onClick:i=>{i.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:c.jsx(Lt,{size:14})})]})}function tP(){const t=L(n=>n.toasts);return c.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:c.jsx(n0,{mode:"popLayout",children:t.slice(-3).map(n=>c.jsx(eP,{toast:n},n.id))})})}const aP=[{id:"agents",icon:vb,label:"Agents"},{id:"editor",icon:Bn,label:"Editor"},{id:"dashboard",icon:Sc,label:"Dashboard"},{id:"marketplace",icon:Qb,label:"Marketplace"},{id:"teams",icon:jc,label:"Teams"}],nP=[{id:"journalist",icon:Lr,label:"Journalist",panel:!0},{id:"settings",icon:Rf,label:"Settings",nav:!0}];function sP({activeView:t,detailPanel:n,onNavigate:s,onTogglePanel:r}){return c.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[c.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:aP.map(i=>c.jsx(Ng,{content:i.label,side:"right",children:c.jsx("button",{onClick:()=>s(i.id),className:ne("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",t===i.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:c.jsx(i.icon,{size:20,strokeWidth:t===i.id?2:1.5})})},i.id))}),c.jsx("div",{className:"flex-1"}),c.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:nP.map(i=>{const u=i.panel?(n==null?void 0:n.type)===i.id:t===i.id;return c.jsx(Ng,{content:i.label,side:"right",children:c.jsx("button",{onClick:()=>i.panel?r(i.id):s((i.nav,i.id)),className:ne("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:c.jsx(i.icon,{size:20,strokeWidth:u?2:1.5})})},i.id)})})]})}const lP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function rP({activeView:t,connected:n,daemonHost:s,editorActiveFile:r,onOpenCommandPalette:i,onSpawn:u}){const O=["Groove",lP[t]||t];return t==="editor"&&r&&O.push(r.split("/").pop()),c.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[c.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&c.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}),c.jsx("div",{className:"flex-1 min-w-4"}),c.jsxs("button",{onClick:i,className:ne("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:[c.jsx(Xl,{size:14,className:"flex-shrink-0"}),c.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),c.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),c.jsx("div",{className:"flex-1 min-w-4"}),c.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:O.map((f,m)=>c.jsxs("span",{className:"flex items-center gap-1",children:[m>0&&c.jsx(ai,{size:11,className:"text-text-4"}),c.jsx("span",{className:ne(m===O.length-1?"text-text-2":"text-text-4"),children:f})]},m))}),n&&c.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:[c.jsx(ys,{size:14}),"Spawn"]})]})}const iP={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 Nb(t){return iP[t]||"var(--color-text-3)"}const oP={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 Xf(t){const n=(t||"").toLowerCase();return oP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function _f({status:t,size:n="md",className:s}){const r=t==="running"||t==="starting",i=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return c.jsx("span",{className:ne("rounded-full inline-block flex-shrink-0",r&&"animate-pulse",i,s),style:{background:Nb(t)}})}function Dt(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 Zf(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 Ar(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function Cf(t){if(!t||t<0)return"0s";const n=Math.floor(t/86400),s=Math.floor(t%86400/3600),r=Math.floor(t%3600/60),i=Math.floor(t%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`}function Wt(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:r,terminalVisible:i,onToggleTerminal:u}){return c.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:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(_f,{status:t?"running":"crashed",size:"sm"}),c.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&r>0&&c.jsxs("span",{className:"text-text-4",children:["Up ",Cf(r)]}),t&&n>0&&c.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),c.jsx("div",{className:"flex-1"}),c.jsxs("button",{onClick:u,className:ne("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",i?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[c.jsx(ni,{size:12}),c.jsx("span",{children:"Terminal"}),c.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function uP({children:t,width:n,onWidthChange:s,onClose:r,className:i}){const u=y.useRef(!1),O=y.useRef(0),f=y.useRef(0),m=y.useCallback(p=>{p.preventDefault(),u.current=!0,O.current=p.clientX,f.current=n;function g(b){if(!u.current)return;const Q=O.current-b.clientX,j=Math.min(Math.max(f.current+Q,380),window.innerWidth*.65);s(j)}function x(){u.current=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x)}document.addEventListener("mousemove",g),document.addEventListener("mouseup",x)},[n,s]);return c.jsxs("aside",{className:ne("flex-shrink-0 flex bg-surface-1 border-l border-border relative",i),style:{width:n},children:[c.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}),c.jsx("button",{onClick:r,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:c.jsx(Lt,{size:14})}),c.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const OP=[{id:"nav:agents",label:"Go to Agents",icon:vb,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:Bn,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Sc,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Qb,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:jc,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:ys,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:ni,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:Lr,category:"Actions",action:t=>{var n;((n=t.detailPanel)==null?void 0:n.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function dP(){const t=L(Q=>Q.commandPaletteOpen),n=L(Q=>Q.toggleCommandPalette),s=L(Q=>Q.agents),r=L,[i,u]=y.useState(""),[O,f]=y.useState(0),m=y.useRef(null),p=y.useMemo(()=>{const Q=s.flatMap(j=>[{id:`chat:${j.id}`,label:`Chat with ${j.name}`,icon:zf,category:"Agents",action:$=>{$.selectAgent(j.id)}},...j.status==="running"?[{id:`rotate:${j.id}`,label:`Rotate ${j.name}`,icon:Rl,category:"Agents",action:$=>{$.rotateAgent(j.id)}},{id:`kill:${j.id}`,label:`Kill ${j.name}`,icon:jb,category:"Agents",action:$=>{$.killAgent(j.id)}}]:[]]);return[...OP,...Q]},[s]),g=y.useMemo(()=>{if(!i.trim())return p.slice(0,12);const Q=i.toLowerCase();return p.filter(j=>j.label.toLowerCase().includes(Q)||j.category.toLowerCase().includes(Q)).slice(0,12)},[p,i]);y.useEffect(()=>{t&&(u(""),f(0),setTimeout(()=>{var Q;return(Q=m.current)==null?void 0:Q.focus()},50))},[t]),y.useEffect(()=>{O>=g.length&&f(Math.max(0,g.length-1))},[g.length,O]);function x(Q){Q.action(r.getState()),n()}function b(Q){Q.key==="ArrowDown"?(Q.preventDefault(),f(j=>Math.min(j+1,g.length-1))):Q.key==="ArrowUp"?(Q.preventDefault(),f(j=>Math.max(j-1,0))):Q.key==="Enter"&&g[O]?(Q.preventDefault(),x(g[O])):Q.key==="Escape"&&n()}return t?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),c.jsx(n0,{children:c.jsxs(s0.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:[c.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[c.jsx(Xl,{size:16,className:"text-text-3 flex-shrink-0"}),c.jsx("input",{ref:m,value:i,onChange:Q=>{u(Q.target.value),f(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),c.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[g.length===0&&c.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),g.map((Q,j)=>c.jsxs("button",{onClick:()=>x(Q),onMouseEnter:()=>f(j),className:ne("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",j===O?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[c.jsx(Q.icon,{size:16,className:"text-text-3 flex-shrink-0"}),c.jsx("span",{className:"flex-1 text-left",children:Q.label}),c.jsx("span",{className:"text-2xs text-text-4",children:Q.category}),Q.shortcut&&c.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:Q.shortcut})]},Q.id))]})]})})]}):null}function fP({children:t,detailContent:n,terminalContent:s}){const r=L(X=>X.activeView),i=L(X=>X.detailPanel),u=L(X=>X.connected),O=L(X=>X.tunneled),f=L(X=>X.daemonHost),m=L(X=>X.agents),p=L(X=>X.editorActiveFile),g=L(X=>X.detailPanelWidth),x=L(X=>X.terminalVisible),b=L(X=>X.terminalFullHeight),Q=L(X=>X.setActiveView),j=L(X=>X.openDetail),$=L(X=>X.closeDetail),w=L(X=>X.setDetailPanelWidth),k=L(X=>X.setTerminalVisible),N=L(X=>X.toggleCommandPalette),Z=y.useMemo(()=>m.filter(X=>X.status==="running").length,[m]),C=y.useMemo(()=>[{key:"k",meta:!0,handler:()=>L.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>L.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const X=L.getState();X.setTerminalVisible(!X.terminalVisible)}},{key:"n",meta:!0,handler:()=>L.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>L.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>L.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>L.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>L.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>L.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const X=L.getState();X.commandPaletteOpen?X.toggleCommandPalette():X.detailPanel&&X.closeDetail()}}],[]);A$(C);const q=i&&i.type!=="spawn";return c.jsx(YT,{children:c.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[c.jsx(rP,{activeView:r,connected:u,tunneled:O,daemonHost:f,editorActiveFile:p,onOpenCommandPalette:N,onSpawn:()=>j({type:"spawn"})}),c.jsxs("div",{className:"flex-1 flex min-h-0",children:[c.jsx(sP,{activeView:r,detailPanel:i,onNavigate:Q,onTogglePanel:X=>{(i==null?void 0:i.type)===X?$():j({type:X})}}),c.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(x&&b)&&c.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),q&&c.jsx(uP,{width:g,onWidthChange:w,onClose:$,children:n})]}),c.jsx(cP,{connected:u,agentCount:m.length,runningCount:Z,terminalVisible:x,onToggleTerminal:()=>k(!x)}),c.jsx(dP,{}),c.jsx(tP,{})]})})}const hP=[];function mP(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 pP(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 xP(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 gP({agent:t}){const s=(L(r=>r.activityLog[t.id])||hP).slice(-8);return c.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:c.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&c.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:c.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?c.jsxs("div",{children:[c.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:c.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((r,i)=>{var f;const u=pP(r.text),O=((f=r.text)==null?void 0:f.length)>45?r.text.slice(0,45)+"...":r.text;return c.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[c.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:xP(r.timestamp)}),u&&c.jsx("span",{className:ne("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}),c.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:O})]},i)}),c.jsx("div",{className:"h-1.5"})]}):c.jsx("div",{className:"px-2.5 py-3",children:c.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const bP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},Rb=y.memo(({data:t,selected:n})=>{const{agent:s}=t,r=s.status==="running"||s.status==="starting",i=Math.round((s.contextUsed||0)*100),u=Nb(s.status),O=s.tokensUsed||0,[f,m]=y.useState(!1);return c.jsxs("div",{className:"relative",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[c.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${n?"#2e323a":"#262a32"}`,borderRadius:4},children:[c.jsx(qn,{id:"top",type:"target",position:Mn.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),c.jsx(qn,{id:"bottom",type:"target",position:Mn.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),c.jsx(qn,{id:"left",type:"target",position:Mn.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),c.jsx(qn,{id:"right",type:"target",position:Mn.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),r&&c.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:c.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"}})}),c.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[c.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),r&&c.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),c.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),c.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:bP[s.status]||s.status})]}),c.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[c.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),c.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),c.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:mP(s.model)})]})]}),c.jsxs("div",{className:"px-3 pt-1 pb-2",children:[c.jsxs("div",{className:"flex items-baseline gap-1.5",children:[c.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:Dt(O)}),c.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),c.jsx("span",{className:"flex-1"}),c.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[i,"%"]})]}),c.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm bg-[#262a32] overflow-hidden",children:c.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(i,1)}%`,background:i>80?"#e06c75":i>60?"#e5c07b":r?"#61afef":"#333842"}})})]})]}),f&&c.jsx(gP,{agent:s})]})});Rb.displayName="AgentNode";const Xb=y.memo(({data:t})=>{const{agentCount:n,runningCount:s}=t,r=s>0,i={background:"transparent",border:0,width:2,height:2};return c.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[c.jsx("div",{className:ne("absolute inset-0 rounded-full transition-all duration-500",r&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${r?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),c.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:r?"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:r?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),c.jsx("div",{className:ne("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",r?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:c.jsx("img",{src:"/favicon.png",alt:"G",className:ne("h-7 w-7 rounded-full transition-opacity",r?"opacity-90":"opacity-60")})}),n>0&&c.jsx("div",{className:ne("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",r?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),c.jsx(qn,{id:"bottom",type:"source",position:Mn.Bottom,style:i}),c.jsx(qn,{id:"right",type:"source",position:Mn.Right,style:i}),c.jsx(qn,{id:"left",type:"source",position:Mn.Left,style:i}),c.jsx(qn,{id:"top",type:"source",position:Mn.Top,style:i})]})});Xb.displayName="RootNode";const vP={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"},yP={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"},Ne=y.forwardRef(({className:t,variant:n="secondary",size:s="md",children:r,...i},u)=>c.jsx("button",{ref:u,className:ne("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",vP[n],yP[s],t),...i,children:r}));Ne.displayName="Button";const QP={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 ot({children:t,variant:n="default",className:s,dot:r,...i}){return c.jsxs("span",{className:ne("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",QP[n],s),...i,children:[r&&c.jsx("span",{className:ne("w-1.5 h-1.5 rounded-full",r==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const SP={agentNode:Rb,rootNode:Xb},_g=220,Zg=82,ko=260,Cg=130,Zn=4,Ba="__groove_root__";function ld(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function $P(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function wP(){const t=L(b=>b.teams),n=L(b=>b.activeTeamId),s=L(b=>b.agents),r=L(b=>b.switchTeam),i=L(b=>b.createTeam),u=L(b=>b.deleteTeam),[O,f]=y.useState(!1),[m,p]=y.useState(""),g=y.useRef(!1);function x(){const b=m.trim();!b||g.current||(g.current=!0,p(""),f(!1),i(b).finally(()=>{g.current=!1}))}return c.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle px-2 gap-0.5 flex-shrink-0",children:[t.map(b=>{const Q=s.filter($=>$.teamId===b.id).length,j=b.id===n;return c.jsxs("div",{className:ne("group flex items-center gap-1 pl-2.5 pr-1 h-7 rounded text-2xs font-sans cursor-pointer select-none transition-colors",j?"bg-surface-3 text-text-0 font-semibold":"text-text-3 hover:text-text-1 hover:bg-surface-3/50"),children:[c.jsxs("button",{onClick:()=>r(b.id),className:"flex items-center gap-1.5 cursor-pointer",children:[c.jsx(jc,{size:10}),c.jsx("span",{className:"truncate max-w-[80px]",children:b.name}),Q>0&&c.jsx("span",{className:"text-text-4 font-mono",children:Q})]}),!b.isDefault&&c.jsx("button",{onClick:$=>{$.stopPropagation(),u(b.id)},className:"ml-0.5 p-0.5 rounded opacity-0 group-hover:opacity-100 hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer transition-all",children:c.jsx(Lt,{size:9})})]},b.id)}),O?c.jsxs("div",{className:"flex items-center gap-1 ml-1",children:[c.jsx("input",{value:m,onChange:b=>p(b.target.value),onKeyDown:b=>{b.key==="Enter"&&x(),b.key==="Escape"&&(f(!1),p(""))},placeholder:"Team name...",className:"h-6 w-24 px-2 text-2xs 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}),c.jsx("button",{onClick:x,disabled:!m.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:c.jsx(Gn,{size:11})}),c.jsx("button",{onClick:()=>{f(!1),p("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:c.jsx(Lt,{size:11})})]}):c.jsx("button",{onClick:()=>f(!0),className:"flex items-center justify-center w-7 h-7 text-text-4 hover:text-text-1 hover:bg-surface-3/50 rounded cursor-pointer transition-colors ml-0.5",title:"New team",children:c.jsx(ys,{size:12})})]})}function jP(){const t=L(q=>q.agents),n=L(q=>q.activeTeamId),s=L(q=>q.tokenTimeline),r=L(q=>q.selectAgent),i=L(q=>q.closeDetail),u=y.useMemo(()=>t.filter(q=>q.teamId===n),[t,n]),{fitView:O}=F2(),[f,m]=y.useState(0),p=y.useMemo(()=>{const q=ld(),X=u.filter(U=>U.status==="running").length,G=[{id:Ba,type:"rootNode",position:q[Ba]||{x:0,y:0},data:{agentCount:u.length,runningCount:X},draggable:!0,selectable:!1}];return u.forEach((U,te)=>{const H=U.name||U.id,Oe=Math.floor(te/Zn),fe=te%Zn,me=-((Math.min(u.length-Oe*Zn,Zn)-1)*ko)/2;G.push({id:U.id,type:"agentNode",position:q[H]||{x:me+fe*ko,y:140+Oe*Cg},data:{agent:U,timeline:s[U.id]||[]},draggable:!0,selectable:!0})}),G},[u,s]),g=y.useMemo(()=>{const q=ld(),X=q[Ba]||{x:0,y:0};return u.map((G,U)=>{const te=G.name||G.id,H=Math.floor(U/Zn),Oe=U%Zn,ve=-((Math.min(u.length-H*Zn,Zn)-1)*ko)/2,me=q[te]||{x:ve+Oe*ko,y:140+H*Cg},pe=me.x+_g/2-X.x,_=me.y+Zg/2-X.y;let I,F;return Math.abs(_)>Math.abs(pe)?(I=_>0?"bottom":"top",F=_>0?"top":"bottom"):(I=pe>0?"right":"left",F=pe>0?"left":"right"),{id:`e-${Ba}-${G.id}`,source:Ba,target:G.id,sourceHandle:I,targetHandle:F,type:"default",animated:G.status==="running"}})},[u]),[x,b,Q]=K2(p),[j,$,w]=J2(g);y.useEffect(()=>{b(p)},[p,b]),y.useEffect(()=>{$(g)},[g,$]),y.useEffect(()=>{f===0&&u.length>0&&setTimeout(()=>O({padding:.3,maxZoom:1.2,duration:400}),100),m(u.length)},[u.length,f,O]);const k=y.useCallback((q,X)=>{X.id!==Ba&&r(X.id)},[r]),N=y.useCallback(()=>{i()},[i]),Z=y.useCallback((q,X)=>{const G=x.find(te=>te.id===Ba);if(!G)return;const U=G.position;$(te=>te.map(H=>{const Oe=H.source===X.id,fe=H.target===X.id;if(!Oe&&!fe)return H;const ve=X.position,me=ve.x+_g/2-U.x,pe=ve.y+Zg/2-U.y;let _,I;return Math.abs(pe)>Math.abs(me)?(_=pe>0?"bottom":"top",I=pe>0?"top":"bottom"):(_=me>0?"right":"left",I=me>0?"left":"right"),{...H,sourceHandle:_,targetHandle:I}}))},[x,$]),C=y.useCallback((q,X)=>{const G=u.find(H=>H.id===X.id),U=X.id===Ba?Ba:(G==null?void 0:G.name)||X.id,te=ld();te[U]=X.position,$P(te)},[u]);return c.jsx(e$,{nodes:x,edges:j,nodeTypes:SP,onNodesChange:Q,onEdgesChange:w,onNodeClick:k,onPaneClick:N,onNodeDrag:Z,onNodeDragStop:C,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:c.jsx(t$,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function TP({onPlanner:t,onSpawn:n}){return c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[c.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[c.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),c.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:c.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),c.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."})]}),c.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[c.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:[c.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:c.jsx(Hn,{size:24,className:"text-accent"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),c.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"})]}),c.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),c.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:[c.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:c.jsx(ys,{size:20,className:"text-text-1"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),c.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),c.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[c.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),c.jsx("span",{className:"mx-1.5",children:"command palette"}),c.jsx("span",{className:"text-text-4 mx-1",children:"·"}),c.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),c.jsx("span",{className:"mx-1.5",children:"spawn"}),c.jsx("span",{className:"text-text-4 mx-1",children:"·"}),c.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),c.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const kP={backend:$b,frontend:Nf,fullstack:Bn,testing:Pb,security:Dr};function PP(){var p;const t=L(g=>g.recommendedTeam),n=L(g=>g.launchRecommendedTeam);L(g=>g.checkRecommendedTeam);const[s,r]=y.useState(!1);if(!((p=t==null?void 0:t.agents)!=null&&p.length))return null;const i=t.agents,u=i.filter(g=>!g.phase||g.phase===1),O=i.filter(g=>g.phase===2);async function f(){r(!0);try{await n()}catch{}r(!1)}function m(){L.setState({recommendedTeam:null})}return c.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:c.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:[c.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[c.jsx(Sb,{size:16,className:"text-accent"}),c.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),c.jsx("button",{onClick:m,className:"text-text-4 hover:text-text-1 cursor-pointer",children:c.jsx(Lt,{size:14})})]}),c.jsxs("div",{className:"px-4 py-3 space-y-2",children:[c.jsx("div",{className:"flex flex-wrap gap-2",children:u.map((g,x)=>{var Q;const b=kP[g.role]||Bn;return c.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:[c.jsx(b,{size:12,className:"text-text-2"}),c.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans capitalize",children:g.name||g.role}),((Q=g.scope)==null?void 0:Q.length)>0&&c.jsxs("span",{className:"text-2xs text-text-4 font-mono",children:[g.scope[0],g.scope.length>1?` +${g.scope.length-1}`:""]})]},x)})}),O.length>0&&c.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[c.jsx(Dr,{size:10}),c.jsxs("span",{children:[O.length," QC agent",O.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),c.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:c.jsxs(Ne,{variant:"primary",size:"md",onClick:f,disabled:s,className:"w-full gap-2",children:[c.jsx(Hn,{size:14}),s?"Launching...":`Launch ${u.length} Agent${u.length>1?"s":""}`]})})]})})}function Ag(){const t=L(m=>m.agents),n=L(m=>m.activeTeamId),s=L(m=>m.openDetail),r=L(m=>m.spawnAgent),i=L(m=>m.selectAgent);L(m=>m.recommendedTeam);const u=L(m=>m.checkRecommendedTeam);y.useEffect(()=>{if(!t.some(g=>g.role==="planner"&&(g.status==="running"||g.status==="starting")))return;const p=setInterval(()=>u(),5e3);return()=>clearInterval(p)},[t,u]);async function O(){try{const m=await r({role:"planner"});if(m!=null&&m.id){const p=L.getState().addChatMessage;p(m.id,"system","Planner is starting up..."),i(m.id)}}catch{}}const f=t.filter(m=>m.teamId===n);return c.jsxs("div",{className:"flex flex-col h-full relative",children:[c.jsx(wP,{}),c.jsx("div",{className:"flex-1 min-h-0",children:f.length===0?c.jsx(TP,{onPlanner:O,onSpawn:()=>s({type:"spawn"})}):c.jsx(I2,{children:c.jsx(jP,{})})}),c.jsx(PP,{})]})}var zP=y.createContext(void 0);function Af(t){const n=y.useContext(zP);return t||n||"ltr"}function NP(t,[n,s]){return Math.min(s,Math.max(n,t))}function RP(t,n){return y.useReducer((s,r)=>n[s][r]??s,t)}var Ef="ScrollArea",[_b]=js(Ef),[XP,ra]=_b(Ef),Zb=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,type:r="hover",dir:i,scrollHideDelay:u=600,...O}=t,[f,m]=y.useState(null),[p,g]=y.useState(null),[x,b]=y.useState(null),[Q,j]=y.useState(null),[$,w]=y.useState(null),[k,N]=y.useState(0),[Z,C]=y.useState(0),[q,X]=y.useState(!1),[G,U]=y.useState(!1),te=lt(n,Oe=>m(Oe)),H=Af(i);return c.jsx(XP,{scope:s,type:r,dir:H,scrollHideDelay:u,scrollArea:f,viewport:p,onViewportChange:g,content:x,onContentChange:b,scrollbarX:Q,onScrollbarXChange:j,scrollbarXEnabled:q,onScrollbarXEnabledChange:X,scrollbarY:$,onScrollbarYChange:w,scrollbarYEnabled:G,onScrollbarYEnabledChange:U,onCornerWidthChange:N,onCornerHeightChange:C,children:c.jsx(De.div,{dir:H,...O,ref:te,style:{position:"relative","--radix-scroll-area-corner-width":k+"px","--radix-scroll-area-corner-height":Z+"px",...t.style}})})});Zb.displayName=Ef;var Cb="ScrollAreaViewport",Ab=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,children:r,nonce:i,...u}=t,O=ra(Cb,s),f=y.useRef(null),m=lt(n,f,O.onViewportChange);return c.jsxs(c.Fragment,{children:[c.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:i}),c.jsx(De.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:O.scrollbarXEnabled?"scroll":"hidden",overflowY:O.scrollbarYEnabled?"scroll":"hidden",...t.style},children:c.jsx("div",{ref:O.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Ab.displayName=Cb;var Ta="ScrollAreaScrollbar",Eb=y.forwardRef((t,n)=>{const{forceMount:s,...r}=t,i=ra(Ta,t.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:O}=i,f=t.orientation==="horizontal";return y.useEffect(()=>(f?u(!0):O(!0),()=>{f?u(!1):O(!1)}),[f,u,O]),i.type==="hover"?c.jsx(_P,{...r,ref:n,forceMount:s}):i.type==="scroll"?c.jsx(ZP,{...r,ref:n,forceMount:s}):i.type==="auto"?c.jsx(qb,{...r,ref:n,forceMount:s}):i.type==="always"?c.jsx(qf,{...r,ref:n}):null});Eb.displayName=Ta;var _P=y.forwardRef((t,n)=>{const{forceMount:s,...r}=t,i=ra(Ta,t.__scopeScrollArea),[u,O]=y.useState(!1);return y.useEffect(()=>{const f=i.scrollArea;let m=0;if(f){const p=()=>{window.clearTimeout(m),O(!0)},g=()=>{m=window.setTimeout(()=>O(!1),i.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",g),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",g)}}},[i.scrollArea,i.scrollHideDelay]),c.jsx(pa,{present:s||u,children:c.jsx(qb,{"data-state":u?"visible":"hidden",...r,ref:n})})}),ZP=y.forwardRef((t,n)=>{const{forceMount:s,...r}=t,i=ra(Ta,t.__scopeScrollArea),u=t.orientation==="horizontal",O=kc(()=>m("SCROLL_END"),100),[f,m]=RP("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 y.useEffect(()=>{if(f==="idle"){const p=window.setTimeout(()=>m("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(p)}},[f,i.scrollHideDelay,m]),y.useEffect(()=>{const p=i.viewport,g=u?"scrollLeft":"scrollTop";if(p){let x=p[g];const b=()=>{const Q=p[g];x!==Q&&(m("SCROLL"),O()),x=Q};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[i.viewport,u,m,O]),c.jsx(pa,{present:s||f!=="hidden",children:c.jsx(qf,{"data-state":f==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:Ze(t.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:Ze(t.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),qb=y.forwardRef((t,n)=>{const s=ra(Ta,t.__scopeScrollArea),{forceMount:r,...i}=t,[u,O]=y.useState(!1),f=t.orientation==="horizontal",m=kc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,g=s.viewport.offsetHeight<s.viewport.scrollHeight;O(f?p:g)}},10);return $l(s.viewport,m),$l(s.content,m),c.jsx(pa,{present:r||u,children:c.jsx(qf,{"data-state":u?"visible":"hidden",...i,ref:n})})}),qf=y.forwardRef((t,n)=>{const{orientation:s="vertical",...r}=t,i=ra(Ta,t.__scopeScrollArea),u=y.useRef(null),O=y.useRef(0),[f,m]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Gb(f.viewport,f.content),g={...r,sizes:f,onSizesChange:m,hasThumb:p>0&&p<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>O.current=0,onThumbPointerDown:b=>O.current=b};function x(b,Q){return YP(b,O.current,f,Q)}return s==="horizontal"?c.jsx(CP,{...g,ref:n,onThumbPositionChange:()=>{if(i.viewport&&u.current){const b=i.viewport.scrollLeft,Q=Eg(b,f,i.dir);u.current.style.transform=`translate3d(${Q}px, 0, 0)`}},onWheelScroll:b=>{i.viewport&&(i.viewport.scrollLeft=b)},onDragScroll:b=>{i.viewport&&(i.viewport.scrollLeft=x(b,i.dir))}}):s==="vertical"?c.jsx(AP,{...g,ref:n,onThumbPositionChange:()=>{if(i.viewport&&u.current){const b=i.viewport.scrollTop,Q=Eg(b,f);u.current.style.transform=`translate3d(0, ${Q}px, 0)`}},onWheelScroll:b=>{i.viewport&&(i.viewport.scrollTop=b)},onDragScroll:b=>{i.viewport&&(i.viewport.scrollTop=x(b))}}):null}),CP=y.forwardRef((t,n)=>{const{sizes:s,onSizesChange:r,...i}=t,u=ra(Ta,t.__scopeScrollArea),[O,f]=y.useState(),m=y.useRef(null),p=lt(n,m,u.onScrollbarXChange);return y.useEffect(()=>{m.current&&f(getComputedStyle(m.current))},[m]),c.jsx(Yb,{"data-orientation":"horizontal",...i,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":Tc(s)+"px",...t.style},onThumbPointerDown:g=>t.onThumbPointerDown(g.x),onDragScroll:g=>t.onDragScroll(g.x),onWheelScroll:(g,x)=>{if(u.viewport){const b=u.viewport.scrollLeft+g.deltaX;t.onWheelScroll(b),Db(b,x)&&g.preventDefault()}},onResize:()=>{m.current&&u.viewport&&O&&r({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:sc(O.paddingLeft),paddingEnd:sc(O.paddingRight)}})}})}),AP=y.forwardRef((t,n)=>{const{sizes:s,onSizesChange:r,...i}=t,u=ra(Ta,t.__scopeScrollArea),[O,f]=y.useState(),m=y.useRef(null),p=lt(n,m,u.onScrollbarYChange);return y.useEffect(()=>{m.current&&f(getComputedStyle(m.current))},[m]),c.jsx(Yb,{"data-orientation":"vertical",...i,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":Tc(s)+"px",...t.style},onThumbPointerDown:g=>t.onThumbPointerDown(g.y),onDragScroll:g=>t.onDragScroll(g.y),onWheelScroll:(g,x)=>{if(u.viewport){const b=u.viewport.scrollTop+g.deltaY;t.onWheelScroll(b),Db(b,x)&&g.preventDefault()}},onResize:()=>{m.current&&u.viewport&&O&&r({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:sc(O.paddingTop),paddingEnd:sc(O.paddingBottom)}})}})}),[EP,Mb]=_b(Ta),Yb=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,sizes:r,hasThumb:i,onThumbChange:u,onThumbPointerUp:O,onThumbPointerDown:f,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:g,onResize:x,...b}=t,Q=ra(Ta,s),[j,$]=y.useState(null),w=lt(n,te=>$(te)),k=y.useRef(null),N=y.useRef(""),Z=Q.viewport,C=r.content-r.viewport,q=Pt(g),X=Pt(m),G=kc(x,10);function U(te){if(k.current){const H=te.clientX-k.current.left,Oe=te.clientY-k.current.top;p({x:H,y:Oe})}}return y.useEffect(()=>{const te=H=>{const Oe=H.target;(j==null?void 0:j.contains(Oe))&&q(H,C)};return document.addEventListener("wheel",te,{passive:!1}),()=>document.removeEventListener("wheel",te,{passive:!1})},[Z,j,C,q]),y.useEffect(X,[r,X]),$l(j,G),$l(Q.content,G),c.jsx(EP,{scope:s,scrollbar:j,hasThumb:i,onThumbChange:Pt(u),onThumbPointerUp:Pt(O),onThumbPositionChange:X,onThumbPointerDown:Pt(f),children:c.jsx(De.div,{...b,ref:w,style:{position:"absolute",...b.style},onPointerDown:Ze(t.onPointerDown,te=>{te.button===0&&(te.target.setPointerCapture(te.pointerId),k.current=j.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",Q.viewport&&(Q.viewport.style.scrollBehavior="auto"),U(te))}),onPointerMove:Ze(t.onPointerMove,U),onPointerUp:Ze(t.onPointerUp,te=>{const H=te.target;H.hasPointerCapture(te.pointerId)&&H.releasePointerCapture(te.pointerId),document.body.style.webkitUserSelect=N.current,Q.viewport&&(Q.viewport.style.scrollBehavior=""),k.current=null})})})}),nc="ScrollAreaThumb",Vb=y.forwardRef((t,n)=>{const{forceMount:s,...r}=t,i=Mb(nc,t.__scopeScrollArea);return c.jsx(pa,{present:s||i.hasThumb,children:c.jsx(qP,{ref:n,...r})})}),qP=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,style:r,...i}=t,u=ra(nc,s),O=Mb(nc,s),{onThumbPositionChange:f}=O,m=lt(n,x=>O.onThumbChange(x)),p=y.useRef(void 0),g=kc(()=>{p.current&&(p.current(),p.current=void 0)},100);return y.useEffect(()=>{const x=u.viewport;if(x){const b=()=>{if(g(),!p.current){const Q=VP(x,f);p.current=Q,f()}};return f(),x.addEventListener("scroll",b),()=>x.removeEventListener("scroll",b)}},[u.viewport,g,f]),c.jsx(De.div,{"data-state":O.hasThumb?"visible":"hidden",...i,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ze(t.onPointerDownCapture,x=>{const Q=x.target.getBoundingClientRect(),j=x.clientX-Q.left,$=x.clientY-Q.top;O.onThumbPointerDown({x:j,y:$})}),onPointerUp:Ze(t.onPointerUp,O.onThumbPointerUp)})});Vb.displayName=nc;var Mf="ScrollAreaCorner",Ub=y.forwardRef((t,n)=>{const s=ra(Mf,t.__scopeScrollArea),r=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&r?c.jsx(MP,{...t,ref:n}):null});Ub.displayName=Mf;var MP=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,...r}=t,i=ra(Mf,s),[u,O]=y.useState(0),[f,m]=y.useState(0),p=!!(u&&f);return $l(i.scrollbarX,()=>{var x;const g=((x=i.scrollbarX)==null?void 0:x.offsetHeight)||0;i.onCornerHeightChange(g),m(g)}),$l(i.scrollbarY,()=>{var x;const g=((x=i.scrollbarY)==null?void 0:x.offsetWidth)||0;i.onCornerWidthChange(g),O(g)}),p?c.jsx(De.div,{...r,ref:n,style:{width:u,height:f,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function sc(t){return t?parseInt(t,10):0}function Gb(t,n){const s=t/n;return isNaN(s)?0:s}function Tc(t){const n=Gb(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-s)*n;return Math.max(r,18)}function YP(t,n,s,r="ltr"){const i=Tc(s),u=i/2,O=n||u,f=i-O,m=s.scrollbar.paddingStart+O,p=s.scrollbar.size-s.scrollbar.paddingEnd-f,g=s.content-s.viewport,x=r==="ltr"?[0,g]:[g*-1,0];return Lb([m,p],x)(t)}function Eg(t,n,s="ltr"){const r=Tc(n),i=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,u=n.scrollbar.size-i,O=n.content-n.viewport,f=u-r,m=s==="ltr"?[0,O]:[O*-1,0],p=NP(t,m);return Lb([0,O],[0,f])(p)}function Lb(t,n){return s=>{if(t[0]===t[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(t[1]-t[0]);return n[0]+r*(s-t[0])}}function Db(t,n){return t>0&&t<n}var VP=(t,n=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},r=0;return(function i(){const u={left:t.scrollLeft,top:t.scrollTop},O=s.left!==u.left,f=s.top!==u.top;(O||f)&&n(),s=u,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function kc(t,n){const s=Pt(t),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(s,n)},[s,n])}function $l(t,n){const s=Pt(n);an(()=>{let r=0;if(t){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(s)});return i.observe(t),()=>{window.cancelAnimationFrame(r),i.unobserve(t)}}},[t,s])}var UP=Zb,GP=Ab,qg=Eb,Mg=Vb,LP=Ub;function ka({children:t,className:n,...s}){return c.jsxs(UP,{className:ne("overflow-hidden",n),...s,children:[c.jsx(GP,{className:"h-full w-full rounded-[inherit]",children:t}),c.jsx(qg,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:c.jsx(Mg,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),c.jsx(qg,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:c.jsx(Mg,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),c.jsx(LP,{})]})}const DP={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 WP(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return DP[n]||"text-text-3"}function Wb({entry:t,depth:n=0,activePath:s,onFileClick:r,onDirToggle:i,expanded:u}){const O=t.type==="dir",f=s===t.path,m=u.has(t.path),p=n*16+8;return c.jsxs("button",{onClick:()=>O?i(t.path):r(t.path),className:ne("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",f&&"bg-accent/10 text-text-0",!f&&"text-text-1"),style:{paddingLeft:p},children:[O?c.jsxs(c.Fragment,{children:[m?c.jsx(Ln,{size:12,className:"text-text-4 flex-shrink-0"}):c.jsx(ai,{size:12,className:"text-text-4 flex-shrink-0"}),m?c.jsx(Gr,{size:14,className:"text-accent flex-shrink-0"}):c.jsx(Ek,{size:14,className:"text-text-3 flex-shrink-0"})]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"w-3"}),c.jsx(Pk,{size:14,className:ne("flex-shrink-0",WP(t.name))})]}),c.jsx("span",{className:"truncate",children:t.name})]})}function Bb({dirPath:t,depth:n,activePath:s,onFileClick:r,expanded:i,onDirToggle:u,treeCache:O,fetchTreeDir:f}){const m=O[t]||[];return y.useEffect(()=>{i.has(t)&&!O[t]&&f(t)},[i,t,O,f]),i.has(t)?c.jsx(c.Fragment,{children:m.map(p=>c.jsxs("div",{children:[c.jsx(Wb,{entry:p,depth:n,activePath:s,onFileClick:r,onDirToggle:u,expanded:i}),p.type==="dir"&&c.jsx(Bb,{dirPath:p.path,depth:n+1,activePath:s,onFileClick:r,expanded:i,onDirToggle:u,treeCache:O,fetchTreeDir:f})]},p.path))}):null}function BP({rootDir:t}){const n=L(x=>x.editorTreeCache),s=L(x=>x.editorActiveFile),r=L(x=>x.openFile),i=L(x=>x.fetchTreeDir),[u,O]=y.useState(new Set([""])),[f,m]=y.useState("");y.useEffect(()=>{i("")},[i,t]);function p(x){O(b=>{const Q=new Set(b);return Q.has(x)?Q.delete(x):Q.add(x),Q})}const g=n[""]||[];return c.jsxs("div",{className:"flex flex-col h-full bg-surface-1",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(Xl,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),c.jsx("input",{value:f,onChange:x=>m(x.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"})]}),c.jsx("button",{onClick:()=>i(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",children:c.jsx(Nl,{size:12})})]}),c.jsx(ka,{className:"flex-1",children:c.jsx("div",{className:"py-1",children:g.filter(x=>!f||x.name.toLowerCase().includes(f.toLowerCase())).map(x=>c.jsxs("div",{children:[c.jsx(Wb,{entry:x,depth:0,activePath:s,onFileClick:r,onDirToggle:p,expanded:u}),x.type==="dir"&&c.jsx(Bb,{dirPath:x.path,depth:1,activePath:s,onFileClick:r,expanded:u,onDirToggle:p,treeCache:n,fetchTreeDir:i})]},x.path))})})]})}function HP(){const t=L(u=>u.editorOpenTabs),n=L(u=>u.editorActiveFile),s=L(u=>u.editorFiles),r=L(u=>u.setActiveFile),i=L(u=>u.closeFile);return t.length===0?null:c.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 O=u===n,f=s[u],m=f&&f.content!==f.originalContent,p=u.split("/").pop();return c.jsxs("div",{className:ne("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",O?"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:()=>r(u),children:[c.jsx("span",{className:"truncate max-w-[120px]",children:p}),m&&c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),c.jsx("button",{onClick:g=>{g.stopPropagation(),i(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:c.jsx(Lt,{size:12})})]},u)})})}var Yg={};class lc{constructor(n,s,r,i,u,O,f,m,p,g=0,x){this.p=n,this.stack=s,this.state=r,this.reducePos=i,this.pos=u,this.score=O,this.buffer=f,this.bufferBase=m,this.curContext=p,this.lookAhead=g,this.parent=x}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,r=0){let i=n.parser.context;return new lc(n,[],s,r,r,0,[],0,i?new Vg(i,i.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 r=n>>19,i=n&65535,{parser:u}=this.p,O=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),f=u.dynamicPrecedence(i);if(f&&(this.score+=f),r==0){this.pushState(u.getGoto(this.state,i,!0),this.reducePos),i<u.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,O?8:4,!0),this.reduceContext(i,this.reducePos);return}let m=this.stack.length-(r-1)*3-(n&262144?6:0),p=m?this.stack[m-2]:this.p.ranges[0].from,g=this.reducePos-p;g>=2e3&&!(!((s=this.p.parser.nodeSet.types[i])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=g):this.p.lastBigReductionSize<g&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=g));let x=m?this.stack[m-1]:0,b=this.bufferBase+this.buffer.length-x;if(i<u.minRepeatTerm||n&131072){let Q=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,p,Q,b+4,!0)}if(n&262144)this.state=this.stack[m];else{let Q=this.stack[m-3];this.state=u.getGoto(Q,i,!0)}for(;this.stack.length>m;)this.stack.pop();this.reduceContext(i,p)}storeNode(n,s,r,i=4,u=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let O=this,f=this.buffer.length;if(f==0&&O.parent&&(f=O.bufferBase-O.parent.bufferBase,O=O.parent),f>0&&O.buffer[f-4]==0&&O.buffer[f-1]>-1){if(s==r)return;if(O.buffer[f-2]>=s){O.buffer[f-2]=r;return}}}if(!u||this.pos==r)this.buffer.push(n,s,r,i);else{let O=this.buffer.length;if(O>0&&(this.buffer[O-4]!=0||this.buffer[O-1]<0)){let f=!1;for(let m=O;m>0&&this.buffer[m-2]>r;m-=4)if(this.buffer[m-1]>=0){f=!0;break}if(f)for(;O>0&&this.buffer[O-2]>r;)this.buffer[O]=this.buffer[O-4],this.buffer[O+1]=this.buffer[O-3],this.buffer[O+2]=this.buffer[O-2],this.buffer[O+3]=this.buffer[O-1],O-=4,i>4&&(i-=4)}this.buffer[O]=n,this.buffer[O+1]=s,this.buffer[O+2]=r,this.buffer[O+3]=i}}shift(n,s,r,i){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let u=n,{parser:O}=this.p;this.pos=i;let f=O.stateFlag(u,1);!f&&(i>r||s<=O.maxNode)&&(this.reducePos=i),this.pushState(u,f?r:Math.min(r,this.reducePos)),this.shiftContext(s,r),s<=O.maxNode&&this.buffer.push(s,r,i,4)}else this.pos=i,this.shiftContext(s,r),s<=this.p.parser.maxNode&&this.buffer.push(s,r,i,4)}apply(n,s,r,i){n&65536?this.reduce(n):this.shift(n,s,r,i)}useNode(n,s){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=n)&&(this.p.reused.push(n),r++);let i=this.pos;this.reducePos=this.pos=i+n.length,this.pushState(s,i),this.buffer.push(r,i,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 r=n.buffer.slice(s),i=n.bufferBase+s;for(;n&&i==n.bufferBase;)n=n.parent;return new lc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let r=n<=this.p.parser.maxNode;r&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,r?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new IP(this);;){let r=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(r==0)return!1;if((r&65536)==0)return!0;s.reduce(r)}}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 i=[];for(let u=0,O;u<s.length;u+=2)(O=s[u+1])!=this.state&&this.p.parser.hasAction(O,n)&&i.push(s[u],O);if(this.stack.length<120)for(let u=0;i.length<8&&u<s.length;u+=2){let O=s[u+1];i.some((f,m)=>m&1&&f==O)||i.push(s[u],O)}s=i}let r=[];for(let i=0;i<s.length&&r.length<4;i+=2){let u=s[i+1];if(u==this.state)continue;let O=this.split();O.pushState(u,this.pos),O.storeNode(0,O.pos,O.pos,4,!0),O.shiftContext(s[i],this.pos),O.reducePos=this.pos,O.score-=200,r.push(O)}return r}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 r=s>>19,i=s&65535,u=this.stack.length-r*3;if(u<0||n.getGoto(this.stack[u],i,!1)<0){let O=this.findForcedReduction();if(O==null)return!1;s=O}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=[],r=(i,u)=>{if(!s.includes(i))return s.push(i),n.allActions(i,O=>{if(!(O&393216))if(O&65536){let f=(O>>19)-u;if(f>1){let m=O&65535,p=this.stack.length-f*3;if(p>=0&&n.getGoto(this.stack[p],m,!1)>=0)return f<<19|65536|m}}else{let f=r(O,u+1);if(f!=null)return f}})};return r(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 Vg(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 Vg{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class IP{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,r=n>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=i}}class rc{constructor(n,s,r){this.stack=n,this.pos=s,this.index=r,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new rc(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 rc(this.stack,this.pos,this.index)}}function Cr(t,n=Uint16Array){if(typeof t!="string")return t;let s=null;for(let r=0,i=0;r<t.length;){let u=0;for(;;){let O=t.charCodeAt(r++),f=!1;if(O==126){u=65535;break}O>=92&&O--,O>=34&&O--;let m=O-32;if(m>=46&&(m-=46,f=!0),u+=m,f)break;u*=46}s?s[i++]=u:s=new n(u)}return s}class Vo{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ug=new Vo;class FP{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ug,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 r=this.range,i=this.rangeIndex,u=this.pos+n;for(;u<r.from;){if(!i)return null;let O=this.ranges[--i];u-=r.from-O.to,r=O}for(;s<0?u>r.to:u>=r.to;){if(i==this.ranges.length-1)return null;let O=this.ranges[++i];u+=O.from-r.to,r=O}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,r,i;if(s>=0&&s<this.chunk.length)r=this.pos+n,i=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(n,1);if(u==null)return-1;if(r=u,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let O=this.rangeIndex,f=this.range;for(;f.to<=r;)f=this.ranges[++O];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>f.to&&(this.chunk2=this.chunk2.slice(0,f.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(n,s=0){let r=s?this.resolveOffset(s,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=r}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=Ug,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 r="";for(let i of this.ranges){if(i.from>=s)break;i.to>n&&(r+=this.input.read(Math.max(i.from,n),Math.min(i.to,s)))}return r}}class gl{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:r}=s.p;Hb(this.data,n,s,this.id,r.data,r.tokenPrecTable)}}gl.prototype.contextual=gl.prototype.fallback=gl.prototype.extend=!1;class ic{constructor(n,s,r){this.precTable=s,this.elseToken=r,this.data=typeof n=="string"?Cr(n):n}token(n,s){let r=n.pos,i=0;for(;;){let u=n.next<0,O=n.resolveOffset(1,1);if(Hb(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(u||i++,O==null)break;n.reset(O,n.token)}i&&(n.reset(r,n.token),n.acceptToken(this.elseToken,i))}}ic.prototype.contextual=gl.prototype.fallback=gl.prototype.extend=!1;class xt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function Hb(t,n,s,r,i,u){let O=0,f=1<<r,{dialect:m}=s.p.parser;e:for(;(f&t[O])!=0;){let p=t[O+1];for(let Q=O+3;Q<p;Q+=2)if((t[Q+1]&f)>0){let j=t[Q];if(m.allows(j)&&(n.token.value==-1||n.token.value==j||KP(j,n.token.value,i,u))){n.acceptToken(j);break}}let g=n.next,x=0,b=t[O+2];if(n.next<0&&b>x&&t[p+b*3-3]==65535){O=t[p+b*3-1];continue e}for(;x<b;){let Q=x+b>>1,j=p+Q+(Q<<1),$=t[j],w=t[j+1]||65536;if(g<$)b=Q;else if(g>=w)x=Q+1;else{O=t[j+2],n.advance();continue e}}break}}function Gg(t,n,s){for(let r=n,i;(i=t[r])!=65535;r++)if(i==s)return r-n;return-1}function KP(t,n,s,r){let i=Gg(s,r,n);return i<0||Gg(s,r,t)<i}const Mt=typeof process<"u"&&Yg&&/\bparse\b/.test(Yg.LOG);let rd=null;function Lg(t,n,s){let r=t.cursor(hc.IncludeAnonymous);for(r.moveTo(n);;)if(!(s<0?r.childBefore(n):r.childAfter(n)))for(;;){if((s<0?r.to<n:r.from>n)&&!r.type.isError)return s<0?Math.max(0,Math.min(r.to-1,n-25)):Math.min(t.length,Math.max(r.from+1,n+25));if(s<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return s<0?0:t.length}}let JP=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?Lg(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?Lg(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 r=this.trees[s],i=this.index[s];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=r.children[i],O=this.start[s]+r.positions[i];if(O>n)return this.nextStart=O,null;if(u instanceof da){if(O==n){if(O<this.safeFrom)return null;let f=O+u.length;if(f<=this.safeTo){let m=u.prop(tn.lookAhead);if(!m||f+m<this.fragment.to)return u}}this.index[s]++,O+u.length>=Math.max(this.safeFrom,n)&&(this.trees.push(u),this.start.push(O),this.index.push(0))}else this.index[s]++,this.nextStart=O+u.length}}};class e3{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(r=>new Vo)}getActions(n){let s=0,r=null,{parser:i}=n.p,{tokenizers:u}=i,O=i.stateSlot(n.state,3),f=n.curContext?n.curContext.hash:0,m=0;for(let p=0;p<u.length;p++){if((1<<p&O)==0)continue;let g=u[p],x=this.tokens[p];if(!(r&&!g.fallback)&&((g.contextual||x.start!=n.pos||x.mask!=O||x.context!=f)&&(this.updateCachedToken(x,g,n),x.mask=O,x.context=f),x.lookAhead>x.end+25&&(m=Math.max(x.lookAhead,m)),x.value!=0)){let b=s;if(x.extended>-1&&(s=this.addActions(n,x.extended,x.end,s)),s=this.addActions(n,x.value,x.end,s),!g.extend&&(r=x,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return m&&n.setLookAhead(m),!r&&n.pos==this.stream.end&&(r=new Vo,r.value=n.p.parser.eofTerm,r.start=r.end=n.pos,s=this.addActions(n,r.value,r.end,s)),this.mainToken=r,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new Vo,{pos:r,p:i}=n;return s.start=r,s.end=Math.min(r+1,i.stream.end),s.value=r==i.stream.end?i.parser.eofTerm:0,s}updateCachedToken(n,s,r){let i=this.stream.clipPos(r.pos);if(s.token(this.stream.reset(i,n),r),n.value>-1){let{parser:u}=r.p;for(let O=0;O<u.specialized.length;O++)if(u.specialized[O]==n.value){let f=u.specializers[O](this.stream.read(n.start,n.end),r);if(f>=0&&r.p.parser.dialect.allows(f>>1)){(f&1)==0?n.value=f>>1:n.extended=f>>1;break}}}else n.value=0,n.end=this.stream.clipPos(i+1)}putAction(n,s,r,i){for(let u=0;u<i;u+=3)if(this.actions[u]==n)return i;return this.actions[i++]=n,this.actions[i++]=s,this.actions[i++]=r,i}addActions(n,s,r,i){let{state:u}=n,{parser:O}=n.p,{data:f}=O;for(let m=0;m<2;m++)for(let p=O.stateSlot(u,m?2:1);;p+=3){if(f[p]==65535)if(f[p+1]==1)p=en(f,p+2);else{i==0&&f[p+1]==2&&(i=this.putAction(en(f,p+2),s,r,i));break}f[p]==s&&(i=this.putAction(en(f,p+1),s,r,i))}return i}}class t3{constructor(n,s,r,i){this.parser=n,this.input=s,this.ranges=i,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 FP(s,i),this.tokens=new e3(n,this.stream),this.topTerm=n.top[1];let{from:u}=i[0];this.stacks=[lc.start(this,n.top[0],u)],this.fragments=r.length&&this.stream.end-u>n.bufferLength*4?new JP(r,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,r=this.stacks=[],i,u;if(this.bigReductionCount>300&&n.length==1){let[O]=n;for(;O.forceReduce()&&O.stack.length&&O.stack[O.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let O=0;O<n.length;O++){let f=n[O];for(;;){if(this.tokens.mainToken=null,f.pos>s)r.push(f);else{if(this.advanceStack(f,r,n))continue;{i||(i=[],u=[]),i.push(f);let m=this.tokens.getMainToken(f);u.push(m.value,m.end)}}break}}if(!r.length){let O=i&&n3(i);if(O)return Mt&&console.log("Finish with "+this.stackID(O)),this.stackToTree(O);if(this.parser.strict)throw Mt&&i&&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&&i){let O=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,u,r);if(O)return Mt&&console.log("Force-finish "+this.stackID(O)),this.stackToTree(O.forceAll())}if(this.recovering){let O=this.recovering==1?1:this.recovering*3;if(r.length>O)for(r.sort((f,m)=>m.score-f.score);r.length>O;)r.pop();r.some(f=>f.reducePos>s)&&this.recovering--}else if(r.length>1){e:for(let O=0;O<r.length-1;O++){let f=r[O];for(let m=O+1;m<r.length;m++){let p=r[m];if(f.sameState(p)||f.buffer.length>500&&p.buffer.length>500)if((f.score-p.score||f.buffer.length-p.buffer.length)>0)r.splice(m--,1);else{r.splice(O--,1);continue e}}}r.length>12&&(r.sort((O,f)=>f.score-O.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let O=1;O<r.length;O++)r[O].pos<this.minStackPos&&(this.minStackPos=r[O].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,r){let i=n.pos,{parser:u}=this,O=Mt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,g=p?n.curContext.hash:0;for(let x=this.fragments.nodeAt(i);x;){let b=this.parser.nodeSet.types[x.type.id]==x.type?u.getGoto(n.state,x.type.id):-1;if(b>-1&&x.length&&(!p||(x.prop(tn.contextHash)||0)==g))return n.useNode(x,b),Mt&&console.log(O+this.stackID(n)+` (via reuse of ${u.getName(x.type.id)})`),!0;if(!(x instanceof da)||x.children.length==0||x.positions[0]>0)break;let Q=x.children[0];if(Q instanceof da&&x.positions[0]==0)x=Q;else break}}let f=u.stateSlot(n.state,4);if(f>0)return n.reduce(f),Mt&&console.log(O+this.stackID(n)+` (via always-reduce ${u.getName(f&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 g=m[p++],x=m[p++],b=m[p++],Q=p==m.length||!r,j=Q?n:n.split(),$=this.tokens.mainToken;if(j.apply(g,x,$?$.start:j.pos,b),Mt&&console.log(O+this.stackID(j)+` (via ${(g&65536)==0?"shift":`reduce of ${u.getName(g&65535)}`} for ${u.getName(x)} @ ${i}${j==n?"":", split"})`),Q)return!0;j.pos>i?s.push(j):r.push(j)}return!1}advanceFully(n,s){let r=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>r)return Dg(n,s),!0}}runRecovery(n,s,r){let i=null,u=!1;for(let O=0;O<n.length;O++){let f=n[O],m=s[O<<1],p=s[(O<<1)+1],g=Mt?this.stackID(f)+" -> ":"";if(f.deadEnd&&(u||(u=!0,f.restart(),Mt&&console.log(g+this.stackID(f)+" (restarted)"),this.advanceFully(f,r))))continue;let x=f.split(),b=g;for(let Q=0;Q<10&&x.forceReduce()&&(Mt&&console.log(b+this.stackID(x)+" (via force-reduce)"),!this.advanceFully(x,r));Q++)Mt&&(b=this.stackID(x)+" -> ");for(let Q of f.recoverByInsert(m))Mt&&console.log(g+this.stackID(Q)+" (via recover-insert)"),this.advanceFully(Q,r);this.stream.end>f.pos?(p==f.pos&&(p++,m=0),f.recoverByDelete(m,p),Mt&&console.log(g+this.stackID(f)+` (via recover-delete ${this.parser.getName(m)})`),Dg(f,r)):(!i||i.score<x.score)&&(i=x)}return i}stackToTree(n){return n.close(),da.build({buffer:rc.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=(rd||(rd=new WeakMap)).get(n);return s||rd.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function Dg(t,n){for(let s=0;s<n.length;s++){let r=n[s];if(r.pos==t.pos&&r.sameState(t)){n[s].score<t.score&&(n[s]=t);return}}n.push(t)}class a3{constructor(n,s,r){this.source=n,this.flags=s,this.disabled=r}allows(n){return!this.disabled||this.disabled[n]==0}}const id=t=>t;class Yf{constructor(n){this.start=n.start,this.shift=n.shift||id,this.reduce=n.reduce||id,this.reuse=n.reuse||id,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class Dn extends r0{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 f=0;f<n.repeatNodeCount;f++)s.push("");let r=Object.keys(n.topRules).map(f=>n.topRules[f][1]),i=[];for(let f=0;f<s.length;f++)i.push([]);function u(f,m,p){i[f].push([m,m.deserialize(String(p))])}if(n.nodeProps)for(let f of n.nodeProps){let m=f[0];typeof m=="string"&&(m=tn[m]);for(let p=1;p<f.length;){let g=f[p++];if(g>=0)u(g,m,f[p++]);else{let x=f[p+-g];for(let b=-g;b>0;b--)u(f[p++],m,x);p++}}}this.nodeSet=new df(s.map((f,m)=>Kr.define({name:m>=this.minRepeatTerm?void 0:f,id:m,props:i[m],top:r.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=a$;let O=Cr(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let f=0;f<this.specializerSpecs.length;f++)this.specialized[f]=this.specializerSpecs[f].term;this.specializers=this.specializerSpecs.map(Wg),this.states=Cr(n.states,Uint32Array),this.data=Cr(n.stateData),this.goto=Cr(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(f=>typeof f=="number"?new gl(O,f):f),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,r){let i=new t3(this,n,s,r);for(let u of this.wrappers)i=u(i,n,s,r);return i}getGoto(n,s,r=!1){let i=this.goto;if(s>=i[0])return-1;for(let u=i[s+1];;){let O=i[u++],f=O&1,m=i[u++];if(f&&r)return m;for(let p=u+(O>>1);u<p;u++)if(i[u]==n)return m;if(f)return-1}}hasAction(n,s){let r=this.data;for(let i=0;i<2;i++)for(let u=this.stateSlot(n,i?2:1),O;;u+=3){if((O=r[u])==65535)if(r[u+1]==1)O=r[u=en(r,u+2)];else{if(r[u+1]==2)return en(r,u+2);break}if(O==s||O==0)return en(r,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,r=>r==s?!0:null)}allActions(n,s){let r=this.stateSlot(n,4),i=r?s(r):void 0;for(let u=this.stateSlot(n,1);i==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=en(this.data,u+2);else break;i=s(en(this.data,u+1))}return i}nextStates(n){let s=[];for(let r=this.stateSlot(n,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=en(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];s.some((u,O)=>O&1&&u==i)||s.push(this.data[r],i)}}return s}configure(n){let s=Object.assign(Object.create(Dn.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let r=this.topRules[n.top];if(!r)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=r}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(r=>{let i=n.tokenizers.find(u=>u.from==r);return i?i.to:r})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((r,i)=>{let u=n.specializers.find(f=>f.from==r.external);if(!u)return r;let O=Object.assign(Object.assign({},r),{external:u.to});return s.specializers[i]=Wg(O),O})),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),r=s.map(()=>!1);if(n)for(let u of n.split(" ")){let O=s.indexOf(u);O>=0&&(r[O]=!0)}let i=null;for(let u=0;u<s.length;u++)if(!r[u])for(let O=this.dialects[s[u]],f;(f=this.data[O++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[f]=1;return new a3(n,r,i)}static deserialize(n){return new Dn(n)}}function en(t,n){return t[n]|t[n+1]<<16}function n3(t){let n=null;for(let s of t){let r=s.p.stoppedAt;(s.pos==s.p.stream.end||r!=null&&s.pos>r)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function Wg(t){if(t.external){let n=t.extend?1:0;return(s,r)=>t.external(s,r)<<1|n}return t.get}const s3=316,l3=317,Bg=1,r3=2,i3=3,o3=4,c3=318,u3=320,O3=321,d3=5,f3=6,h3=0,Id=[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],Ib=125,m3=59,Fd=47,p3=42,x3=43,g3=45,b3=60,v3=44,y3=63,Q3=46,S3=91,$3=new Yf({start:!1,shift(t,n){return n==d3||n==f3||n==u3?t:n==O3},strict:!1}),w3=new xt((t,n)=>{let{next:s}=t;(s==Ib||s==-1||n.context)&&t.acceptToken(c3)},{contextual:!0,fallback:!0}),j3=new xt((t,n)=>{let{next:s}=t,r;Id.indexOf(s)>-1||s==Fd&&((r=t.peek(1))==Fd||r==p3)||s!=Ib&&s!=m3&&s!=-1&&!n.context&&t.acceptToken(s3)},{contextual:!0}),T3=new xt((t,n)=>{t.next==S3&&!n.context&&t.acceptToken(l3)},{contextual:!0}),k3=new xt((t,n)=>{let{next:s}=t;if(s==x3||s==g3){if(t.advance(),s==t.next){t.advance();let r=!n.context&&n.canShift(Bg);t.acceptToken(r?Bg:r3)}}else s==y3&&t.peek(1)==Q3&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(i3))},{contextual:!0});function od(t,n){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!n&&t>=48&&t<=57}const P3=new xt((t,n)=>{if(t.next!=b3||!n.dialectEnabled(h3)||(t.advance(),t.next==Fd))return;let s=0;for(;Id.indexOf(t.next)>-1;)t.advance(),s++;if(od(t.next,!0)){for(t.advance(),s++;od(t.next,!1);)t.advance(),s++;for(;Id.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==v3)return;for(let r=0;;r++){if(r==7){if(!od(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),s++}}t.acceptToken(o3,-s)}),z3=$s({"get set async static":z.modifier,"for while do if else switch try catch finally return throw break continue default case defer":z.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":z.operatorKeyword,"let var const using function class extends":z.definitionKeyword,"import export from":z.moduleKeyword,"with debugger new":z.keyword,TemplateString:z.special(z.string),super:z.atom,BooleanLiteral:z.bool,this:z.self,null:z.null,Star:z.modifier,VariableName:z.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":z.function(z.variableName),VariableDefinition:z.definition(z.variableName),Label:z.labelName,PropertyName:z.propertyName,PrivatePropertyName:z.special(z.propertyName),"CallExpression/MemberExpression/PropertyName":z.function(z.propertyName),"FunctionDeclaration/VariableDefinition":z.function(z.definition(z.variableName)),"ClassDeclaration/VariableDefinition":z.definition(z.className),"NewExpression/VariableName":z.className,PropertyDefinition:z.definition(z.propertyName),PrivatePropertyDefinition:z.definition(z.special(z.propertyName)),UpdateOp:z.updateOperator,"LineComment Hashbang":z.lineComment,BlockComment:z.blockComment,Number:z.number,String:z.string,Escape:z.escape,ArithOp:z.arithmeticOperator,LogicOp:z.logicOperator,BitOp:z.bitwiseOperator,CompareOp:z.compareOperator,RegExp:z.regexp,Equals:z.definitionOperator,Arrow:z.function(z.punctuation),": Spread":z.punctuation,"( )":z.paren,"[ ]":z.squareBracket,"{ }":z.brace,"InterpolationStart InterpolationEnd":z.special(z.brace),".":z.derefOperator,", ;":z.separator,"@":z.meta,TypeName:z.typeName,TypeDefinition:z.definition(z.typeName),"type enum interface implements namespace module declare":z.definitionKeyword,"abstract global Privacy readonly override":z.modifier,"is keyof unique infer asserts":z.operatorKeyword,JSXAttributeValue:z.attributeValue,JSXText:z.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":z.angleBracket,"JSXIdentifier JSXNameSpacedName":z.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":z.attributeName,"JSXBuiltin/JSXIdentifier":z.standard(z.tagName)}),N3={__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},R3={__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},X3={__proto__:null,"<":193},_3=Dn.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'#JrO9e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{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'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:$3,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:[z3],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]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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 ic("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=>N3[t]||-1},{term:343,get:t=>R3[t]||-1},{term:95,get:t=>X3[t]||-1}],tokenPrec:15201}),Fb=[Be("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Be("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Be("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Be("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Be("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Be(`try {
|
|
472
|
+
\${}
|
|
473
|
+
} catch (\${error}) {
|
|
474
|
+
\${}
|
|
475
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Be("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Be(`if (\${}) {
|
|
476
|
+
\${}
|
|
477
|
+
} else {
|
|
478
|
+
\${}
|
|
479
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),Be(`class \${name} {
|
|
480
|
+
constructor(\${params}) {
|
|
481
|
+
\${}
|
|
482
|
+
}
|
|
483
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),Be('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Be('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Z3=Fb.concat([Be("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Be("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Be("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Hg=new ff,Kb=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Rr(t){return(n,s)=>{let r=n.node.getChild("VariableDefinition");return r&&s(r,t),!0}}const C3=["FunctionDeclaration"],A3={FunctionDeclaration:Rr("function"),ClassDeclaration:Rr("class"),ClassExpression:()=>!0,EnumDeclaration:Rr("constant"),TypeAliasDeclaration:Rr("type"),NamespaceDeclaration:Rr("namespace"),VariableDefinition(t,n){t.matchContext(C3)||n(t,"variable")},TypeDefinition(t,n){n(t,"type")},__proto__:null};function Jb(t,n){let s=Hg.get(n);if(s)return s;let r=[],i=!0;function u(O,f){let m=t.sliceString(O.from,O.to);r.push({label:m,type:f})}return n.cursor(hc.IncludeAnonymous).iterate(O=>{if(i)i=!1;else if(O.name){let f=A3[O.name];if(f&&f(O,u)||Kb.has(O.name))return!1}else if(O.to-O.from>8192){for(let f of Jb(t,O.node))r.push(f);return!1}}),Hg.set(n,r),r}const Ig=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,ev=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function E3(t){let n=ma(t.state).resolveInner(t.pos,-1);if(ev.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&Ig.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let r=[];for(let i=n;i;i=i.parent)Kb.has(i.name)&&(r=r.concat(Jb(t.state.doc,i)));return{options:r,from:s?n.from:t.pos,validFor:Ig}}const wa=Jr.define({name:"javascript",parser:_3.configure({props:[kl.add({IfStatement:ml({except:/^\s*({|else\b)/}),TryStatement:ml({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:n$,SwitchBody:t=>{let n=t.textAfter,s=/^\s*\}/.test(n),r=/^\s*(case|default)\b/.test(n);return t.baseIndent+(s?0:r?1:2)*t.unit},Block:qo({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":ml({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}}),ws.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":mc,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,r=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:r.type.isError?t.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),tv={test:t=>/^JSX/.test(t.name),facet:u0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},av=wa.configure({dialect:"ts"},"typescript"),nv=wa.configure({dialect:"jsx",props:[c0.add(t=>t.isTop?[tv]:void 0)]}),sv=wa.configure({dialect:"jsx ts",props:[c0.add(t=>t.isTop?[tv]:void 0)]},"typescript");let lv=t=>({label:t,type:"keyword"});const rv="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(lv),q3=rv.concat(["declare","implements","private","protected","public"].map(lv));function Kd(t={}){let n=t.jsx?t.typescript?sv:nv:t.typescript?av:wa,s=t.typescript?Z3.concat(q3):Fb.concat(rv);return new bs(n,[wa.data.of({autocomplete:i0(ev,o0(s))}),wa.data.of({autocomplete:E3}),t.jsx?V3:[]])}function M3(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 Fg(t,n,s=t.length){for(let r=n==null?void 0:n.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,s));return""}const Y3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),V3=vl.inputHandler.of((t,n,s,r,i)=>{if((Y3?t.composing:t.compositionStarted)||t.state.readOnly||n!=s||r!=">"&&r!="/"||!wa.isActiveAt(t.state,n,-1))return!1;let u=i(),{state:O}=u,f=O.changeByRange(m=>{var p;let{head:g}=m,x=ma(O).resolveInner(g-1,-1),b;if(x.name=="JSXStartTag"&&(x=x.parent),!(O.doc.sliceString(g-1,g)!=r||x.name=="JSXAttributeValue"&&x.to>g)){if(r==">"&&x.name=="JSXFragmentTag")return{range:m,changes:{from:g,insert:"</>"}};if(r=="/"&&x.name=="JSXStartCloseTag"){let Q=x.parent,j=Q.parent;if(j&&Q.from==g-2&&((b=Fg(O.doc,j.firstChild,g))||((p=j.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let $=`${b}>`;return{range:Yn.cursor(g+$.length,-1),changes:{from:g,insert:$}}}}else if(r==">"){let Q=M3(x);if(Q&&Q.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(O.doc.sliceString(g,g+2))&&(b=Fg(O.doc,Q,g)))return{range:m,changes:{from:g,insert:`</${b}>`}}}}return{range:m}});return f.changes.empty?!1:(t.dispatch([u,O.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),U3=135,Kg=1,G3=136,L3=137,iv=2,D3=138,W3=3,B3=4,ov=[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],H3=58,I3=40,cv=95,F3=91,Uo=45,K3=46,J3=35,ez=37,tz=38,az=92,nz=10,sz=42;function Wr(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Vf(t){return t>=48&&t<=57}function Jg(t){return Vf(t)||t>=97&&t<=102||t>=65&&t<=70}const uv=(t,n,s)=>(r,i)=>{for(let u=!1,O=0,f=0;;f++){let{next:m}=r;if(Wr(m)||m==Uo||m==cv||u&&Vf(m))!u&&(m!=Uo||f>0)&&(u=!0),O===f&&m==Uo&&O++,r.advance();else if(m==az&&r.peek(1)!=nz){if(r.advance(),Jg(r.next)){do r.advance();while(Jg(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();u=!0}else{u&&r.acceptToken(O==2&&i.canShift(iv)?n:m==I3?s:t);break}}},lz=new xt(uv(G3,iv,L3),{contextual:!0}),rz=new xt(uv(D3,W3,B3),{contextual:!0}),iz=new xt(t=>{if(ov.includes(t.peek(-1))){let{next:n}=t;(Wr(n)||n==cv||n==J3||n==K3||n==sz||n==F3||n==H3&&Wr(t.peek(1))||n==Uo||n==tz)&&t.acceptToken(U3)}}),oz=new xt(t=>{if(!ov.includes(t.peek(-1))){let{next:n}=t;if(n==ez&&(t.advance(),t.acceptToken(Kg)),Wr(n)){do t.advance();while(Wr(t.next)||Vf(t.next));t.acceptToken(Kg)}}}),cz=$s({"AtKeyword import charset namespace keyframes media supports font-feature-values":z.definitionKeyword,"from to selector scope MatchFlag":z.keyword,NamespaceName:z.namespace,KeyframeName:z.labelName,KeyframeRangeName:z.operatorKeyword,TagName:z.tagName,ClassName:z.className,PseudoClassName:z.constant(z.className),IdName:z.labelName,"FeatureName PropertyName":z.propertyName,AttributeName:z.attributeName,NumberLiteral:z.number,KeywordQuery:z.keyword,UnaryQueryOp:z.operatorKeyword,"CallTag ValueName FontName":z.atom,VariableName:z.variableName,Callee:z.operatorKeyword,Unit:z.unit,"UniversalSelector NestingSelector":z.definitionOperator,"MatchOp CompareOp":z.compareOperator,"ChildOp SiblingOp, LogicOp":z.logicOperator,BinOp:z.arithmeticOperator,Important:z.modifier,Comment:z.blockComment,ColorLiteral:z.color,"ParenthesizedContent StringLiteral":z.string,":":z.punctuation,"PseudoOp #":z.derefOperator,"; , |":z.separator,"( )":z.paren,"[ ]":z.squareBracket,"{ }":z.brace}),uz={__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},Oz={__proto__:null,or:104,and:104,not:112,only:112,layer:186},dz={__proto__:null,selector:118,layer:182},fz={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},hz={__proto__:null,to:223},mz=Dn.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'_Qd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Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%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,"}"]],propSources:[cz],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#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j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]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>uz[t]||-1},{term:138,get:t=>Oz[t]||-1},{term:4,get:t=>dz[t]||-1},{term:28,get:t=>fz[t]||-1},{term:136,get:t=>hz[t]||-1}],tokenPrec:2256});let cd=null;function ud(){if(!cd&&typeof document=="object"&&document.body){let{style:t}=document.body,n=[],s=new Set;for(let r in t)r!="cssText"&&r!="cssFloat"&&typeof t[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),s.has(r)||(n.push(r),s.add(r)));cd=n.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return cd||[]}const e1=["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})),t1=["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}))),pz=["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})),xz=["@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})),Ha=/^(\w[\w-]*|-\w[\w-]*|)$/,gz=/^-(-[\w-]*)?$/;function bz(t,n){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let r=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:n.sliceString(r.from,r.to)=="var"}const a1=new ff,vz=["Declaration"];function yz(t){for(let n=t;;){if(n.type.isTop)return n;if(!(n=n.parent))return t}}function Ov(t,n,s){if(n.to-n.from>4096){let r=a1.get(n);if(r)return r;let i=[],u=new Set,O=n.cursor(hc.IncludeAnonymous);if(O.firstChild())do for(let f of Ov(t,O.node,s))u.has(f.label)||(u.add(f.label),i.push(f));while(O.nextSibling());return a1.set(n,i),i}else{let r=[],i=new Set;return n.cursor().iterate(u=>{var O;if(s(u)&&u.matchContext(vz)&&((O=u.node.nextSibling)===null||O===void 0?void 0:O.name)==":"){let f=t.sliceString(u.from,u.to);i.has(f)||(i.add(f),r.push({label:f,type:"variable"}))}}),r}}const Qz=t=>n=>{let{state:s,pos:r}=n,i=ma(s).resolveInner(r,-1),u=i.type.isError&&i.from==i.to-1&&s.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(u||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:ud(),validFor:Ha};if(i.name=="ValueName")return{from:i.from,options:t1,validFor:Ha};if(i.name=="PseudoClassName")return{from:i.from,options:e1,validFor:Ha};if(t(i)||(n.explicit||u)&&bz(i,s.doc))return{from:t(i)||u?i.from:r,options:Ov(s.doc,yz(i),t),validFor:gz};if(i.name=="TagName"){for(let{parent:m}=i;m;m=m.parent)if(m.name=="Block")return{from:i.from,options:ud(),validFor:Ha};return{from:i.from,options:pz,validFor:Ha}}if(i.name=="AtKeyword")return{from:i.from,options:xz,validFor:Ha};if(!n.explicit)return null;let O=i.resolve(r),f=O.childBefore(r);return f&&f.name==":"&&O.name=="PseudoClassSelector"?{from:r,options:e1,validFor:Ha}:f&&f.name==":"&&O.name=="Declaration"||O.name=="ArgList"?{from:r,options:t1,validFor:Ha}:O.name=="Block"||O.name=="Styles"?{from:r,options:ud(),validFor:Ha}:null},Sz=Qz(t=>t.name=="VariableName"),oc=Jr.define({name:"css",parser:mz.configure({props:[kl.add({Declaration:ml()}),ws.add({"Block KeyframeList":mc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function dv(){return new bs(oc,oc.data.of({autocomplete:Sz}))}const $z=55,wz=1,jz=56,Tz=2,kz=57,Pz=3,n1=4,zz=5,Uf=6,fv=7,hv=8,mv=9,pv=10,Nz=11,Rz=12,Xz=13,Od=58,_z=14,Zz=15,s1=59,xv=21,Cz=23,gv=24,Az=25,Jd=27,bv=28,Ez=29,qz=32,Mz=35,Yz=37,Vz=38,Uz=0,Gz=1,Lz={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},Dz={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l1={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 Wz(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let r1=null,i1=null,o1=0;function ef(t,n){let s=t.pos+n;if(o1==s&&i1==t)return r1;let r=t.peek(n),i="";for(;Wz(r);)i+=String.fromCharCode(r),r=t.peek(++n);return i1=t,o1=s,r1=i?i.toLowerCase():r==Bz||r==Hz?void 0:null}const vv=60,cc=62,Gf=47,Bz=63,Hz=33,Iz=45;function c1(t,n){this.name=t,this.parent=n}const Fz=[Uf,pv,fv,hv,mv],Kz=new Yf({start:null,shift(t,n,s,r){return Fz.indexOf(n)>-1?new c1(ef(r,1)||"",t):t},reduce(t,n){return n==xv&&t?t.parent:t},reuse(t,n,s,r){let i=n.type.id;return i==Uf||i==Yz?new c1(ef(r,1)||"",t):t},strict:!1}),Jz=new xt((t,n)=>{if(t.next!=vv){t.next<0&&n.context&&t.acceptToken(Od);return}t.advance();let s=t.next==Gf;s&&t.advance();let r=ef(t,0);if(r===void 0)return;if(!r)return t.acceptToken(s?Zz:_z);let i=n.context?n.context.name:null;if(s){if(r==i)return t.acceptToken(Nz);if(i&&Dz[i])return t.acceptToken(Od,-2);if(n.dialectEnabled(Uz))return t.acceptToken(Rz);for(let u=n.context;u;u=u.parent)if(u.name==r)return;t.acceptToken(Xz)}else{if(r=="script")return t.acceptToken(fv);if(r=="style")return t.acceptToken(hv);if(r=="textarea")return t.acceptToken(mv);if(Lz.hasOwnProperty(r))return t.acceptToken(pv);i&&l1[i]&&l1[i][r]?t.acceptToken(Od,-1):t.acceptToken(Uf)}},{contextual:!0}),eN=new xt(t=>{for(let n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(s1);break}if(t.next==Iz)n++;else if(t.next==cc&&n>=2){s>=3&&t.acceptToken(s1,-2);break}else n=0;t.advance()}});function tN(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const aN=new xt((t,n)=>{if(t.next==Gf&&t.peek(1)==cc){let s=n.dialectEnabled(Gz)||tN(n.context);t.acceptToken(s?zz:n1,2)}else t.next==cc&&t.acceptToken(n1,1)});function Lf(t,n,s){let r=2+t.length;return new xt(i=>{for(let u=0,O=0,f=0;;f++){if(i.next<0){f&&i.acceptToken(n);break}if(u==0&&i.next==vv||u==1&&i.next==Gf||u>=2&&u<r&&i.next==t.charCodeAt(u-2))u++,O++;else if(u==r&&i.next==cc){f>O?i.acceptToken(n,-O):i.acceptToken(s,-(O-2));break}else if((i.next==10||i.next==13)&&f){i.acceptToken(n,1);break}else u=O=0;i.advance()}})}const nN=Lf("script",$z,wz),sN=Lf("style",jz,Tz),lN=Lf("textarea",kz,Pz),rN=$s({"Text RawText IncompleteTag IncompleteCloseTag":z.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":z.angleBracket,TagName:z.tagName,"MismatchedCloseTag/TagName":[z.tagName,z.invalid],AttributeName:z.attributeName,"AttributeValue UnquotedAttributeValue":z.attributeValue,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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:Kz,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:[rN],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`!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)||r.getChild(bv);i&&(s[n.read(i.from,i.to)]=u?u.type.id==Jd?n.read(u.from+1,u.to-1):n.read(u.from,u.to):"")}return s}function u1(t,n){let s=t.getChild(Cz);return s?n.read(s.from,s.to):" "}function dd(t,n,s){let r;for(let i of s)if(!i.attrs||i.attrs(r||(r=yv(t.node.parent.firstChild,n))))return{parser:i.parser,bracketed:!0};return null}function Qv(t=[],n=[]){let s=[],r=[],i=[],u=[];for(let f of t)(f.tag=="script"?s:f.tag=="style"?r:f.tag=="textarea"?i:u).push(f);let O=n.length?Object.create(null):null;for(let f of n)(O[f.name]||(O[f.name]=[])).push(f);return O0((f,m)=>{let p=f.type.id;if(p==Ez)return dd(f,m,s);if(p==qz)return dd(f,m,r);if(p==Mz)return dd(f,m,i);if(p==xv&&u.length){let g=f.node,x=g.firstChild,b=x&&u1(x,m),Q;if(b){for(let j of u)if(j.tag==b&&(!j.attrs||j.attrs(Q||(Q=yv(x,m))))){let $=g.lastChild,w=$.type.id==Vz?$.from:g.to;if(w>x.to)return{parser:j.parser,overlay:[{from:x.to,to:w}]}}}}if(O&&p==gv){let g=f.node,x;if(x=g.firstChild){let b=O[m.read(x.from,x.to)];if(b)for(let Q of b){if(Q.tagName&&Q.tagName!=u1(g.parent,m))continue;let j=g.lastChild;if(j.type.id==Jd){let $=j.from+1,w=j.lastChild,k=j.to-(w&&w.isError?0:1);if(k>$)return{parser:Q.parser,overlay:[{from:$,to:k}],bracketed:!0}}else if(j.type.id==bv)return{parser:Q.parser,overlay:[{from:j.from,to:j.to}]}}}}return null})}const Xr=["_blank","_self","_top","_parent"],fd=["ascii","utf-8","utf-16","latin1","latin1"],hd=["get","post","put","delete"],md=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Yt=["true","false"],ce={},oN={a:{attrs:{href:null,ping:null,type:null,media:null,target:Xr,hreflang:null}},abbr:ce,address:ce,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ce,aside:ce,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ce,base:{attrs:{href:null,target:Xr}},bdi:ce,bdo:ce,blockquote:{attrs:{cite:null}},body:ce,br:ce,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:md,formmethod:hd,formnovalidate:["novalidate"],formtarget:Xr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ce,center:ce,cite:ce,code:ce,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:ce,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ce,div:ce,dl:ce,dt:ce,em:ce,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ce,figure:ce,footer:ce,form:{attrs:{action:null,name:null,"accept-charset":fd,autocomplete:["on","off"],enctype:md,method:hd,novalidate:["novalidate"],target:Xr}},h1:ce,h2:ce,h3:ce,h4:ce,h5:ce,h6:ce,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ce,hgroup:ce,hr:ce,html:{attrs:{manifest:null}},i:ce,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:md,formmethod:hd,formnovalidate:["novalidate"],formtarget:Xr,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:ce,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ce,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:ce,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:fd,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:ce,noscript:ce,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:ce,param:{attrs:{name:null,value:null}},pre:ce,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ce,rt:ce,ruby:ce,samp:ce,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:fd}},section:ce,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ce,source:{attrs:{src:null,type:null,media:null}},span:ce,strong:ce,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ce,summary:ce,sup:ce,table:ce,tbody:ce,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ce,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:ce,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ce,time:{attrs:{datetime:null}},title:ce,tr:ce,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ce,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:ce},Sv={accesskey:null,class:null,contenteditable:Yt,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:Yt,autocorrect:Yt,autocapitalize:Yt,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":Yt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Yt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Yt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Yt,"aria-hidden":Yt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Yt,"aria-multiselectable":Yt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Yt,"aria-relevant":null,"aria-required":Yt,"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},$v="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 $v)Sv[t]=null;class Br{constructor(n,s){this.tags={...oN,...n},this.globalAttrs={...Sv,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Br.default=new Br;function wl(t,n,s=t.length){if(!n)return"";let r=n.firstChild,i=r&&r.getChild("TagName");return i?t.sliceString(i.from,Math.min(i.to,s)):""}function jl(t,n=!1){for(;t;t=t.parent)if(t.name=="Element")if(n)n=!1;else return t;return null}function wv(t,n,s){let r=s.tags[wl(t,jl(n))];return(r==null?void 0:r.children)||s.allTags}function Df(t,n){let s=[];for(let r=jl(n);r&&!r.type.isTop;r=jl(r.parent)){let i=wl(t,r);if(i&&r.lastChild.name=="CloseTag")break;i&&s.indexOf(i)<0&&(n.name=="EndTag"||n.from>=r.firstChild.to)&&s.push(i)}return s}const jv=/^[:\-\.\w\u00b7-\uffff]*$/;function O1(t,n,s,r,i){let u=/\s*>/.test(t.sliceDoc(i,i+5))?"":">",O=jl(s,s.name=="StartTag"||s.name=="TagName");return{from:r,to:i,options:wv(t.doc,O,n).map(f=>({label:f,type:"type"})).concat(Df(t.doc,s).map((f,m)=>({label:"/"+f,apply:"/"+f+u,type:"type",boost:99-m}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function d1(t,n,s,r){let i=/\s*>/.test(t.sliceDoc(r,r+5))?"":">";return{from:s,to:r,options:Df(t.doc,n).map((u,O)=>({label:u,apply:u+i,type:"type",boost:99-O})),validFor:jv}}function cN(t,n,s,r){let i=[],u=0;for(let O of wv(t.doc,s,n))i.push({label:"<"+O,type:"type"});for(let O of Df(t.doc,s))i.push({label:"</"+O+">",type:"type",boost:99-u++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function uN(t,n,s,r,i){let u=jl(s),O=u?n.tags[wl(t.doc,u)]:null,f=O&&O.attrs?Object.keys(O.attrs):[],m=O&&O.globalAttrs===!1?f:f.length?f.concat(n.globalAttrNames):n.globalAttrNames;return{from:r,to:i,options:m.map(p=>({label:p,type:"property"})),validFor:jv}}function ON(t,n,s,r,i){var u;let O=(u=s.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),f=[],m;if(O){let p=t.sliceDoc(O.from,O.to),g=n.globalAttrs[p];if(!g){let x=jl(s),b=x?n.tags[wl(t.doc,x)]:null;g=(b==null?void 0:b.attrs)&&b.attrs[p]}if(g){let x=t.sliceDoc(r,i).toLowerCase(),b='"',Q='"';/^['"]/.test(x)?(m=x[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",Q=t.sliceDoc(i,i+1)==x[0]?"":x[0],x=x.slice(1),r++):m=/^[^\s<>='"]*$/;for(let j of g)f.push({label:j,apply:b+j+Q,type:"constant"})}}return{from:r,to:i,options:f,validFor:m}}function Tv(t,n){let{state:s,pos:r}=n,i=ma(s).resolveInner(r,-1),u=i.resolve(r);for(let O=r,f;u==i&&(f=i.childBefore(O));){let m=f.lastChild;if(!m||!m.type.isError||m.from<m.to)break;u=i=f,O=m.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?d1(s,i,i.from,r):O1(s,t,i,i.from,r):i.name=="StartTag"||i.name=="IncompleteTag"?O1(s,t,i,r,r):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?d1(s,i,r,r):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?uN(s,t,i,i.name=="AttributeName"?i.from:r,r):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?ON(s,t,i,i.name=="Is"?r:i.from,r):n.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?cN(s,t,i,r):null}function dN(t){return Tv(Br.default,t)}function fN(t){let{extraTags:n,extraGlobalAttributes:s}=t,r=s||n?new Br(n,s):Br.default;return i=>Tv(r,i)}const hN=wa.parser.configure({top:"SingleExpression"}),kv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:av.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:nv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:sv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:hN},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:wa.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:oc.parser}],Pv=[{name:"style",parser:oc.parser.configure({top:"Styles"})}].concat($v.map(t=>({name:t,parser:wa.parser}))),zv=Jr.define({name:"html",parser:iN.configure({props:[kl.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 r=t.node;;){let i=r.lastChild;if(!i||i.name!="Element"||i.to!=r.to)break;n=r=i}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(n.from)+t.unit:null}}),ws.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}}}),s$.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Go=zv.configure({wrap:Qv(kv,Pv)});function Nv(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=Qv((t.nestedLanguages||[]).concat(kv),(t.nestedAttributes||[]).concat(Pv)));let r=s?zv.configure({wrap:s,dialect:n}):n?Go.configure({dialect:n}):Go;return new bs(r,[Go.data.of({autocomplete:fN(t)}),t.autoCloseTags!==!1?mN:[],Kd().support,dv().support])}const f1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),mN=vl.inputHandler.of((t,n,s,r,i)=>{if(t.composing||t.state.readOnly||n!=s||r!=">"&&r!="/"||!Go.isActiveAt(t.state,n,-1))return!1;let u=i(),{state:O}=u,f=O.changeByRange(m=>{var p,g,x;let b=O.doc.sliceString(m.from-1,m.to)==r,{head:Q}=m,j=ma(O).resolveInner(Q,-1),$;if(b&&r==">"&&j.name=="EndTag"){let w=j.parent;if(((g=(p=w.parent)===null||p===void 0?void 0:p.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&($=wl(O.doc,w.parent,Q))&&!f1.has($)){let k=Q+(O.doc.sliceString(Q,Q+1)===">"?1:0),N=`</${$}>`;return{range:m,changes:{from:Q,to:k,insert:N}}}}else if(b&&r=="/"&&j.name=="IncompleteCloseTag"){let w=j.parent;if(j.from==Q-2&&((x=w.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&($=wl(O.doc,w,Q))&&!f1.has($)){let k=Q+(O.doc.sliceString(Q,Q+1)===">"?1:0),N=`${$}>`;return{range:Yn.cursor(Q+N.length,-1),changes:{from:Q,to:k,insert:N}}}}return{range:m}});return f.changes.empty?!1:(t.dispatch([u,O.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),pN=$s({String:z.string,Number:z.number,"True False":z.bool,PropertyName:z.propertyName,Null:z.null,", :":z.separator,"[ ]":z.squareBracket,"{ }":z.brace}),xN=Dn.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:[pN],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}),gN=Jr.define({name:"json",parser:xN.configure({props:[kl.add({Object:ml({except:/^\s*\}/}),Array:ml({except:/^\s*\]/})}),ws.add({"Object Array":mc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function bN(){return new bs(gN)}class uc{static create(n,s,r,i,u){let O=i+(i<<8)+n+(s<<4)|0;return new uc(n,s,r,O,u,[],[])}constructor(n,s,r,i,u,O,f){this.type=n,this.value=s,this.from=r,this.hash=i,this.end=u,this.children=O,this.positions=f,this.hashProp=[[tn.contextHash,i]]}addChild(n,s){n.prop(tn.contextHash)!=this.hash&&(n=new da(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let r=this.children.length-1;return r>=0&&(s=Math.max(s,this.positions[r]+this.children[r].length+this.from)),new da(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(i,u,O)=>new da(Kr.none,i,u,O,this.hashProp)})}}var J;(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"})(J||(J={}));class vN{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class yN{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 Er(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,r=0){for(let i=s;i<n;i++)r+=this.text.charCodeAt(i)==9?4-r%4:1;return r}findColumn(n){let s=0;for(let r=0;s<this.text.length&&r<n;s++)r+=this.text.charCodeAt(s)==9?4-r%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 h1(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 r=(t.type==J.OrderedList?Hf:Bf)(s,n,!1);return r>0&&(t.type!=J.BulletList||Wf(s,n,!1)<0)&&s.text.charCodeAt(s.pos+r-1)==t.value}const Rv={[J.Blockquote](t,n,s){return s.next!=62?!1:(s.markers.push(Te(J.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(ia(s.text.charCodeAt(s.pos+1))?2:1)),t.end=n.lineStart+s.text.length,!0)},[J.ListItem](t,n,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[J.OrderedList]:h1,[J.BulletList]:h1,[J.Document](){return!0}};function ia(t){return t==32||t==9||t==10||t==13}function Er(t,n=0){for(;n<t.length&&ia(t.charCodeAt(n));)n++;return n}function m1(t,n,s){for(;n>s&&ia(t.charCodeAt(n-1));)n--;return n}function Xv(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 _v(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function Wf(t,n,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let r=1;for(let i=t.pos+1;i<t.text.length;i++){let u=t.text.charCodeAt(i);if(u==t.next)r++;else if(!ia(u))return-1}return s&&t.next==45&&Av(t)>-1&&t.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(Yv.SetextHeading)>-1||r<3?-1:1}function Zv(t,n){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==n)return!0;return!1}function Bf(t,n,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||ia(t.text.charCodeAt(t.pos+1)))&&(!s||Zv(n,J.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Hf(t,n,s){let r=t.pos,i=t.next;for(;i>=48&&i<=57;){r++;if(r==t.text.length)return-1;i=t.text.charCodeAt(r)}return r==t.pos||r>t.pos+9||i!=46&&i!=41||r<t.text.length-1&&!ia(t.text.charCodeAt(r+1))||s&&!Zv(n,J.OrderedList)&&(t.skipSpace(r+1)==t.text.length||r>t.pos+1||t.next!=49)?-1:r+1-t.pos}function Cv(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 Av(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&&ia(t.text.charCodeAt(n));)n++;return n==t.text.length?s:-1}const tf=/^[ \t]*$/,Ev=/-->/,qv=/\?>/,af=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Ev],[/^\s*<\?/,qv],[/^\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,tf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,tf]];function Mv(t,n,s){if(t.next!=60)return-1;let r=t.text.slice(t.pos);for(let i=0,u=af.length-(s?1:0);i<u;i++)if(af[i][0].test(r))return i;return-1}function p1(t,n){let s=t.countIndent(n,t.pos,t.indent),r=t.countIndent(t.skipSpace(n),n,s);return r>=s+5?s+1:r}function Cn(t,n,s){let r=t.length-1;r>=0&&t[r].to==n&&t[r].type==J.CodeText?t[r].to=s:t.push(Te(J.CodeText,n,s))}const Po={LinkReference:void 0,IndentedCode(t,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let r=n.findColumn(s),i=t.lineStart+r,u=t.lineStart+n.text.length,O=[],f=[];for(Cn(O,i,u);t.nextLine()&&n.depth>=t.stack.length;)if(n.pos==n.text.length){Cn(f,t.lineStart-1,t.lineStart);for(let m of n.markers)f.push(m)}else{if(n.indent<s)break;{if(f.length){for(let p of f)p.type==J.CodeText?Cn(O,p.from,p.to):O.push(p);f=[]}Cn(O,t.lineStart-1,t.lineStart);for(let p of n.markers)O.push(p);u=t.lineStart+n.text.length;let m=t.lineStart+n.findColumn(n.baseIndent+4);m<u&&Cn(O,m,u)}}return f.length&&(f=f.filter(m=>m.type!=J.CodeText),f.length&&(n.markers=f.concat(n.markers))),t.addNode(t.buffer.writeElements(O,-i).finish(J.CodeBlock,u-i),i),!0},FencedCode(t,n){let s=Xv(n);if(s<0)return!1;let r=t.lineStart+n.pos,i=n.next,u=s-n.pos,O=n.skipSpace(s),f=m1(n.text,n.text.length,O),m=[Te(J.CodeMark,r,r+u)];O<f&&m.push(Te(J.CodeInfo,t.lineStart+O,t.lineStart+f));for(let p=!0,g=!0,x=!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)==i;)b++;if(b-n.pos>=u&&n.skipSpace(b)==n.text.length){for(let Q of n.markers)m.push(Q);g&&x&&Cn(m,t.lineStart-1,t.lineStart),m.push(Te(J.CodeMark,t.lineStart+n.pos,t.lineStart+b)),t.nextLine();break}else{x=!0,p||(Cn(m,t.lineStart-1,t.lineStart),g=!1);for(let $ of n.markers)m.push($);let Q=t.lineStart+n.basePos,j=t.lineStart+n.text.length;Q<j&&(Cn(m,Q,j),g=!1)}}return t.addNode(t.buffer.writeElements(m,-r).finish(J.FencedCode,t.prevLineEnd()-r),r),!0},Blockquote(t,n){let s=_v(n);return s<0?!1:(t.startContext(J.Blockquote,n.pos),t.addNode(J.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(t,n){if(Wf(n,t,!1)<0)return!1;let s=t.lineStart+n.pos;return t.nextLine(),t.addNode(J.HorizontalRule,s),!0},BulletList(t,n){let s=Bf(n,t,!1);if(s<0)return!1;t.block.type!=J.BulletList&&t.startContext(J.BulletList,n.basePos,n.next);let r=p1(n,n.pos+1);return t.startContext(J.ListItem,n.basePos,r-n.baseIndent),t.addNode(J.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(r),null},OrderedList(t,n){let s=Hf(n,t,!1);if(s<0)return!1;t.block.type!=J.OrderedList&&t.startContext(J.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let r=p1(n,n.pos+s);return t.startContext(J.ListItem,n.basePos,r-n.baseIndent),t.addNode(J.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(r),null},ATXHeading(t,n){let s=Cv(n);if(s<0)return!1;let r=n.pos,i=t.lineStart+r,u=m1(n.text,n.text.length,r),O=u;for(;O>r&&n.text.charCodeAt(O-1)==n.next;)O--;(O==u||O==r||!ia(n.text.charCodeAt(O-1)))&&(O=n.text.length);let f=t.buffer.write(J.HeaderMark,0,s).writeElements(t.parser.parseInline(n.text.slice(r+s+1,O),i+s+1),-i);O<n.text.length&&f.write(J.HeaderMark,O-r,u-r);let m=f.finish(J.ATXHeading1-1+s,n.text.length-r);return t.nextLine(),t.addNode(m,i),!0},HTMLBlock(t,n){let s=Mv(n,t,!1);if(s<0)return!1;let r=t.lineStart+n.pos,i=af[s][1],u=[],O=i!=tf;for(;!i.test(n.text)&&t.nextLine();){if(n.depth<t.stack.length){O=!1;break}for(let p of n.markers)u.push(p)}O&&t.nextLine();let f=i==Ev?J.CommentBlock:i==qv?J.ProcessingInstructionBlock:J.HTMLBlock,m=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-r).finish(f,m-r),r),!0},SetextHeading:void 0};class QN{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,r){if(this.stage==-1)return!1;let i=r.content+`
|
|
484
|
+
`+s.scrub(),u=this.advance(i);return u>-1&&u<i.length?this.complete(n,r,u):!1}finish(n,s){return(this.stage==2||this.stage==3)&&Er(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,r){return n.addLeafElement(s,Te(J.LinkReference,this.start,this.start+r,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(Iv(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Te(J.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Bv(n,Er(n,this.pos),this.start)))return-1}else if(this.stage==2){let s=Er(n,this.pos),r=0;if(s>this.pos){let i=Hv(n,s,this.start);if(i){let u=pd(n,i.to-this.start);u>0&&(this.nextStage(i),r=u)}}return r||(r=pd(n,this.pos)),r>0&&r<n.length?r:-1}else return pd(n,this.pos)}}}function pd(t,n){for(;n<t.length;n++){let s=t.charCodeAt(n);if(s==10)break;if(!ia(s))return-1}return n}class SN{nextLine(n,s,r){let i=s.depth<n.stack.length?-1:Av(s),u=s.next;if(i<0)return!1;let O=Te(J.HeaderMark,n.lineStart+s.pos,n.lineStart+i);return n.nextLine(),n.addLeafElement(r,Te(u==61?J.SetextHeading1:J.SetextHeading2,r.start,n.prevLineEnd(),[...n.parser.parseInline(r.content,r.start),O])),!0}finish(){return!1}}const Yv={LinkReference(t,n){return n.content.charCodeAt(0)==91?new QN(n):null},SetextHeading(){return new SN}},$N=[(t,n)=>Cv(n)>=0,(t,n)=>Xv(n)>=0,(t,n)=>_v(n)>=0,(t,n)=>Bf(n,t,!0)>=0,(t,n)=>Hf(n,t,!0)>=0,(t,n)=>Wf(n,t,!0)>=0,(t,n)=>Mv(n,t,!0)>=0],wN={text:"",end:0};class jN{constructor(n,s,r,i){this.parser=n,this.input=s,this.ranges=i,this.line=new yN,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=uc.create(J.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new PN(r,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 r=0;;){let i=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<n.markers.length&&(!i||n.markers[r].from<i.end);){let u=n.markers[r++];this.addNode(u.type,u.from,u.to)}if(!i)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 r of this.parser.blockParsers)if(r){let i=r(this,n);if(i!=!1){if(i==!0)return null;n.forward();continue e}}break}let s=new vN(this.lineStart+n.pos,n.text.slice(n.pos));for(let r of this.parser.leafBlockParsers)if(r){let i=r(this,s);i&&s.parsers.push(i)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,n,s))break e}for(let r of s.parsers)if(r.nextLine(this,n,s))return null;s.content+=`
|
|
485
|
+
`+n.scrub();for(let r of n.markers)s.marks.push(r)}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=Fv(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=wN;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 r=this.absoluteLineStart,i=this.rangeI;for(;this.ranges[i].to<s.end;){i++;let u=this.ranges[i].from,O=this.lineChunkAt(u);s.end=u+O.length,s.text=s.text.slice(0,this.ranges[i-1].to-r)+O,r=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,n.reset(s);n.depth<this.stack.length;n.depth++){let i=this.stack[n.depth],u=this.parser.skipContextMarkup[i.type];if(!u)throw new Error("Unhandled block context "+J[i.type]);let O=this.line.markers.length;if(!u(i,this,n)){this.line.markers.length>O&&(i.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let s=this.input.chunk(n),r;if(this.input.lineChunks)r=s==`
|
|
486
|
+
`?"":s;else{let i=s.indexOf(`
|
|
487
|
+
`);r=i<0?s:s.slice(0,i)}return n+r.length>this.to?r.slice(0,this.to-n):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,r=0){this.block=uc.create(n,r,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,r=0){this.startContext(this.parser.getNodeType(n),s,r)}addNode(n,s,r){typeof n=="number"&&(n=new da(this.parser.nodeSet.types[n],Tl,Tl,(r??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(sf(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?Vv(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let r of n.parsers)if(r.finish(this,n))return;let s=sf(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(J.Paragraph,n.content.length),n.start)}elt(n,s,r,i){return typeof n=="string"?Te(this.parser.getNodeType(n),s,r,i):new Lv(n,s)}get buffer(){return new Gv(this.parser.nodeSet)}}function Vv(t,n,s,r,i){let u=t[n].to,O=[],f=[],m=s.from+r;function p(g,x){for(;x?g>=u:g>u;){let b=t[n+1].from-u;r+=b,g+=b,n++,u=t[n].to}}for(let g=s.firstChild;g;g=g.nextSibling){p(g.from+r,!0);let x=g.from+r,b,Q=i.get(g.tree);Q?b=Q:g.to+r>u?(b=Vv(t,n,g,r,i),p(g.to+r,!1)):b=g.toTree(),O.push(b),f.push(x-m)}return p(s.to+r,!1),new da(s.type,O,f,s.to+r-m,s.tree?s.tree.propValues:void 0)}class Pc extends r0{constructor(n,s,r,i,u,O,f,m,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=u,this.skipContextMarkup=O,this.inlineParsers=f,this.inlineNames=m,this.wrappers=p,this.nodeTypes=Object.create(null);for(let g of n.types)this.nodeTypes[g.name]=g.id}createParse(n,s,r){let i=new jN(this,n,s,r);for(let u of this.wrappers)i=u(i,n,s,r);return i}configure(n){let s=nf(n);if(!s)return this;let{nodeSet:r,skipContextMarkup:i}=this,u=this.blockParsers.slice(),O=this.leafBlockParsers.slice(),f=this.blockNames.slice(),m=this.inlineParsers.slice(),p=this.inlineNames.slice(),g=this.endLeafBlock.slice(),x=this.wrappers;if(_r(s.defineNodes)){i=Object.assign({},i);let b=r.types.slice(),Q;for(let j of s.defineNodes){let{name:$,block:w,composite:k,style:N}=typeof j=="string"?{name:j}:j;if(b.some(q=>q.name==$))continue;k&&(i[b.length]=(q,X,G)=>k(X,G,q.value));let Z=b.length,C=k?["Block","BlockContext"]:w?Z>=J.ATXHeading1&&Z<=J.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(Kr.define({id:Z,name:$,props:C&&[[tn.group,C]]})),N&&(Q||(Q={}),Array.isArray(N)||N instanceof l$?Q[$]=N:Object.assign(Q,N))}r=new df(b),Q&&(r=r.extend($s(Q)))}if(_r(s.props)&&(r=r.extend(...s.props)),_r(s.remove))for(let b of s.remove){let Q=this.blockNames.indexOf(b),j=this.inlineNames.indexOf(b);Q>-1&&(u[Q]=O[Q]=void 0),j>-1&&(m[j]=void 0)}if(_r(s.parseBlock))for(let b of s.parseBlock){let Q=f.indexOf(b.name);if(Q>-1)u[Q]=b.parse,O[Q]=b.leaf;else{let j=b.before?zo(f,b.before):b.after?zo(f,b.after)+1:f.length-1;u.splice(j,0,b.parse),O.splice(j,0,b.leaf),f.splice(j,0,b.name)}b.endLeaf&&g.push(b.endLeaf)}if(_r(s.parseInline))for(let b of s.parseInline){let Q=p.indexOf(b.name);if(Q>-1)m[Q]=b.parse;else{let j=b.before?zo(p,b.before):b.after?zo(p,b.after)+1:p.length-1;m.splice(j,0,b.parse),p.splice(j,0,b.name)}}return s.wrap&&(x=x.concat(s.wrap)),new Pc(r,u,O,f,g,i,m,p,x)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let r=new If(this,n,s);e:for(let i=s;i<r.end;){let u=r.char(i);for(let O of this.inlineParsers)if(O){let f=O(r,u,i);if(f>=0){i=f;continue e}}i++}return r.resolveMarkers(0)}}function _r(t){return t!=null&&t.length>0}function nf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let n=nf(t[0]);if(t.length==1)return n;let s=nf(t.slice(1));if(!s||!n)return n||s;let r=(O,f)=>(O||Tl).concat(f||Tl),i=n.wrap,u=s.wrap;return{props:r(n.props,s.props),defineNodes:r(n.defineNodes,s.defineNodes),parseBlock:r(n.parseBlock,s.parseBlock),parseInline:r(n.parseInline,s.parseInline),remove:r(n.remove,s.remove),wrap:i?u?(O,f,m,p)=>i(u(O,f,m,p),f,m,p):i:u}}function zo(t,n){let s=t.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let Uv=[Kr.none];for(let t=1,n;n=J[t];t++)Uv[t]=Kr.define({id:t,name:n,props:t>=J.Escape?[]:[[tn.group,t in Rv?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Tl=[];class Gv{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,r,i=0){return this.content.push(n,s,r,4+i*4),this}writeElements(n,s=0){for(let r of n)r.writeTo(this,s);return this}finish(n,s){return da.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let Hr=class{constructor(n,s,r,i=Tl){this.type=n,this.from=s,this.to=r,this.children=i}writeTo(n,s){let r=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-r)}toTree(n){return new Gv(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Lv{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 Tl}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 Te(t,n,s,r){return new Hr(t,n,s,r)}const Dv={resolve:"Emphasis",mark:"EmphasisMark"},Wv={resolve:"Emphasis",mark:"EmphasisMark"},gs={},Oc={};class Vt{constructor(n,s,r,i){this.type=n,this.from=s,this.to=r,this.side=i}}const x1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Ir=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ir=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const xd={Escape(t,n,s){if(n!=92||s==t.end-1)return-1;let r=t.char(s+1);for(let i=0;i<x1.length;i++)if(x1.charCodeAt(i)==r)return t.append(Te(J.Escape,s,s+2));return-1},Entity(t,n,s){if(n!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return r?t.append(Te(J.Entity,s,s+1+r[0].length)):-1},InlineCode(t,n,s){if(n!=96||s&&t.char(s-1)==96)return-1;let r=s+1;for(;r<t.end&&t.char(r)==96;)r++;let i=r-s,u=0;for(;r<t.end;r++)if(t.char(r)==96){if(u++,u==i&&t.char(r+1)!=96)return t.append(Te(J.InlineCode,s,r+1,[Te(J.CodeMark,s,s+i),Te(J.CodeMark,r+1-i,r+1)]))}else u=0;return-1},HTMLTag(t,n,s){if(n!=60||s==t.end-1)return-1;let r=t.slice(s+1,t.end),i=/^(?:[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(r);if(i)return t.append(Te(J.Autolink,s,s+1+i[0].length,[Te(J.LinkMark,s,s+1),Te(J.URL,s+1,s+i[0].length),Te(J.LinkMark,s+i[0].length,s+1+i[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(u)return t.append(Te(J.Comment,s,s+1+u[0].length));let O=/^\?[^]*?\?>/.exec(r);if(O)return t.append(Te(J.ProcessingInstruction,s,s+1+O[0].length));let f=/^(?:![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(r);return f?t.append(Te(J.HTMLTag,s,s+1+f[0].length)):-1},Emphasis(t,n,s){if(n!=95&&n!=42)return-1;let r=s+1;for(;t.char(r)==n;)r++;let i=t.slice(s-1,s),u=t.slice(r,r+1),O=Ir.test(i),f=Ir.test(u),m=/\s|^$/.test(i),p=/\s|^$/.test(u),g=!p&&(!f||m||O),x=!m&&(!O||p||f),b=g&&(n==42||!x||O),Q=x&&(n==42||!g||f);return t.append(new Vt(n==95?Dv:Wv,s,r,(b?1:0)|(Q?2:0)))},HardBreak(t,n,s){if(n==92&&t.char(s+1)==10)return t.append(Te(J.HardBreak,s,s+2));if(n==32){let r=s+1;for(;t.char(r)==32;)r++;if(t.char(r)==10&&r>=s+2)return t.append(Te(J.HardBreak,s,r+1))}return-1},Link(t,n,s){return n==91?t.append(new Vt(gs,s,s+1,1)):-1},Image(t,n,s){return n==33&&t.char(s+1)==91?t.append(new Vt(Oc,s,s+2,1)):-1},LinkEnd(t,n,s){if(n!=93)return-1;for(let r=t.parts.length-1;r>=0;r--){let i=t.parts[r];if(i instanceof Vt&&(i.type==gs||i.type==Oc)){if(!i.side||t.skipSpace(i.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[r]=null,-1;let u=t.takeContent(r),O=t.parts[r]=TN(t,u,i.type==gs?J.Link:J.Image,i.from,s+1);if(i.type==gs)for(let f=0;f<r;f++){let m=t.parts[f];m instanceof Vt&&m.type==gs&&(m.side=0)}return O.to}}return-1}};function TN(t,n,s,r,i){let{text:u}=t,O=t.char(i),f=i;if(n.unshift(Te(J.LinkMark,r,r+(s==J.Image?2:1))),n.push(Te(J.LinkMark,i-1,i)),O==40){let m=t.skipSpace(i+1),p=Bv(u,m-t.offset,t.offset),g;p&&(m=t.skipSpace(p.to),m!=p.to&&(g=Hv(u,m-t.offset,t.offset),g&&(m=t.skipSpace(g.to)))),t.char(m)==41&&(n.push(Te(J.LinkMark,i,i+1)),f=m+1,p&&n.push(p),g&&n.push(g),n.push(Te(J.LinkMark,m,f)))}else if(O==91){let m=Iv(u,i-t.offset,t.offset,!1);m&&(n.push(m),f=m.to)}return Te(s,r,f,n)}function Bv(t,n,s){if(t.charCodeAt(n)==60){for(let i=n+1;i<t.length;i++){let u=t.charCodeAt(i);if(u==62)return Te(J.URL,n+s,i+1+s);if(u==60||u==10)return!1}return null}else{let i=0,u=n;for(let O=!1;u<t.length;u++){let f=t.charCodeAt(u);if(ia(f))break;if(O)O=!1;else if(f==40)i++;else if(f==41){if(!i)break;i--}else f==92&&(O=!0)}return u>n?Te(J.URL,n+s,u+s):u==t.length?null:!1}}function Hv(t,n,s){let r=t.charCodeAt(n);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let u=n+1,O=!1;u<t.length;u++){let f=t.charCodeAt(u);if(O)O=!1;else{if(f==i)return Te(J.LinkTitle,n+s,u+1+s);f==92&&(O=!0)}}return null}function Iv(t,n,s,r){for(let i=!1,u=n+1,O=Math.min(t.length,u+999);u<O;u++){let f=t.charCodeAt(u);if(i)i=!1;else{if(f==93)return r?!1:Te(J.LinkLabel,n+s,u+1+s);if(r&&!ia(f)&&(r=!1),f==91)return!1;f==92&&(i=!0)}}return null}class If{constructor(n,s,r){this.parser=n,this.text=s,this.offset=r,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,r,i,u){return this.append(new Vt(n,s,r,(i?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 Vt&&(s.type==gs||s.type==Oc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let r=n;r<this.parts.length;r++){let i=this.parts[r];if(!(i instanceof Vt&&i.type.resolve&&i.side&2))continue;let u=i.type==Dv||i.type==Wv,O=i.to-i.from,f,m=r-1;for(;m>=n;m--){let $=this.parts[m];if($ instanceof Vt&&$.side&1&&$.type==i.type&&!(u&&(i.side&1||$.side&2)&&($.to-$.from+O)%3==0&&(($.to-$.from)%3||O%3))){f=$;break}}if(!f)continue;let p=i.type.resolve,g=[],x=f.from,b=i.to;if(u){let $=Math.min(2,f.to-f.from,O);x=f.to-$,b=i.from+$,p=$==1?"Emphasis":"StrongEmphasis"}f.type.mark&&g.push(this.elt(f.type.mark,x,f.to));for(let $=m+1;$<r;$++)this.parts[$]instanceof Hr&&g.push(this.parts[$]),this.parts[$]=null;i.type.mark&&g.push(this.elt(i.type.mark,i.from,b));let Q=this.elt(p,x,b,g);this.parts[m]=u&&f.from!=x?new Vt(f.type,f.from,x,f.side):null,(this.parts[r]=u&&i.to!=b?new Vt(i.type,b,i.to,i.side):null)?this.parts.splice(r,0,Q):this.parts[r]=Q}let s=[];for(let r=n;r<this.parts.length;r++){let i=this.parts[r];i instanceof Hr&&s.push(i)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let r=this.parts[s];if(r instanceof Vt&&r.type==n&&r.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 Vt?s:null}skipSpace(n){return Er(this.text,n-this.offset)+this.offset}elt(n,s,r,i){return typeof n=="string"?Te(this.parser.getNodeType(n),s,r,i):new Lv(n,s)}}If.linkStart=gs;If.imageStart=Oc;function sf(t,n){if(!n.length)return t;if(!t.length)return n;let s=t.slice(),r=0;for(let i of n){for(;r<s.length&&s[r].to<i.to;)r++;if(r<s.length&&s[r].from<i.from){let u=s[r];u instanceof Hr&&(s[r]=new Hr(u.type,u.from,u.to,sf(u.children,[i])))}else s.splice(r++,0,i)}return s}const kN=[J.CodeBlock,J.ListItem,J.OrderedList,J.BulletList];class PN{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)!=`
|
|
488
|
+
`;)u--;this.fragmentEnd=u?u-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=n+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=s;if(!r.childAfter(i))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(tn.contextHash)==n}takeNodes(n){let s=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),u=n.absoluteLineStart,O=u,f=n.block.children.length,m=O,p=f;for(;;){if(s.to-r>i){if(s.type.isAnonymous&&s.firstChild())continue;break}let g=Fv(s.from-r,n.ranges);if(s.to-r<=n.ranges[n.rangeI].to)n.addNode(s.tree,g);else{let x=new da(n.parser.nodeSet.types[J.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(x,s.tree),n.addNode(x,g)}if(s.type.is("Block")&&(kN.indexOf(s.type.id)<0?(O=s.to-r,f=n.block.children.length):(O=m,f=p),m=s.to-r,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>f;)n.block.children.pop(),n.block.positions.pop();return O-u}}function Fv(t,n){let s=t;for(let r=1;r<n.length;r++){let i=n[r-1].to,u=n[r].from;i<t&&(s-=u-i)}return s}const zN=$s({"Blockquote/...":z.quote,HorizontalRule:z.contentSeparator,"ATXHeading1/... SetextHeading1/...":z.heading1,"ATXHeading2/... SetextHeading2/...":z.heading2,"ATXHeading3/...":z.heading3,"ATXHeading4/...":z.heading4,"ATXHeading5/...":z.heading5,"ATXHeading6/...":z.heading6,"Comment CommentBlock":z.comment,Escape:z.escape,Entity:z.character,"Emphasis/...":z.emphasis,"StrongEmphasis/...":z.strong,"Link/... Image/...":z.link,"OrderedList/... BulletList/...":z.list,"BlockQuote/...":z.quote,"InlineCode CodeText":z.monospace,"URL Autolink":z.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":z.processingInstruction,"CodeInfo LinkLabel":z.labelName,LinkTitle:z.string,Paragraph:z.content}),NN=new Pc(new df(Uv).extend(zN),Object.keys(Po).map(t=>Po[t]),Object.keys(Po).map(t=>Yv[t]),Object.keys(Po),$N,Rv,Object.keys(xd).map(t=>xd[t]),Object.keys(xd),[]);function RN(t,n,s){let r=[];for(let i=t.firstChild,u=n;;i=i.nextSibling){let O=i?i.from:s;if(O>u&&r.push({from:u,to:O}),!i)break;u=i.to}return r}function XN(t){let{codeParser:n,htmlParser:s}=t;return{wrap:O0((i,u)=>{let O=i.type.id;if(n&&(O==J.CodeBlock||O==J.FencedCode)){let f="";if(O==J.FencedCode){let p=i.node.getChild(J.CodeInfo);p&&(f=u.read(p.from,p.to))}let m=n(f);if(m)return{parser:m,overlay:p=>p.type.id==J.CodeText,bracketed:O==J.FencedCode}}else if(s&&(O==J.HTMLBlock||O==J.HTMLTag||O==J.CommentBlock))return{parser:s,overlay:RN(i.node,i.from,i.to)};return null})}}const _N={resolve:"Strikethrough",mark:"StrikethroughMark"},ZN={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":z.strikethrough}},{name:"StrikethroughMark",style:z.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,n,s){if(n!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let r=t.slice(s-1,s),i=t.slice(s+2,s+3),u=/\s|^$/.test(r),O=/\s|^$/.test(i),f=Ir.test(r),m=Ir.test(i);return t.addDelimiter(_N,s,s+2,!O&&(!m||u||f),!u&&(!f||O||m))},after:"Emphasis"}]};function qr(t,n,s=0,r,i=0){let u=0,O=!0,f=-1,m=-1,p=!1,g=()=>{r.push(t.elt("TableCell",i+f,i+m,t.parser.parseInline(n.slice(f,m),i+f)))};for(let x=s;x<n.length;x++){let b=n.charCodeAt(x);b==124&&!p?((!O||f>-1)&&u++,O=!1,r&&(f>-1&&g(),r.push(t.elt("TableDelimiter",x+i,x+i+1))),f=m=-1):(p||b!=32&&b!=9)&&(f<0&&(f=x),m=x+1),p=!p&&b==92}return f>-1&&(u++,r&&g()),u}function g1(t,n){for(let s=n;s<t.length;s++){let r=t.charCodeAt(s);if(r==124)return!0;r==92&&s++}return!1}const Kv=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class b1{constructor(){this.rows=null}nextLine(n,s,r){if(this.rows==null){this.rows=!1;let i;if((s.next==45||s.next==58||s.next==124)&&Kv.test(i=s.text.slice(s.pos))){let u=[];qr(n,r.content,0,u,r.start)==qr(n,i,s.pos)&&(this.rows=[n.elt("TableHeader",r.start,r.start+r.content.length,u),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let i=[];qr(n,s.text,s.pos,i,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,i))}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 CN={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":z.heading}},"TableRow",{name:"TableCell",style:z.content},{name:"TableDelimiter",style:z.processingInstruction}],parseBlock:[{name:"Table",leaf(t,n){return g1(n.content,0)?new b1:null},endLeaf(t,n,s){if(s.parsers.some(i=>i instanceof b1)||!g1(n.text,n.basePos))return!1;let r=t.peekLine();return Kv.test(r)&&qr(t,n.text,n.basePos)==qr(t,r,n.basePos)},before:"SetextHeading"}]};class AN{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 EN={defineNodes:[{name:"Task",block:!0,style:z.list},{name:"TaskMarker",style:z.atom}],parseBlock:[{name:"TaskList",leaf(t,n){return/^\[[ xX]\][ \t]/.test(n.content)&&t.parentType().name=="ListItem"?new AN:null},after:"SetextHeading"}]},v1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,y1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,qN=/[\w-]+\.[\w-]+($|\/)/,Q1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,S1=/\/[a-zA-Z\d@.]+/gy;function $1(t,n,s,r){let i=0;for(let u=n;u<s;u++)t[u]==r&&i++;return i}function MN(t,n){y1.lastIndex=n;let s=y1.exec(t);if(!s||qN.exec(s[0])[0].indexOf("_")>-1)return-1;let r=n+s[0].length;for(;;){let i=t[r-1],u;if(/[?!.,:*_~]/.test(i)||i==")"&&$1(t,n,r,")")>$1(t,n,r,"("))r--;else if(i==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(n,r))))r=n+u.index;else break}return r}function w1(t,n){Q1.lastIndex=n;let s=Q1.exec(t);if(!s)return-1;let r=s[0][s[0].length-1];return r=="_"||r=="-"?-1:n+s[0].length-(r=="."?1:0)}const YN={parseInline:[{name:"Autolink",parse(t,n,s){let r=s-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;v1.lastIndex=r;let i=v1.exec(t.text),u=-1;if(!i)return-1;if(i[1]||i[2]){if(u=MN(t.text,r+i[0].length),u>-1&&t.hasOpenLink){let O=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,u));u=r+O[0].length}}else i[3]?u=w1(t.text,r):(u=w1(t.text,r+i[0].length),u>-1&&i[0]=="xmpp:"&&(S1.lastIndex=u,i=S1.exec(t.text),i&&(u=i.index+i[0].length)));return u<0?-1:(t.addElement(t.elt("URL",s,u+t.offset)),u+t.offset)}}]},VN=[CN,EN,ZN,YN];function Jv(t,n,s){return(r,i,u)=>{if(i!=t||r.char(u+1)==t)return-1;let O=[r.elt(s,u,u+1)];for(let f=u+1;f<r.end;f++){let m=r.char(f);if(m==t)return r.addElement(r.elt(n,u,f+1,O.concat(r.elt(s,f,f+1))));if(m==92&&O.push(r.elt("Escape",f,f+++2)),ia(m))break}return-1}}const UN={defineNodes:[{name:"Superscript",style:z.special(z.content)},{name:"SuperscriptMark",style:z.processingInstruction}],parseInline:[{name:"Superscript",parse:Jv(94,"Superscript","SuperscriptMark")}]},GN={defineNodes:[{name:"Subscript",style:z.special(z.content)},{name:"SubscriptMark",style:z.processingInstruction}],parseInline:[{name:"Subscript",parse:Jv(126,"Subscript","SubscriptMark")}]},LN={defineNodes:[{name:"Emoji",style:z.character}],parseInline:[{name:"Emoji",parse(t,n,s){let r;return n!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+r[0].length))}}]},ey=u0({commentTokens:{block:{open:"<!--",close:"-->"}}}),ty=new tn,ay=NN.configure({props:[ws.add(t=>!t.is("Block")||t.is("Document")||lf(t)!=null||DN(t)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),ty.add(lf),kl.add({Document:()=>null}),O$.add({Document:ey})]});function lf(t){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return n?+n[1]:void 0}function DN(t){return t.name=="OrderedList"||t.name=="BulletList"}function WN(t,n){let s=t;for(;;){let r=s.nextSibling,i;if(!r||(i=lf(r.type))!=null&&i<=n)break;s=r}return s.to}const BN=i$.of((t,n,s)=>{for(let r=ma(t).resolveInner(s,-1);r&&!(r.from<n);r=r.parent){let i=r.type.prop(ty);if(i==null)continue;let u=WN(r,i);if(u>s)return{from:s,to:u}}return null});function Ff(t){return new o$(ey,t,[],"markdown")}const HN=Ff(ay),IN=ay.configure([VN,GN,UN,LN,{props:[ws.add({Table:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}]),dc=Ff(IN);function FN(t,n){return s=>{if(s&&t){let r=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?r=t(s):r=lg.matchLanguageName(t,s,!0),r instanceof lg)return r.support?r.support.language.parser:d$.getSkippingParser(r.load());if(r)return r.parser}return n?n.parser:null}}let gd=class{constructor(n,s,r,i,u,O,f){this.node=n,this.from=s,this.to=r,this.spaceBefore=i,this.spaceAfter=u,this.type=O,this.item=f}blank(n,s=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;r.length<n;)r+=" ";return r}else{for(let i=this.to-this.from-r.length-this.spaceAfter.length;i>0;i--)r+=" ";return r+(s?this.spaceAfter:"")}}marker(n,s){let r=this.node.name=="OrderedList"?String(+sy(this.item,n)[2]+s):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function ny(t,n){let s=[],r=[];for(let i=t;i;i=i.parent){if(i.name=="FencedCode")return r;(i.name=="ListItem"||i.name=="Blockquote")&&s.push(i)}for(let i=s.length-1;i>=0;i--){let u=s[i],O,f=n.lineAt(u.from),m=u.from-f.from;if(u.name=="Blockquote"&&(O=/^ *>( ?)/.exec(f.text.slice(m))))r.push(new gd(u,m,m+O[0].length,"",O[1],">",null));else if(u.name=="ListItem"&&u.parent.name=="OrderedList"&&(O=/^( *)\d+([.)])( *)/.exec(f.text.slice(m)))){let p=O[3],g=O[0].length;p.length>=4&&(p=p.slice(0,p.length-4),g-=4),r.push(new gd(u.parent,m,m+g,O[1],p,O[2],u))}else if(u.name=="ListItem"&&u.parent.name=="BulletList"&&(O=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(f.text.slice(m)))){let p=O[4],g=O[0].length;p.length>4&&(p=p.slice(0,p.length-4),g-=4);let x=O[2];O[3]&&(x+=O[3].replace(/[xX]/," ")),r.push(new gd(u.parent,m,m+g,O[1],p,x,u))}}return r}function sy(t,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(t.from,t.from+10))}function bd(t,n,s,r=0){for(let i=-1,u=t;;){if(u.name=="ListItem"){let f=sy(u,n),m=+f[2];if(i>=0){if(m!=i+1)return;s.push({from:u.from+f[1].length,to:u.from+f[0].length,insert:String(i+2+r)})}i=m}let O=u.nextSibling;if(!O)break;u=O}}function Kf(t,n){let s=/^[ \t]*/.exec(t)[0].length;if(!s||n.facet(c$)!=" ")return t;let r=Mr(t,4,s),i="";for(let u=r;u>0;)u>=4?(i+=" ",u-=4):(i+=" ",u--);return i+t.slice(s)}const KN=(t={})=>({state:n,dispatch:s})=>{let r=ma(n),{doc:i}=n,u=null,O=n.changeByRange(f=>{if(!f.empty||!dc.isActiveAt(n,f.from,-1)&&!dc.isActiveAt(n,f.from,1))return u={range:f};let m=f.from,p=i.lineAt(m),g=ny(r.resolveInner(m,-1),i);for(;g.length&&g[g.length-1].from>m-p.from;)g.pop();if(!g.length)return u={range:f};let x=g[g.length-1];if(x.to-x.spaceAfter.length>m-p.from)return u={range:f};let b=m>=x.to-x.spaceAfter.length&&!/\S/.test(p.text.slice(x.to));if(x.item&&b){let k=x.node.firstChild,N=x.node.getChild("ListItem","ListItem");if(k.to>=m||N&&N.to<m||p.from>0&&!/[^\s>]/.test(i.lineAt(p.from-1).text)||t.nonTightLists===!1){let Z=g.length>1?g[g.length-2]:null,C,q="";Z&&Z.item?(C=p.from+Z.from,q=Z.marker(i,1)):C=p.from+(Z?Z.to:0);let X=[{from:C,to:m,insert:q}];return x.node.name=="OrderedList"&&bd(x.item,i,X,-2),Z&&Z.node.name=="OrderedList"&&bd(Z.item,i,X),{range:Yn.cursor(C+q.length),changes:X}}else{let Z=T1(g,n,p);return{range:Yn.cursor(m+Z.length+1),changes:{from:p.from,insert:Z+n.lineBreak}}}}if(x.node.name=="Blockquote"&&b&&p.from){let k=i.lineAt(p.from-1),N=/>\s*$/.exec(k.text);if(N&&N.index==x.from){let Z=n.changes([{from:k.from+N.index,to:k.to},{from:p.from+x.from,to:p.to}]);return{range:f.map(Z),changes:Z}}}let Q=[];x.node.name=="OrderedList"&&bd(x.item,i,Q);let j=x.item&&x.item.from<p.from,$="";if(!j||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=x.to)for(let k=0,N=g.length-1;k<=N;k++)$+=k==N&&!j?g[k].marker(i,1):g[k].blank(k<N?Mr(p.text,4,g[k+1].from)-$.length:null);let w=m;for(;w>p.from&&/\s/.test(p.text.charAt(w-p.from-1));)w--;return $=Kf($,n),e4(x.node,n.doc)&&($=T1(g,n,p)+n.lineBreak+$),Q.push({from:w,to:m,insert:n.lineBreak+$}),{range:Yn.cursor(w+$.length+1),changes:Q}});return u?!1:(s(n.update(O,{scrollIntoView:!0,userEvent:"input"})),!0)},JN=KN();function j1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function e4(t,n){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,r=t.getChild("ListItem","ListItem");if(!r)return!1;let i=n.lineAt(s.to),u=n.lineAt(r.from),O=/^[\s>]*$/.test(i.text);return i.number+(O?0:1)<u.number}function T1(t,n,s){let r="";for(let i=0,u=t.length-2;i<=u;i++)r+=t[i].blank(i<u?Mr(s.text,4,t[i+1].from)-r.length:null,i<u);return Kf(r,n)}function t4(t,n){let s=t.resolveInner(n,-1),r=n;j1(s)&&(r=s.from,s=s.parent);for(let i;i=s.childBefore(r);)if(j1(i))r=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")s=i.lastChild,r=s.to;else break;return s}const a4=({state:t,dispatch:n})=>{let s=ma(t),r=null,i=t.changeByRange(u=>{let O=u.from,{doc:f}=t;if(u.empty&&dc.isActiveAt(t,u.from)){let m=f.lineAt(O),p=ny(t4(s,O),f);if(p.length){let g=p[p.length-1],x=g.to-g.spaceAfter.length+(g.spaceAfter?1:0);if(O-m.from>x&&!/\S/.test(m.text.slice(x,O-m.from)))return{range:Yn.cursor(m.from+x),changes:{from:m.from+x,to:O}};if(O-m.from==x&&(!g.item||m.from<=g.item.from||!/\S/.test(m.text.slice(0,g.to)))){let b=m.from+g.from;if(g.item&&g.node.from<g.item.from&&/\S/.test(m.text.slice(g.from,g.to))){let Q=g.blank(Mr(m.text,4,g.to)-Mr(m.text,4,g.from));return b==m.from&&(Q=Kf(Q,t)),{range:Yn.cursor(b+Q.length),changes:{from:b,to:m.from+g.to,insert:Q}}}if(b<O)return{range:Yn.cursor(b),changes:{from:b,to:O}}}}}return r={range:u}});return r?!1:(n(t.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},n4=[{key:"Enter",run:JN},{key:"Backspace",run:a4}],ly=Nv({matchClosingTags:!1});function s4(t={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:r=!0,base:{parser:i}=HN,completeHTMLTags:u=!0,pasteURLAsLink:O=!0,htmlTagLanguage:f=ly}=t;if(!(i instanceof Pc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let m=t.extensions?[t.extensions]:[],p=[f.support,BN],g;O&&p.push(o4),s instanceof bs?(p.push(s.support),g=s.language):s&&(g=s);let x=n||g?FN(n,g):void 0;m.push(XN({codeParser:x,htmlParser:f.language.parser})),r&&p.push(r$.high(Ed.of(n4)));let b=Ff(i.configure(m));return u&&p.push(b.data.of({autocomplete:l4})),new bs(b,p)}function l4(t){let{state:n,pos:s}=t,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!r)return null;let i=ma(n).resolveInner(s,-1);for(;i&&!i.type.isTop;){if(i.name=="CodeBlock"||i.name=="FencedCode"||i.name=="ProcessingInstructionBlock"||i.name=="CommentBlock"||i.name=="Link"||i.name=="Image")return null;i=i.parent}return{from:s-r[0].length,to:s,options:r4(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let vd=null;function r4(){if(vd)return vd;let t=dN(new u$(d0.create({extensions:ly}),0,!0));return vd=t?t.options:[]}const i4=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,o4=vl.domEventHandlers({paste:(t,n)=>{var s;let{main:r}=n.state.selection;if(r.empty)return!1;let i=(s=t.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!i||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(i)||(/^www\./.test(i)&&(i="https://"+i),!dc.isActiveAt(n.state,r.from,1)))return!1;let u=ma(n.state),O=!1;return u.iterate({from:r.from,to:r.to,enter:f=>{(f.from>r.from||i4.test(f.name))&&(O=!0)},leave:f=>{f.to<r.to&&(O=!0)}}),O?!1:(n.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${i})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),c4=1,ry=194,iy=195,u4=196,k1=197,O4=198,d4=199,f4=200,h4=2,oy=3,P1=201,m4=24,p4=25,x4=49,g4=50,b4=55,v4=56,y4=57,Q4=59,S4=60,$4=61,w4=62,j4=63,T4=65,k4=238,P4=71,z4=241,N4=242,R4=243,X4=244,_4=245,Z4=246,C4=247,A4=248,cy=72,E4=249,q4=250,M4=251,Y4=252,V4=253,U4=254,G4=255,L4=256,D4=73,W4=77,B4=263,H4=112,I4=130,F4=151,K4=152,J4=155,Qs=10,Fr=13,Jf=32,zc=9,eh=35,eR=40,tR=46,rf=123,z1=125,uy=39,Oy=34,N1=92,aR=111,nR=120,sR=78,lR=117,rR=85,iR=new Set([p4,x4,g4,B4,T4,I4,v4,y4,k4,w4,j4,cy,D4,W4,S4,$4,F4,K4,J4,H4]);function yd(t){return t==Qs||t==Fr}function Qd(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const oR=new xt((t,n)=>{let s;if(t.next<0)t.acceptToken(d4);else if(n.context.flags&Lo)yd(t.next)&&t.acceptToken(O4,1);else if(((s=t.peek(-1))<0||yd(s))&&n.canShift(k1)){let r=0;for(;t.next==Jf||t.next==zc;)t.advance(),r++;(t.next==Qs||t.next==Fr||t.next==eh)&&t.acceptToken(k1,-r)}else yd(t.next)&&t.acceptToken(u4,1)},{contextual:!0}),cR=new xt((t,n)=>{let s=n.context;if(s.flags)return;let r=t.peek(-1);if(r==Qs||r==Fr){let i=0,u=0;for(;;){if(t.next==Jf)i++;else if(t.next==zc)i+=8-i%8;else break;t.advance(),u++}i!=s.indent&&t.next!=Qs&&t.next!=Fr&&t.next!=eh&&(i<s.indent?t.acceptToken(iy,-u):t.acceptToken(ry))}}),Lo=1,dy=2,Ia=4,Fa=8,Ka=16,Ja=32;function Do(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 uR=new Do(null,0,0);function OR(t){let n=0;for(let s=0;s<t.length;s++)n+=t.charCodeAt(s)==zc?8-n%8:1;return n}const R1=new Map([[z4,0],[N4,Ia],[R4,Fa],[X4,Fa|Ia],[_4,Ka],[Z4,Ka|Ia],[C4,Ka|Fa],[A4,Ka|Fa|Ia],[E4,Ja],[q4,Ja|Ia],[M4,Ja|Fa],[Y4,Ja|Fa|Ia],[V4,Ja|Ka],[U4,Ja|Ka|Ia],[G4,Ja|Ka|Fa],[L4,Ja|Ka|Fa|Ia]].map(([t,n])=>[t,n|dy])),dR=new Yf({start:uR,reduce(t,n,s,r){return t.flags&Lo&&iR.has(n)||(n==P4||n==cy)&&t.flags&dy?t.parent:t},shift(t,n,s,r){return n==ry?new Do(t,OR(r.read(r.pos,s.pos)),0):n==iy?t.parent:n==m4||n==b4||n==Q4||n==oy?new Do(t,0,Lo):R1.has(n)?new Do(t,0,R1.get(n)|t.flags&Lo):t},hash(t){return t.hash}}),fR=new xt(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==Jf||s==zc)){s!=eR&&s!=tR&&s!=Qs&&s!=Fr&&s!=eh&&t.acceptToken(c4);return}}}),hR=new xt((t,n)=>{let{flags:s}=n.context,r=s&Ia?Oy:uy,i=(s&Fa)>0,u=!(s&Ka),O=(s&Ja)>0,f=t.pos;for(;!(t.next<0);)if(O&&t.next==rf)if(t.peek(1)==rf)t.advance(2);else{if(t.pos==f){t.acceptToken(oy,1);return}break}else if(u&&t.next==N1){if(t.pos==f){t.advance();let m=t.next;m>=0&&(t.advance(),mR(t,m)),t.acceptToken(h4);return}break}else if(t.next==N1&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==r&&(!i||t.peek(1)==r&&t.peek(2)==r)){if(t.pos==f){t.acceptToken(P1,i?3:1);return}break}else if(t.next==Qs){if(i)t.advance();else if(t.pos==f){t.acceptToken(P1);return}break}else t.advance();t.pos>f&&t.acceptToken(f4)});function mR(t,n){if(n==aR)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(n==nR)for(let s=0;s<2&&Qd(t.next);s++)t.advance();else if(n==lR)for(let s=0;s<4&&Qd(t.next);s++)t.advance();else if(n==rR)for(let s=0;s<8&&Qd(t.next);s++)t.advance();else if(n==sR&&t.next==rf){for(t.advance();t.next>=0&&t.next!=z1&&t.next!=uy&&t.next!=Oy&&t.next!=Qs;)t.advance();t.next==z1&&t.advance()}}const pR=$s({'async "*" "**" FormatConversion FormatSpec':z.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":z.controlKeyword,"in not and or is del":z.operatorKeyword,"from def class global nonlocal lambda":z.definitionKeyword,import:z.moduleKeyword,"with as print":z.keyword,Boolean:z.bool,None:z.null,VariableName:z.variableName,"CallExpression/VariableName":z.function(z.variableName),"FunctionDefinition/VariableName":z.function(z.definition(z.variableName)),"ClassDefinition/VariableName":z.definition(z.className),PropertyName:z.propertyName,"CallExpression/MemberExpression/PropertyName":z.function(z.propertyName),Comment:z.lineComment,Number:z.number,String:z.string,FormatString:z.special(z.string),Escape:z.escape,UpdateOp:z.updateOperator,"ArithOp!":z.arithmeticOperator,BitOp:z.bitwiseOperator,CompareOp:z.compareOperator,AssignOp:z.definitionOperator,Ellipsis:z.punctuation,At:z.meta,"( )":z.paren,"[ ]":z.squareBracket,"{ }":z.brace,".":z.derefOperator,", ;":z.separator}),xR={__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},gR=Dn.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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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:dR,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:[pR],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!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JU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[fR,cR,oR,hR,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>xR[t]||-1}],tokenPrec:7668}),X1=new ff,fy=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function No(t){return(n,s,r)=>{if(r)return!1;let i=n.node.getChild("VariableName");return i&&s(i,t),!0}}const bR={FunctionDefinition:No("function"),ClassDefinition:No("class"),ForStatement(t,n,s){if(s){for(let r=t.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")n(r,"variable");else if(r.name=="in")break}},ImportStatement(t,n){var s,r;let{node:i}=t,u=((s=i.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let O=i.getChild("import");O;O=O.nextSibling)O.name=="VariableName"&&((r=O.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&n(O,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,r=t.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(r,"variable"),s=r},CapturePattern:No("variable"),AsPattern:No("variable"),__proto__:null};function hy(t,n){let s=X1.get(n);if(s)return s;let r=[],i=!0;function u(O,f){let m=t.sliceString(O.from,O.to);r.push({label:m,type:f})}return n.cursor(hc.IncludeAnonymous).iterate(O=>{if(O.name){let f=bR[O.name];if(f&&f(O,u,i)||!i&&fy.has(O.name))return!1;i=!1}else if(O.to-O.from>8192){for(let f of hy(t,O.node))r.push(f);return!1}}),X1.set(n,r),r}const _1=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,my=["String","FormatString","Comment","PropertyName"];function vR(t){let n=ma(t.state).resolveInner(t.pos,-1);if(my.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&_1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let r=[];for(let i=n;i;i=i.parent)fy.has(i.name)&&(r=r.concat(hy(t.state.doc,i)));return{options:r,from:s?n.from:t.pos,validFor:_1}}const yR=["__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"}))),QR=[Be("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Be("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Be("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Be("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Be(`if \${}:
|
|
489
|
+
|
|
490
|
+
`,{label:"if",detail:"block",type:"keyword"}),Be("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Be("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Be("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Be("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],SR=i0(my,o0(yR.concat(QR)));function Sd(t){let{node:n,pos:s}=t,r=t.lineIndent(s,-1),i=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<=r&&(i=u),n=u;else if(u.name=="MatchClause")n=u;else if(u.type.is("Statement"))n=u;else break;else break}return i}function $d(t,n){let s=t.baseIndentFor(n),r=t.lineAt(t.pos,-1),i=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&t.node.to<i+100&&!/\S/.test(t.state.sliceDoc(i,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 wd=Jr.define({name:"python",parser:gR.configure({props:[kl.add({Body:t=>{var n;let s=/^\s*(#|$)/.test(t.textAfter)&&Sd(t)||t.node;return(n=$d(t,s))!==null&&n!==void 0?n:t.continue()},MatchBody:t=>{var n;let s=Sd(t);return(n=$d(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":qo({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":qo({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":qo({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var n;let s=Sd(t);return(n=s&&$d(t,s))!==null&&n!==void 0?n:t.continue()}}),ws.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":mc,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 $R(){return new bs(wd,[wd.data.of({autocomplete:vR}),wd.data.of({autocomplete:SR})])}const Ro={javascript:()=>Kd({jsx:!0,typescript:!1}),typescript:()=>Kd({jsx:!0,typescript:!0}),css:()=>dv(),html:()=>Nv(),json:()=>bN(),markdown:()=>s4(),python:()=>$R()},wR=vl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px"},".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 jR({content:t,language:n,onChange:s,onSave:r}){const i=y.useRef(null),u=y.useRef(null),O=y.useRef(new f$),f=y.useRef(s),m=y.useRef(r);return f.current=s,m.current=r,y.useEffect(()=>{if(!i.current)return;const p=Ro[n]||Ro.javascript,g=Ed.of([{key:"Mod-s",run:()=>{var Q;return(Q=m.current)==null||Q.call(m),!0}}]),x=d0.create({doc:t||"",extensions:[m$(),p$(),x$(),g$(),b$(),v$(),y$(),Ed.of([...Q$,...S$,...$$]),g,h$,wR,O.current.of(p()),vl.updateListener.of(Q=>{var j;Q.docChanged&&((j=f.current)==null||j.call(f,Q.state.doc.toString()))})]}),b=new vl({state:x,parent:i.current});return u.current=b,()=>{b.destroy(),u.current=null}},[]),y.useEffect(()=>{const p=u.current;if(!p)return;const g=p.state.doc.toString();t!==g&&p.dispatch({changes:{from:0,to:g.length,insert:t||""}})},[t]),y.useEffect(()=>{const p=u.current;if(!p)return;const g=Ro[n]||Ro.javascript;p.dispatch({effects:O.current.reconfigure(g())})},[n]),c.jsx("div",{ref:i,className:"w-full h-full"})}const TR=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],py=["mp4","webm","mov","avi","mkv","ogv"];function kR(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return TR.includes(n)||py.includes(n)}function PR({path:t}){var u;const n=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,r=t.split("/").pop(),i=py.includes(n);return c.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[c.jsx(ot,{children:n==null?void 0:n.toUpperCase()}),c.jsx("span",{className:"font-mono",children:r}),c.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:c.jsx(Sk,{size:12})})]}),i?c.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):c.jsx("img",{src:s,alt:r,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function zR(){const t=L(b=>b.editorActiveFile),n=L(b=>b.editorFiles),s=L(b=>b.editorChangedFiles),r=L(b=>b.updateFileContent),i=L(b=>b.saveFile),u=L(b=>b.reloadFile),O=L(b=>b.dismissFileChange),[f,m]=y.useState("");y.useEffect(()=>{ae.get("/files/root").then(b=>m(b.root||"")).catch(()=>{})},[]);const p=t?n[t]:null,g=t&&kR(t),x=t&&s[t];return c.jsxs("div",{className:"flex h-full",children:[c.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:c.jsx(BP,{rootDir:f})}),c.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(HP,{}),c.jsxs("div",{className:"flex-1 relative min-h-0",children:[x&&c.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:[c.jsx(wc,{size:14,className:"text-warning"}),c.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),c.jsxs(Ne,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[c.jsx(Nl,{size:12})," Reload"]}),c.jsxs(Ne,{variant:"ghost",size:"sm",onClick:()=>O(t),children:[c.jsx(Lt,{size:12})," Dismiss"]})]}),!t&&c.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx(Bn,{size:32,className:"mx-auto"}),c.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&g&&c.jsx(PR,{path:t}),t&&!g&&p&&c.jsx(jR,{content:p.content,language:p.language,onChange:b=>r(t,b),onSave:()=>i(t)})]})]})]})}function NR(){const t=L(p=>p.connected),n=L(p=>p.agents),[s,r]=y.useState(null),[i,u]=y.useState(!0),[O,f]=y.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[]}),m=y.useRef(0);return y.useEffect(()=>{if(!t)return;let p=!0;async function g(){try{const b=await ae.get("/dashboard");if(!p)return;r(b),u(!1),m.current=Date.now(),f(Q=>{var w,k,N,Z;const j=Date.now(),$=(C,q)=>[...C.slice(-59),{t:j,v:q||0}];return{tokens:$(Q.tokens,(w=b.tokens)==null?void 0:w.totalUsed),cost:$(Q.cost,(k=b.tokens)==null?void 0:k.totalCostUsd),saved:$(Q.saved,(N=b.tokens)==null?void 0:N.totalSaved),efficiency:$(Q.efficiency,(()=>{var q,X,G;const C=(((q=b.tokens)==null?void 0:q.totalUsed)||0)+(((X=b.tokens)==null?void 0:X.totalSaved)||0);return C>0?(((G=b.tokens)==null?void 0:G.totalSaved)||0)/C*100:0})()),cache:$(Q.cache,(Z=b.tokens)==null?void 0:Z.cacheHitRate)}})}catch{p&&u(!1)}}g();const x=setInterval(g,4e3);return()=>{p=!1,clearInterval(x)}},[t]),{data:s,loading:i,agents:n,connected:t,kpiHistory:O,lastFetch:m.current}}function Z1({connected:t,runningCount:n,totalCount:s,uptime:r,lastFetch:i}){return c.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border",children:[c.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Command Center"}),c.jsx("div",{className:"flex-1"}),t&&c.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[c.jsxs("span",{children:[n,"/",s," agents"]}),r>0&&c.jsxs("span",{children:["Up ",Cf(r)]}),i>0&&c.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[c.jsx(Nl,{size:10})," ",Wt(i)]})]}),c.jsx(_f,{status:t?"running":"crashed",size:"sm"})]})}const He={surface4:"#2c313a",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd"};function RR({data:t,color:n=He.accent,width:s=80,height:r=24}){if(!t||t.length<2)return c.jsx("div",{style:{width:s,height:r}});const i=t.map(p=>p.v),u=Math.min(...i),f=Math.max(...i)-u||1,m=t.map((p,g)=>{const x=g/(t.length-1)*s,b=r-(p.v-u)/f*(r-2)-1;return`${x},${b}`}).join(" ");return c.jsxs("svg",{width:s,height:r,className:"flex-shrink-0",children:[c.jsx("defs",{children:c.jsxs("linearGradient",{id:`kpi-${n}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[c.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.3"}),c.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),c.jsx("polygon",{points:`0,${r} ${m} ${s},${r}`,fill:`url(#kpi-${n})`}),c.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round"})]})}function Zr({label:t,value:n,sparkData:s,color:r=He.accent,className:i}){return c.jsxs("div",{className:ne("flex items-center gap-3 px-4 py-3 bg-surface-1 border-b border-border-subtle min-w-0",i),children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-2xs text-text-3 font-sans uppercase tracking-wider mb-0.5 truncate",children:t}),c.jsx("div",{className:"text-lg font-semibold font-mono text-text-0 tabular-nums",children:n})]}),c.jsx(RR,{data:s,color:r})]})}function XR(t){return t?t.split(/[\s\-_]+/).map(n=>n[0]).join("").toUpperCase().slice(0,2):"?"}function _R({name:t,role:n,size:s="md",spinning:r,className:i}){const u=Xf(n),O={sm:"w-6 h-6 text-2xs",md:"w-7 h-7 text-xs",lg:"w-10 h-10 text-sm"};return c.jsxs("div",{className:ne("relative inline-flex",i),children:[r&&c.jsx("div",{className:"absolute inset-[-2px] rounded-full animate-[spin-slow_3s_linear_infinite]",style:{background:`conic-gradient(${u.border}, transparent, ${u.border})`,mask:"radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px))",WebkitMask:"radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px))"}}),c.jsx("div",{className:ne("rounded-full flex items-center justify-center font-semibold font-sans select-none",O[s]),style:{background:u.bg,color:u.text},children:XR(t)})]})}function ZR({agents:t}){if(!(t!=null&&t.length))return c.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-4 font-sans p-4",children:"No agents running"});const n={};for(const s of t){const r=s.teamId||"Ungrouped";n[r]||(n[r]=[]),n[r].push(s)}return c.jsx(ka,{className:"flex-1",children:c.jsx("div",{className:"p-3 space-y-4",children:Object.entries(n).map(([s,r])=>c.jsxs("div",{children:[c.jsx("div",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider mb-2",children:s}),c.jsx("div",{className:"space-y-1",children:r.map(i=>c.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded hover:bg-surface-5 transition-colors",children:[c.jsx(_f,{status:i.status,size:"sm"}),c.jsx(_R,{name:i.name,role:i.role,size:"sm"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx("div",{className:"text-xs text-text-0 font-sans truncate",children:i.name})}),c.jsx("span",{className:"text-2xs font-mono text-text-3",children:Dt(i.tokensUsed||0)}),c.jsx("div",{className:"w-10 h-1 bg-surface-0 rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full",style:{width:`${Math.min(i.contextUsed||0,100)}%`,background:(i.contextUsed||0)>=80?"var(--color-danger)":(i.contextUsed||0)>=60?"var(--color-warning)":"var(--color-success)"}})})]},i.id))})]},s))})})}function jd({label:t,value:n,total:s,color:r}){const i=s>0?n/s*100:0;return c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs font-sans",children:[c.jsx("span",{className:"text-text-2",children:t}),c.jsx("span",{className:"text-text-0 font-mono",children:Dt(n)})]}),c.jsx("div",{className:"h-1.5 bg-surface-0 rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(i,100)}%`,background:r}})})]})}function ps({label:t,value:n}){return c.jsxs("div",{className:"flex items-center justify-between text-xs font-sans",children:[c.jsx("span",{className:"text-text-3",children:t}),c.jsx("span",{className:"text-text-0 font-mono",children:n})]})}function CR({data:t,rotation:n,routing:s,adaptive:r}){var g,x;if(!t)return null;const{totalSaved:i=0,rotationSaved:u=0,conflictSaved:O=0,coldStartSaved:f=0,totalUsed:m=0}=t,p=m+i;return c.jsxs("div",{className:"p-4 space-y-5 overflow-y-auto h-full",children:[c.jsxs("div",{className:"flex items-baseline gap-2",children:[c.jsx("span",{className:"text-xl font-semibold font-mono text-success",children:Dt(i)}),c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"tokens saved"}),p>0&&c.jsxs("span",{className:"text-xs text-text-4 font-sans",children:["(",Ar(i/p*100),")"]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(jd,{label:"Rotation savings",value:u,total:p,color:He.accent}),c.jsx(jd,{label:"Conflict prevention",value:O,total:p,color:He.purple}),c.jsx(jd,{label:"Cold-start prevention",value:f,total:p,color:He.info})]}),n&&(n.totalRotations>0||((g=n.history)==null?void 0:g.length)>0)&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Rotations"}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx(ps,{label:"Total rotations",value:n.totalRotations||0}),c.jsx(ps,{label:"Tokens saved",value:Dt(n.totalTokensSaved||0)})]}),((x=n.history)==null?void 0:x.length)>0&&c.jsx("div",{className:"space-y-1 mt-2",children:n.history.slice(-5).reverse().map((b,Q)=>c.jsxs("div",{className:"flex items-center gap-2 text-2xs text-text-3 font-sans px-2 py-1 bg-surface-0 rounded",children:[c.jsx("span",{className:"text-text-1 font-medium capitalize",children:b.agentName||b.role}),c.jsx("span",{className:"font-mono",children:Ar((b.contextUsage||0)*100)}),c.jsx("span",{className:"ml-auto text-text-4",children:Wt(b.timestamp)})]},Q))})]}),s&&s.totalDecisions>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Model Routing"}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx(ps,{label:"Auto-routed agents",value:s.autoRoutedCount||0}),c.jsx(ps,{label:"Total decisions",value:s.totalDecisions||0}),s.byTier&&c.jsxs(c.Fragment,{children:[c.jsx(ps,{label:"Heavy (Opus)",value:s.byTier.heavy||0}),c.jsx(ps,{label:"Medium (Sonnet)",value:s.byTier.medium||0}),c.jsx(ps,{label:"Light (Haiku)",value:s.byTier.light||0})]})]})]}),(r==null?void 0:r.length)>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Adaptive Thresholds"}),c.jsx("div",{className:"space-y-1",children:r.map(b=>c.jsxs("div",{className:"flex items-center gap-2 text-2xs font-sans px-2 py-1 bg-surface-0 rounded",children:[c.jsx("span",{className:"text-text-1 font-mono flex-1 truncate",children:b.key}),c.jsx("span",{className:"font-mono text-text-0",children:Ar(b.threshold*100)}),c.jsx("span",{className:ne("text-2xs",b.converged?"text-success":"text-text-4"),children:b.converged?"converged":`${b.adjustments} adj`})]},b.key))})]})]})}function AR({data:t,width:n,height:s}){const r=y.useRef(null);return y.useEffect(()=>{const i=r.current;if(!i||!(t!=null&&t.length))return;const u=i.getContext("2d"),O=window.devicePixelRatio||1;i.width=n*O,i.height=s*O,u.scale(O,O),u.clearRect(0,0,n,s);const f={top:12,right:60,bottom:28,left:60},m=n-f.left-f.right,p=s-f.top-f.bottom,g=t.map($=>$.tokens||0),x=t.map($=>$.costUsd||0),b=Math.max(...g,1),Q=Math.max(...x,.01);u.strokeStyle=He.surface4,u.lineWidth=.5;for(let $=0;$<=4;$++){const w=f.top+p/4*$;u.beginPath(),u.moveTo(f.left,w),u.lineTo(f.left+m,w),u.stroke()}u.beginPath(),u.moveTo(f.left,f.top+p),t.forEach(($,w)=>{const k=f.left+w/(t.length-1)*m,N=f.top+p-($.tokens||0)/b*p;u.lineTo(k,N)}),u.lineTo(f.left+m,f.top+p),u.closePath();const j=u.createLinearGradient(0,f.top,0,f.top+p);j.addColorStop(0,"rgba(51, 175, 188, 0.2)"),j.addColorStop(1,"rgba(51, 175, 188, 0.01)"),u.fillStyle=j,u.fill(),u.beginPath(),u.strokeStyle=He.accent,u.lineWidth=1.5,t.forEach(($,w)=>{const k=f.left+w/(t.length-1)*m,N=f.top+p-($.tokens||0)/b*p;w===0?u.moveTo(k,N):u.lineTo(k,N)}),u.stroke(),u.beginPath(),u.strokeStyle=He.warning,u.lineWidth=1,u.setLineDash([4,3]),t.forEach(($,w)=>{const k=f.left+w/(t.length-1)*m,N=f.top+p-($.costUsd||0)/Q*p;w===0?u.moveTo(k,N):u.lineTo(k,N)}),u.stroke(),u.setLineDash([]),u.fillStyle=He.text3,u.font="10px var(--font-mono)",u.textAlign="right";for(let $=0;$<=4;$++){const w=b/4*(4-$);u.fillText(Dt(w),f.left-6,f.top+p/4*$+4)}u.textAlign="left",u.fillStyle=He.text4;for(let $=0;$<=4;$++){const w=Q/4*(4-$);u.fillText(Zf(w),f.left+m+6,f.top+p/4*$+4)}u.font="10px sans-serif",u.fillStyle=He.accent,u.fillText("● Tokens",f.left,s-6),u.fillStyle=He.warning,u.fillText("● Cost",f.left+70,s-6)},[t,n,s]),c.jsx("canvas",{ref:r,style:{width:n,height:s},className:"block"})}const C1={spawn:U5,rotation:Rl,completion:Ur,error:wc,default:Hn},A1={spawn:"text-accent",rotation:"text-purple",completion:"text-success",error:"text-danger",default:"text-text-3"};function ER({events:t=[]}){return t.length?c.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:t.slice(-10).reverse().map((n,s)=>{const r=C1[n.type]||C1.default,i=A1[n.type]||A1.default;return c.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0 text-2xs font-sans",children:[c.jsx(r,{size:12,className:i}),c.jsx("span",{className:"text-text-2 whitespace-nowrap",children:n.text}),c.jsx("span",{className:"text-text-4",children:Wt(n.timestamp)})]},s)})}):c.jsx("div",{className:"text-xs text-text-4 font-sans py-3 text-center",children:"No recent activity"})}function la({className:t,...n}){return c.jsx("div",{className:ne("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 qR(){return c.jsxs("div",{className:"flex-1 flex flex-col p-4 gap-3",children:[c.jsx("div",{className:"flex gap-3",children:[...Array(5)].map((t,n)=>c.jsx(la,{className:"h-16 flex-1 rounded-md"},n))}),c.jsxs("div",{className:"flex gap-3 flex-1",children:[c.jsx(la,{className:"flex-[5] rounded-md"}),c.jsx(la,{className:"flex-[3] rounded-md"}),c.jsx(la,{className:"flex-[3] rounded-md"})]})]})}function MR(){const{data:t,loading:n,agents:s,connected:r,kpiHistory:i,lastFetch:u}=NR(),O=y.useRef(null),[f,m]=y.useState({width:400,height:200}),p=s.filter(j=>j.status==="running").length;if(y.useEffect(()=>{if(!O.current)return;const j=new ResizeObserver($=>{const{width:w,height:k}=$[0].contentRect;m({width:Math.floor(w),height:Math.floor(k)})});return j.observe(O.current),()=>j.disconnect()},[]),!r)return c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-2 text-text-4 font-sans",children:[c.jsx(Sc,{size:32,className:"mx-auto"}),c.jsx("p",{className:"text-sm",children:"Connecting to daemon..."})]})});if(n||!t)return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsx(Z1,{connected:r,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),c.jsx(qR,{})]});const g=t.tokens||{},x=t.timeline||[],b=(g.totalUsed||0)+(g.totalSaved||0),Q=b>0?(g.totalSaved||0)/b*100:0;return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsx(Z1,{connected:r,runningCount:p,totalCount:s.length,uptime:t.uptime||0,lastFetch:u}),c.jsxs("div",{className:"flex flex-shrink-0 border-b border-border",children:[c.jsx(Zr,{label:"Tokens Used",value:Dt(g.totalUsed),sparkData:i.tokens,color:He.accent,className:"flex-1"}),c.jsx(Zr,{label:"Total Cost",value:Zf(g.totalCostUsd),sparkData:i.cost,color:He.warning,className:"flex-1 border-l border-border-subtle"}),c.jsx(Zr,{label:"Tokens Saved",value:Dt(g.totalSaved),sparkData:i.saved,color:He.success,className:"flex-1 border-l border-border-subtle"}),c.jsx(Zr,{label:"Efficiency",value:Ar(Q),sparkData:i.efficiency,color:He.purple,className:"flex-1 border-l border-border-subtle"}),c.jsx(Zr,{label:"Cache Rate",value:Ar(g.cacheHitRate),sparkData:i.cache,color:He.info,className:"flex-1 border-l border-border-subtle"})]}),c.jsxs("div",{className:"flex-1 flex min-h-0",children:[c.jsx("div",{ref:O,className:"flex-[5] min-w-0 bg-surface-1 border-r border-border-subtle",children:f.width>0&&c.jsx(AR,{data:x,width:f.width,height:f.height})}),c.jsxs("div",{className:"flex-[3] flex flex-col min-w-0 bg-surface-1 border-r border-border-subtle",children:[c.jsx("div",{className:"px-3 py-2 border-b border-border-subtle",children:c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Agent Fleet"})}),c.jsx(ZR,{agents:s})]}),c.jsxs("div",{className:"flex-[3] flex flex-col min-w-0 bg-surface-1",children:[c.jsx("div",{className:"px-3 py-2 border-b border-border-subtle",children:c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Savings"})}),c.jsx(CR,{data:g,rotation:t.rotation,routing:t.routing,adaptive:t.adaptive})]})]}),c.jsx("div",{className:"flex-shrink-0 border-t border-border bg-surface-1",children:c.jsx(ER,{events:t.events||[]})})]})}const E1={sm:12,md:16,lg:20};function YR({fill:t="full",size:n,color:s="#fbbf24",emptyColor:r="rgba(255,255,255,0.4)"}){const i=`star-${Math.random().toString(36).slice(2,8)}`;return c.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&c.jsx("defs",{children:c.jsxs("linearGradient",{id:i,children:[c.jsx("stop",{offset:"50%",stopColor:s}),c.jsx("stop",{offset:"50%",stopColor:r})]})}),c.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(#${i})`:r})]})}function xy({rating:t=0,count:n,size:s="sm"}){const r=E1[s]||E1.sm,i=[];for(let u=1;u<=5;u++)t>=u?i.push("full"):t>=u-.5?i.push("half"):i.push("empty");return c.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[i.map((u,O)=>c.jsx(YR,{fill:u,size:r},O)),n!=null&&c.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const q1={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 gy({label:t,variant:n,className:s}){const r=q1[n]||q1.draft;return c.jsx("span",{className:ne("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:r.color,background:r.bg},children:t})}function by({price:t=0,size:n="sm"}){const s=!t||t===0,r={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 c.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${r[n]||r.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function vy({type:t="verified",size:n=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return c.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[c.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}),c.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const yy="groove_favorites";function th(){try{return JSON.parse(localStorage.getItem(yy)||"[]")}catch{return[]}}function VR(t){return th().includes(t)}function UR(t){const n=th(),s=n.indexOf(t);return s>=0?n.splice(s,1):n.push(t),localStorage.setItem(yy,JSON.stringify(n)),s<0}function GR(t){const n=new Set(th());return t.map(s=>({...s,favorited:n.has(s.id)}))}function LR({filled:t,size:n=16}){return c.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:c.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 DR(){return c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),c.jsx("polyline",{points:"7 10 12 15 17 10"}),c.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function WR({skill:t,onClick:n}){var u,O;const[s,r]=y.useState(()=>VR(t.id));function i(f){f.stopPropagation(),r(UR(t.id))}return c.jsxs("div",{onClick:()=>n==null?void 0:n(t),className:ne("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:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.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||((O=(u=t.name)==null?void 0:u[0])==null?void 0:O.toUpperCase())||"?"}),c.jsx("button",{onClick:i,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:c.jsx(LR,{filled:s})})]}),c.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),c.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[c.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&c.jsx(vy,{type:t.source,size:12})]}),c.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),c.jsx("div",{className:"mt-3",children:c.jsx(gy,{label:t.category||"general",variant:t.category||"draft"})}),c.jsx("div",{className:"h-px bg-border-subtle my-3"}),c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx(xy,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),c.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[c.jsx(DR,{}),Dt(t.downloads||0)]}),c.jsx(by,{price:t.price||0,size:"sm"})]})]})}function Qy(){return c.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),c.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),c.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),c.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),c.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),c.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),c.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),c.jsx("div",{className:"h-px bg-surface-4 my-3"}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),c.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),c.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const BR={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 HR({item:t,size:n=40}){const s=BR[t.id];if(s)return c.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[c.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"}}),c.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 r=(t.name||"?")[0].toUpperCase(),i=t.name?t.name.charCodeAt(0)*37%360:200;return c.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(${i}, 40%, 18%)`,color:`hsl(${i}, 60%, 65%)`},children:r})}function IR({item:t,onClick:n,className:s}){var i;const r=t.installed;return c.jsxs("button",{onClick:()=>n(t),className:ne("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:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx(HR,{item:t,size:36}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&c.jsx(Ur,{size:11,className:"text-accent flex-shrink-0"})]}),c.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),c.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),c.jsx("div",{className:"h-px bg-border-subtle my-2"}),c.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(kf,{size:10}),Dt(t.downloads||0)]}),(t.rating||0)>0&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(kb,{size:10,className:"text-warning",fill:"currentColor"}),(i=t.rating)==null?void 0:i.toFixed(1)]}),c.jsx("span",{className:"flex-1"}),r&&c.jsx(ot,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function Sy({value:t,onChange:n,placeholder:s="Search skills, tags, authors...",large:r}){const[i,u]=y.useState(t||""),O=y.useRef(null);y.useEffect(()=>{u(t||"")},[t]);function f(m){const p=m.target.value;u(p),clearTimeout(O.current),O.current=setTimeout(()=>n(p),300)}return c.jsxs("div",{className:"relative w-full",children:[c.jsx(Xl,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),c.jsx("input",{value:i,onChange:f,placeholder:s,className:ne("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",r?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),r&&c.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 FR=[{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 KR({selected:t="",categories:n=FR,onSelect:s}){return c.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(r=>{const i=t===r.id;return c.jsx("button",{onClick:()=>s(r.id),className:ne("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",i?"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:r.label},r.id)})})}function Nc(){const t=L(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 JR({skill:t,onBack:n}){var $,w,k;const s=Nc(),[r,i]=y.useState(""),[u,O]=y.useState(!1),[f,m]=y.useState(!1),[p,g]=y.useState(t.installed),[x,b]=y.useState(!0);y.useEffect(()=>{b(!0),ae.get(`/skills/${t.id}/content`).then(N=>{i(N.content||""),O(N.requiresPurchase||!1)}).catch(()=>{}).finally(()=>b(!1))},[t.id]);async function Q(){m(!0);try{await ae.post(`/skills/${t.id}/install`),g(!0),s.success(`${t.name} installed`)}catch(N){s.error("Install failed",N.message)}m(!1)}async function j(){const{marketplaceAuthenticated:N,marketplaceLogin:Z,marketplaceCheckout:C}=L.getState();if(!N){Z();return}try{await C(t.id)}catch{}}return c.jsx(ka,{className:"h-full",children:c.jsxs("div",{className:"px-6 py-5",children:[c.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:[c.jsx(sk,{size:14})," Back"]}),c.jsxs("div",{className:"flex gap-8",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.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||((w=($=t.name)==null?void 0:$[0])==null?void 0:w.toUpperCase())}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),c.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[c.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&c.jsx(vy,{type:t.source,size:13})]})]})]}),c.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((k=t.tags)==null?void 0:k.length)>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(N=>c.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:N},N))}),c.jsx("div",{className:"h-px bg-border-subtle my-5"}),x?c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),c.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),c.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):r?c.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[c.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),c.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:r})]}):u?c.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[c.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),c.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):c.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),c.jsx("div",{className:"w-[240px] flex-shrink-0",children:c.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[c.jsx(by,{price:t.price||0,size:"md"}),u&&!p?c.jsxs("button",{onClick:j,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)]}):c.jsx("button",{onClick:Q,disabled:f||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:f?"Installing...":p?"✓ Installed":"Install"}),c.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",c.jsx("span",{className:"font-mono text-text-0",children:Dt(t.downloads||0)},"d")],["Rating",c.jsx(xy,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",c.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",c.jsx(gy,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",c.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([N,Z])=>c.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[c.jsx("span",{className:"text-text-3",children:N}),Z]},N))})]})})]})]})})}function eX(){const[t,n]=y.useState([]),[s,r]=y.useState(!0),[i,u]=y.useState(""),[O,f]=y.useState(""),[m,p]=y.useState("popular"),[g,x]=y.useState(null);return y.useEffect(()=>{r(!0);const b=new URLSearchParams;i&&b.set("search",i),O&&b.set("category",O),m&&b.set("sort",m),ae.get(`/skills/registry?${b}`).then(Q=>n(GR(Q.skills||Q.items||(Array.isArray(Q)?Q:[])))).catch(()=>n([])).finally(()=>r(!1))},[i,O,m]),g?c.jsx(JR,{skill:g,onBack:()=>x(null)}):c.jsx(ka,{className:"h-full",children:c.jsxs("div",{className:"px-5 py-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-72",children:c.jsx(Sy,{value:i,onChange:u})}),c.jsx(KR,{selected:O,onSelect:f}),c.jsx("div",{className:"flex-1"}),c.jsxs("div",{className:"relative flex-shrink-0",children:[c.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:[c.jsx("option",{value:"popular",children:"Popular"}),c.jsx("option",{value:"rating",children:"Top Rated"}),c.jsx("option",{value:"newest",children:"Newest"}),c.jsx("option",{value:"name",children:"A-Z"})]}),c.jsx(Ln,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),c.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),c.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,Q)=>c.jsx(Qy,{},Q)):t.map(b=>c.jsx(WR,{skill:b,onClick:x},b.id))}),!s&&t.length===0&&c.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function tX(){const[t,n]=y.useState([]),[s,r]=y.useState(!0),[i,u]=y.useState(""),O=Nc();return y.useEffect(()=>{r(!0),ae.get(`/integrations/registry?search=${encodeURIComponent(i)}`).then(f=>n(f.integrations||f.items||(Array.isArray(f)?f:[]))).catch(()=>n([])).finally(()=>r(!1))},[i]),c.jsx(ka,{className:"h-full",children:c.jsxs("div",{className:"px-5 py-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-72",children:c.jsx(Sy,{value:i,onChange:u,placeholder:"Search integrations..."})}),c.jsx("div",{className:"flex-1"}),c.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),c.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((f,m)=>c.jsx(Qy,{},m)):t.map(f=>c.jsx(IR,{item:f,onClick:()=>O.info(`${f.name} — install via CLI: groove integrations install ${f.id}`)},f.id))}),!s&&t.length===0&&c.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]})})}function aX(){const t=L(x=>x.marketplaceAuthenticated),n=L(x=>x.marketplaceLogin),[s,r]=y.useState([]),[i,u]=y.useState([]),[O,f]=y.useState(!0),m=Nc(),p=y.useRef(null);y.useEffect(()=>{f(!0),Promise.all([t?ae.get("/auth/purchases").then(x=>x.purchases||[]).catch(()=>[]):Promise.resolve([]),ae.get("/skills/installed").then(x=>Array.isArray(x)?x:x.skills||[]).catch(()=>[])]).then(([x,b])=>{r(x),u(b)}).finally(()=>f(!1))},[t]);async function g(x){var Q;const b=(Q=x.target.files)==null?void 0:Q[0];if(b){try{const j=await b.text(),$=b.name.replace(/\.md$/i,"");await ae.post("/skills/import",{name:$,content:j}),m.success(`Imported "${$}"`);const w=await ae.get("/skills/installed");u(Array.isArray(w)?w:w.skills||[])}catch(j){m.error("Import failed",j.message)}x.target.value=""}}return O?c.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((x,b)=>c.jsx(la,{className:"h-14 rounded-md"},b))}):c.jsx(ka,{className:"h-full",children:c.jsxs("div",{className:"px-5 py-4 space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("input",{ref:p,type:"file",accept:".md",onChange:g,className:"hidden"}),c.jsxs(Ne,{variant:"secondary",size:"md",onClick:()=>{var x;return(x=p.current)==null?void 0:x.click()},className:"gap-1.5",children:[c.jsx(q5,{size:13}),"Import .md Skill"]}),c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&c.jsxs("div",{children:[c.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[c.jsx(sd,{size:12}),"Purchases (",s.length,")"]}),c.jsx("div",{className:"space-y-1.5",children:s.map(x=>{var b,Q;return c.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[c.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:x.skill_icon||((Q=(b=x.skill_name)==null?void 0:b[0])==null?void 0:Q.toUpperCase())||"?"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:x.skill_name||x.skill_id}),c.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(x.amount||0).toFixed(2)," · ",Wt(x.created_at)]})]}),c.jsx(ot,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},x.id||x.skill_id)})})]}),t&&s.length===0&&c.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[c.jsx(sd,{size:20,className:"mx-auto text-text-4 mb-2"}),c.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&c.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[c.jsx(sd,{size:20,className:"mx-auto text-text-4 mb-2"}),c.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),c.jsxs(Ne,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[c.jsx(Pf,{size:12})," Sign in"]})]}),c.jsxs("div",{children:[c.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[c.jsx(yb,{size:12}),"Installed (",i.length,")"]}),i.length===0?c.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[c.jsx(kf,{size:20,className:"mx-auto text-text-4 mb-2"}),c.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):c.jsx("div",{className:"space-y-1.5",children:i.map(x=>{var b,Q;return c.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[c.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:x.icon||((Q=(b=x.name)==null?void 0:b[0])==null?void 0:Q.toUpperCase())||"?"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:x.name||x.id}),c.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:x.description||x.category||"local skill"})]}),c.jsx(ot,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},x.id)})})]})]})})}function nX(){const t=L(i=>i.marketplaceAuthenticated),n=L(i=>i.marketplaceUser),s=L(i=>i.marketplaceLogin),r=L(i=>i.marketplaceLogout);return t?c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:c.jsx(Yo,{size:9,className:"text-accent"})}),c.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"})]}),c.jsx("button",{onClick:r,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:c.jsx(bb,{size:11})})]}):c.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:[c.jsx(Pf,{size:12}),"Sign in"]})}function sX(){const[t,n]=y.useState("skills"),s=[{id:"skills",label:"Skills",icon:Tb},{id:"integrations",label:"Integrations",icon:m5},{id:"library",label:"My Library",icon:yb}];return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:c.jsxs("div",{className:"flex items-center px-5 h-11",children:[c.jsx("div",{className:"flex items-center",children:s.map(r=>{const i=r.icon;return c.jsxs("button",{onClick:()=>n(r.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===r.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[c.jsx(i,{size:12}),r.label]},r.id)})}),c.jsx("div",{className:"flex-1"}),c.jsx(nX,{})]})}),c.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&c.jsx(eX,{}),t==="integrations"&&c.jsx(tX,{}),t==="library"&&c.jsx(aX,{})]})]})}function lX(t){const n=t+"CollectionProvider",[s,r]=js(n),[i,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),O=$=>{const{scope:w,children:k}=$,N=An.useRef(null),Z=An.useRef(new Map).current;return c.jsx(i,{scope:w,itemMap:Z,collectionRef:N,children:k})};O.displayName=n;const f=t+"CollectionSlot",m=Ho(f),p=An.forwardRef(($,w)=>{const{scope:k,children:N}=$,Z=u(f,k),C=lt(w,Z.collectionRef);return c.jsx(m,{ref:C,children:N})});p.displayName=f;const g=t+"CollectionItemSlot",x="data-radix-collection-item",b=Ho(g),Q=An.forwardRef(($,w)=>{const{scope:k,children:N,...Z}=$,C=An.useRef(null),q=lt(w,C),X=u(g,k);return An.useEffect(()=>(X.itemMap.set(C,{ref:C,...Z}),()=>void X.itemMap.delete(C))),c.jsx(b,{[x]:"",ref:q,children:N})});Q.displayName=g;function j($){const w=u(t+"CollectionConsumer",$);return An.useCallback(()=>{const N=w.collectionRef.current;if(!N)return[];const Z=Array.from(N.querySelectorAll(`[${x}]`));return Array.from(w.itemMap.values()).sort((X,G)=>Z.indexOf(X.ref.current)-Z.indexOf(G.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:O,Slot:p,ItemSlot:Q},j,r]}var Td="rovingFocusGroup.onEntryFocus",rX={bubbles:!1,cancelable:!0},si="RovingFocusGroup",[of,$y,iX]=lX(si),[oX,wy]=js(si,[iX]),[cX,uX]=oX(si),jy=y.forwardRef((t,n)=>c.jsx(of.Provider,{scope:t.__scopeRovingFocusGroup,children:c.jsx(of.Slot,{scope:t.__scopeRovingFocusGroup,children:c.jsx(OX,{...t,ref:n})})}));jy.displayName=si;var OX=y.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:r,loop:i=!1,dir:u,currentTabStopId:O,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:p,preventScrollOnEntryFocus:g=!1,...x}=t,b=y.useRef(null),Q=lt(n,b),j=Af(u),[$,w]=vc({prop:O,defaultProp:f??null,onChange:m,caller:si}),[k,N]=y.useState(!1),Z=Pt(p),C=$y(s),q=y.useRef(!1),[X,G]=y.useState(0);return y.useEffect(()=>{const U=b.current;if(U)return U.addEventListener(Td,Z),()=>U.removeEventListener(Td,Z)},[Z]),c.jsx(cX,{scope:s,orientation:r,dir:j,loop:i,currentTabStopId:$,onItemFocus:y.useCallback(U=>w(U),[w]),onItemShiftTab:y.useCallback(()=>N(!0),[]),onFocusableItemAdd:y.useCallback(()=>G(U=>U+1),[]),onFocusableItemRemove:y.useCallback(()=>G(U=>U-1),[]),children:c.jsx(De.div,{tabIndex:k||X===0?-1:0,"data-orientation":r,...x,ref:Q,style:{outline:"none",...t.style},onMouseDown:Ze(t.onMouseDown,()=>{q.current=!0}),onFocus:Ze(t.onFocus,U=>{const te=!q.current;if(U.target===U.currentTarget&&te&&!k){const H=new CustomEvent(Td,rX);if(U.currentTarget.dispatchEvent(H),!H.defaultPrevented){const Oe=C().filter(_=>_.focusable),fe=Oe.find(_=>_.active),ve=Oe.find(_=>_.id===$),pe=[fe,ve,...Oe].filter(Boolean).map(_=>_.ref.current);Py(pe,g)}}q.current=!1}),onBlur:Ze(t.onBlur,()=>N(!1))})})}),Ty="RovingFocusGroupItem",ky=y.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:r=!0,active:i=!1,tabStopId:u,children:O,...f}=t,m=pl(),p=u||m,g=uX(Ty,s),x=g.currentTabStopId===p,b=$y(s),{onFocusableItemAdd:Q,onFocusableItemRemove:j,currentTabStopId:$}=g;return y.useEffect(()=>{if(r)return Q(),()=>j()},[r,Q,j]),c.jsx(of.ItemSlot,{scope:s,id:p,focusable:r,active:i,children:c.jsx(De.span,{tabIndex:x?0:-1,"data-orientation":g.orientation,...f,ref:n,onMouseDown:Ze(t.onMouseDown,w=>{r?g.onItemFocus(p):w.preventDefault()}),onFocus:Ze(t.onFocus,()=>g.onItemFocus(p)),onKeyDown:Ze(t.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){g.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const k=hX(w,g.orientation,g.dir);if(k!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let Z=b().filter(C=>C.focusable).map(C=>C.ref.current);if(k==="last")Z.reverse();else if(k==="prev"||k==="next"){k==="prev"&&Z.reverse();const C=Z.indexOf(w.currentTarget);Z=g.loop?mX(Z,C+1):Z.slice(C+1)}setTimeout(()=>Py(Z))}}),children:typeof O=="function"?O({isCurrentTabStop:x,hasTabStop:$!=null}):O})})});ky.displayName=Ty;var dX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fX(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function hX(t,n,s){const r=fX(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return dX[r]}function Py(t,n=!1){const s=document.activeElement;for(const r of t)if(r===s||(r.focus({preventScroll:n}),document.activeElement!==s))return}function mX(t,n){return t.map((s,r)=>t[(n+r)%t.length])}var pX=jy,xX=ky,Rc="Tabs",[gX]=js(Rc,[wy]),zy=wy(),[bX,ah]=gX(Rc),Ny=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,onValueChange:i,defaultValue:u,orientation:O="horizontal",dir:f,activationMode:m="automatic",...p}=t,g=Af(f),[x,b]=vc({prop:r,onChange:i,defaultProp:u??"",caller:Rc});return c.jsx(bX,{scope:s,baseId:pl(),value:x,onValueChange:b,orientation:O,dir:g,activationMode:m,children:c.jsx(De.div,{dir:g,"data-orientation":O,...p,ref:n})})});Ny.displayName=Rc;var Ry="TabsList",Xy=y.forwardRef((t,n)=>{const{__scopeTabs:s,loop:r=!0,...i}=t,u=ah(Ry,s),O=zy(s);return c.jsx(pX,{asChild:!0,...O,orientation:u.orientation,dir:u.dir,loop:r,children:c.jsx(De.div,{role:"tablist","aria-orientation":u.orientation,...i,ref:n})})});Xy.displayName=Ry;var _y="TabsTrigger",Zy=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,disabled:i=!1,...u}=t,O=ah(_y,s),f=zy(s),m=Ey(O.baseId,r),p=qy(O.baseId,r),g=r===O.value;return c.jsx(xX,{asChild:!0,...f,focusable:!i,active:g,children:c.jsx(De.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":p,"data-state":g?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:m,...u,ref:n,onMouseDown:Ze(t.onMouseDown,x=>{!i&&x.button===0&&x.ctrlKey===!1?O.onValueChange(r):x.preventDefault()}),onKeyDown:Ze(t.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&O.onValueChange(r)}),onFocus:Ze(t.onFocus,()=>{const x=O.activationMode!=="manual";!g&&!i&&x&&O.onValueChange(r)})})})});Zy.displayName=_y;var Cy="TabsContent",Ay=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,forceMount:i,children:u,...O}=t,f=ah(Cy,s),m=Ey(f.baseId,r),p=qy(f.baseId,r),g=r===f.value,x=y.useRef(g);return y.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),c.jsx(pa,{present:i||g,children:({present:b})=>c.jsx(De.div,{"data-state":g?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:p,tabIndex:0,...O,ref:n,style:{...t.style,animationDuration:x.current?"0s":void 0},children:b&&u})})});Ay.displayName=Cy;function Ey(t,n){return`${t}-trigger-${n}`}function qy(t,n){return`${t}-content-${n}`}var vX=Ny,yX=Xy,QX=Zy,SX=Ay;function $X({children:t,...n}){return c.jsx(vX,{...n,children:t})}function wX({children:t,className:n,...s}){return c.jsx(yX,{className:ne("flex items-center gap-0 border-b border-border-subtle",n),...s,children:t})}function M1({children:t,className:n,...s}){return c.jsx(QX,{className:ne("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 Y1({children:t,className:n,...s}){return c.jsx(SX,{className:ne("flex-1 min-h-0",n),...s,children:t})}function jX({children:t,className:n,hover:s,...r}){return c.jsx("div",{className:ne("rounded-md border border-border bg-surface-1",s&&"hover:border-accent/50 hover:bg-surface-2 transition-all duration-150 cursor-pointer",n),...r,children:t})}function TX(){const t=L(r=>r.pendingApprovals),n=L(r=>r.approveRequest),s=L(r=>r.rejectRequest);return t.length===0?null:c.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(wc,{size:13,className:"text-warning"}),c.jsxs("span",{className:"text-xs font-semibold text-warning font-sans",children:["Pending Approval (",t.length,")"]})]}),t.map(r=>{var i,u,O;return c.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-warning/5 border border-warning/20",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[r.agentName,": ",((i=r.action)==null?void 0:i.description)||((u=r.action)==null?void 0:u.type)||"action"]}),((O=r.action)==null?void 0:O.filePath)&&c.jsx("div",{className:"text-2xs text-text-3 font-mono truncate mt-0.5",children:r.action.filePath}),c.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:Wt(r.requestedAt)})]}),c.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[c.jsxs(Ne,{variant:"primary",size:"sm",onClick:()=>n(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[c.jsx(wb,{size:11})," Approve"]}),c.jsxs(Ne,{variant:"danger",size:"sm",onClick:()=>s(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[c.jsx(k5,{size:11})," Reject"]})]})]},r.id)})]})}function kX(){const t=L(m=>m.resolvedApprovals),[n,s]=y.useState([]),[r,i]=y.useState(!0);y.useEffect(()=>{const m=setInterval(u,4e3);return u(),()=>clearInterval(m)},[]);async function u(){try{const m=await ae.get("/pm/history");s(m.history||m||[])}catch{}i(!1)}const O=new Set,f=[...t,...n].filter(m=>{const p=m.id||`${m.agentName}-${m.timestamp}`;return O.has(p)?!1:(O.add(p),!0)});return r&&f.length===0?c.jsx("div",{className:"p-4 space-y-2",children:[...Array(4)].map((m,p)=>c.jsx(la,{className:"h-12 rounded-md"},p))}):c.jsxs(ka,{className:"flex-1",children:[c.jsx(TX,{}),c.jsxs("div",{className:"p-4 space-y-2",children:[f.length===0&&c.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[c.jsx(Ur,{size:32,className:"mx-auto mb-2"}),c.jsx("p",{className:"text-sm",children:"No approval history"}),c.jsx("p",{className:"text-2xs text-text-4 mt-1",children:'Approvals appear when agents use "Agent Approve" permission mode'})]}),f.map((m,p)=>{var g;return c.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"?c.jsx(Ur,{size:14,className:"text-success flex-shrink-0"}):c.jsx(uk,{size:14,className:"text-danger flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"text-xs text-text-0 font-sans truncate",children:[m.agentName,": ",((g=m.action)==null?void 0:g.description)||m.action||"action"]}),m.reason&&c.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:m.reason})]}),c.jsx("span",{className:"text-2xs text-text-4 font-sans flex-shrink-0",children:Wt(m.resolvedAt||m.timestamp)})]},m.id||p)})]})]})}function PX(){const[t,n]=y.useState([]),[s,r]=y.useState(!0),i=Nc();y.useEffect(()=>{const f=setInterval(u,1e4);return u(),()=>clearInterval(f)},[]);async function u(){try{const f=await ae.get("/schedules");n(f.schedules||f||[])}catch{}r(!1)}async function O(f,m){try{await ae.post(`/schedules/${f}/${m?"disable":"enable"}`),u()}catch(p){i.error("Failed to toggle schedule",p.message)}}return s?c.jsx("div",{className:"p-4 space-y-2",children:[...Array(3)].map((f,m)=>c.jsx(la,{className:"h-16 rounded-md"},m))}):c.jsx(ka,{className:"flex-1",children:c.jsxs("div",{className:"p-4 space-y-2",children:[t.length===0&&c.jsxs("div",{className:"text-center py-12 text-text-4 font-sans",children:[c.jsx(ac,{size:32,className:"mx-auto mb-2"}),c.jsx("p",{className:"text-sm",children:"No schedules configured"})]}),t.map(f=>c.jsx(jX,{className:"p-3",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:f.name}),c.jsx(ot,{variant:f.enabled?"success":"default",children:f.enabled?"Active":"Paused"})]}),c.jsxs("div",{className:"text-2xs text-text-3 font-mono mt-0.5",children:[f.cron," · ",f.role]})]}),c.jsx(Ne,{variant:"ghost",size:"sm",onClick:()=>O(f.id,f.enabled),children:f.enabled?"Pause":"Enable"})]})},f.id))]})})}function zX(){return c.jsxs($X,{defaultValue:"approvals",className:"flex flex-col h-full",children:[c.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[c.jsx("div",{className:"flex items-center gap-4 mb-0",children:c.jsx("h2",{className:"text-base font-semibold text-text-0 font-sans",children:"Management"})}),c.jsxs(wX,{className:"border-b-0",children:[c.jsx(M1,{value:"approvals",children:"Approvals"}),c.jsx(M1,{value:"schedules",children:"Schedules"})]})]}),c.jsx(Y1,{value:"approvals",className:"flex-1 min-h-0",children:c.jsx(kX,{})}),c.jsx(Y1,{value:"schedules",className:"flex-1 min-h-0",children:c.jsx(PX,{})})]})}const NX={code:"Code",general:"General"},RX={light:"text-success",medium:"text-accent",heavy:"text-warning"};function XX(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function My({hardware:t}){if(!t)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:r}=t;return c.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[c.jsx(Nf,{size:14,className:"text-text-3 flex-shrink-0"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[c.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-text-4",children:"·"}),c.jsx("span",{className:"text-text-2",children:s.name})]}),r&&c.jsx(ot,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function _X({onRecheck:t}){const[n,s]=y.useState(null),[r,i]=y.useState(!1),[u,O]=y.useState(!1),[f,m]=y.useState(!1),p=L(C=>C.addToast);y.useEffect(()=>{ae.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function g(){i(!0);try{const C=await ae.post("/providers/ollama/check");s(C),C.installed&&C.serverRunning?(p("success","Ollama is ready!"),t()):C.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}i(!1)}async function x(){O(!0);try{if((await ae.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");const q=await ae.post("/providers/ollama/check");s(q),q.serverRunning&&t()}}catch(C){p("error","Could not start server",C.message)}O(!1)}function b(C){navigator.clipboard.writeText(C),m(!0),setTimeout(()=>m(!1),2e3)}if(!n)return c.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:Q,install:j,requirements:$,installed:w,serverRunning:k}=n,N=Q.totalRamGb>=$.minRAM,Z=Q.recommended;return c.jsxs("div",{className:"space-y-3 p-3",children:[c.jsx(My,{hardware:Q}),N?c.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[c.jsx(Gn,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),c.jsxs("div",{className:"text-xs font-sans",children:[c.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),c.jsx("span",{className:"text-text-2 ml-1",children:Z.code?`Recommended: ${Z.code}`:`${Q.totalRamGb} GB RAM available`})]})]}):c.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[c.jsx(Sl,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),c.jsxs("div",{className:"text-xs font-sans text-text-2",children:[c.jsxs("span",{className:"text-warning font-semibold",children:[Q.totalRamGb," GB RAM detected."]})," ","Minimum ",$.minRAM," GB needed. Smallest models may still work."]})]}),w&&!k&&c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[c.jsx(Sl,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),c.jsxs("div",{className:"text-xs font-sans text-text-2",children:[c.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."]})]}),c.jsxs(Ne,{variant:"primary",size:"md",onClick:x,disabled:u,className:"w-full gap-1.5",children:[c.jsx(Hn,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!w&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.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:j.command}),c.jsxs(Ne,{variant:"secondary",size:"sm",onClick:()=>b(j.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[f?c.jsx(Gn,{size:12}):c.jsx(Wd,{size:12}),f?"Copied":"Copy"]})]}),j.alt&&c.jsx("p",{className:"text-2xs text-text-4 font-sans",children:j.alt})]}),c.jsxs(Ne,{variant:"secondary",size:"md",onClick:g,disabled:r,className:"w-full gap-1.5",children:[c.jsx(Nl,{size:12,className:r?"animate-spin":""}),r?"Checking...":w?"Check again":"I installed it — check again"]})]})}function ZX({model:t,isInstalled:n,isRecommended:s,canRun:r,onPull:i,onDelete:u,pulling:O}){const f=O===t.id;return c.jsxs("div",{className:ne("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!r&&"opacity-40"),children:[n?c.jsx(Gn,{size:12,className:"text-success flex-shrink-0"}):c.jsx("div",{className:"w-3"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&c.jsx(kb,{size:10,className:"text-warning flex-shrink-0"})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[c.jsx("span",{className:ne("text-2xs font-semibold font-sans",RX[t.tier]),children:t.tier}),c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:XX(t.sizeGb)}),c.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),n?c.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:c.jsx(zb,{size:12})}):r?c.jsx(Ne,{variant:"secondary",size:"sm",onClick:()=>i(t.id),disabled:!!O,className:"h-7 px-2 text-2xs gap-1",children:f?c.jsxs(c.Fragment,{children:[c.jsx(Nl,{size:10,className:"animate-spin"})," Pulling..."]}):c.jsxs(c.Fragment,{children:[c.jsx(kf,{size:10})," Pull"]})}):c.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function CX({onModelChange:t}){var q,X;const[n,s]=y.useState(null),[r,i]=y.useState(null),[u,O]=y.useState("code"),[f,m]=y.useState(!1),p=L(G=>G.addToast);function g(){ae.get("/providers/ollama/models").then(s).catch(()=>{})}y.useEffect(()=>{g()},[]);async function x(G){i(G);try{await ae.post("/providers/ollama/pull",{model:G}),p("success",`Pulled ${G}`),g(),t&&t()}catch(U){p("error",`Pull failed: ${U.message}`)}i(null)}async function b(G){try{await ae.delete(`/providers/ollama/models/${encodeURIComponent(G)}`),p("info",`Removed ${G}`),g(),t&&t()}catch(U){p("error",`Delete failed: ${U.message}`)}}if(!n)return c.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:Q,catalog:j,hardware:$}=n,w=new Set(Q.map(G=>G.id)),k=$.totalRamGb,N=[(q=$.recommended)==null?void 0:q.code,(X=$.recommended)==null?void 0:X.general].filter(Boolean),Z=j.filter(G=>G.category===u),C=f?Z:Z.filter(G=>G.ramGb<=k);return c.jsxs("div",{className:"space-y-2 p-3",children:[c.jsx(My,{hardware:$}),Q.length>0&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[c.jsx(mb,{size:12,className:"text-text-3"}),c.jsx("span",{className:"font-semibold",children:Q.length})," model",Q.length!==1?"s":""," installed"]}),c.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(NX).map(([G,U])=>c.jsx("button",{onClick:()=>O(G),className:ne("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",u===G?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:U},G))}),c.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[C.map(G=>c.jsx(ZX,{model:G,isInstalled:w.has(G.id),isRecommended:N.includes(G.id),canRun:G.ramGb<=k,onPull:x,onDelete:b,pulling:r},G.id)),C.length===0&&c.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",u," models available for your hardware"]})]}),!f&&Z.length>C.length&&c.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:[c.jsx(Ln,{size:10}),"Show ",Z.length-C.length," more (exceed your RAM)"]})]})}function Yy({isInstalled:t,onModelChange:n}){const[s,r]=y.useState(!1),[i,u]=y.useState(!1);return y.useEffect(()=>{t?ae.post("/providers/ollama/check").then(O=>{r(O.installed&&O.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),i?s?c.jsx(CX,{onModelChange:n}):c.jsx(_X,{onRecheck:()=>{r(!0),n&&n()}}):c.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}function kd({icon:t,title:n,description:s}){return c.jsxs("div",{className:"mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2.5 mb-1",children:[c.jsx("div",{className:"w-7 h-7 rounded-md bg-accent/10 flex items-center justify-center flex-shrink-0",children:c.jsx(t,{size:14,className:"text-accent"})}),c.jsx("h3",{className:"text-sm font-bold text-text-0 font-sans tracking-tight",children:n})]}),s&&c.jsx("p",{className:"text-xs text-text-3 font-sans ml-[38px]",children:s})]})}function xs({icon:t,label:n,description:s,children:r}){return c.jsxs("div",{className:"flex items-center gap-3.5 py-3 border-b border-border-subtle last:border-b-0",children:[c.jsx(t,{size:15,className:"text-text-4 flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans",children:n}),s&&c.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5 leading-relaxed",children:s})]}),c.jsx("div",{className:"flex-shrink-0",children:r})]})}function AX({value:t,onChange:n}){return c.jsx("button",{onClick:()=>n(!t),className:ne("w-10 h-[22px] rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:c.jsx("div",{className:ne("w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform",t?"translate-x-[18px]":"translate-x-0")})})}function Xo({value:t,onChange:n,min:s,max:r,step:i,suffix:u}){return c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("input",{type:"number",value:t,onChange:O=>n(parseInt(O.target.value,10)||s||0),className:"w-20 h-8 px-2.5 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",min:s,max:r,step:i}),u&&c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:u})]})}function EX({provider:t,onKeyChange:n}){var $;const[s,r]=y.useState(!1),[i,u]=y.useState(""),[O,f]=y.useState(!1),[m,p]=y.useState(!1),g=L(w=>w.addToast),x=t.installed||t.hasKey,b=t.authType==="local";async function Q(){if(i.trim())try{await ae.post(`/credentials/${t.id}`,{key:i.trim()}),g("success",`API key set for ${t.name}`),u(""),p(!1),n&&n()}catch(w){g("error","Failed to set key",w.message)}}async function j(){try{await ae.delete(`/credentials/${t.id}`),g("info",`API key removed for ${t.name}`),n&&n()}catch(w){g("error","Failed to remove key",w.message)}}return c.jsxs("div",{className:ne("rounded-lg border overflow-hidden transition-colors",x?"border-border-subtle bg-surface-1":"border-border-subtle bg-surface-1/60"),children:[c.jsxs("button",{onClick:()=>r(!s),className:"w-full flex items-center gap-3 px-4 py-3 cursor-pointer hover:bg-surface-4/30 transition-colors",children:[c.jsx("div",{className:ne("w-2 h-2 rounded-full flex-shrink-0",x?"bg-success":"bg-text-4/40")}),c.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans flex-1 text-left",children:t.name}),x?c.jsxs(ot,{variant:"success",className:"text-2xs gap-1",children:[c.jsx(Gn,{size:9})," Ready"]}):c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:b?"Not installed":"No key"}),c.jsx(Ln,{size:13,className:ne("text-text-4 transition-transform",s&&"rotate-180")})]}),s&&c.jsx("div",{className:"border-t border-border-subtle",children:b?c.jsx(Yy,{isInstalled:x,onModelChange:n}):c.jsxs("div",{className:"px-4 py-3 space-y-3",children:[(($=t.models)==null?void 0:$.length)>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(w=>c.jsx("span",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-2",children:w.name||w.id},w.id))}),m?c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx("input",{value:i,onChange:w=>u(w.target.value),onKeyDown:w=>w.key==="Enter"&&Q(),type:O?"text":"password",placeholder:`Paste ${t.name} API key...`,className:"w-full h-8 px-3 pr-8 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}),c.jsx("button",{onClick:()=>f(!O),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:O?c.jsx(db,{size:11}):c.jsx($c,{size:11})})]}),c.jsx(Ne,{variant:"primary",size:"sm",onClick:Q,disabled:!i.trim(),className:"h-8 px-2.5 text-2xs",children:"Save"}),c.jsx(Ne,{variant:"ghost",size:"sm",onClick:()=>{p(!1),u("")},className:"h-8 px-2.5 text-2xs",children:"Cancel"})]}):c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("code",{className:"flex-1 h-8 px-3 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-3 truncate",children:t.hasKey?"••••••••••••••••••••":"No API key configured"}),c.jsxs(Ne,{variant:"secondary",size:"sm",onClick:()=>{p(!0),f(!1),u("")},className:"h-8 px-2.5 text-2xs gap-1",children:[c.jsx(xb,{size:10})," ",t.hasKey?"Update":"Add Key"]}),t.hasKey&&c.jsx(Ne,{variant:"danger",size:"sm",onClick:j,className:"h-8 px-2.5 text-2xs",children:"Remove"})]}),c.jsx("div",{className:"text-2xs text-text-4 font-sans",children:t.authType==="subscription"?"Uses your Claude subscription — no API key needed":`Requires a ${t.name} API key`})]})})]})}function qX(){const[t,n]=y.useState([]),[s,r]=y.useState(null),[i,u]=y.useState(null),[O,f]=y.useState(!0),m=L(w=>w.addToast),p=L(w=>w.marketplaceUser),g=L(w=>w.marketplaceAuthenticated),x=L(w=>w.marketplaceLogin),b=L(w=>w.marketplaceLogout);function Q(){ae.get("/providers").then(w=>n(Array.isArray(w)?w:[])).catch(()=>{})}y.useEffect(()=>{Promise.all([ae.get("/providers"),ae.get("/config"),ae.get("/status")]).then(([w,k,N])=>{n(Array.isArray(w)?w:[]),r(k),u(N),f(!1)}).catch(()=>f(!1))},[]);async function j(w,k){try{const N=await ae.patch("/config",{[w]:k});r(N)}catch(N){m("error","Update failed",N.message)}}if(O)return c.jsxs("div",{className:"h-full bg-surface-0 p-8",children:[c.jsx(la,{className:"h-8 w-40 rounded-md mb-8"}),c.jsx("div",{className:"space-y-4",children:[...Array(6)].map((w,k)=>c.jsx(la,{className:"h-16 rounded-lg"},k))})]});const $=t.filter(w=>w.installed||w.hasKey);return c.jsx(ka,{className:"h-full",children:c.jsxs("div",{className:"max-w-2xl mx-auto px-8 py-8",children:[c.jsxs("div",{className:"mb-10",children:[c.jsx("h1",{className:"text-xl font-bold text-text-0 font-sans tracking-tight",children:"Settings"}),c.jsx("p",{className:"text-sm text-text-3 font-sans mt-1",children:"Manage providers, configuration, and your account."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx(kd,{icon:Hd,title:"Providers",description:"AI providers that power your agents. Each provider manages its own authentication."}),c.jsx("div",{className:"space-y-2",children:t.map(w=>c.jsx(EX,{provider:w,onKeyChange:Q},w.id))})]}),s&&c.jsxs("section",{className:"mb-10",children:[c.jsx(kd,{icon:Rf,title:"Configuration",description:"Daemon behavior and defaults. Changes save automatically."}),c.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4",children:[c.jsx(xs,{icon:Ob,label:"Default Provider",description:"Provider for new agents",children:c.jsx("select",{value:s.defaultProvider||"claude-code",onChange:w=>j("defaultProvider",w.target.value),className:"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 appearance-none pr-7",children:$.map(w=>c.jsx("option",{value:w.id,children:w.name},w.id))})}),c.jsx(xs,{icon:Gr,label:"Working Directory",description:"Default root directory for agents",children:c.jsx("code",{className:"h-8 px-2.5 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 max-w-[200px] truncate",children:s.defaultWorkingDir||"Project root"})}),c.jsx(xs,{icon:Rl,label:"Auto Rotation",description:"Rotate agents when context degrades",children:c.jsx(AX,{value:s.autoRotation!==!1,onChange:w=>j("autoRotation",w)})}),c.jsx(xs,{icon:hb,label:"Rotation Threshold",description:"Tokens before rotation (0 = adaptive)",children:c.jsx(Xo,{value:s.rotationThreshold||0,onChange:w=>j("rotationThreshold",w),min:0,step:1e4})}),c.jsx(xs,{icon:wb,label:"QC Threshold",description:"Agents count that triggers auto-QC",children:c.jsx(Xo,{value:s.qcThreshold||4,onChange:w=>j("qcThreshold",w),min:2,max:20})}),c.jsx(xs,{icon:jc,label:"Max Agents",description:"Concurrent agent limit (0 = unlimited)",children:c.jsx(Xo,{value:s.maxAgents||0,onChange:w=>j("maxAgents",w),min:0,max:50})}),c.jsx(xs,{icon:Lr,label:"Journalist Interval",description:"Seconds between synthesis cycles",children:c.jsx(Xo,{value:s.journalistInterval||120,onChange:w=>j("journalistInterval",w),min:30,step:30,suffix:"sec"})})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx(kd,{icon:Yo,title:"Account",description:"Marketplace identity and daemon information."}),c.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 p-4 mb-3",children:[c.jsx("div",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider mb-3",children:"Marketplace"}),g?c.jsxs("div",{className:"flex items-center gap-3",children:[p!=null&&p.avatar?c.jsx("img",{src:p.avatar,alt:"",className:"w-9 h-9 rounded-full"}):c.jsx("div",{className:"w-9 h-9 rounded-full bg-accent/10 flex items-center justify-center",children:c.jsx(Yo,{size:16,className:"text-accent"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-semibold text-text-0 font-sans",children:(p==null?void 0:p.displayName)||"User"}),c.jsx("div",{className:"text-2xs text-text-3 font-sans",children:(p==null?void 0:p.email)||"Connected"})]}),c.jsxs(Ne,{variant:"ghost",size:"sm",onClick:b,className:"h-8 px-2.5 text-2xs gap-1 text-text-3",children:[c.jsx(bb,{size:11})," Sign Out"]})]}):c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-9 h-9 rounded-full bg-surface-4 flex items-center justify-center",children:c.jsx(Yo,{size:16,className:"text-text-4"})}),c.jsx("div",{className:"flex-1",children:c.jsx("div",{className:"text-xs text-text-2 font-sans",children:"Sign in for premium skills, ratings, and favorites."})}),c.jsxs(Ne,{variant:"primary",size:"sm",onClick:x,className:"h-8 px-3 text-2xs gap-1.5",children:[c.jsx(Pf,{size:11})," Sign In"]})]})]}),c.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 overflow-hidden",children:[c.jsx("div",{className:"px-4 py-2.5 border-b border-border-subtle",children:c.jsx("div",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Daemon"})}),c.jsx("div",{className:"grid grid-cols-2 gap-x-6",children:[["Version",(i==null?void 0:i.version)||"—"],["Port",(i==null?void 0:i.port)||"31415"],["Host",(i==null?void 0:i.host)||"127.0.0.1"],["PID",(i==null?void 0:i.pid)||"—"],["Uptime",i!=null&&i.uptime?`${Math.round(i.uptime/60)}m`:"—"],["Agents",(i==null?void 0:i.agents)||"0"]].map(([w,k])=>c.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle last:border-b-0",children:[c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:w}),c.jsx("span",{className:"text-2xs text-text-1 font-mono",children:k})]},w))})]})]}),c.jsx("div",{className:"text-center pb-6",children:c.jsxs("p",{className:"text-2xs text-text-4 font-sans",children:["Groove Dev · ",c.jsx("a",{href:"https://groovedev.ai",target:"_blank",rel:"noopener",className:"text-accent hover:underline",children:"groovedev.ai"})," · ",c.jsx("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener",className:"text-accent hover:underline",children:"docs"})]})})]})})}const cf=[];function Vy(t){const n=(t||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:$c,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:fb,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:Xl,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:ni,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:Dd,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:Sl,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:Rl,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:Hn,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:W5,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:Dd,color:"text-success",label:"Done"}:{icon:Bn,color:"text-text-3",label:"Activity"}}function Uy({text:t}){if(!t)return null;const n=t.split(/(```[\s\S]*?```|`[^`]+`)/g);return c.jsx("span",{children:n.map((s,r)=>{if(s.startsWith("```")&&s.endsWith("```")){const i=s.slice(3,-3).replace(/^\w+\n/,"");return c.jsx("pre",{className:"my-2 p-3 rounded-lg bg-black/30 text-[12px] font-mono text-text-1 overflow-x-auto whitespace-pre-wrap border border-white/[0.04] leading-relaxed",children:i},r)}return s.startsWith("`")&&s.endsWith("`")?c.jsx("code",{className:"px-1 py-px rounded bg-white/[0.06] text-[12px] font-mono text-accent",children:s.slice(1,-1)},r):c.jsx("span",{children:s.split(/(\*\*[^*]+\*\*)/g).map((i,u)=>i.startsWith("**")&&i.endsWith("**")?c.jsx("strong",{className:"font-semibold text-text-0",children:i.slice(2,-2)},u):i)},r)})})}function MX({msg:t}){return c.jsx("div",{className:"flex justify-end pl-12",children:c.jsxs("div",{className:"max-w-[85%]",children:[c.jsx("div",{className:ne("px-3.5 py-2.5 rounded-lg rounded-br-sm",t.isQuery?"bg-info/12 text-text-0":"bg-accent/12 text-text-0"),children:c.jsx("div",{className:"text-[13px] font-sans whitespace-pre-wrap break-words leading-relaxed",children:c.jsx(Uy,{text:t.text})})}),c.jsx("div",{className:"text-2xs text-text-4 font-sans mt-1 text-right",children:Wt(t.timestamp)})]})})}function YX({msg:t}){return c.jsxs("div",{className:"pr-8",children:[c.jsx("div",{className:"border-l-2 border-accent/30 pl-3.5 py-0.5",children:c.jsx("div",{className:"text-[13px] text-text-1 font-sans whitespace-pre-wrap break-words leading-relaxed",children:c.jsx(Uy,{text:t.text})})}),c.jsx("div",{className:"text-2xs text-text-4 font-sans mt-1 pl-4",children:Wt(t.timestamp)})]})}function VX({msg:t}){return c.jsxs("div",{className:"flex items-center gap-3 py-1",children:[c.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),c.jsx("span",{className:"text-2xs text-text-4 font-sans flex-shrink-0",children:t.text}),c.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function V1({entry:t}){var i;const n=Vy(t.text),s=n.icon,r=((i=t.text)==null?void 0:i.length)>100?t.text.slice(0,100)+"...":t.text;return c.jsxs("div",{className:"flex items-center gap-2 py-px group",children:[c.jsx(s,{size:9,className:ne(n.color,"flex-shrink-0 opacity-60")}),c.jsx("p",{className:"text-2xs text-text-3 font-sans truncate flex-1 min-w-0",children:r}),c.jsx("span",{className:"text-2xs text-text-4 font-mono opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0",children:Wt(t.timestamp)})]})}function UX({entries:t}){const[n,s]=y.useState(!1);if(t.length===1)return c.jsx(V1,{entry:t[0]});const r=n?t:[t[0]],i=t.length-1;return c.jsxs("div",{className:"space-y-px py-0.5 border-l border-border-subtle pl-3 ml-1",children:[r.map((u,O)=>c.jsx(V1,{entry:u},O)),!n&&i>0&&c.jsxs("button",{onClick:()=>s(!0),className:"flex items-center gap-1 text-2xs text-text-4 hover:text-text-2 font-sans cursor-pointer py-0.5",children:[c.jsx(Ln,{size:8}),c.jsxs("span",{children:[i," more"]})]})]})}function GX({agent:t}){const n=L(f=>f.activityLog[t.id])||cf,s=n[n.length-1],r=s?Vy(s.text):null,i=(r==null?void 0:r.icon)||Bn,u=s&&Date.now()-s.timestamp<1e4,O=u&&s.text?s.text.length>50?s.text.slice(0,50)+"...":s.text:null;return c.jsxs("div",{className:"flex items-center gap-2 px-4 h-7 border-b border-border-subtle bg-surface-0/50 flex-shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",children:[c.jsxs("div",{className:"relative flex items-center justify-center w-3.5 h-3.5",children:[c.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/20 animate-ping",style:{animationDuration:"2s"}}),c.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?c.jsxs(c.Fragment,{children:[c.jsx(i,{size:9,className:ne(r.color,"flex-shrink-0")}),c.jsx("span",{className:"text-2xs text-text-2 font-sans truncate",children:O})]}):c.jsx("span",{className:"text-2xs text-text-3 font-sans",children:"Processing..."})]}),c.jsxs("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:[LX(t.tokensUsed)," tok"]})]})}function LX(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function DX({agent:t}){const n=L(w=>w.chatHistory[t.id])||cf,s=L(w=>w.activityLog[t.id])||cf,r=L(w=>w.instructAgent),i=L(w=>w.queryAgent),[u,O]=y.useState(""),[f,m]=y.useState(!1),p=y.useRef(null),g=y.useRef(null),x=y.useMemo(()=>{const w=[],k=new Set(n.map(q=>q.text));for(const q of n)w.push({...q,kind:"chat",ts:q.timestamp});const N=s.slice(-30);for(const q of N)(q.text||"").trim()&&!k.has(q.text)&&w.push({...q,kind:"activity",ts:q.timestamp});w.sort((q,X)=>q.ts-X.ts);const Z=[];let C=[];for(const q of w)q.kind==="activity"?C.push(q):(C.length>0&&(Z.push({kind:"activity-group",entries:C}),C=[]),Z.push(q));return C.length>0&&Z.push({kind:"activity-group",entries:C}),Z},[n,s]);y.useEffect(()=>{p.current&&requestAnimationFrame(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)})},[x.length]);async function b(){var k;const w=u.trim();if(!(!w||f)){if(w==="/rotate"){const N=L.getState().rotateAgent;O("");try{await N(t.id)}catch{}return}O(""),m(!0);try{w.startsWith("?")?await i(t.id,w.slice(1).trim()):await r(t.id,w)}catch{}m(!1),(k=g.current)==null||k.focus()}}function Q(w){w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),b())}const j=u.startsWith("?"),$=t.status==="running"||t.status==="starting";return c.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[$&&c.jsx(GX,{agent:t}),c.jsxs("div",{ref:p,className:"flex-1 overflow-y-auto px-4 py-3 space-y-3",children:[x.length===0&&c.jsx("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:$?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"relative w-10 h-10 mb-4",children:[c.jsx("span",{className:"absolute inset-0 rounded-full border border-accent/25 animate-ping",style:{animationDuration:"2.5s"}}),c.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/6 flex items-center justify-center",children:c.jsx("span",{className:"w-2 h-2 rounded-full bg-accent animate-pulse"})})]}),c.jsxs("p",{className:"text-sm font-medium text-text-1 font-sans",children:[t.name," initializing"]}),c.jsx("p",{className:"text-xs text-text-3 font-sans mt-1.5",children:"Scanning workspace and loading context"})]}):c.jsxs(c.Fragment,{children:[c.jsx(zf,{size:18,className:"text-text-4 mb-3"}),c.jsx("p",{className:"text-sm font-medium text-text-1 font-sans",children:"Session complete"}),c.jsx("p",{className:"text-xs text-text-3 font-sans mt-1.5",children:"Reply to continue with full context"})]})}),x.map((w,k)=>w.kind==="activity-group"?c.jsx(UX,{entries:w.entries},`grp-${k}`):w.from==="user"?c.jsx(MX,{msg:w},`msg-${k}`):w.from==="system"?c.jsx(VX,{msg:w},`msg-${k}`):c.jsx(YX,{msg:w,agent:t},`msg-${k}`)),f&&c.jsx("div",{className:"border-l-2 border-accent/20 pl-3.5 py-2",children:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"w-1 h-1 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"0ms"}}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"150ms"}}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"300ms"}})]})})]}),c.jsxs("div",{className:"border-t border-border-subtle px-3 py-2.5 bg-surface-0/30 flex-shrink-0",children:[c.jsxs("div",{className:"flex items-end gap-2",children:[c.jsx("textarea",{ref:g,value:u,onChange:w=>O(w.target.value),onKeyDown:Q,placeholder:$?j?"Query (read-only)...":"Instruct agent...":"Continue conversation...",rows:1,className:ne("flex-1 resize-none rounded-lg px-3 py-2 text-[13px]","bg-surface-0 border text-text-0 font-sans","placeholder:text-text-4","focus:outline-none focus:ring-1","max-h-[100px] min-h-[36px]",j?"border-info/25 focus:ring-info/30":"border-border-subtle focus:ring-accent/30"),style:{height:Math.min(Math.max(36,u.split(`
|
|
491
|
+
`).length*20),100)}}),c.jsx("button",{onClick:b,disabled:!u.trim()||f,className:ne("w-8 h-8 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0","disabled:opacity-15 disabled:cursor-not-allowed",u.trim()?"bg-accent text-surface-0 hover:bg-accent/85":"bg-transparent text-text-4"),children:f?c.jsx(gb,{size:14,className:"animate-spin"}):c.jsx(S5,{size:14})})]}),j&&c.jsx("div",{className:"text-2xs text-info/70 font-sans mt-1 pl-1",children:"Read-only query — agent keeps running"})]})]})}var Pd="focusScope.autoFocusOnMount",zd="focusScope.autoFocusOnUnmount",U1={bubbles:!1,cancelable:!0},WX="FocusScope",Gy=y.forwardRef((t,n)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:u,...O}=t,[f,m]=y.useState(null),p=Pt(i),g=Pt(u),x=y.useRef(null),b=lt(n,$=>m($)),Q=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let $=function(Z){if(Q.paused||!f)return;const C=Z.target;f.contains(C)?x.current=C:En(x.current,{select:!0})},w=function(Z){if(Q.paused||!f)return;const C=Z.relatedTarget;C!==null&&(f.contains(C)||En(x.current,{select:!0}))},k=function(Z){if(document.activeElement===document.body)for(const q of Z)q.removedNodes.length>0&&En(f)};document.addEventListener("focusin",$),document.addEventListener("focusout",w);const N=new MutationObserver(k);return f&&N.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",$),document.removeEventListener("focusout",w),N.disconnect()}}},[r,f,Q.paused]),y.useEffect(()=>{if(f){L1.add(Q);const $=document.activeElement;if(!f.contains($)){const k=new CustomEvent(Pd,U1);f.addEventListener(Pd,p),f.dispatchEvent(k),k.defaultPrevented||(BX(JX(Ly(f)),{select:!0}),document.activeElement===$&&En(f))}return()=>{f.removeEventListener(Pd,p),setTimeout(()=>{const k=new CustomEvent(zd,U1);f.addEventListener(zd,g),f.dispatchEvent(k),k.defaultPrevented||En($??document.body,{select:!0}),f.removeEventListener(zd,g),L1.remove(Q)},0)}}},[f,p,g,Q]);const j=y.useCallback($=>{if(!s&&!r||Q.paused)return;const w=$.key==="Tab"&&!$.altKey&&!$.ctrlKey&&!$.metaKey,k=document.activeElement;if(w&&k){const N=$.currentTarget,[Z,C]=HX(N);Z&&C?!$.shiftKey&&k===C?($.preventDefault(),s&&En(Z,{select:!0})):$.shiftKey&&k===Z&&($.preventDefault(),s&&En(C,{select:!0})):k===N&&$.preventDefault()}},[s,r,Q.paused]);return c.jsx(De.div,{tabIndex:-1,...O,ref:b,onKeyDown:j})});Gy.displayName=WX;function BX(t,{select:n=!1}={}){const s=document.activeElement;for(const r of t)if(En(r,{select:n}),document.activeElement!==s)return}function HX(t){const n=Ly(t),s=G1(n,t),r=G1(n.reverse(),t);return[s,r]}function Ly(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function G1(t,n){for(const s of t)if(!IX(s,{upTo:n}))return s}function IX(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 FX(t){return t instanceof HTMLInputElement&&"select"in t}function En(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&FX(t)&&n&&t.select()}}var L1=KX();function KX(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=D1(t,n),t.unshift(n)},remove(n){var s;t=D1(t,n),(s=t[0])==null||s.resume()}}}function D1(t,n){const s=[...t],r=s.indexOf(n);return r!==-1&&s.splice(r,1),s}function JX(t){return t.filter(n=>n.tagName!=="A")}var Nd=0;function e_(){y.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??W1()),document.body.insertAdjacentElement("beforeend",t[1]??W1()),Nd++,()=>{Nd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Nd--}},[])}function W1(){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 Qa=function(){return Qa=Object.assign||function(n){for(var s,r=1,i=arguments.length;r<i;r++){s=arguments[r];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},Qa.apply(this,arguments)};function Dy(t,n){var s={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(s[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(s[r[i]]=t[r[i]]);return s}function t_(t,n,s){if(s||arguments.length===2)for(var r=0,i=n.length,u;r<i;r++)(u||!(r in n))&&(u||(u=Array.prototype.slice.call(n,0,r)),u[r]=n[r]);return t.concat(u||Array.prototype.slice.call(n))}var Wo="right-scroll-bar-position",Bo="width-before-scroll-bar",a_="with-scroll-bars-hidden",n_="--removed-body-scroll-bar-size";function Rd(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function s_(t,n){var s=y.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(r){var i=s.value;i!==r&&(s.value=r,s.callback(r,i))}}}})[0];return s.callback=n,s.facade}var l_=typeof window<"u"?y.useLayoutEffect:y.useEffect,B1=new WeakMap;function r_(t,n){var s=s_(null,function(r){return t.forEach(function(i){return Rd(i,r)})});return l_(function(){var r=B1.get(s);if(r){var i=new Set(r),u=new Set(t),O=s.current;i.forEach(function(f){u.has(f)||Rd(f,null)}),u.forEach(function(f){i.has(f)||Rd(f,O)})}B1.set(s,t)},[t]),s}function i_(t){return t}function o_(t,n){n===void 0&&(n=i_);var s=[],r=!1,i={read:function(){if(r)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 O=n(u,r);return s.push(O),function(){s=s.filter(function(f){return f!==O})}},assignSyncMedium:function(u){for(r=!0;s.length;){var O=s;s=[],O.forEach(u)}s={push:function(f){return u(f)},filter:function(){return s}}},assignMedium:function(u){r=!0;var O=[];if(s.length){var f=s;s=[],f.forEach(u),O=s}var m=function(){var g=O;O=[],g.forEach(u)},p=function(){return Promise.resolve().then(m)};p(),s={push:function(g){O.push(g),p()},filter:function(g){return O=O.filter(g),s}}}};return i}function c_(t){t===void 0&&(t={});var n=o_(null);return n.options=Qa({async:!0,ssr:!1},t),n}var Wy=function(t){var n=t.sideCar,s=Dy(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Qa({},s))};Wy.isSideCarExport=!0;function u_(t,n){return t.useMedium(n),Wy}var By=c_(),Xd=function(){},Xc=y.forwardRef(function(t,n){var s=y.useRef(null),r=y.useState({onScrollCapture:Xd,onWheelCapture:Xd,onTouchMoveCapture:Xd}),i=r[0],u=r[1],O=t.forwardProps,f=t.children,m=t.className,p=t.removeScrollBar,g=t.enabled,x=t.shards,b=t.sideCar,Q=t.noRelative,j=t.noIsolation,$=t.inert,w=t.allowPinchZoom,k=t.as,N=k===void 0?"div":k,Z=t.gapMode,C=Dy(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=b,X=r_([s,n]),G=Qa(Qa({},C),i);return y.createElement(y.Fragment,null,g&&y.createElement(q,{sideCar:By,removeScrollBar:p,shards:x,noRelative:Q,noIsolation:j,inert:$,setCallbacks:u,allowPinchZoom:!!w,lockRef:s,gapMode:Z}),O?y.cloneElement(y.Children.only(f),Qa(Qa({},G),{ref:X})):y.createElement(N,Qa({},G,{className:m,ref:X}),f))});Xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xc.classNames={fullWidth:Bo,zeroRight:Wo};var O_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function d_(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=O_();return n&&t.setAttribute("nonce",n),t}function f_(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function h_(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var m_=function(){var t=0,n=null;return{add:function(s){t==0&&(n=d_())&&(f_(n,s),h_(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},p_=function(){var t=m_();return function(n,s){y.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},Hy=function(){var t=p_(),n=function(s){var r=s.styles,i=s.dynamic;return t(r,i),null};return n},x_={left:0,top:0,right:0,gap:0},_d=function(t){return parseInt(t||"",10)||0},g_=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],r=n[t==="padding"?"paddingTop":"marginTop"],i=n[t==="padding"?"paddingRight":"marginRight"];return[_d(s),_d(r),_d(i)]},b_=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return x_;var n=g_(t),s=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-s+n[2]-n[0])}},v_=Hy(),bl="data-scroll-locked",y_=function(t,n,s,r){var i=t.left,u=t.top,O=t.right,f=t.gap;return s===void 0&&(s="margin"),`
|
|
492
|
+
.`.concat(a_,` {
|
|
493
|
+
overflow: hidden `).concat(r,`;
|
|
494
|
+
padding-right: `).concat(f,"px ").concat(r,`;
|
|
495
|
+
}
|
|
496
|
+
body[`).concat(bl,`] {
|
|
497
|
+
overflow: hidden `).concat(r,`;
|
|
498
|
+
overscroll-behavior: contain;
|
|
499
|
+
`).concat([n&&"position: relative ".concat(r,";"),s==="margin"&&`
|
|
500
|
+
padding-left: `.concat(i,`px;
|
|
501
|
+
padding-top: `).concat(u,`px;
|
|
502
|
+
padding-right: `).concat(O,`px;
|
|
503
|
+
margin-left:0;
|
|
504
|
+
margin-top:0;
|
|
505
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
506
|
+
`),s==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.`).concat(Wo,` {
|
|
510
|
+
right: `).concat(f,"px ").concat(r,`;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.`).concat(Bo,` {
|
|
514
|
+
margin-right: `).concat(f,"px ").concat(r,`;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.`).concat(Wo," .").concat(Wo,` {
|
|
518
|
+
right: 0 `).concat(r,`;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.`).concat(Bo," .").concat(Bo,` {
|
|
522
|
+
margin-right: 0 `).concat(r,`;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
body[`).concat(bl,`] {
|
|
526
|
+
`).concat(n_,": ").concat(f,`px;
|
|
527
|
+
}
|
|
528
|
+
`)},H1=function(){var t=parseInt(document.body.getAttribute(bl)||"0",10);return isFinite(t)?t:0},Q_=function(){y.useEffect(function(){return document.body.setAttribute(bl,(H1()+1).toString()),function(){var t=H1()-1;t<=0?document.body.removeAttribute(bl):document.body.setAttribute(bl,t.toString())}},[])},S_=function(t){var n=t.noRelative,s=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;Q_();var u=y.useMemo(function(){return b_(i)},[i]);return y.createElement(v_,{styles:y_(u,!n,i,s?"":"!important")})},uf=!1;if(typeof window<"u")try{var _o=Object.defineProperty({},"passive",{get:function(){return uf=!0,!0}});window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{uf=!1}var dl=uf?{passive:!1}:!1,$_=function(t){return t.tagName==="TEXTAREA"},Iy=function(t,n){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!$_(t)&&s[n]==="visible")},w_=function(t){return Iy(t,"overflowY")},j_=function(t){return Iy(t,"overflowX")},I1=function(t,n){var s=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Fy(t,r);if(i){var u=Ky(t,r),O=u[1],f=u[2];if(O>f)return!0}r=r.parentNode}while(r&&r!==s.body);return!1},T_=function(t){var n=t.scrollTop,s=t.scrollHeight,r=t.clientHeight;return[n,s,r]},k_=function(t){var n=t.scrollLeft,s=t.scrollWidth,r=t.clientWidth;return[n,s,r]},Fy=function(t,n){return t==="v"?w_(n):j_(n)},Ky=function(t,n){return t==="v"?T_(n):k_(n)},P_=function(t,n){return t==="h"&&n==="rtl"?-1:1},z_=function(t,n,s,r,i){var u=P_(t,window.getComputedStyle(n).direction),O=u*r,f=s.target,m=n.contains(f),p=!1,g=O>0,x=0,b=0;do{if(!f)break;var Q=Ky(t,f),j=Q[0],$=Q[1],w=Q[2],k=$-w-u*j;(j||k)&&Fy(t,f)&&(x+=k,b+=j);var N=f.parentNode;f=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!m&&f!==document.body||m&&(n.contains(f)||n===f));return(g&&Math.abs(x)<1||!g&&Math.abs(b)<1)&&(p=!0),p},Zo=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},F1=function(t){return[t.deltaX,t.deltaY]},K1=function(t){return t&&"current"in t?t.current:t},N_=function(t,n){return t[0]===n[0]&&t[1]===n[1]},R_=function(t){return`
|
|
529
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
530
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
531
|
+
`)},X_=0,fl=[];function __(t){var n=y.useRef([]),s=y.useRef([0,0]),r=y.useRef(),i=y.useState(X_++)[0],u=y.useState(Hy)[0],O=y.useRef(t);y.useEffect(function(){O.current=t},[t]),y.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var $=t_([t.lockRef.current],(t.shards||[]).map(K1),!0).filter(Boolean);return $.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),$.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var f=y.useCallback(function($,w){if("touches"in $&&$.touches.length===2||$.type==="wheel"&&$.ctrlKey)return!O.current.allowPinchZoom;var k=Zo($),N=s.current,Z="deltaX"in $?$.deltaX:N[0]-k[0],C="deltaY"in $?$.deltaY:N[1]-k[1],q,X=$.target,G=Math.abs(Z)>Math.abs(C)?"h":"v";if("touches"in $&&G==="h"&&X.type==="range")return!1;var U=window.getSelection(),te=U&&U.anchorNode,H=te?te===X||te.contains(X):!1;if(H)return!1;var Oe=I1(G,X);if(!Oe)return!0;if(Oe?q=G:(q=G==="v"?"h":"v",Oe=I1(G,X)),!Oe)return!1;if(!r.current&&"changedTouches"in $&&(Z||C)&&(r.current=q),!q)return!0;var fe=r.current||q;return z_(fe,w,$,fe==="h"?Z:C)},[]),m=y.useCallback(function($){var w=$;if(!(!fl.length||fl[fl.length-1]!==u)){var k="deltaY"in w?F1(w):Zo(w),N=n.current.filter(function(q){return q.name===w.type&&(q.target===w.target||w.target===q.shadowParent)&&N_(q.delta,k)})[0];if(N&&N.should){w.cancelable&&w.preventDefault();return}if(!N){var Z=(O.current.shards||[]).map(K1).filter(Boolean).filter(function(q){return q.contains(w.target)}),C=Z.length>0?f(w,Z[0]):!O.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),p=y.useCallback(function($,w,k,N){var Z={name:$,delta:w,target:k,should:N,shadowParent:Z_(k)};n.current.push(Z),setTimeout(function(){n.current=n.current.filter(function(C){return C!==Z})},1)},[]),g=y.useCallback(function($){s.current=Zo($),r.current=void 0},[]),x=y.useCallback(function($){p($.type,F1($),$.target,f($,t.lockRef.current))},[]),b=y.useCallback(function($){p($.type,Zo($),$.target,f($,t.lockRef.current))},[]);y.useEffect(function(){return fl.push(u),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",m,dl),document.addEventListener("touchmove",m,dl),document.addEventListener("touchstart",g,dl),function(){fl=fl.filter(function($){return $!==u}),document.removeEventListener("wheel",m,dl),document.removeEventListener("touchmove",m,dl),document.removeEventListener("touchstart",g,dl)}},[]);var Q=t.removeScrollBar,j=t.inert;return y.createElement(y.Fragment,null,j?y.createElement(u,{styles:R_(i)}):null,Q?y.createElement(S_,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Z_(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const C_=u_(By,__);var Jy=y.forwardRef(function(t,n){return y.createElement(Xc,Qa({},t,{ref:n,sideCar:C_}))});Jy.classNames=Xc.classNames;var A_=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},hl=new WeakMap,Co=new WeakMap,Ao={},Zd=0,eQ=function(t){return t&&(t.host||eQ(t.parentNode))},E_=function(t,n){return n.map(function(s){if(t.contains(s))return s;var r=eQ(s);return r&&t.contains(r)?r:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},q_=function(t,n,s,r){var i=E_(n,Array.isArray(t)?t:[t]);Ao[s]||(Ao[s]=new WeakMap);var u=Ao[s],O=[],f=new Set,m=new Set(i),p=function(x){!x||f.has(x)||(f.add(x),p(x.parentNode))};i.forEach(p);var g=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(b){if(f.has(b))g(b);else try{var Q=b.getAttribute(r),j=Q!==null&&Q!=="false",$=(hl.get(b)||0)+1,w=(u.get(b)||0)+1;hl.set(b,$),u.set(b,w),O.push(b),$===1&&j&&Co.set(b,!0),w===1&&b.setAttribute(s,"true"),j||b.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",b,k)}})};return g(n),f.clear(),Zd++,function(){O.forEach(function(x){var b=hl.get(x)-1,Q=u.get(x)-1;hl.set(x,b),u.set(x,Q),b||(Co.has(x)||x.removeAttribute(r),Co.delete(x)),Q||x.removeAttribute(s)}),Zd--,Zd||(hl=new WeakMap,hl=new WeakMap,Co=new WeakMap,Ao={})}},M_=function(t,n,s){s===void 0&&(s="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=A_(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),q_(r,i,s,"aria-hidden")):function(){return null}},_c="Dialog",[tQ]=js(_c),[Y_,xa]=tQ(_c),aQ=t=>{const{__scopeDialog:n,children:s,open:r,defaultOpen:i,onOpenChange:u,modal:O=!0}=t,f=y.useRef(null),m=y.useRef(null),[p,g]=vc({prop:r,defaultProp:i??!1,onChange:u,caller:_c});return c.jsx(Y_,{scope:n,triggerRef:f,contentRef:m,contentId:pl(),titleId:pl(),descriptionId:pl(),open:p,onOpenChange:g,onOpenToggle:y.useCallback(()=>g(x=>!x),[g]),modal:O,children:s})};aQ.displayName=_c;var nQ="DialogTrigger",V_=y.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,i=xa(nQ,s),u=lt(n,i.triggerRef);return c.jsx(De.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":lh(i.open),...r,ref:u,onClick:Ze(t.onClick,i.onOpenToggle)})});V_.displayName=nQ;var nh="DialogPortal",[U_,sQ]=tQ(nh,{forceMount:void 0}),lQ=t=>{const{__scopeDialog:n,forceMount:s,children:r,container:i}=t,u=xa(nh,n);return c.jsx(U_,{scope:n,forceMount:s,children:y.Children.map(r,O=>c.jsx(pa,{present:s||u.open,children:c.jsx(Sf,{asChild:!0,container:i,children:O})}))})};lQ.displayName=nh;var fc="DialogOverlay",rQ=y.forwardRef((t,n)=>{const s=sQ(fc,t.__scopeDialog),{forceMount:r=s.forceMount,...i}=t,u=xa(fc,t.__scopeDialog);return u.modal?c.jsx(pa,{present:r||u.open,children:c.jsx(L_,{...i,ref:n})}):null});rQ.displayName=fc;var G_=Ho("DialogOverlay.RemoveScroll"),L_=y.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,i=xa(fc,s);return c.jsx(Jy,{as:G_,allowPinchZoom:!0,shards:[i.contentRef],children:c.jsx(De.div,{"data-state":lh(i.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),Ss="DialogContent",iQ=y.forwardRef((t,n)=>{const s=sQ(Ss,t.__scopeDialog),{forceMount:r=s.forceMount,...i}=t,u=xa(Ss,t.__scopeDialog);return c.jsx(pa,{present:r||u.open,children:u.modal?c.jsx(D_,{...i,ref:n}):c.jsx(W_,{...i,ref:n})})});iQ.displayName=Ss;var D_=y.forwardRef((t,n)=>{const s=xa(Ss,t.__scopeDialog),r=y.useRef(null),i=lt(n,s.contentRef,r);return y.useEffect(()=>{const u=r.current;if(u)return M_(u)},[]),c.jsx(oQ,{...t,ref:i,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ze(t.onCloseAutoFocus,u=>{var O;u.preventDefault(),(O=s.triggerRef.current)==null||O.focus()}),onPointerDownOutside:Ze(t.onPointerDownOutside,u=>{const O=u.detail.originalEvent,f=O.button===0&&O.ctrlKey===!0;(O.button===2||f)&&u.preventDefault()}),onFocusOutside:Ze(t.onFocusOutside,u=>u.preventDefault())})}),W_=y.forwardRef((t,n)=>{const s=xa(Ss,t.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return c.jsx(oQ,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var O,f;(O=t.onCloseAutoFocus)==null||O.call(t,u),u.defaultPrevented||(r.current||(f=s.triggerRef.current)==null||f.focus(),u.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:u=>{var m,p;(m=t.onInteractOutside)==null||m.call(t,u),u.defaultPrevented||(r.current=!0,u.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const O=u.target;((p=s.triggerRef.current)==null?void 0:p.contains(O))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&i.current&&u.preventDefault()}})}),oQ=y.forwardRef((t,n)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:u,...O}=t,f=xa(Ss,s),m=y.useRef(null),p=lt(n,m);return e_(),c.jsxs(c.Fragment,{children:[c.jsx(Gy,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:u,children:c.jsx(hf,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":lh(f.open),...O,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(B_,{titleId:f.titleId}),c.jsx(I_,{contentRef:m,descriptionId:f.descriptionId})]})]})}),sh="DialogTitle",cQ=y.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,i=xa(sh,s);return c.jsx(De.h2,{id:i.titleId,...r,ref:n})});cQ.displayName=sh;var uQ="DialogDescription",OQ=y.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,i=xa(uQ,s);return c.jsx(De.p,{id:i.descriptionId,...r,ref:n})});OQ.displayName=uQ;var dQ="DialogClose",fQ=y.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,i=xa(dQ,s);return c.jsx(De.button,{type:"button",...r,ref:n,onClick:Ze(t.onClick,()=>i.onOpenChange(!1))})});fQ.displayName=dQ;function lh(t){return t?"open":"closed"}var hQ="DialogTitleWarning",[RZ,mQ]=E$(hQ,{contentName:Ss,titleName:sh,docsSlug:"dialog"}),B_=({titleId:t})=>{const n=mQ(hQ),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
532
|
+
|
|
533
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
534
|
+
|
|
535
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return y.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},H_="DialogDescriptionWarning",I_=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mQ(H_).contentName}}.`;return y.useEffect(()=>{var u;const i=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&i&&(document.getElementById(n)||console.warn(r))},[r,t,n]),null},pQ=aQ,xQ=lQ,gQ=rQ,bQ=iQ,vQ=cQ,yQ=OQ,QQ=fQ;function F_({children:t,...n}){return c.jsx(pQ,{...n,children:t})}function K_({children:t,className:n,title:s,description:r,...i}){return c.jsxs(xQ,{children:[c.jsx(gQ,{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"}),c.jsxs(bQ,{className:ne("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),...i,children:[s&&c.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[c.jsx(vQ,{className:"text-base font-semibold text-text-0 font-sans",children:s}),c.jsx(QQ,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:c.jsx(Lt,{size:16})})]}),r&&c.jsx(yQ,{className:"sr-only",children:r}),t]})]})}var J1={};function J_({path:t,onNavigate:n}){const s=t.split("/").filter(Boolean);return c.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[c.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:c.jsx(mb,{size:13})}),s.map((r,i)=>{const u="/"+s.slice(0,i+1).join("/"),O=i===s.length-1;return c.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[c.jsx(ai,{size:11,className:"text-text-4"}),c.jsx("button",{onClick:()=>n(u),className:ne("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",O?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:r})]},i)})]})}function eZ({open:t,onOpenChange:n,currentPath:s,onSelect:r}){const[i,u]=y.useState(s||J1.HOME||"/"),[O,f]=y.useState([]),[m,p]=y.useState(!1),[g,x]=y.useState(null);y.useEffect(()=>{t&&b(s||"/")},[t]);async function b(w){p(!0),x(null);try{const k=await ae.get(`/browse-system?path=${encodeURIComponent(w)}`);u(k.current||w),f(k.dirs||[])}catch(k){x(k.message),f([])}p(!1)}function Q(){const w=i==="/"?"/":i.split("/").slice(0,-1).join("/")||"/";b(w)}function j(){b(J1.HOME||"/Users")}function $(){r(i),n(!1)}return c.jsx(F_,{open:t,onOpenChange:n,children:c.jsx(K_,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:c.jsxs("div",{className:"px-5 py-4 space-y-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{onClick:Q,disabled:i==="/",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:c.jsx(IT,{size:14})}),c.jsx("button",{onClick:j,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:c.jsx(Dk,{size:14})}),c.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:c.jsx(J_,{path:i,onNavigate:b})})]}),c.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:c.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[m&&c.jsx("div",{className:"flex items-center justify-center py-8",children:c.jsx(gb,{size:18,className:"text-text-3 animate-spin"})}),g&&c.jsx("div",{className:"px-4 py-6 text-center",children:c.jsx("p",{className:"text-xs text-danger font-sans",children:g})}),!m&&!g&&O.length===0&&c.jsx("div",{className:"px-4 py-6 text-center",children:c.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!m&&!g&&O.map(w=>c.jsxs("button",{onClick:()=>b(w.path),className:ne("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:[w.hasChildren?c.jsx(Xk,{size:15,className:"text-warning flex-shrink-0"}):c.jsx(Gr,{size:15,className:"text-text-3 flex-shrink-0"}),c.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:w.name}),w.hasChildren&&c.jsx(ai,{size:12,className:"text-text-4 flex-shrink-0"})]},w.path))]})}),c.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:[c.jsx(Gr,{size:16,className:"text-accent flex-shrink-0"}),c.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:i})]}),c.jsxs("div",{className:"flex justify-end gap-2",children:[c.jsx(Ne,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),c.jsxs(Ne,{variant:"primary",size:"md",onClick:$,className:"gap-1.5",children:[c.jsx(Gn,{size:14})," Select Folder"]})]})]})})})}function Cd({options:t,value:n,onChange:s}){return c.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(r=>c.jsx("button",{onClick:()=>s(r.value),className:ne("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===r.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:r.label},r.value))})}function Oa({label:t,icon:n,children:s,description:r}){return c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&c.jsx(n,{size:13,className:"text-text-3"}),t]}),r&&c.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:r})]}),s]})}function tZ({agent:t}){const n=L(j=>j.killAgent),s=L(j=>j.rotateAgent),r=L(j=>j.spawnAgent),i=L(j=>j.closeDetail),u=L(j=>j.addToast),[O,f]=y.useState(null),[m,p]=y.useState(!1),g=t.status==="running"||t.status==="starting";async function x(){f("rotate");try{await s(t.id)}catch{}f(null)}async function b(){if(!m){p(!0),setTimeout(()=>p(!1),3e3);return}f("kill");try{await n(t.id),i()}catch{}f(null),p(!1)}async function Q(){f("clone");try{await r({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{}f(null)}return g?c.jsx("div",{className:"space-y-2",children:c.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[c.jsxs(Ne,{variant:"primary",size:"md",onClick:x,disabled:O==="rotate",className:"gap-1.5",children:[c.jsx(Rl,{size:12,className:O==="rotate"?"animate-spin":""}),"Rotate"]}),c.jsxs(Ne,{variant:"info",size:"md",onClick:Q,disabled:!!O,className:"gap-1.5",children:[c.jsx(Wd,{size:12})," Clone"]}),c.jsxs(Ne,{variant:"danger",size:"md",onClick:b,disabled:O==="kill",className:"gap-1.5",children:[c.jsx(jb,{size:12}),m?"Confirm":"Kill"]})]})}):c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsxs(Ne,{variant:"info",size:"md",onClick:Q,disabled:!!O,className:"gap-1.5",children:[c.jsx(Wd,{size:12})," Clone"]}),c.jsxs(Ne,{variant:"danger",size:"md",onClick:b,disabled:O==="kill",className:"gap-1.5",children:[c.jsx(zb,{size:12}),m?"Confirm":"Remove"]})]})}function aZ({agent:t}){var Ye;const n=L(V=>V.addToast),[s,r]=y.useState([]),[i,u]=y.useState(t.model||""),[O,f]=y.useState(""),[m,p]=y.useState(t.effort||"default"),[g,x]=y.useState(!1),[b,Q]=y.useState(""),[j,$]=y.useState(null),[w,k]=y.useState(!1),[N,Z]=y.useState(null),[C,q]=y.useState("fixed"),[X,G]=y.useState([]),[U,te]=y.useState("hr"),[H,Oe]=y.useState("1"),[fe,ve]=y.useState(!1),me=t.status==="running"||t.status==="starting";y.useEffect(()=>{pe(),ae.get("/skills/installed").then(ie=>G(Array.isArray(ie)?ie:ie.skills||[])).catch(()=>{});function V(){pe()}return window.addEventListener("groove:providers-changed",V),()=>window.removeEventListener("groove:providers-changed",V)},[]);function pe(){ae.get("/providers").then(V=>r(Array.isArray(V)?V:[])).catch(()=>{})}y.useEffect(()=>{u(t.model||""),ae.get(`/agents/${t.id}/routing/recommend`).then(V=>{q((V==null?void 0:V.mode)||"fixed")}).catch(()=>{})},[t.id,t.model]);const _=s.find(V=>V.id===t.provider);async function I(V,ie){u(ie);try{await ae.patch(`/agents/${t.id}`,{model:ie}),n("success",`Model → ${ie}`)}catch(ke){n("error","Model swap failed",ke.message)}}async function F(V){try{await ae.patch(`/agents/${t.id}`,{workingDir:V}),n("success",`Working dir → ${V.split("/").pop()||V}`)}catch(ie){n("error","Update failed",ie.message)}}async function he(V){p(V);try{await ae.patch(`/agents/${t.id}`,{effort:V}),n("success",`Effort → ${V}`)}catch(ie){n("error","Update failed",ie.message)}}async function K(V){if(!V.trim())return;const ie=[...t.scope||[],V.trim()];try{await ae.patch(`/agents/${t.id}`,{scope:ie}),f("")}catch(ke){n("error","Scope update failed",ke.message)}}async function Ue(V){const ie=(t.scope||[]).filter((ke,Ot)=>Ot!==V);try{await ae.patch(`/agents/${t.id}`,{scope:ie})}catch(ke){n("error","Scope update failed",ke.message)}}async function Re(V){if(b.trim())try{await ae.post(`/credentials/${V}`,{key:b.trim()}),n("success",`API key set for ${V}`),Q(""),$(null),pe(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(ie){n("error","Failed to set key",ie.message)}}const ye=t.spawnedAt||t.createdAt;return c.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[c.jsx(Oa,{label:"Active Model",icon:Ob,children:c.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),c.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(_==null?void 0:_.name)||t.provider})]}),(_==null?void 0:_.canHotSwap)&&me&&c.jsxs(ot,{variant:"accent",className:"text-2xs gap-1",children:[c.jsx(Hn,{size:8})," Hot-swap"]})]}),((Ye=_==null?void 0:_.models)==null?void 0:Ye.length)>1&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:_.models.map(V=>{const ie=V.id===t.model,ke=!me||_.canHotSwap;return c.jsx("button",{onClick:()=>ke&&I(t.provider,V.id),disabled:!ke,className:ne("px-2.5 py-1 rounded-md text-xs font-mono transition-all",ke?"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:V.name||V.id},V.id)})})]})}),c.jsx(tZ,{agent:t}),c.jsxs(Oa,{label:"Providers",icon:Hd,description:"Click a provider to see its models and connection status.",children:[c.jsx("div",{className:"space-y-1.5",children:s.map(V=>{const ie=V.id===t.provider,ke=V.installed||V.hasKey,Ot=N===V.id,Xe=V.models||[];return c.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[c.jsxs("button",{onClick:()=>Z(Ot?null:V.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[c.jsx("div",{className:ne("w-2 h-2 rounded-full flex-shrink-0",ke?"bg-success":"bg-text-4")}),c.jsx("span",{className:ne("text-xs font-semibold font-sans flex-1 text-left",ke?"text-text-0":"text-text-3"),children:V.name||V.id}),ie&&c.jsx(ot,{variant:"accent",className:"text-2xs",children:"Active"}),!ke&&c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:V.authType==="local"?"Not installed":"No key"}),c.jsx(Ln,{size:12,className:ne("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&V.authType==="local"&&c.jsx("div",{className:"border-t border-border-subtle",children:c.jsx(Yy,{isInstalled:ke,onModelChange:pe})}),Ot&&V.authType!=="local"&&c.jsxs("div",{className:"border-t border-border-subtle",children:[(!ke||V.hasKey)&&c.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:j===V.id?c.jsxs("div",{className:"flex gap-1.5",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx("input",{value:b,onChange:et=>Q(et.target.value),onKeyDown:et=>et.key==="Enter"&&Re(V.id),type:w?"text":"password",placeholder:`${V.name||V.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}),c.jsx("button",{onClick:()=>k(!w),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:w?c.jsx(db,{size:10}):c.jsx($c,{size:10})})]}),c.jsx(Ne,{variant:"primary",size:"sm",onClick:()=>Re(V.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),c.jsx(Ne,{variant:"ghost",size:"sm",onClick:()=>{$(null),Q("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):c.jsxs("button",{onClick:()=>{$(V.id),Q(""),k(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[c.jsx(xb,{size:10}),ke?"Update API key":"Add API key to enable"]})}),ke&&Xe.length>0&&Xe.map(et=>{const gt=V.id===t.provider&&et.id===t.model,bt=!me;return c.jsxs("button",{onClick:()=>bt&&I(V.id,et.id),disabled:!bt,className:ne("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle",bt?"cursor-pointer hover:bg-surface-4/50":"cursor-not-allowed opacity-40",gt?"text-accent":"text-text-2"),children:[gt?c.jsx(Gn,{size:11,className:"text-accent flex-shrink-0"}):c.jsx("div",{className:"w-[11px]"}),c.jsx("span",{className:"font-mono flex-1 truncate",children:et.name||et.id}),c.jsx(ot,{variant:gt?"accent":"default",className:"text-2xs",children:et.tier})]},et.id)})]})]},V.id)})}),me&&c.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[c.jsx(Sl,{size:10}),c.jsx("span",{children:"Stop agent to switch providers."})]})]}),c.jsx(Oa,{label:"Working Directory",icon:Gr,description:"The root directory this agent operates in.",children:c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.jsxs(Ne,{variant:"secondary",size:"md",onClick:()=>x(!0),className:"gap-1.5 flex-shrink-0",children:[c.jsx(Ck,{size:14})," Browse"]})]})}),c.jsx(Oa,{label:"Permission Mode",icon:Dr,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:c.jsx(Cd,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async V=>{try{await ae.patch(`/agents/${t.id}`,{permission:V}),n("success",`Permission → ${V==="full"?"Full Send":"Agent Approve"}`)}catch(ie){n("error","Update failed",ie.message)}}})}),c.jsxs(Oa,{label:"Model Routing",icon:tc,description:"How Groove selects models for this agent's tasks.",children:[c.jsx(Cd,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:C,onChange:async V=>{q(V);try{await ae.post(`/agents/${t.id}/routing`,{mode:V}),n("success",`Routing → ${V}`)}catch(ie){n("error","Update failed",ie.message)}}}),c.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[C==="fixed"&&"Uses the selected model for all tasks.",C==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",C==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),c.jsx(Oa,{label:"File Scope",icon:Dr,description:"Restrict which files this agent can access. Empty = unrestricted.",children:c.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((V,ie)=>c.jsxs(ot,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[V,c.jsx("button",{onClick:()=>Ue(ie),className:"hover:text-danger cursor-pointer",children:c.jsx(Lt,{size:10})})]},ie)),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("input",{value:O,onChange:V=>f(V.target.value),onKeyDown:V=>V.key==="Enter"&&K(O),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"}),c.jsx("button",{onClick:()=>K(O),disabled:!O.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:c.jsx(ys,{size:12})})]})]})}),c.jsx(Oa,{label:"Effort Level",icon:hb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:c.jsx(Cd,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:m,onChange:he})}),c.jsx(Oa,{label:"Agent Details",icon:Hd,children:c.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),c.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),c.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),c.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),c.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),c.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),c.jsx("span",{className:"text-xs text-text-1 font-sans",children:ye?Wt(ye):"—"})]}),t.sessionId&&c.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[c.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),c.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),c.jsx(Oa,{label:"Skills",icon:Tb,description:"Attach installed skills to this agent's context.",children:c.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(V=>c.jsxs(ot,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[V,c.jsx("button",{onClick:async()=>{try{await ae.delete(`/agents/${t.id}/skills/${V}`),n("success",`Detached ${V}`)}catch(ie){n("error","Detach failed",ie.message)}},className:"hover:text-danger cursor-pointer",children:c.jsx(Lt,{size:10})})]},V)),X.filter(V=>!(t.skills||[]).includes(V.id)).length>0&&c.jsxs("div",{className:"relative group",children:[c.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:c.jsx(ys,{size:12})}),c.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:X.filter(V=>!(t.skills||[]).includes(V.id)).map(V=>c.jsx("button",{onClick:async()=>{try{await ae.post(`/agents/${t.id}/skills/${V.id}`),n("success",`Attached ${V.name||V.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:V.name||V.id},V.id))})]}),(t.skills||[]).length===0&&X.length===0&&c.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),c.jsx(Oa,{label:"Schedule",icon:Xg,description:"Run this agent on a recurring schedule.",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),c.jsx("input",{value:H,onChange:V=>Oe(V.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"}),c.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(V=>c.jsx("button",{onClick:()=>te(V.value),className:ne("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",U===V.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:V.label},V.value))}),c.jsxs(Ne,{variant:"primary",size:"sm",disabled:fe||!H||parseInt(H,10)<1,onClick:async()=>{const V=parseInt(H,10);if(!V||V<1)return;const ie={min:V===1?"* * * * *":`*/${V} * * * *`,hr:V===1?"0 * * * *":`0 */${V} * * *`,day:V===1?"0 0 * * *":`0 0 */${V} * *`,wk:`0 0 * * ${V===1?"1":"*"}`,mo:`0 0 ${V===1?"1":V} * *`};ve(!0);try{await ae.post("/schedules",{name:`${t.name} schedule`,cron:ie[U],agentConfig:{role:t.role,provider:t.provider,model:t.model,scope:t.scope,workingDir:t.workingDir,prompt:t.prompt}}),n("success",`Scheduled every ${V} ${U}`)}catch(ke){n("error","Schedule failed",ke.message)}ve(!1)},className:"h-7 px-3 text-2xs gap-1",children:[c.jsx(Xg,{size:10}),fe?"...":"Set"]})]})}),t.prompt&&c.jsx(Oa,{label:"Original Prompt",icon:tc,children:c.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})}),c.jsx(eZ,{open:g,onOpenChange:x,currentPath:t.workingDir||"/",onSelect:F})]})}const e0=[];function nZ({data:t,isAlive:n,height:s=48}){const r=y.useRef(null);return y.useEffect(()=>{const i=r.current;if(!i||!t.length)return;const u=i.getContext("2d"),O=window.devicePixelRatio||1,f=i.clientWidth,m=i.clientHeight;i.width=f*O,i.height=m*O,u.scale(O,O),u.clearRect(0,0,f,m);const p=t.map(j=>j.v),g=Math.min(...p),b=Math.max(...p,1)-g||1;u.beginPath(),u.moveTo(0,m),t.forEach((j,$)=>{const w=$/(t.length-1)*f,k=m-(j.v-g)/b*(m-4)-2;u.lineTo(w,k)}),u.lineTo(f,m),u.closePath();const Q=u.createLinearGradient(0,0,0,m);if(Q.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),Q.addColorStop(1,"rgba(0,0,0,0)"),u.fillStyle=Q,u.fill(),u.beginPath(),u.strokeStyle=n?He.accent:He.text3,u.lineWidth=1.5,t.forEach((j,$)=>{const w=$/(t.length-1)*f,k=m-(j.v-g)/b*(m-4)-2;$===0?u.moveTo(w,k):u.lineTo(w,k)}),u.stroke(),t.length>1&&n){const j=t[t.length-1],$=f-1,w=m-(j.v-g)/b*(m-4)-2;u.beginPath(),u.arc($,w,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc($,w,2.5,0,Math.PI*2),u.fillStyle=He.accent,u.fill()}},[t,n]),c.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:c.jsx("canvas",{ref:r,className:"w-full h-full"})})}function Eo({icon:t,label:n,value:s,color:r,sub:i}){return c.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(t,{size:12,className:r||"text-text-3"}),c.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),c.jsx("div",{className:ne("text-lg font-bold font-mono tabular-nums",r||"text-text-0"),children:s}),i&&c.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:i})]})}function sZ({score:t}){const n=Math.min(Math.max(t,0),100);let s=He.success,r="Healthy";return n<40?(s=He.danger,r="Degraded"):n<70&&(s=He.warning,r="Fair"),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[c.jsx(Gk,{size:11}),"Session Health"]}),c.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),c.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:c.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),c.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:r})]})}function lZ(t){const n=(t||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:fb,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:$c,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:Xl,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:ni,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:Sl,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:Hn,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:Dd,color:"text-success"}:{icon:ac,color:"text-text-4"}}function rZ({agent:t}){const n=L(O=>O.tokenTimeline[t.id])||e0,s=L(O=>O.activityLog[t.id])||e0,r=t.status==="running"||t.status==="starting",i=y.useMemo(()=>{if(n.length<2)return 0;const O=n.slice(-10),f=(O[O.length-1].t-O[0].t)/6e4,m=O[O.length-1].v-O[0].v;return f>0?Math.round(m/f):0},[n]),u=y.useMemo(()=>{const O=t.contextUsed||0;let f=100;return O>90?f-=50:O>70?f-=25:O>50&&(f-=10),i>5e3?f-=15:i>3e3&&(f-=8),t.status==="crashed"&&(f=10),t.status==="completed"&&(f=95),Math.max(0,Math.min(100,f))},[t.contextUsed,t.status,i]);return c.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),r&&c.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),c.jsx(nZ,{data:n,isAlive:r,height:56})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx(Eo,{icon:Nk,label:"Burn Rate",value:i>0?`${Dt(i)}/m`:"—",color:i>5e3?"text-danger":i>2e3?"text-warning":"text-text-0"}),c.jsx(Eo,{icon:vk,label:"Cost",value:Zf(t.costUsd||0),color:"text-text-0"}),c.jsx(Eo,{icon:Rl,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),c.jsx(Eo,{icon:Hn,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),c.jsx(sZ,{score:u}),t.prompt&&c.jsxs("div",{children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),c.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&&c.jsxs("div",{children:[c.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),c.jsxs("div",{className:"space-y-0 relative",children:[c.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((O,f)=>{const m=lZ(O.text),p=m.icon;return c.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[c.jsx("div",{className:ne("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:c.jsx(p,{size:9,className:m.color})}),c.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:O.text}),c.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:Wt(O.timestamp)})]},f)})]})]})]})}const iZ={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},oZ={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},cZ=[{id:"command",label:"Chat",icon:zf},{id:"config",label:"Config",icon:Rf},{id:"telemetry",label:"Monitor",icon:tc}];function uZ({agent:t}){const n=L(m=>m.addToast),[s,r]=y.useState(!1),[i,u]=y.useState(t.name),O=y.useRef(null);async function f(){const m=i.trim();if(!m||m===t.name){r(!1);return}try{await ae.patch(`/agents/${t.id}`,{name:m.replace(/\s+/g,"-")}),n("success",`Renamed → ${m}`)}catch(p){n("error","Rename failed",p.message),u(t.name)}r(!1)}return s?c.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[c.jsx("input",{ref:O,value:i,onChange:m=>u(m.target.value),onKeyDown:m=>{m.key==="Enter"&&f(),m.key==="Escape"&&(u(t.name),r(!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}),c.jsx("button",{onClick:f,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:c.jsx(Gn,{size:12})}),c.jsx("button",{onClick:()=>{u(t.name),r(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:c.jsx(Lt,{size:12})})]}):c.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[c.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),c.jsx("button",{onClick:()=>{u(t.name),r(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:c.jsx(f5,{size:10})})]})}function OZ(){const t=L(p=>p.detailPanel),n=L(p=>p.agents),[s,r]=y.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const i=n.find(p=>p.id===t.agentId);if(!i)return null;const u=i.status==="running"||i.status==="starting",O=Math.round((i.contextUsed||0)*100),f=i.spawnedAt||i.createdAt,m=f?Math.floor((Date.now()-new Date(f).getTime())/1e3):0;return Xf(i.role),c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex-shrink-0",children:[c.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(uZ,{agent:i}),c.jsx(ot,{variant:iZ[i.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:oZ[i.status]||i.status})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[c.jsx("span",{className:"capitalize",children:i.role}),c.jsx("span",{className:"text-text-4",children:"·"}),c.jsxs("span",{children:[i.provider,":",i.model||"auto"]}),c.jsx("span",{className:"text-text-4",children:"·"}),c.jsxs("span",{children:[Dt(i.tokensUsed||0)," tok"]}),O>0&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-text-4",children:"·"}),c.jsxs("span",{className:ne(O>80?"text-danger":O>60?"text-warning":"text-text-3"),children:[O,"% ctx"]})]}),c.jsx("span",{className:"text-text-4",children:"·"}),c.jsx("span",{children:Cf(m)})]})]}),c.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:cZ.map(p=>{const g=p.icon,x=s===p.id;return c.jsxs("button",{onClick:()=>r(p.id),className:ne("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",x?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[c.jsx(g,{size:11}),p.label]},p.id)})})]}),c.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&c.jsx(DX,{agent:i}),s==="config"&&c.jsx(aZ,{agent:i}),s==="telemetry"&&c.jsx(rZ,{agent:i})]})]})}function dZ({children:t,...n}){return c.jsx(pQ,{...n,children:t})}function fZ({children:t,className:n,title:s,side:r="right",width:i=400,...u}){return c.jsxs(xQ,{children:[c.jsx(gQ,{className:"fixed inset-0 z-40 bg-black/30"}),c.jsxs(bQ,{className:ne("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",r==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",r==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:i},...u,children:[s&&c.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:[c.jsx(vQ,{className:"text-base font-semibold text-text-0 font-sans",children:s}),c.jsx(QQ,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:c.jsx(Lt,{size:16})})]}),c.jsx(yQ,{className:"sr-only",children:"Panel"}),t]})]})}const Of=y.forwardRef(({className:t,label:n,error:s,mono:r,...i},u)=>c.jsxs("div",{className:"flex flex-col gap-1",children:[n&&c.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),c.jsx("input",{ref:u,className:ne("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",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...i}),s&&c.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));Of.displayName="Input";const SQ=y.forwardRef(({className:t,label:n,error:s,mono:r,...i},u)=>c.jsxs("div",{className:"flex flex-col gap-1",children:[n&&c.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),c.jsx("textarea",{ref:u,className:ne("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",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...i}),s&&c.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));SQ.displayName="Textarea";const hZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Sb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:$b,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:Nf,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:Bn,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:Pb,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:fk,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Bd,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Dr,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:gk,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:s5,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:KT,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:Y5,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:Vk,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Sc,tier:"Medium"}];function mZ(){const t=L(H=>H.detailPanel),n=L(H=>H.closeDetail),s=L(H=>H.spawnAgent),r=L(H=>H.fetchProviders),i=(t==null?void 0:t.type)==="spawn",[u,O]=y.useState(""),[f,m]=y.useState(""),[p,g]=y.useState(""),[x,b]=y.useState(""),[Q,j]=y.useState(""),[$,w]=y.useState(""),[k,N]=y.useState([]),[Z,C]=y.useState(!1);y.useEffect(()=>{i&&(r().then(H=>{N(Array.isArray(H)?H:H.providers||[])}).catch(()=>{}),O(""),m(""),g(""),b(""),j(""),w(""))},[i,r]);const q=u||f,X=k.find(H=>H.id===x),G=(X==null?void 0:X.models)||[],U=k.filter(H=>H.installed);async function te(){if(q){C(!0);try{const H={role:q,...p&&{name:p.replace(/\s+/g,"-")},...x&&{provider:x},...Q&&{model:Q},...$&&{prompt:$}};await s(H),n()}catch{}C(!1)}}return c.jsx(dZ,{open:i,onOpenChange:H=>{H||n()},children:c.jsx(fZ,{title:"Spawn Agent",width:480,children:c.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:hZ.map(H=>{const Oe=Xf(H.id),fe=u===H.id;return c.jsxs("button",{onClick:()=>{O(H.id),m("")},className:ne("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",fe?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[c.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:Oe.bg},children:c.jsx(H.icon,{size:16,style:{color:Oe.text}})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans",children:H.label}),c.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:H.desc})]})]},H.id)})}),c.jsx("div",{className:"mt-3",children:c.jsx(Of,{placeholder:"or type a custom role...",value:f,onChange:H=>{m(H.target.value),O("")},className:"text-xs"})})]}),q&&c.jsxs("div",{className:"space-y-4",children:[c.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),c.jsx(Of,{label:"Name (optional)",value:p,onChange:H=>g(H.target.value),placeholder:`${q}-1`}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),c.jsxs("div",{className:"relative",children:[c.jsxs("select",{value:x,onChange:H=>{b(H.target.value),j("")},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:[c.jsx("option",{value:"",children:"Auto"}),U.map(H=>c.jsx("option",{value:H.id,children:H.name},H.id))]}),c.jsx(Ln,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),c.jsxs("div",{className:"relative",children:[c.jsxs("select",{value:Q,onChange:H=>j(H.target.value),disabled:!x,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:[c.jsx("option",{value:"",children:"Auto"}),G.map(H=>c.jsx("option",{value:H.id,children:H.name},H.id))]}),c.jsx(Ln,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),x&&X&&c.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:X.hasKey?c.jsx(ot,{variant:"success",children:"API key set"}):X.authType==="subscription"?c.jsx(ot,{variant:"accent",children:"Subscription"}):c.jsxs(ot,{variant:"warning",children:["No API key — set with: groove set-key ",x," YOUR_KEY"]})}),c.jsx(SQ,{label:"Prompt (optional)",value:$,onChange:H=>w(H.target.value),placeholder:"What should this agent work on?",rows:3})]})]}),c.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[q&&c.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[c.jsx("span",{children:"Spawning"}),c.jsx(ot,{variant:"accent",children:q}),x&&c.jsxs("span",{children:["on ",(X==null?void 0:X.name)||x]}),p&&c.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),c.jsx(Ne,{variant:"primary",size:"lg",onClick:te,disabled:!q||Z,className:"w-full",children:Z?"Spawning...":"Spawn Agent"})]})]})})})}function t0({title:t,icon:n,defaultOpen:s=!1,badge:r,children:i,className:u}){const[O,f]=y.useState(s);return c.jsxs("div",{className:ne("border-t border-border-subtle",u),children:[c.jsxs("button",{onClick:()=>f(!O),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:[c.jsx(ai,{size:12,className:ne("text-text-4 transition-transform duration-200 flex-shrink-0",O&&"rotate-90")}),n&&c.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),c.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),r&&c.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:r})]}),O&&c.jsx("div",{className:"px-5 pb-4",children:i})]})}function pZ(){const t=L(x=>x.journalistStatus),n=L(x=>x.fetchJournalist),s=L(x=>x.triggerJournalistCycle),[r,i]=y.useState(!0),[u,O]=y.useState(!1);y.useEffect(()=>{n().then(()=>i(!1));const x=setInterval(n,1e4);return()=>clearInterval(x)},[n]);async function f(){O(!0);try{await s()}catch{}O(!1)}if(r)return c.jsxs("div",{className:"p-5 space-y-4",children:[c.jsx(la,{className:"h-6 w-32 rounded"}),c.jsx(la,{className:"h-20 rounded-md"}),c.jsx(la,{className:"h-20 rounded-md"})]});const m=t||{},p=m.lastSynthesis,g=m.history||[];return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[c.jsx(Lr,{size:16,className:"text-accent"}),c.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),c.jsxs(Ne,{variant:"secondary",size:"sm",onClick:f,disabled:u,className:"gap-1.5 text-2xs",children:[c.jsx(Nl,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),c.jsx(ka,{className:"flex-1",children:c.jsxs("div",{className:"px-5 py-4 space-y-5",children:[c.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(tc,{size:10}),c.jsxs("span",{children:[m.cycleCount||0," cycles"]})]}),m.lastCycleTime&&c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx(ac,{size:10}),c.jsxs("span",{children:["Last: ",Wt(m.lastCycleTime)]})]}),c.jsx(ot,{variant:m.cycleCount>0?"success":"default",className:"text-2xs",children:m.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&c.jsxs("div",{className:"space-y-2",children:[c.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[c.jsx(Bd,{size:12,className:"text-text-3"}),"Latest Summary"]}),c.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)&&c.jsx(t0,{title:"Project Map",icon:e5,children:c.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)&&c.jsx(t0,{title:"Decisions Log",icon:Bd,children:c.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})}),g.length>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[c.jsx(ac,{size:12,className:"text-text-3"}),"History (",g.length,")"]}),c.jsx("div",{className:"space-y-1.5",children:g.slice().reverse().slice(0,20).map((x,b)=>c.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[c.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[c.jsxs(ot,{variant:"default",className:"text-2xs",children:["Cycle ",x.cycle]}),c.jsxs("span",{className:"text-text-4 font-sans",children:[x.agentCount," agent",x.agentCount!==1?"s":""]}),c.jsx("span",{className:"text-text-4 font-sans ml-auto",children:Wt(x.timestamp)})]}),x.summary&&c.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:x.summary})]},b))})]}),!p&&g.length===0&&c.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[c.jsx(Lr,{size:28,className:"mx-auto mb-2"}),c.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),c.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function xZ({children:t,height:n,onHeightChange:s,visible:r,fullHeight:i,tabs:u,activeTab:O,onSelectTab:f,onAddTab:m,onCloseTab:p,onToggleFullHeight:g,onMinimize:x}){const b=y.useRef(!1),Q=y.useRef(0),j=y.useRef(0),$=y.useCallback(k=>{if(i)return;k.preventDefault(),b.current=!0,Q.current=k.clientY,j.current=n;function N(C){if(!b.current)return;const q=Q.current-C.clientY,X=Math.min(Math.max(j.current+q,120),600);s(X)}function Z(){b.current=!1,document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",Z)}document.addEventListener("mousemove",N),document.addEventListener("mouseup",Z)},[n,s,i]);if(!r)return null;const w=u||[{id:"default",label:"Terminal"}];return c.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:i?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!i&&c.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:$}),c.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:[c.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[w.map(k=>c.jsxs("button",{onClick:()=>f==null?void 0:f(k.id),className:ne("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",k.id===O?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[c.jsx(ni,{size:10}),c.jsx("span",{className:"truncate max-w-[80px]",children:k.label}),w.length>1&&c.jsx("button",{onClick:N=>{N.stopPropagation(),p==null||p(k.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:c.jsx(Lt,{size:9})})]},k.id)),c.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:c.jsx(ys,{size:11})})]}),c.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:i?c.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:"Restore",children:c.jsx(i5,{size:12})}):c.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:"Maximize",children:c.jsx(a5,{size:12})})})]}),c.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const gZ={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 Ad=0;function bZ({tabId:t,visible:n}){const s=y.useRef(null),r=y.useRef(null),i=y.useRef(null),u=y.useRef(null),O=y.useRef(!1);return y.useEffect(()=>{if(!s.current||O.current)return;O.current=!0;const f=new w$({theme:gZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),m=new j$;f.loadAddon(m),f.loadAddon(new T$),f.open(s.current),r.current=f,requestAnimationFrame(()=>m.fit());function p(){const x=L.getState().ws;if(!x||x.readyState!==WebSocket.OPEN){setTimeout(p,500);return}x.send(JSON.stringify({type:"terminal:spawn",cols:f.cols,rows:f.rows}));function b(Q){let j;try{j=JSON.parse(Q.data)}catch{return}j.type==="terminal:spawned"&&!i.current?i.current=j.id:j.type==="terminal:output"&&j.id===i.current?f.write(j.data):j.type==="terminal:exit"&&j.id===i.current&&(f.write(`\r
|
|
536
|
+
\x1B[90m[session ended]\x1B[0m\r
|
|
537
|
+
`),i.current=null)}x.addEventListener("message",b),u.current={ws:x,handler:b},f.onData(Q=>{const j=L.getState().ws;(j==null?void 0:j.readyState)===WebSocket.OPEN&&i.current&&j.send(JSON.stringify({type:"terminal:input",id:i.current,data:Q}))}),f.onResize(({cols:Q,rows:j})=>{const $=L.getState().ws;($==null?void 0:$.readyState)===WebSocket.OPEN&&i.current&&$.send(JSON.stringify({type:"terminal:resize",id:i.current,rows:j,cols:Q}))})}p();const g=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{m.fit()}catch{}})});return g.observe(s.current),()=>{g.disconnect();const x=L.getState().ws;(x==null?void 0:x.readyState)===WebSocket.OPEN&&i.current&&x.send(JSON.stringify({type:"terminal:kill",id:i.current})),u.current&&u.current.ws.removeEventListener("message",u.current.handler),f.dispose(),O.current=!1}},[]),y.useEffect(()=>{n&&r.current&&requestAnimationFrame(()=>{var f,m,p,g,x;try{(x=(g=(p=(m=(f=r.current._addonManager)==null?void 0:f._addons)==null?void 0:m[0])==null?void 0:p.instance)==null?void 0:g.fit)==null||x.call(g)}catch{}})},[n]),c.jsx("div",{ref:s,className:"w-full h-full",style:{display:n?"block":"none"}})}function vZ(){const t=L(b=>b.terminalVisible),n=L(b=>b.terminalHeight),s=L(b=>b.setTerminalVisible),r=L(b=>b.setTerminalHeight),i=L(b=>b.terminalFullHeight),u=L(b=>b.setTerminalFullHeight),[O,f]=y.useState([{id:"term-0",label:"Terminal"}]),[m,p]=y.useState("term-0"),g=y.useCallback(()=>{Ad++;const b=`term-${Ad}`;f(Q=>[...Q,{id:b,label:`Terminal ${Ad+1}`}]),p(b)},[]),x=y.useCallback(b=>{f(Q=>{const j=Q.filter($=>$.id!==b);if(j.length===0)return s(!1),Q;if(m===b){const $=Q.findIndex(k=>k.id===b),w=j[Math.min($,j.length-1)];p(w.id)}return j})},[m,s]);return c.jsx(xZ,{visible:t,height:n,onHeightChange:r,fullHeight:i,tabs:O,activeTab:m,onSelectTab:p,onAddTab:g,onCloseTab:x,onToggleFullHeight:()=>u(!0),onMinimize:()=>u(!1),children:O.map(b=>c.jsx(bZ,{tabId:b.id,visible:b.id===m},b.id))})}class yZ extends An.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?c.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[c.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),c.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),c.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),c.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 QZ(){const t=L(i=>i.activeView),n=L(i=>i.detailPanel);let s;switch(t){case"agents":s=c.jsx(Ag,{});break;case"editor":s=c.jsx(zR,{});break;case"dashboard":s=c.jsx(MR,{});break;case"marketplace":s=c.jsx(sX,{});break;case"teams":s=c.jsx(zX,{});break;case"settings":s=c.jsx(qX,{});break;default:s=c.jsx(Ag,{})}let r=null;if(n)switch(n.type){case"agent":r=c.jsx(OZ,{});break;case"journalist":r=c.jsx(pZ,{});break;case"spawn":r=null;break}return c.jsxs(fP,{detailContent:r,terminalContent:c.jsx(vZ,{}),children:[s,c.jsx(mZ,{})]})}function SZ(){return c.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[c.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),c.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function $Z(){const t=L(s=>s.connect),n=L(s=>s.hydrated);return y.useEffect(()=>{t()},[t]),n?c.jsx(yZ,{children:c.jsx(QZ,{})}):c.jsx(SZ,{})}R$.createRoot(document.getElementById("root")).render(c.jsx(y.StrictMode,{children:c.jsx($Z,{})}));
|