nomoreide 0.1.17 → 0.1.18
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/dist/web/client/assets/index-CuB3Yvp-.css +1 -0
- package/dist/web/client/assets/index-D0nvtIvN.js +14 -0
- package/dist/web/client/index.html +2 -2
- package/dist/web/server.js +4 -2
- package/dist/web/server.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/index-Bu23xSpP.css +0 -1
- package/dist/web/client/assets/index-CrlXHlUf.js +0 -14
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=l(f);fetch(f.href,d)}})();var Cu={exports:{}},qi={};var cp;function Xv(){if(cp)return qi;cp=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(r,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:n,type:r,key:h,ref:f!==void 0?f:null,props:d}}return qi.Fragment=s,qi.jsx=l,qi.jsxs=l,qi}var up;function Zv(){return up||(up=1,Cu.exports=Xv()),Cu.exports}var u=Zv(),Mu={exports:{}},pe={};var fp;function Qv(){if(fp)return pe;fp=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,O={};function B(N,H,I){this.props=N,this.context=H,this.refs=O,this.updater=I||T}B.prototype.isReactComponent={},B.prototype.setState=function(N,H){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,H,"setState")},B.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function q(){}q.prototype=B.prototype;function Y(N,H,I){this.props=N,this.context=H,this.refs=O,this.updater=I||T}var X=Y.prototype=new q;X.constructor=Y,M(X,B.prototype),X.isPureReactComponent=!0;var Z=Array.isArray;function J(){}var $={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function de(N,H,I){var te=I.ref;return{$$typeof:n,type:N,key:H,ref:te!==void 0?te:null,props:I}}function le(N,H){return de(N.type,H,N.props)}function F(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function oe(N){var H={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(I){return H[I]})}var we=/\/+/g;function be(N,H){return typeof N=="object"&&N!==null&&N.key!=null?oe(""+N.key):H.toString(36)}function ye(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(J,J):(N.status="pending",N.then(function(H){N.status==="pending"&&(N.status="fulfilled",N.value=H)},function(H){N.status==="pending"&&(N.status="rejected",N.reason=H)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,H,I,te,re){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var Me=!1;if(N===null)Me=!0;else switch(ue){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(N.$$typeof){case n:case s:Me=!0;break;case x:return Me=N._init,D(Me(N._payload),H,I,te,re)}}if(Me)return re=re(N),Me=te===""?"."+be(N,0):te,Z(re)?(I="",Me!=null&&(I=Me.replace(we,"$&/")+"/"),D(re,H,I,"",function(Zn){return Zn})):re!=null&&(F(re)&&(re=le(re,I+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(we,"$&/")+"/")+Me)),H.push(re)),1;Me=0;var it=te===""?".":te+":";if(Z(N))for(var Se=0;Se<N.length;Se++)te=N[Se],ue=it+be(te,Se),Me+=D(te,H,I,ue,re);else if(Se=j(N),typeof Se=="function")for(N=Se.call(N),Se=0;!(te=N.next()).done;)te=te.value,ue=it+be(te,Se++),Me+=D(te,H,I,ue,re);else if(ue==="object"){if(typeof N.then=="function")return D(ye(N),H,I,te,re);throw H=String(N),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Me}function K(N,H,I){if(N==null)return N;var te=[],re=0;return D(N,te,"","",function(ue){return H.call(I,ue,re++)}),te}function W(N){if(N._status===-1){var H=N._result;H=H(),H.then(function(I){(N._status===0||N._status===-1)&&(N._status=1,N._result=I)},function(I){(N._status===0||N._status===-1)&&(N._status=2,N._result=I)}),N._status===-1&&(N._status=0,N._result=H)}if(N._status===1)return N._result.default;throw N._result}var P=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Q={map:K,forEach:function(N,H,I){K(N,function(){H.apply(this,arguments)},I)},count:function(N){var H=0;return K(N,function(){H++}),H},toArray:function(N){return K(N,function(H){return H})||[]},only:function(N){if(!F(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return pe.Activity=b,pe.Children=Q,pe.Component=B,pe.Fragment=l,pe.Profiler=f,pe.PureComponent=Y,pe.StrictMode=r,pe.Suspense=y,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,pe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return $.H.useMemoCache(N)}},pe.cache=function(N){return function(){return N.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(N,H,I){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var te=M({},N.props),re=N.key;if(H!=null)for(ue in H.key!==void 0&&(re=""+H.key),H)!L.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(te[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)te.children=I;else if(1<ue){for(var Me=Array(ue),it=0;it<ue;it++)Me[it]=arguments[it+2];te.children=Me}return de(N.type,re,te)},pe.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},pe.createElement=function(N,H,I){var te,re={},ue=null;if(H!=null)for(te in H.key!==void 0&&(ue=""+H.key),H)L.call(H,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(re[te]=H[te]);var Me=arguments.length-2;if(Me===1)re.children=I;else if(1<Me){for(var it=Array(Me),Se=0;Se<Me;Se++)it[Se]=arguments[Se+2];re.children=it}if(N&&N.defaultProps)for(te in Me=N.defaultProps,Me)re[te]===void 0&&(re[te]=Me[te]);return de(N,ue,re)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(N){return{$$typeof:g,render:N}},pe.isValidElement=F,pe.lazy=function(N){return{$$typeof:x,_payload:{_status:-1,_result:N},_init:W}},pe.memo=function(N,H){return{$$typeof:p,type:N,compare:H===void 0?null:H}},pe.startTransition=function(N){var H=$.T,I={};$.T=I;try{var te=N(),re=$.S;re!==null&&re(I,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(J,P)}catch(ue){P(ue)}finally{H!==null&&I.types!==null&&(H.types=I.types),$.T=H}},pe.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},pe.use=function(N){return $.H.use(N)},pe.useActionState=function(N,H,I){return $.H.useActionState(N,H,I)},pe.useCallback=function(N,H){return $.H.useCallback(N,H)},pe.useContext=function(N){return $.H.useContext(N)},pe.useDebugValue=function(){},pe.useDeferredValue=function(N,H){return $.H.useDeferredValue(N,H)},pe.useEffect=function(N,H){return $.H.useEffect(N,H)},pe.useEffectEvent=function(N){return $.H.useEffectEvent(N)},pe.useId=function(){return $.H.useId()},pe.useImperativeHandle=function(N,H,I){return $.H.useImperativeHandle(N,H,I)},pe.useInsertionEffect=function(N,H){return $.H.useInsertionEffect(N,H)},pe.useLayoutEffect=function(N,H){return $.H.useLayoutEffect(N,H)},pe.useMemo=function(N,H){return $.H.useMemo(N,H)},pe.useOptimistic=function(N,H){return $.H.useOptimistic(N,H)},pe.useReducer=function(N,H,I){return $.H.useReducer(N,H,I)},pe.useRef=function(N){return $.H.useRef(N)},pe.useState=function(N){return $.H.useState(N)},pe.useSyncExternalStore=function(N,H,I){return $.H.useSyncExternalStore(N,H,I)},pe.useTransition=function(){return $.H.useTransition()},pe.version="19.2.6",pe}var dp;function zf(){return dp||(dp=1,Mu.exports=Qv()),Mu.exports}var E=zf(),Eu={exports:{}},Gi={},zu={exports:{}},Du={};var hp;function Kv(){return hp||(hp=1,(function(n){function s(D,K){var W=D.length;D.push(K);e:for(;0<W;){var P=W-1>>>1,Q=D[P];if(0<f(Q,K))D[P]=K,D[W]=Q,W=P;else break e}}function l(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var K=D[0],W=D.pop();if(W!==K){D[0]=W;e:for(var P=0,Q=D.length,N=Q>>>1;P<N;){var H=2*(P+1)-1,I=D[H],te=H+1,re=D[te];if(0>f(I,W))te<Q&&0>f(re,I)?(D[P]=re,D[te]=W,P=te):(D[P]=I,D[H]=W,P=H);else if(te<Q&&0>f(re,W))D[P]=re,D[te]=W,P=te;else break e}}return K}function f(D,K){var W=D.sortIndex-K.sortIndex;return W!==0?W:D.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var y=[],p=[],x=1,b=null,S=3,j=!1,T=!1,M=!1,O=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(D){for(var K=l(p);K!==null;){if(K.callback===null)r(p);else if(K.startTime<=D)r(p),K.sortIndex=K.expirationTime,s(y,K);else break;K=l(p)}}function Z(D){if(M=!1,X(D),!T)if(l(y)!==null)T=!0,J||(J=!0,oe());else{var K=l(p);K!==null&&ye(Z,K.startTime-D)}}var J=!1,$=-1,L=5,de=-1;function le(){return O?!0:!(n.unstable_now()-de<L)}function F(){if(O=!1,J){var D=n.unstable_now();de=D;var K=!0;try{e:{T=!1,M&&(M=!1,q($),$=-1),j=!0;var W=S;try{t:{for(X(D),b=l(y);b!==null&&!(b.expirationTime>D&&le());){var P=b.callback;if(typeof P=="function"){b.callback=null,S=b.priorityLevel;var Q=P(b.expirationTime<=D);if(D=n.unstable_now(),typeof Q=="function"){b.callback=Q,X(D),K=!0;break t}b===l(y)&&r(y),X(D)}else r(y);b=l(y)}if(b!==null)K=!0;else{var N=l(p);N!==null&&ye(Z,N.startTime-D),K=!1}}break e}finally{b=null,S=W,j=!1}K=void 0}}finally{K?oe():J=!1}}}var oe;if(typeof Y=="function")oe=function(){Y(F)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,be=we.port2;we.port1.onmessage=F,oe=function(){be.postMessage(null)}}else oe=function(){B(F,0)};function ye(D,K){$=B(function(){D(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var W=S;S=K;try{return D()}finally{S=W}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=S;S=D;try{return K()}finally{S=W}},n.unstable_scheduleCallback=function(D,K,W){var P=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?P+W:P):W=P,D){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=W+Q,D={id:x++,callback:K,priorityLevel:D,startTime:W,expirationTime:Q,sortIndex:-1},W>P?(D.sortIndex=W,s(p,D),l(y)===null&&D===l(p)&&(M?(q($),$=-1):M=!0,ye(Z,W-P))):(D.sortIndex=Q,s(y,D),T||j||(T=!0,J||(J=!0,oe()))),D},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(D){var K=S;return function(){var W=S;S=K;try{return D.apply(this,arguments)}finally{S=W}}}})(Du)),Du}var mp;function Fv(){return mp||(mp=1,zu.exports=Kv()),zu.exports}var ku={exports:{}},pt={};var pp;function Pv(){if(pp)return pt;pp=1;var n=zf();function s(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:y,containerInfo:p,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return d(y,p,null,x)},pt.flushSync=function(y){var p=h.T,x=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=p,r.p=x,r.d.f()}},pt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},pt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},pt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:j}):x==="script"&&r.d.X(y,{crossOrigin:b,integrity:S,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},pt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=g(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},pt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin);r.d.L(y,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},pt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=g(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},pt.requestFormReset=function(y){r.d.r(y)},pt.unstable_batchedUpdates=function(y,p){return y(p)},pt.useFormState=function(y,p,x){return h.H.useFormState(y,p,x)},pt.useFormStatus=function(){return h.H.useHostTransitionStatus()},pt.version="19.2.6",pt}var gp;function I1(){if(gp)return ku.exports;gp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),ku.exports=Pv(),ku.exports}var yp;function $v(){if(yp)return Gi;yp=1;var n=Fv(),s=zf(),l=I1();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===i)return y(o),t;c=c.sibling}throw Error(r(188))}if(a.return!==i.return)a=o,i=c;else{for(var m=!1,v=o.child;v;){if(v===a){m=!0,a=o,i=c;break}if(v===i){m=!0,i=o,a=c;break}v=v.sibling}if(!m){for(v=c.child;v;){if(v===a){m=!0,a=c,i=o;break}if(v===i){m=!0,i=c,a=o;break}v=v.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==i)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case B:return"Profiler";case O:return"StrictMode";case Z:return"Suspense";case J:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case Y:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var ye=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},P=[],Q=-1;function N(e){return{current:e}}function H(e){0>Q||(e.current=P[Q],P[Q]=null,Q--)}function I(e,t){Q++,P[Q]=e.current,e.current=t}var te=N(null),re=N(null),ue=N(null),Me=N(null);function it(e,t){switch(I(ue,t),I(re,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?k0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=k0(t),e=R0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(te),I(te,e)}function Se(){H(te),H(re),H(ue)}function Zn(e){e.memoizedState!==null&&I(Me,e);var t=te.current,a=R0(t,e.type);t!==a&&(I(re,e),I(te,a))}function Nn(e){re.current===e&&(H(te),H(re)),Me.current===e&&(H(Me),Li._currentValue=W)}var Qn,es;function Yt(e){if(Qn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Qn=t&&t[1]||"",es=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Qn+e+es}var co=!1;function uo(e,t){if(!e||co)return"";co=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(V){var R=V}Reflect.construct(e,[],G)}else{try{G.call()}catch(V){R=V}e.call(G.prototype)}}else{try{throw Error()}catch(V){R=V}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(V){if(V&&R&&typeof V.stack=="string")return[V.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),m=c[0],v=c[1];if(m&&v){var w=m.split(`
|
|
4
|
-
`),k=v.split(`
|
|
5
|
-
`);for(o=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(i===w.length||o===k.length)for(i=w.length-1,o=k.length-1;1<=i&&0<=o&&w[i]!==k[o];)o--;for(;1<=i&&0<=o;i--,o--)if(w[i]!==k[o]){if(i!==1||o!==1)do if(i--,o--,0>o||w[i]!==k[o]){var _=`
|
|
6
|
-
`+w[i].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=i&&0<=o);break}}}finally{co=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Yt(a):""}function S2(e,t){switch(e.tag){case 26:case 27:case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return e.child!==t&&t!==null?Yt("Suspense Fallback"):Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 15:return uo(e.type,!1);case 11:return uo(e.type.render,!1);case 1:return uo(e.type,!0);case 31:return Yt("Activity");default:return""}}function cd(e){try{var t="",a=null;do t+=S2(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var fo=Object.prototype.hasOwnProperty,ho=n.unstable_scheduleCallback,mo=n.unstable_cancelCallback,j2=n.unstable_shouldYield,w2=n.unstable_requestPaint,Mt=n.unstable_now,T2=n.unstable_getCurrentPriorityLevel,ud=n.unstable_ImmediatePriority,fd=n.unstable_UserBlockingPriority,fl=n.unstable_NormalPriority,N2=n.unstable_LowPriority,dd=n.unstable_IdlePriority,A2=n.log,C2=n.unstable_setDisableYieldValue,Ps=null,Et=null;function Kn(e){if(typeof A2=="function"&&C2(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Ps,e)}catch{}}var zt=Math.clz32?Math.clz32:z2,M2=Math.log,E2=Math.LN2;function z2(e){return e>>>=0,e===0?32:31-(M2(e)/E2|0)|0}var dl=256,hl=262144,ml=4194304;function Ca(e){var t=e&42;if(t!==0)return t;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 pl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?o=Ca(i):(m&=v,m!==0?o=Ca(m):a||(a=v&~e,a!==0&&(o=Ca(a))))):(v=i&~c,v!==0?o=Ca(v):m!==0?o=Ca(m):a||(a=i&~e,a!==0&&(o=Ca(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function $s(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function D2(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 hd(){var e=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),e}function po(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Js(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k2(e,t,a,i,o,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,k=e.hiddenUpdates;for(a=m&~a;0<a;){var _=31-zt(a),G=1<<_;v[_]=0,w[_]=-1;var R=k[_];if(R!==null)for(k[_]=null,_=0;_<R.length;_++){var V=R[_];V!==null&&(V.lane&=-536870913)}a&=~G}i!==0&&md(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function md(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-zt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function pd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-zt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function gd(e,t){var a=t&-t;return a=(a&42)!==0?1:go(a),(a&(e.suspendedLanes|t))!==0?0:a}function go(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 yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function yd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:np(e.type))}function xd(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Fn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Fn,bt="__reactProps$"+Fn,ts="__reactContainer$"+Fn,xo="__reactEvents$"+Fn,R2="__reactListeners$"+Fn,V2="__reactHandles$"+Fn,vd="__reactResources$"+Fn,Ws="__reactMarker$"+Fn;function vo(e){delete e[ot],delete e[bt],delete e[xo],delete e[R2],delete e[V2]}function ns(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ts]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=H0(e);e!==null;){if(a=e[ot])return a;e=H0(e)}return t}e=a,a=e.parentNode}return null}function as(e){if(e=e[ot]||e[ts]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Is(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ss(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Ws]=!0}var bd=new Set,Sd={};function Ma(e,t){is(e,t),is(e+"Capture",t)}function is(e,t){for(Sd[e]=t,e=0;e<t.length;e++)bd.add(t[e])}var O2=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]*$"),jd={},wd={};function _2(e){return fo.call(wd,e)?!0:fo.call(jd,e)?!1:O2.test(e)?wd[e]=!0:(jd[e]=!0,!1)}function gl(e,t,a){if(_2(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function yl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function An(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L2(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){if(!e._valueTracker){var t=Td(e)?"checked":"value";e._valueTracker=L2(e,t,""+e[t])}}function Nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Td(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function xl(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 B2=/[\n"\\]/g;function Zt(e){return e.replace(B2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,a,i,o,c,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?jo(e,m,Xt(t)):a!=null?jo(e,m,Xt(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Xt(v):e.removeAttribute("name")}function Ad(e,t,a,i,o,c,m,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){bo(e);return}a=a!=null?""+Xt(a):"",t=t!=null?""+Xt(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),bo(e)}function jo(e,t,a){t==="number"&&xl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ls(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Xt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cd(e,t,a){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Xt(a):""}function Md(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(r(92));if(ye(i)){if(1<i.length)throw Error(r(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Xt(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),bo(e)}function rs(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var U2=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 Ed(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||U2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function zd(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&Ed(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Ed(e,c,t[c])}function wo(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 H2=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"]]),q2=/^[\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 vl(e){return q2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var To=null;function No(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var os=null,cs=null;function Dd(e){var t=as(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[bt]||null;if(!o)throw Error(r(90));So(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Nd(i)}break e;case"textarea":Cd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ls(e,!!a.multiple,t,!1)}}}var Ao=!1;function kd(e,t,a){if(Ao)return e(t,a);Ao=!0;try{var i=e(t);return i}finally{if(Ao=!1,(os!==null||cs!==null)&&(lr(),os&&(t=os,e=cs,cs=os=null,Dd(t),e)))for(t=0;t<e.length;t++)Dd(e[t])}}function ei(e,t){var a=e.stateNode;if(a===null)return null;var i=a[bt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=!1;if(Mn)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){Co=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{Co=!1}var Pn=null,Mo=null,bl=null;function Rd(){if(bl)return bl;var e,t=Mo,a=t.length,i,o="value"in Pn?Pn.value:Pn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===o[c-i];i++);return bl=o.slice(e,1<i?1-i:void 0)}function Sl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jl(){return!0}function Vd(){return!1}function St(e){function t(a,i,o,c,m){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?jl:Vd,this.isPropagationStopped=Vd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=St(Ea),ni=b({},Ea,{view:0,detail:0}),G2=St(ni),Eo,zo,ai,Tl=b({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==ai&&(ai&&e.type==="mousemove"?(Eo=e.screenX-ai.screenX,zo=e.screenY-ai.screenY):zo=Eo=0,ai=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),Od=St(Tl),Y2=b({},Tl,{dataTransfer:0}),X2=St(Y2),Z2=b({},ni,{relatedTarget:0}),Do=St(Z2),Q2=b({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),K2=St(Q2),F2=b({},Ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P2=St(F2),$2=b({},Ea,{data:0}),_d=St($2),J2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W2={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"},I2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ex(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I2[e])?!!t[e]:!1}function ko(){return ex}var tx=b({},ni,{key:function(e){if(e.key){var t=J2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nx=St(tx),ax=b({},Tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ld=St(ax),sx=b({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),ix=St(sx),lx=b({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),rx=St(lx),ox=b({},Tl,{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}),cx=St(ox),ux=b({},Ea,{newState:0,oldState:0}),fx=St(ux),dx=[9,13,27,32],Ro=Mn&&"CompositionEvent"in window,si=null;Mn&&"documentMode"in document&&(si=document.documentMode);var hx=Mn&&"TextEvent"in window&&!si,Bd=Mn&&(!Ro||si&&8<si&&11>=si),Ud=" ",Hd=!1;function qd(e,t){switch(e){case"keyup":return dx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var us=!1;function mx(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Hd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Hd?null:e;default:return null}}function px(e,t){if(us)return e==="compositionend"||!Ro&&qd(e,t)?(e=Rd(),bl=Mo=Pn=null,us=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bd&&t.locale!=="ko"?null:t.data;default:return null}}var gx={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gx[e.type]:t==="textarea"}function Xd(e,t,a,i){os?cs?cs.push(i):cs=[i]:os=i,t=hr(t,"onChange"),0<t.length&&(a=new wl("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var ii=null,li=null;function yx(e){A0(e,0)}function Nl(e){var t=Is(e);if(Nd(t))return e}function Zd(e,t){if(e==="change")return t}var Qd=!1;if(Mn){var Vo;if(Mn){var Oo="oninput"in document;if(!Oo){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),Oo=typeof Kd.oninput=="function"}Vo=Oo}else Vo=!1;Qd=Vo&&(!document.documentMode||9<document.documentMode)}function Fd(){ii&&(ii.detachEvent("onpropertychange",Pd),li=ii=null)}function Pd(e){if(e.propertyName==="value"&&Nl(li)){var t=[];Xd(t,li,e,No(e)),kd(yx,t)}}function xx(e,t,a){e==="focusin"?(Fd(),ii=t,li=a,ii.attachEvent("onpropertychange",Pd)):e==="focusout"&&Fd()}function vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(li)}function bx(e,t){if(e==="click")return Nl(t)}function Sx(e,t){if(e==="input"||e==="change")return Nl(t)}function jx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:jx;function ri(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!fo.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function $d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jd(e,t){var a=$d(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=$d(a)}}function Wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=xl(e.document)}return t}function _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wx=Mn&&"documentMode"in document&&11>=document.documentMode,fs=null,Lo=null,oi=null,Bo=!1;function eh(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bo||fs==null||fs!==xl(i)||(i=fs,"selectionStart"in i&&_o(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),oi&&ri(oi,i)||(oi=i,i=hr(Lo,"onSelect"),0<i.length&&(t=new wl("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=fs)))}function za(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ds={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},Uo={},th={};Mn&&(th=document.createElement("div").style,"AnimationEvent"in window||(delete ds.animationend.animation,delete ds.animationiteration.animation,delete ds.animationstart.animation),"TransitionEvent"in window||delete ds.transitionend.transition);function Da(e){if(Uo[e])return Uo[e];if(!ds[e])return e;var t=ds[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in th)return Uo[e]=t[a];return e}var nh=Da("animationend"),ah=Da("animationiteration"),sh=Da("animationstart"),Tx=Da("transitionrun"),Nx=Da("transitionstart"),Ax=Da("transitioncancel"),ih=Da("transitionend"),lh=new Map,Ho="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(" ");Ho.push("scrollEnd");function un(e,t){lh.set(e,t),Ma(t,[e])}var Al=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],hs=0,qo=0;function Cl(){for(var e=hs,t=qo=hs=0;t<e;){var a=Qt[t];Qt[t++]=null;var i=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var c=Qt[t];if(Qt[t++]=null,i!==null&&o!==null){var m=i.pending;m===null?o.next=o:(o.next=m.next,m.next=o),i.pending=o}c!==0&&rh(a,o,c)}}function Ml(e,t,a,i){Qt[hs++]=e,Qt[hs++]=t,Qt[hs++]=a,Qt[hs++]=i,qo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Go(e,t,a,i){return Ml(e,t,a,i),El(e)}function ka(e,t){return Ml(e,null,null,t),El(e)}function rh(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-zt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function El(e){if(50<zi)throw zi=0,Jc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ms={};function Cx(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,a,i){return new Cx(e,t,a,i)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var a=e.alternate;return a===null?(a=kt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function oh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zl(e,t,a,i,o,c){var m=0;if(i=e,typeof e=="function")Yo(e)&&(m=1);else if(typeof e=="string")m=kv(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=kt(31,a,t,o),e.elementType=de,e.lanes=c,e;case M:return Ra(a.children,o,c,t);case O:m=8,o|=24;break;case B:return e=kt(12,a,t,o|2),e.elementType=B,e.lanes=c,e;case Z:return e=kt(13,a,t,o),e.elementType=Z,e.lanes=c,e;case J:return e=kt(19,a,t,o),e.elementType=J,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case q:m=9;break e;case X:m=11;break e;case $:m=14;break e;case L:m=16,i=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=kt(m,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Ra(e,t,a,i){return e=kt(7,e,i,t),e.lanes=a,e}function Xo(e,t,a){return e=kt(6,e,null,t),e.lanes=a,e}function ch(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Zo(e,t,a){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var uh=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var a=uh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:cd(t)},uh.set(e,t),t)}return{value:e,source:t,stack:cd(t)}}var ps=[],gs=0,Dl=null,ci=0,Ft=[],Pt=0,$n=null,gn=1,yn="";function zn(e,t){ps[gs++]=ci,ps[gs++]=Dl,Dl=e,ci=t}function fh(e,t,a){Ft[Pt++]=gn,Ft[Pt++]=yn,Ft[Pt++]=$n,$n=e;var i=gn;e=yn;var o=32-zt(i)-1;i&=~(1<<o),a+=1;var c=32-zt(t)+o;if(30<c){var m=o-o%5;c=(i&(1<<m)-1).toString(32),i>>=m,o-=m,gn=1<<32-zt(t)+o|a<<o|i,yn=c+e}else gn=1<<c|a<<o|i,yn=e}function Qo(e){e.return!==null&&(zn(e,1),fh(e,1,0))}function Ko(e){for(;e===Dl;)Dl=ps[--gs],ps[gs]=null,ci=ps[--gs],ps[gs]=null;for(;e===$n;)$n=Ft[--Pt],Ft[Pt]=null,yn=Ft[--Pt],Ft[Pt]=null,gn=Ft[--Pt],Ft[Pt]=null}function dh(e,t){Ft[Pt++]=gn,Ft[Pt++]=yn,Ft[Pt++]=$n,gn=t.id,yn=t.overflow,$n=e}var ct=null,He=null,Ee=!1,Jn=null,$t=!1,Fo=Error(r(519));function Wn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ui(Kt(t,e)),Fo}function hh(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[ot]=e,t[bt]=i,a){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(a=0;a<ki.length;a++)Ne(ki[a],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Ad(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Md(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||z0(t.textContent,a)?(i.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),i.onScroll!=null&&Ne("scroll",t),i.onScrollEnd!=null&&Ne("scrollend",t),i.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||Wn(e,!0)}function mh(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:ct=ct.return}}function ys(e){if(e!==ct)return!1;if(!Ee)return mh(e),Ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||du(e.type,e.memoizedProps)),a=!a),a&&He&&Wn(e),mh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=U0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=U0(e)}else t===27?(t=He,da(e.type)?(e=yu,yu=null,He=e):He=t):He=ct?Wt(e.stateNode.nextSibling):null;return!0}function Va(){He=ct=null,Ee=!1}function Po(){var e=Jn;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Jn=null),e}function ui(e){Jn===null?Jn=[e]:Jn.push(e)}var $o=N(null),Oa=null,Dn=null;function In(e,t,a){I($o,t._currentValue),t._currentValue=a}function kn(e){e._currentValue=$o.current,H($o)}function Jo(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Wo(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),Jo(c.return,a,e),i||(m=null);break e}c=v.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Jo(m,a,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function xs(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=o.type;Dt(o.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(o===Me.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Li):e=[Li])}o=o.return}e!==null&&Wo(t,e,a,i),t.flags|=262144}function kl(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Oa=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return ph(Oa,e)}function Rl(e,t){return Oa===null&&_a(e),ph(e,t)}function ph(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return a}var Mx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ex=n.unstable_scheduleCallback,zx=n.unstable_NormalPriority,$e={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Mx,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&Ex(zx,function(){e.controller.abort()})}var di=null,ec=0,vs=0,bs=null;function Dx(e,t){if(di===null){var a=di=[];ec=0,vs=au(),bs={status:"pending",value:void 0,then:function(i){a.push(i)}}}return ec++,t.then(gh,gh),t}function gh(){if(--ec===0&&di!==null){bs!==null&&(bs.status="fulfilled");var e=di;di=null,vs=0,bs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kx(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var yh=D.S;D.S=function(e,t){e0=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dx(e,t),yh!==null&&yh(e,t)};var La=N(null);function tc(){var e=La.current;return e!==null?e:Be.pooledCache}function Vl(e,t){t===null?I(La,La.current):I(La,t.pool)}function xh(){var e=tc();return e===null?null:{parent:$e._currentValue,pool:e}}var Ss=Error(r(460)),nc=Error(r(474)),Ol=Error(r(542)),_l={then:function(){}};function vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Cn,Cn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jh(e),e;default:if(typeof t.status=="string")t.then(Cn,Cn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jh(e),e}throw Ua=t,Ss}}function Ba(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ua=a,Ss):a}}var Ua=null;function Sh(){if(Ua===null)throw Error(r(459));var e=Ua;return Ua=null,e}function jh(e){if(e===Ss||e===Ol)throw Error(r(483))}var js=null,hi=0;function Ll(e){var t=hi;return hi+=1,js===null&&(js=[]),bh(js,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bl(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wh(e){function t(C,A){if(e){var z=C.deletions;z===null?(C.deletions=[A],C.flags|=16):z.push(A)}}function a(C,A){if(!e)return null;for(;A!==null;)t(C,A),A=A.sibling;return null}function i(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function o(C,A){return C=En(C,A),C.index=0,C.sibling=null,C}function c(C,A,z){return C.index=z,e?(z=C.alternate,z!==null?(z=z.index,z<A?(C.flags|=67108866,A):z):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function m(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function v(C,A,z,U){return A===null||A.tag!==6?(A=Xo(z,C.mode,U),A.return=C,A):(A=o(A,z),A.return=C,A)}function w(C,A,z,U){var ce=z.type;return ce===M?_(C,A,z.props.children,U,z.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===L&&Ba(ce)===A.type)?(A=o(A,z.props),mi(A,z),A.return=C,A):(A=zl(z.type,z.key,z.props,null,C.mode,U),mi(A,z),A.return=C,A)}function k(C,A,z,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==z.containerInfo||A.stateNode.implementation!==z.implementation?(A=Zo(z,C.mode,U),A.return=C,A):(A=o(A,z.children||[]),A.return=C,A)}function _(C,A,z,U,ce){return A===null||A.tag!==7?(A=Ra(z,C.mode,U,ce),A.return=C,A):(A=o(A,z),A.return=C,A)}function G(C,A,z){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Xo(""+A,C.mode,z),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return z=zl(A.type,A.key,A.props,null,C.mode,z),mi(z,A),z.return=C,z;case T:return A=Zo(A,C.mode,z),A.return=C,A;case L:return A=Ba(A),G(C,A,z)}if(ye(A)||oe(A))return A=Ra(A,C.mode,z,null),A.return=C,A;if(typeof A.then=="function")return G(C,Ll(A),z);if(A.$$typeof===Y)return G(C,Rl(C,A),z);Bl(C,A)}return null}function R(C,A,z,U){var ce=A!==null?A.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ce!==null?null:v(C,A,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===ce?w(C,A,z,U):null;case T:return z.key===ce?k(C,A,z,U):null;case L:return z=Ba(z),R(C,A,z,U)}if(ye(z)||oe(z))return ce!==null?null:_(C,A,z,U,null);if(typeof z.then=="function")return R(C,A,Ll(z),U);if(z.$$typeof===Y)return R(C,A,Rl(C,z),U);Bl(C,z)}return null}function V(C,A,z,U,ce){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(z)||null,v(A,C,""+U,ce);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return C=C.get(U.key===null?z:U.key)||null,w(A,C,U,ce);case T:return C=C.get(U.key===null?z:U.key)||null,k(A,C,U,ce);case L:return U=Ba(U),V(C,A,z,U,ce)}if(ye(U)||oe(U))return C=C.get(z)||null,_(A,C,U,ce,null);if(typeof U.then=="function")return V(C,A,z,Ll(U),ce);if(U.$$typeof===Y)return V(C,A,z,Rl(A,U),ce);Bl(A,U)}return null}function ae(C,A,z,U){for(var ce=null,ze=null,ie=A,ve=A=0,Ce=null;ie!==null&&ve<z.length;ve++){ie.index>ve?(Ce=ie,ie=null):Ce=ie.sibling;var De=R(C,ie,z[ve],U);if(De===null){ie===null&&(ie=Ce);break}e&&ie&&De.alternate===null&&t(C,ie),A=c(De,A,ve),ze===null?ce=De:ze.sibling=De,ze=De,ie=Ce}if(ve===z.length)return a(C,ie),Ee&&zn(C,ve),ce;if(ie===null){for(;ve<z.length;ve++)ie=G(C,z[ve],U),ie!==null&&(A=c(ie,A,ve),ze===null?ce=ie:ze.sibling=ie,ze=ie);return Ee&&zn(C,ve),ce}for(ie=i(ie);ve<z.length;ve++)Ce=V(ie,C,ve,z[ve],U),Ce!==null&&(e&&Ce.alternate!==null&&ie.delete(Ce.key===null?ve:Ce.key),A=c(Ce,A,ve),ze===null?ce=Ce:ze.sibling=Ce,ze=Ce);return e&&ie.forEach(function(ya){return t(C,ya)}),Ee&&zn(C,ve),ce}function he(C,A,z,U){if(z==null)throw Error(r(151));for(var ce=null,ze=null,ie=A,ve=A=0,Ce=null,De=z.next();ie!==null&&!De.done;ve++,De=z.next()){ie.index>ve?(Ce=ie,ie=null):Ce=ie.sibling;var ya=R(C,ie,De.value,U);if(ya===null){ie===null&&(ie=Ce);break}e&&ie&&ya.alternate===null&&t(C,ie),A=c(ya,A,ve),ze===null?ce=ya:ze.sibling=ya,ze=ya,ie=Ce}if(De.done)return a(C,ie),Ee&&zn(C,ve),ce;if(ie===null){for(;!De.done;ve++,De=z.next())De=G(C,De.value,U),De!==null&&(A=c(De,A,ve),ze===null?ce=De:ze.sibling=De,ze=De);return Ee&&zn(C,ve),ce}for(ie=i(ie);!De.done;ve++,De=z.next())De=V(ie,C,ve,De.value,U),De!==null&&(e&&De.alternate!==null&&ie.delete(De.key===null?ve:De.key),A=c(De,A,ve),ze===null?ce=De:ze.sibling=De,ze=De);return e&&ie.forEach(function(Yv){return t(C,Yv)}),Ee&&zn(C,ve),ce}function Le(C,A,z,U){if(typeof z=="object"&&z!==null&&z.type===M&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:e:{for(var ce=z.key;A!==null;){if(A.key===ce){if(ce=z.type,ce===M){if(A.tag===7){a(C,A.sibling),U=o(A,z.props.children),U.return=C,C=U;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===L&&Ba(ce)===A.type){a(C,A.sibling),U=o(A,z.props),mi(U,z),U.return=C,C=U;break e}a(C,A);break}else t(C,A);A=A.sibling}z.type===M?(U=Ra(z.props.children,C.mode,U,z.key),U.return=C,C=U):(U=zl(z.type,z.key,z.props,null,C.mode,U),mi(U,z),U.return=C,C=U)}return m(C);case T:e:{for(ce=z.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===z.containerInfo&&A.stateNode.implementation===z.implementation){a(C,A.sibling),U=o(A,z.children||[]),U.return=C,C=U;break e}else{a(C,A);break}else t(C,A);A=A.sibling}U=Zo(z,C.mode,U),U.return=C,C=U}return m(C);case L:return z=Ba(z),Le(C,A,z,U)}if(ye(z))return ae(C,A,z,U);if(oe(z)){if(ce=oe(z),typeof ce!="function")throw Error(r(150));return z=ce.call(z),he(C,A,z,U)}if(typeof z.then=="function")return Le(C,A,Ll(z),U);if(z.$$typeof===Y)return Le(C,A,Rl(C,z),U);Bl(C,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,A!==null&&A.tag===6?(a(C,A.sibling),U=o(A,z),U.return=C,C=U):(a(C,A),U=Xo(z,C.mode,U),U.return=C,C=U),m(C)):a(C,A)}return function(C,A,z,U){try{hi=0;var ce=Le(C,A,z,U);return js=null,ce}catch(ie){if(ie===Ss||ie===Ol)throw ie;var ze=kt(29,ie,null,C.mode);return ze.lanes=U,ze.return=C,ze}}}var Ha=wh(!0),Th=wh(!1),ea=!1;function ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function na(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ke&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=El(e),rh(e,null,a),t}return Ml(e,i,t,a),El(e)}function pi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,pd(e,a)}}function ic(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lc=!1;function gi(){if(lc){var e=bs;if(e!==null)throw e}}function yi(e,t,a,i){lc=!1;var o=e.updateQueue;ea=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,k=w.next;w.next=null,m===null?c=k:m.next=k,m=w;var _=e.alternate;_!==null&&(_=_.updateQueue,v=_.lastBaseUpdate,v!==m&&(v===null?_.firstBaseUpdate=k:v.next=k,_.lastBaseUpdate=w))}if(c!==null){var G=o.baseState;m=0,_=k=w=null,v=c;do{var R=v.lane&-536870913,V=R!==v.lane;if(V?(Ae&R)===R:(i&R)===R){R!==0&&R===vs&&(lc=!0),_!==null&&(_=_.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,he=v;R=t;var Le=a;switch(he.tag){case 1:if(ae=he.payload,typeof ae=="function"){G=ae.call(Le,G,R);break e}G=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=he.payload,R=typeof ae=="function"?ae.call(Le,G,R):ae,R==null)break e;G=b({},G,R);break e;case 2:ea=!0}}R=v.callback,R!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[R]:V.push(R))}else V={lane:R,tag:v.tag,payload:v.payload,callback:v.callback,next:null},_===null?(k=_=V,w=G):_=_.next=V,m|=R;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;V=v,v=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);_===null&&(w=G),o.baseState=w,o.firstBaseUpdate=k,o.lastBaseUpdate=_,c===null&&(o.shared.lanes=0),ra|=m,e.lanes=m,e.memoizedState=G}}function Nh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ah(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Nh(a[e],t)}var ws=N(null),Ul=N(0);function Ch(e,t){e=qn,I(Ul,e),I(ws,t),qn=e|t.baseLanes}function rc(){I(Ul,qn),I(ws,ws.current)}function oc(){qn=Ul.current,H(ws),H(Ul)}var Rt=N(null),Jt=null;function aa(e){var t=e.alternate;I(Fe,Fe.current&1),I(Rt,e),Jt===null&&(t===null||ws.current!==null||t.memoizedState!==null)&&(Jt=e)}function cc(e){I(Fe,Fe.current),I(Rt,e),Jt===null&&(Jt=e)}function Mh(e){e.tag===22?(I(Fe,Fe.current),I(Rt,e),Jt===null&&(Jt=e)):sa()}function sa(){I(Fe,Fe.current),I(Rt,Rt.current)}function Vt(e){H(Rt),Jt===e&&(Jt=null),H(Fe)}var Fe=N(0);function Hl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||pu(a)||gu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rn=0,xe=null,Oe=null,Je=null,ql=!1,Ts=!1,qa=!1,Gl=0,xi=0,Ns=null,Rx=0;function Ze(){throw Error(r(321))}function uc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Dt(e[a],t[a]))return!1;return!0}function fc(e,t,a,i,o,c){return Rn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?fm:Ac,qa=!1,c=a(i,o),qa=!1,Ts&&(c=zh(t,a,i,o)),Eh(e),c}function Eh(e){D.H=Si;var t=Oe!==null&&Oe.next!==null;if(Rn=0,Je=Oe=xe=null,ql=!1,xi=0,Ns=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&kl(e)&&(We=!0))}function zh(e,t,a,i){xe=e;var o=0;do{if(Ts&&(Ns=null),xi=0,Ts=!1,25<=o)throw Error(r(301));if(o+=1,Je=Oe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=dm,c=t(a,i)}while(Ts);return c}function Vx(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(xe.flags|=1024),t}function dc(){var e=Gl!==0;return Gl=0,e}function hc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function mc(e){if(ql){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ql=!1}Rn=0,Je=Oe=xe=null,Ts=!1,xi=Gl=0,Ns=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?xe.memoizedState=Je=e:Je=Je.next=e,Je}function Pe(){if(Oe===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Je===null?xe.memoizedState:Je.next;if(t!==null)Je=t,Oe=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Je===null?xe.memoizedState=Je=e:Je=Je.next=e}return Je}function Yl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=xi;return xi+=1,Ns===null&&(Ns=[]),e=bh(Ns,e,t),t=xe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?fm:Ac),e}function Xl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===Y)return ut(e)}throw Error(r(438,String(e)))}function pc(e){var t=null,a=xe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yl(),xe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=le;return t.index++,a}function Vn(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=Pe();return gc(t,Oe,e)}function gc(e,t,a){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=m=null,w=null,k=t,_=!1;do{var G=k.lane&-536870913;if(G!==k.lane?(Ae&G)===G:(Rn&G)===G){var R=k.revertLane;if(R===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),G===vs&&(_=!0);else if((Rn&R)===R){k=k.next,R===vs&&(_=!0);continue}else G={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(v=w=G,m=c):w=w.next=G,xe.lanes|=R,ra|=R;G=k.action,qa&&a(c,G),c=k.hasEagerState?k.eagerState:a(c,G)}else R={lane:G,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(v=w=R,m=c):w=w.next=R,xe.lanes|=G,ra|=G;k=k.next}while(k!==null&&k!==t);if(w===null?m=c:w.next=v,!Dt(c,e.memoizedState)&&(We=!0,_&&(a=bs,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=w,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function yc(e){var t=Pe(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);Dt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Dh(e,t,a){var i=xe,o=Pe(),c=Ee;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=t();var m=!Dt((Oe||o).memoizedState,a);if(m&&(o.memoizedState=a,We=!0),o=o.queue,bc(Vh.bind(null,i,o,e),[e]),o.getSnapshot!==t||m||Je!==null&&Je.memoizedState.tag&1){if(i.flags|=2048,As(9,{destroy:void 0},Rh.bind(null,i,o,a,t),null),Be===null)throw Error(r(349));c||(Rn&127)!==0||kh(i,t,a)}return a}function kh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=xe.updateQueue,t===null?(t=Yl(),xe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Rh(e,t,a,i){t.value=a,t.getSnapshot=i,Oh(t)&&_h(e)}function Vh(e,t,a){return a(function(){Oh(t)&&_h(e)})}function Oh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Dt(e,a)}catch{return!0}}function _h(e){var t=ka(e,2);t!==null&&At(t,e,2)}function xc(e){var t=yt();if(typeof e=="function"){var a=e;if(e=a(),qa){Kn(!0);try{a()}finally{Kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function Lh(e,t,a,i){return e.baseState=a,gc(e,Oe,typeof i=="function"?i:Vn)}function Ox(e,t,a,i,o){if(Fl(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Bh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Bh(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=D.T,m={};D.T=m;try{var v=a(o,i),w=D.S;w!==null&&w(m,v),Uh(e,t,v)}catch(k){vc(e,t,k)}finally{c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}else try{c=a(o,i),Uh(e,t,c)}catch(k){vc(e,t,k)}}function Uh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Hh(e,t,i)},function(i){return vc(e,t,i)}):Hh(e,t,a)}function Hh(e,t,a){t.status="fulfilled",t.value=a,qh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Bh(e,a)))}function vc(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,qh(t),t=t.next;while(t!==i)}e.action=null}function qh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gh(e,t){return t}function Yh(e,t){if(Ee){var a=Be.formState;if(a!==null){e:{var i=xe;if(Ee){if(He){t:{for(var o=He,c=$t;o.nodeType!==8;){if(!c){o=null;break t}if(o=Wt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=Wt(o.nextSibling),i=o.data==="F!";break e}}Wn(i)}i=!1}i&&(t=a[0])}}return a=yt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gh,lastRenderedState:t},a.queue=i,a=om.bind(null,xe,i),i.dispatch=a,i=xc(!1),c=Nc.bind(null,xe,!1,i.queue),i=yt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=Ox.bind(null,xe,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Xh(e){var t=Pe();return Zh(t,Oe,e)}function Zh(e,t,a){if(t=gc(e,t,Gh)[0],e=Zl(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=vi(t)}catch(m){throw m===Ss?Ol:m}else i=t;t=Pe();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(xe.flags|=2048,As(9,{destroy:void 0},_x.bind(null,o,a),null)),[i,c,e]}function _x(e,t){e.action=t}function Qh(e){var t=Pe(),a=Oe;if(a!==null)return Zh(t,a,e);Pe(),t=t.memoizedState,a=Pe();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function As(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Yl(),xe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Kh(){return Pe().memoizedState}function Ql(e,t,a,i){var o=yt();xe.flags|=e,o.memoizedState=As(1|t,{destroy:void 0},a,i===void 0?null:i)}function Kl(e,t,a,i){var o=Pe();i=i===void 0?null:i;var c=o.memoizedState.inst;Oe!==null&&i!==null&&uc(i,Oe.memoizedState.deps)?o.memoizedState=As(t,c,a,i):(xe.flags|=e,o.memoizedState=As(1|t,c,a,i))}function Fh(e,t){Ql(8390656,8,e,t)}function bc(e,t){Kl(2048,8,e,t)}function Lx(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Yl(),xe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ph(e){var t=Pe().memoizedState;return Lx({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function $h(e,t){return Kl(4,2,e,t)}function Jh(e,t){return Kl(4,4,e,t)}function Wh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ih(e,t,a){a=a!=null?a.concat([e]):null,Kl(4,4,Wh.bind(null,t,e),a)}function Sc(){}function em(e,t){var a=Pe();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&uc(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function tm(e,t){var a=Pe();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&uc(t,i[1]))return i[0];if(i=e(),qa){Kn(!0);try{e()}finally{Kn(!1)}}return a.memoizedState=[i,t],i}function jc(e,t,a){return a===void 0||(Rn&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=n0(),xe.lanes|=e,ra|=e,a)}function nm(e,t,a,i){return Dt(a,t)?a:ws.current!==null?(e=jc(e,a,i),Dt(e,t)||(We=!0),e):(Rn&42)===0||(Rn&1073741824)!==0&&(Ae&261930)===0?(We=!0,e.memoizedState=a):(e=n0(),xe.lanes|=e,ra|=e,t)}function am(e,t,a,i,o){var c=K.p;K.p=c!==0&&8>c?c:8;var m=D.T,v={};D.T=v,Nc(e,!1,t,a);try{var w=o(),k=D.S;if(k!==null&&k(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var _=kx(w,i);bi(e,t,_,Lt(e))}else bi(e,t,i,Lt(e))}catch(G){bi(e,t,{then:function(){},status:"rejected",reason:G},Lt())}finally{K.p=c,m!==null&&v.types!==null&&(m.types=v.types),D.T=m}}function Bx(){}function wc(e,t,a,i){if(e.tag!==5)throw Error(r(476));var o=sm(e).queue;am(e,o,t,W,a===null?Bx:function(){return im(e),a(i)})}function sm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function im(e){var t=sm(e);t.next===null&&(t=e.alternate.memoizedState),bi(e,t.next.queue,{},Lt())}function Tc(){return ut(Li)}function lm(){return Pe().memoizedState}function rm(){return Pe().memoizedState}function Ux(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Lt();e=ta(a);var i=na(t,e,a);i!==null&&(At(i,t,a),pi(i,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function Hx(e,t,a){var i=Lt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fl(e)?cm(t,a):(a=Go(e,t,a,i),a!==null&&(At(a,e,i),um(a,t,i)))}function om(e,t,a){var i=Lt();bi(e,t,a,i)}function bi(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fl(e))cm(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,v=c(m,a);if(o.hasEagerState=!0,o.eagerState=v,Dt(v,m))return Ml(e,t,o,0),Be===null&&Cl(),!1}catch{}if(a=Go(e,t,o,i),a!==null)return At(a,e,i),um(a,t,i),!0}return!1}function Nc(e,t,a,i){if(i={lane:2,revertLane:au(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Fl(e)){if(t)throw Error(r(479))}else t=Go(e,a,i,2),t!==null&&At(t,e,2)}function Fl(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function cm(e,t){Ts=ql=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function um(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,pd(e,a)}}var Si={readContext:ut,use:Xl,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};Si.useEffectEvent=Ze;var fm={readContext:ut,use:Xl,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Fh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ql(4194308,4,Wh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ql(4194308,4,e,t)},useInsertionEffect:function(e,t){Ql(4,2,e,t)},useMemo:function(e,t){var a=yt();t=t===void 0?null:t;var i=e();if(qa){Kn(!0);try{e()}finally{Kn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=yt();if(a!==void 0){var o=a(t);if(qa){Kn(!0);try{a(t)}finally{Kn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Hx.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=xc(e);var t=e.queue,a=om.bind(null,xe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Sc,useDeferredValue:function(e,t){var a=yt();return jc(a,e,t)},useTransition:function(){var e=xc(!1);return e=am.bind(null,xe,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=xe,o=yt();if(Ee){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Be===null)throw Error(r(349));(Ae&127)!==0||kh(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Fh(Vh.bind(null,i,c,e),[e]),i.flags|=2048,As(9,{destroy:void 0},Rh.bind(null,i,c,a,t),null),a},useId:function(){var e=yt(),t=Be.identifierPrefix;if(Ee){var a=yn,i=gn;a=(i&~(1<<32-zt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Rx++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tc,useFormState:Yh,useActionState:Yh,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Nc.bind(null,xe,!0,a),a.dispatch=t,[e,t]},useMemoCache:pc,useCacheRefresh:function(){return yt().memoizedState=Ux.bind(null,xe)},useEffectEvent:function(e){var t=yt(),a={impl:e};return t.memoizedState=a,function(){if((ke&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Ac={readContext:ut,use:Xl,useCallback:em,useContext:ut,useEffect:bc,useImperativeHandle:Ih,useInsertionEffect:$h,useLayoutEffect:Jh,useMemo:tm,useReducer:Zl,useRef:Kh,useState:function(){return Zl(Vn)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=Pe();return nm(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Zl(Vn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Dh,useId:lm,useHostTransitionStatus:Tc,useFormState:Xh,useActionState:Xh,useOptimistic:function(e,t){var a=Pe();return Lh(a,Oe,e,t)},useMemoCache:pc,useCacheRefresh:rm};Ac.useEffectEvent=Ph;var dm={readContext:ut,use:Xl,useCallback:em,useContext:ut,useEffect:bc,useImperativeHandle:Ih,useInsertionEffect:$h,useLayoutEffect:Jh,useMemo:tm,useReducer:yc,useRef:Kh,useState:function(){return yc(Vn)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=Pe();return Oe===null?jc(a,e,t):nm(a,Oe.memoizedState,e,t)},useTransition:function(){var e=yc(Vn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:Dh,useId:lm,useHostTransitionStatus:Tc,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var a=Pe();return Oe!==null?Lh(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pc,useCacheRefresh:rm};dm.useEffectEvent=Ph;function Cc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Mc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Lt(),o=ta(i);o.payload=t,a!=null&&(o.callback=a),t=na(e,o,i),t!==null&&(At(t,e,i),pi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Lt(),o=ta(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=na(e,o,i),t!==null&&(At(t,e,i),pi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Lt(),i=ta(a);i.tag=2,t!=null&&(i.callback=t),t=na(e,i,a),t!==null&&(At(t,e,a),pi(t,e,a))}};function hm(e,t,a,i,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!ri(a,i)||!ri(o,c):!0}function mm(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Mc.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function pm(e){Al(e)}function gm(e){console.error(e)}function ym(e){Al(e)}function Pl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function xm(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ec(e,t,a){return a=ta(a),a.tag=3,a.payload={element:null},a.callback=function(){Pl(e,t)},a}function vm(e){return e=ta(e),e.tag=3,e}function bm(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){xm(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){xm(t,a,i),typeof o!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function qx(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&xs(t,a,o,!0),a=Rt.current,a!==null){switch(a.tag){case 31:case 13:return Jt===null?rr():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===_l?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),eu(e,i,o)),!1;case 22:return a.flags|=65536,i===_l?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),eu(e,i,o)),!1}throw Error(r(435,a.tag))}return eu(e,i,o),rr(),!1}if(Ee)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Fo&&(e=Error(r(422),{cause:i}),ui(Kt(e,a)))):(i!==Fo&&(t=Error(r(423),{cause:i}),ui(Kt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Kt(i,a),o=Ec(e.stateNode,i,o),ic(e,o),Qe!==4&&(Qe=2)),!1;var c=Error(r(520),{cause:i});if(c=Kt(c,a),Ei===null?Ei=[c]:Ei.push(c),Qe!==4&&(Qe=2),t===null)return!0;i=Kt(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Ec(a.stateNode,i,e),ic(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(oa===null||!oa.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=vm(o),bm(o,e,a,i),ic(a,o),!1}a=a.return}while(a!==null);return!1}var zc=Error(r(461)),We=!1;function ft(e,t,a,i){t.child=e===null?Th(t,null,a,i):Ha(t,e.child,a,i)}function Sm(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var m={};for(var v in i)v!=="ref"&&(m[v]=i[v])}else m=i;return _a(t),i=fc(e,t,a,m,c,o),v=dc(),e!==null&&!We?(hc(e,t,o),On(e,t,o)):(Ee&&v&&Qo(t),t.flags|=1,ft(e,t,i,o),t.child)}function jm(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!Yo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,wm(e,t,c,i,o)):(e=zl(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Bc(e,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:ri,a(m,i)&&e.ref===t.ref)return On(e,t,o)}return t.flags|=1,e=En(c,i),e.ref=t.ref,e.return=t,t.child=e}function wm(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(ri(c,i)&&e.ref===t.ref)if(We=!1,t.pendingProps=i=c,Bc(e,o))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,On(e,t,o)}return Dc(e,t,a,i,o)}function Tm(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Nm(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vl(t,c!==null?c.cachePool:null),c!==null?Ch(t,c):rc(),Mh(t);else return i=t.lanes=536870912,Nm(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(Vl(t,c.cachePool),Ch(t,c),sa(),t.memoizedState=null):(e!==null&&Vl(t,null),rc(),sa());return ft(e,t,o,a),t.child}function ji(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nm(e,t,a,i,o){var c=tc();return c=c===null?null:{parent:$e._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Vl(t,null),rc(),Mh(t),e!==null&&xs(e,t,i,!0),t.childLanes=o,null}function $l(e,t){return t=Wl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Am(e,t,a){return Ha(t,e.child,null,a),e=$l(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function Gx(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(i.mode==="hidden")return e=$l(t,i),t.lanes=536870912,ji(null,e);if(cc(t),(e=He)?(e=B0(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=ch(e),a.return=t,t.child=a,ct=t,He=null)):e=null,e===null)throw Wn(t);return t.lanes=536870912,null}return $l(t,i)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(cc(t),o)if(t.flags&256)t.flags&=-257,t=Am(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||xs(e,t,a,!1),o=(a&e.childLanes)!==0,We||o){if(i=Be,i!==null&&(m=gd(i,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,ka(e,m),At(i,e,m),zc;rr(),t=Am(e,t,a)}else e=c.treeContext,He=Wt(m.nextSibling),ct=t,Ee=!0,Jn=null,$t=!1,e!==null&&dh(t,e),t=$l(t,i),t.flags|=4096;return t}return e=En(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Dc(e,t,a,i,o){return _a(t),a=fc(e,t,a,i,void 0,o),i=dc(),e!==null&&!We?(hc(e,t,o),On(e,t,o)):(Ee&&i&&Qo(t),t.flags|=1,ft(e,t,a,o),t.child)}function Cm(e,t,a,i,o,c){return _a(t),t.updateQueue=null,a=zh(t,i,a,o),Eh(e),i=dc(),e!==null&&!We?(hc(e,t,c),On(e,t,c)):(Ee&&i&&Qo(t),t.flags|=1,ft(e,t,a,c),t.child)}function Mm(e,t,a,i,o){if(_a(t),t.stateNode===null){var c=ms,m=a.contextType;typeof m=="object"&&m!==null&&(c=ut(m)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Mc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},ac(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?ut(m):ms,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Cc(t,a,m,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Mc.enqueueReplaceState(c,c.state,null),yi(t,i,c,o),gi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,w=Ga(a,v);c.props=w;var k=c.context,_=a.contextType;m=ms,typeof _=="object"&&_!==null&&(m=ut(_));var G=a.getDerivedStateFromProps;_=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,_||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||k!==m)&&mm(t,c,i,m),ea=!1;var R=t.memoizedState;c.state=R,yi(t,i,c,o),gi(),k=t.memoizedState,v||R!==k||ea?(typeof G=="function"&&(Cc(t,a,G,i),k=t.memoizedState),(w=ea||hm(t,a,w,i,R,k,m))?(_||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=k),c.props=i,c.state=k,c.context=m,i=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,sc(e,t),m=t.memoizedProps,_=Ga(a,m),c.props=_,G=t.pendingProps,R=c.context,k=a.contextType,w=ms,typeof k=="object"&&k!==null&&(w=ut(k)),v=a.getDerivedStateFromProps,(k=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==G||R!==w)&&mm(t,c,i,w),ea=!1,R=t.memoizedState,c.state=R,yi(t,i,c,o),gi();var V=t.memoizedState;m!==G||R!==V||ea||e!==null&&e.dependencies!==null&&kl(e.dependencies)?(typeof v=="function"&&(Cc(t,a,v,i),V=t.memoizedState),(_=ea||hm(t,a,_,i,R,V,w)||e!==null&&e.dependencies!==null&&kl(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,V,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,V,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=w,i=_):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Jl(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ha(t,e.child,null,o),t.child=Ha(t,null,a,o)):ft(e,t,a,o),t.memoizedState=c.state,e=t.child):e=On(e,t,o),e}function Em(e,t,a,i){return Va(),t.flags|=256,ft(e,t,a,i),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:xh()}}function Vc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function zm(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(o?aa(t):sa(),(e=He)?(e=B0(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},a=ch(e),a.return=t,t.child=a,ct=t,He=null)):e=null,e===null)throw Wn(t);return gu(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(sa(),o=t.mode,v=Wl({mode:"hidden",children:v},o),i=Ra(i,o,a,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=Rc(a),i.childLanes=Vc(e,m,a),t.memoizedState=kc,ji(null,i)):(aa(t),Oc(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(c)t.flags&256?(aa(t),t.flags&=-257,t=_c(e,t,a)):t.memoizedState!==null?(sa(),t.child=e.child,t.flags|=128,t=null):(sa(),v=i.fallback,o=t.mode,i=Wl({mode:"visible",children:i.children},o),v=Ra(v,o,a,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ha(t,e.child,null,a),i=t.child,i.memoizedState=Rc(a),i.childLanes=Vc(e,m,a),t.memoizedState=kc,t=ji(null,i));else if(aa(t),gu(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var k=m.dgst;m=k,i=Error(r(419)),i.stack="",i.digest=m,ui({value:i,source:null,stack:null}),t=_c(e,t,a)}else if(We||xs(e,t,a,!1),m=(a&e.childLanes)!==0,We||m){if(m=Be,m!==null&&(i=gd(m,a),i!==0&&i!==w.retryLane))throw w.retryLane=i,ka(e,i),At(m,e,i),zc;pu(v)||rr(),t=_c(e,t,a)}else pu(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,He=Wt(v.nextSibling),ct=t,Ee=!0,Jn=null,$t=!1,e!==null&&dh(t,e),t=Oc(t,i.children),t.flags|=4096);return t}return o?(sa(),v=i.fallback,o=t.mode,w=e.child,k=w.sibling,i=En(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,k!==null?v=En(k,v):(v=Ra(v,o,a,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,ji(null,i),i=t.child,v=e.child.memoizedState,v===null?v=Rc(a):(o=v.cachePool,o!==null?(w=$e._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=xh(),v={baseLanes:v.baseLanes|a,cachePool:o}),i.memoizedState=v,i.childLanes=Vc(e,m,a),t.memoizedState=kc,ji(e.child,i)):(aa(t),a=e.child,e=a.sibling,a=En(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Oc(e,t){return t=Wl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wl(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function _c(e,t,a){return Ha(t,e.child,null,a),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dm(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Jo(e.return,t,a)}function Lc(e,t,a,i,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function km(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var m=Fe.current,v=(m&2)!==0;if(v?(m=m&1|2,t.flags|=128):m&=1,I(Fe,m),ft(e,t,i,a),i=Ee?ci:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dm(e,a,t);else if(e.tag===19)Dm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Hl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Lc(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Hl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Lc(t,!0,a,null,c,i);break;case"together":Lc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function On(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ra|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(xs(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=En(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=En(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Bc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kl(e)))}function Yx(e,t,a){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),In(t,$e,e.memoizedState.cache),Va();break;case 27:case 5:Zn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(aa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?zm(e,t,a):(aa(t),e=On(e,t,a),e!==null?e.sibling:null);aa(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(xs(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return km(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Fe,Fe.current),i)break;return null;case 22:return t.lanes=0,Tm(e,t,a,t.pendingProps);case 24:In(t,$e,e.memoizedState.cache)}return On(e,t,a)}function Rm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Bc(e,a)&&(t.flags&128)===0)return We=!1,Yx(e,t,a);We=(e.flags&131072)!==0}else We=!1,Ee&&(t.flags&1048576)!==0&&fh(t,ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ba(t.elementType),t.type=e,typeof e=="function")Yo(e)?(i=Ga(e,i),t.tag=1,t=Mm(null,t,e,i,a)):(t.tag=0,t=Dc(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=Sm(null,t,e,i,a);break e}else if(o===$){t.tag=14,t=jm(null,t,e,i,a);break e}}throw t=be(e)||e,Error(r(306,t,""))}}return t;case 0:return Dc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Ga(i,t.pendingProps),Mm(e,t,i,o,a);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,sc(e,t),yi(t,i,null,a);var m=t.memoizedState;if(i=m.cache,In(t,$e,i),i!==c.cache&&Wo(t,[$e],a,!0),gi(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Em(e,t,i,a);break e}else if(i!==o){o=Kt(Error(r(424)),t),ui(o),t=Em(e,t,i,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,He=Wt(e.firstChild),ct=t,Ee=!0,Jn=null,$t=!0,a=Th(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Va(),i===o){t=On(e,t,a);break e}ft(e,t,i,a)}t=t.child}return t;case 26:return Jl(e,t),e===null?(a=X0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(a=t.type,e=t.pendingProps,i=mr(ue.current).createElement(a),i[ot]=t,i[bt]=e,dt(i,a,e),lt(i),t.stateNode=i):t.memoizedState=X0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zn(t),e===null&&Ee&&(i=t.stateNode=q0(t.type,t.pendingProps,ue.current),ct=t,$t=!0,o=He,da(t.type)?(yu=o,He=Wt(i.firstChild)):He=o),ft(e,t,t.pendingProps.children,a),Jl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((o=i=He)&&(i=vv(i,t.type,t.pendingProps,$t),i!==null?(t.stateNode=i,ct=t,He=Wt(i.firstChild),$t=!1,o=!0):o=!1),o||Wn(t)),Zn(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,i=c.children,du(o,c)?i=null:m!==null&&du(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=fc(e,t,Vx,null,null,a),Li._currentValue=o),Jl(e,t),ft(e,t,i,a),t.child;case 6:return e===null&&Ee&&((e=a=He)&&(a=bv(a,t.pendingProps,$t),a!==null?(t.stateNode=a,ct=t,He=null,e=!0):e=!1),e||Wn(t)),null;case 13:return zm(e,t,a);case 4:return it(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ha(t,null,i,a):ft(e,t,i,a),t.child;case 11:return Sm(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,In(t,t.type,i.value),ft(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,_a(t),o=ut(o),i=i(o),t.flags|=1,ft(e,t,i,a),t.child;case 14:return jm(e,t,t.type,t.pendingProps,a);case 15:return wm(e,t,t.type,t.pendingProps,a);case 19:return km(e,t,a);case 31:return Gx(e,t,a);case 22:return Tm(e,t,a,t.pendingProps);case 24:return _a(t),i=ut($e),e===null?(o=tc(),o===null&&(o=Be,c=Io(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},ac(t),In(t,$e,o)):((e.lanes&a)!==0&&(sc(e,t),yi(t,null,null,a),gi()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),In(t,$e,i)):(i=c.cache,In(t,$e,i),i!==o.cache&&Wo(t,[$e],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function _n(e){e.flags|=4}function Uc(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(l0())e.flags|=8192;else throw Ua=_l,nc}else e.flags&=-16777217}function Vm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!P0(t))if(l0())e.flags|=8192;else throw Ua=_l,nc}function Il(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?hd():536870912,e.lanes|=t,zs|=t)}function wi(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Xx(e,t,a){var i=t.pendingProps;switch(Ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),kn($e),Se(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ys(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Po())),qe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(_n(t),c!==null?(qe(t),Vm(t,c)):(qe(t),Uc(t,o,null,i,a))):c?c!==e.memoizedState?(_n(t),qe(t),Vm(t,c)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&_n(t),qe(t),Uc(t,o,e,i,a)),null;case 27:if(Nn(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&_n(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=te.current,ys(t)?hh(t):(e=q0(o,i,a),t.stateNode=e,_n(t))}return qe(t),null;case 5:if(Nn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&_n(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(c=te.current,ys(t))hh(t);else{var m=mr(ue.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(o,{is:i.is}):m.createElement(o)}}c[ot]=t,c[bt]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(dt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&_n(t)}}return qe(t),Uc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&_n(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ys(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=ct,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||z0(e.nodeValue,a)),e||Wn(t,!0)}else e=mr(e).createTextNode(i),e[ot]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=ys(t),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ot]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ys(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ot]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else o=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Il(t,t.updateQueue),qe(t),null);case 4:return Se(),e===null&&ru(t.stateNode.containerInfo),qe(t),null;case 10:return kn(t.type),qe(t),null;case 19:if(H(Fe),i=t.memoizedState,i===null)return qe(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)wi(i,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Hl(e),c!==null){for(t.flags|=128,wi(i,!1),e=c.updateQueue,t.updateQueue=e,Il(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)oh(a,e),a=a.sibling;return I(Fe,Fe.current&1|2),Ee&&zn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Mt()>sr&&(t.flags|=128,o=!0,wi(i,!1),t.lanes=4194304)}else{if(!o)if(e=Hl(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Il(t,e),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ee)return qe(t),null}else 2*Mt()-i.renderingStartTime>sr&&a!==536870912&&(t.flags|=128,o=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Mt(),e.sibling=null,a=Fe.current,I(Fe,o?a&1|2:a&1),Ee&&zn(t,i.treeForkCount),e):(qe(t),null);case 22:case 23:return Vt(t),oc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&Il(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&H(La),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),kn($e),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Zx(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn($e),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nn(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(r(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Fe),null;case 4:return Se(),null;case 10:return kn(t.type),null;case 22:case 23:return Vt(t),oc(),e!==null&&H(La),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn($e),null;case 25:return null;default:return null}}function Om(e,t){switch(Ko(t),t.tag){case 3:kn($e),Se();break;case 26:case 27:case 5:Nn(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:H(Fe);break;case 10:kn(t.type);break;case 22:case 23:Vt(t),oc(),e!==null&&H(La);break;case 24:kn($e)}}function Ti(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,m=a.inst;i=c(),m.destroy=i}a=a.next}while(a!==o)}}catch(v){Ve(t,t.return,v)}}function ia(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var m=i.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,o=t;var w=a,k=v;try{k()}catch(_){Ve(o,w,_)}}}i=i.next}while(i!==c)}}catch(_){Ve(t,t.return,_)}}function _m(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ah(t,a)}catch(i){Ve(e,e.return,i)}}}function Lm(e,t,a){a.props=Ga(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ve(e,t,i)}}function Ni(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Ve(e,t,o)}}function xn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ve(e,t,o)}else a.current=null}function Bm(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Ve(e,e.return,o)}}function Hc(e,t,a){try{var i=e.stateNode;hv(i,e.type,a,t),i[bt]=t}catch(o){Ve(e,e.return,o)}}function Um(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&da(e.type)||e.tag===4}function qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Um(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&&da(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 Gc(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Cn));else if(i!==4&&(i===27&&da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,a),e=e.sibling;e!==null;)Gc(e,t,a),e=e.sibling}function er(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(er(e,t,a),e=e.sibling;e!==null;)er(e,t,a),e=e.sibling}function Hm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,i,a),t[ot]=e,t[bt]=a}catch(c){Ve(e,e.return,c)}}var Ln=!1,Ie=!1,Yc=!1,qm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Qx(e,t){if(e=e.containerInfo,uu=Sr,e=Id(e),_o(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,v=-1,w=-1,k=0,_=0,G=e,R=null;t:for(;;){for(var V;G!==a||o!==0&&G.nodeType!==3||(v=m+o),G!==c||i!==0&&G.nodeType!==3||(w=m+i),G.nodeType===3&&(m+=G.nodeValue.length),(V=G.firstChild)!==null;)R=G,G=V;for(;;){if(G===e)break t;if(R===a&&++k===o&&(v=m),R===c&&++_===i&&(w=m),(V=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=V}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(fu={focusedElem:e,selectionRange:a},Sr=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var ae=Ga(a.type,o);e=i.getSnapshotBeforeUpdate(ae,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ve(a,a.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)mu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mu(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=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function Gm(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Un(e,a),i&4&&Ti(5,a);break;case 1:if(Un(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Ve(a,a.return,m)}else{var o=Ga(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ve(a,a.return,m)}}i&64&&_m(a),i&512&&Ni(a,a.return);break;case 3:if(Un(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Ah(e,t)}catch(m){Ve(a,a.return,m)}}break;case 27:t===null&&i&4&&Hm(a);case 26:case 5:Un(e,a),t===null&&i&4&&Bm(a),i&512&&Ni(a,a.return);break;case 12:Un(e,a);break;case 31:Un(e,a),i&4&&Zm(e,a);break;case 13:Un(e,a),i&4&&Qm(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=tv.bind(null,a),Sv(e,a))));break;case 22:if(i=a.memoizedState!==null||Ln,!i){t=t!==null&&t.memoizedState!==null||Ie,o=Ln;var c=Ie;Ln=i,(Ie=t)&&!c?Hn(e,a,(a.subtreeFlags&8772)!==0):Un(e,a),Ln=o,Ie=c}break;case 30:break;default:Un(e,a)}}function Ym(e){var t=e.alternate;t!==null&&(e.alternate=null,Ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vo(t)),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 Xe=null,jt=!1;function Bn(e,t,a){for(a=a.child;a!==null;)Xm(e,t,a),a=a.sibling}function Xm(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Ps,a)}catch{}switch(a.tag){case 26:Ie||xn(a,t),Bn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ie||xn(a,t);var i=Xe,o=jt;da(a.type)&&(Xe=a.stateNode,jt=!1),Bn(e,t,a),Vi(a.stateNode),Xe=i,jt=o;break;case 5:Ie||xn(a,t);case 6:if(i=Xe,o=jt,Xe=null,Bn(e,t,a),Xe=i,jt=o,Xe!==null)if(jt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(c){Ve(a,t,c)}else try{Xe.removeChild(a.stateNode)}catch(c){Ve(a,t,c)}break;case 18:Xe!==null&&(jt?(e=Xe,_0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bs(e)):_0(Xe,a.stateNode));break;case 4:i=Xe,o=jt,Xe=a.stateNode.containerInfo,jt=!0,Bn(e,t,a),Xe=i,jt=o;break;case 0:case 11:case 14:case 15:ia(2,a,t),Ie||ia(4,a,t),Bn(e,t,a);break;case 1:Ie||(xn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Lm(a,t,i)),Bn(e,t,a);break;case 21:Bn(e,t,a);break;case 22:Ie=(i=Ie)||a.memoizedState!==null,Bn(e,t,a),Ie=i;break;default:Bn(e,t,a)}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bs(e)}catch(a){Ve(t,t.return,a)}}}function Qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bs(e)}catch(a){Ve(t,t.return,a)}}function Kx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qm),t;default:throw Error(r(435,e.tag))}}function tr(e,t){var a=Kx(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=nv.bind(null,e,i);i.then(o,o)}})}function wt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(da(v.type)){Xe=v.stateNode,jt=!1;break e}break;case 5:Xe=v.stateNode,jt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,jt=!0;break e}v=v.return}if(Xe===null)throw Error(r(160));Xm(c,m,o),Xe=null,jt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Km(t,e),t=t.sibling}var fn=null;function Km(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Tt(e),i&4&&(ia(3,e,e.return),Ti(3,e),ia(5,e,e.return));break;case 1:wt(t,e),Tt(e),i&512&&(Ie||a===null||xn(a,a.return)),i&64&&Ln&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=fn;if(wt(t,e),Tt(e),i&512&&(Ie||a===null||xn(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ws]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),dt(c,i,a),c[ot]=e,lt(c),i=c;break e;case"link":var m=K0("link","href",o).get(i+(a.href||""));if(m){for(var v=0;v<m.length;v++)if(c=m[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(v,1);break t}}c=o.createElement(i),dt(c,i,a),o.head.appendChild(c);break;case"meta":if(m=K0("meta","content",o).get(i+(a.content||""))){for(v=0;v<m.length;v++)if(c=m[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(v,1);break t}}c=o.createElement(i),dt(c,i,a),o.head.appendChild(c);break;default:throw Error(r(468,i))}c[ot]=e,lt(c),i=c}e.stateNode=i}else F0(o,e.type,e.stateNode);else e.stateNode=Q0(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?F0(o,e.type,e.stateNode):Q0(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,a.memoizedProps)}break;case 27:wt(t,e),Tt(e),i&512&&(Ie||a===null||xn(a,a.return)),a!==null&&i&4&&Hc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(wt(t,e),Tt(e),i&512&&(Ie||a===null||xn(a,a.return)),e.flags&32){o=e.stateNode;try{rs(o,"")}catch(ae){Ve(e,e.return,ae)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Hc(e,o,a!==null?a.memoizedProps:o)),i&1024&&(Yc=!0);break;case 6:if(wt(t,e),Tt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ae){Ve(e,e.return,ae)}}break;case 3:if(yr=null,o=fn,fn=pr(t.containerInfo),wt(t,e),fn=o,Tt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bs(t.containerInfo)}catch(ae){Ve(e,e.return,ae)}Yc&&(Yc=!1,Fm(e));break;case 4:i=fn,fn=pr(e.stateNode.containerInfo),wt(t,e),Tt(e),fn=i;break;case 12:wt(t,e),Tt(e);break;case 31:wt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,tr(e,i)));break;case 13:wt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ar=Mt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,tr(e,i)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,k=Ln,_=Ie;if(Ln=k||o,Ie=_||w,wt(t,e),Ie=_,Ln=k,Tt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||Ln||Ie||Ya(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(c=w.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=w.stateNode;var G=w.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ae){Ve(w,w.return,ae)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(ae){Ve(w,w.return,ae)}}}else if(t.tag===18){if(a===null){w=t;try{var V=w.stateNode;o?L0(V,!0):L0(w.stateNode,!1)}catch(ae){Ve(w,w.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,tr(e,a))));break;case 19:wt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,tr(e,i)));break;case 30:break;case 21:break;default:wt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Um(i)){a=i;break}i=i.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=qc(e);er(e,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(rs(m,""),a.flags&=-33);var v=qc(e);er(e,v,m);break;case 3:case 4:var w=a.stateNode.containerInfo,k=qc(e);Gc(e,k,w);break;default:throw Error(r(161))}}catch(_){Ve(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gm(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ia(4,t,t.return),Ya(t);break;case 1:xn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Lm(t,t.return,a),Ya(t);break;case 27:Vi(t.stateNode);case 26:case 5:xn(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Hn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Hn(o,c,a),Ti(4,c);break;case 1:if(Hn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Ve(i,i.return,k)}if(i=c,o=i.updateQueue,o!==null){var v=i.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Nh(w[o],v)}catch(k){Ve(i,i.return,k)}}a&&m&64&&_m(c),Ni(c,c.return);break;case 27:Hm(c);case 26:case 5:Hn(o,c,a),a&&i===null&&m&4&&Bm(c),Ni(c,c.return);break;case 12:Hn(o,c,a);break;case 31:Hn(o,c,a),a&&m&4&&Zm(o,c);break;case 13:Hn(o,c,a),a&&m&4&&Qm(o,c);break;case 22:c.memoizedState===null&&Hn(o,c,a),Ni(c,c.return);break;case 30:break;default:Hn(o,c,a)}t=t.sibling}}function Xc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&fi(a))}function Zc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e))}function dn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pm(e,t,a,i),t=t.sibling}function Pm(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,a,i),o&2048&&Ti(9,t);break;case 1:dn(e,t,a,i);break;case 3:dn(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fi(e)));break;case 12:if(o&2048){dn(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,v=c.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ve(t,t.return,w)}}else dn(e,t,a,i);break;case 31:dn(e,t,a,i);break;case 13:dn(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?dn(e,t,a,i):Ai(e,t):c._visibility&2?dn(e,t,a,i):(c._visibility|=2,Cs(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Xc(m,t);break;case 24:dn(e,t,a,i),o&2048&&Zc(t.alternate,t);break;default:dn(e,t,a,i)}}function Cs(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,v=a,w=i,k=m.flags;switch(m.tag){case 0:case 11:case 15:Cs(c,m,v,w,o),Ti(8,m);break;case 23:break;case 22:var _=m.stateNode;m.memoizedState!==null?_._visibility&2?Cs(c,m,v,w,o):Ai(c,m):(_._visibility|=2,Cs(c,m,v,w,o)),o&&k&2048&&Xc(m.alternate,m);break;case 24:Cs(c,m,v,w,o),o&&k&2048&&Zc(m.alternate,m);break;default:Cs(c,m,v,w,o)}t=t.sibling}}function Ai(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Ai(a,i),o&2048&&Xc(i.alternate,i);break;case 24:Ai(a,i),o&2048&&Zc(i.alternate,i);break;default:Ai(a,i)}t=t.sibling}}var Ci=8192;function Ms(e,t,a){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)$m(e,t,a),e=e.sibling}function $m(e,t,a){switch(e.tag){case 26:Ms(e,t,a),e.flags&Ci&&e.memoizedState!==null&&Rv(a,fn,e.memoizedState,e.memoizedProps);break;case 5:Ms(e,t,a);break;case 3:case 4:var i=fn;fn=pr(e.stateNode.containerInfo),Ms(e,t,a),fn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ci,Ci=16777216,Ms(e,t,a),Ci=i):Ms(e,t,a));break;default:Ms(e,t,a)}}function Jm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];rt=i,Im(i,e)}Jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wm(e),e=e.sibling}function Wm(e){switch(e.tag){case 0:case 11:case 15:Mi(e),e.flags&2048&&ia(9,e,e.return);break;case 3:Mi(e);break;case 12:Mi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nr(e)):Mi(e);break;default:Mi(e)}}function nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];rt=i,Im(i,e)}Jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ia(8,t,t.return),nr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nr(t));break;default:nr(t)}e=e.sibling}}function Im(e,t){for(;rt!==null;){var a=rt;switch(a.tag){case 0:case 11:case 15:ia(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:fi(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,rt=i;else e:for(a=e;rt!==null;){i=rt;var o=i.sibling,c=i.return;if(Ym(i),i===a){rt=null;break e}if(o!==null){o.return=c,rt=o;break e}rt=c}}}var Fx={getCacheForType:function(e){var t=ut($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ut($e).controller.signal}},Px=typeof WeakMap=="function"?WeakMap:Map,ke=0,Be=null,Te=null,Ae=0,Re=0,Ot=null,la=!1,Es=!1,Qc=!1,qn=0,Qe=0,ra=0,Xa=0,Kc=0,_t=0,zs=0,Ei=null,Nt=null,Fc=!1,ar=0,e0=0,sr=1/0,ir=null,oa=null,nt=0,ca=null,Ds=null,Gn=0,Pc=0,$c=null,t0=null,zi=0,Jc=null;function Lt(){return(ke&2)!==0&&Ae!==0?Ae&-Ae:D.T!==null?au():yd()}function n0(){if(_t===0)if((Ae&536870912)===0||Ee){var e=hl;hl<<=1,(hl&3932160)===0&&(hl=262144),_t=e}else _t=536870912;return e=Rt.current,e!==null&&(e.flags|=32),_t}function At(e,t,a){(e===Be&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(ks(e,0),ua(e,Ae,_t,!1)),Js(e,a),((ke&2)===0||e!==Be)&&(e===Be&&((ke&2)===0&&(Xa|=a),Qe===4&&ua(e,Ae,_t,!1)),vn(e))}function a0(e,t,a){if((ke&6)!==0)throw Error(r(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||$s(e,t),o=i?Wx(e,t):Ic(e,t,!0),c=i;do{if(o===0){Es&&!i&&ua(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!$x(a)){o=Ic(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;o=Ei;var w=v.current.memoizedState.isDehydrated;if(w&&(ks(v,m).flags|=256),m=Ic(v,m,!1),m!==2){if(Qc&&!w){v.errorRecoveryDisabledLanes|=c,Xa|=c,o=4;break e}c=Nt,Nt=o,c!==null&&(Nt===null?Nt=c:Nt.push.apply(Nt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){ks(e,0),ua(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ua(i,t,_t,!la);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=ar+300-Mt(),10<o)){if(ua(i,t,_t,!la),pl(i,0,!0)!==0)break e;Gn=t,i.timeoutHandle=V0(s0.bind(null,i,a,Nt,ir,Fc,t,_t,Xa,zs,la,c,"Throttled",-0,0),o);break e}s0(i,a,Nt,ir,Fc,t,_t,Xa,zs,la,c,null,-0,0)}}break}while(!0);vn(e)}function s0(e,t,a,i,o,c,m,v,w,k,_,G,R,V){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},$m(t,c,G);var ae=(c&62914560)===c?ar-Mt():(c&4194048)===c?e0-Mt():0;if(ae=Vv(G,ae),ae!==null){Gn=c,e.cancelPendingCommit=ae(d0.bind(null,e,t,c,a,i,o,m,v,w,_,G,null,R,V)),ua(e,c,m,!k);return}}d0(e,t,c,a,i,o,m,v,w)}function $x(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!Dt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ua(e,t,a,i){t&=~Kc,t&=~Xa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-zt(o),m=1<<c;i[c]=-1,o&=~m}a!==0&&md(e,a,t)}function lr(){return(ke&6)===0?(Di(0),!1):!0}function Wc(){if(Te!==null){if(Re===0)var e=Te.return;else e=Te,Dn=Oa=null,mc(e),js=null,hi=0,e=Te;for(;e!==null;)Om(e.alternate,e),e=e.return;Te=null}}function ks(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,gv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Gn=0,Wc(),Be=e,Te=a=En(e.current,null),Ae=t,Re=0,Ot=null,la=!1,Es=$s(e,t),Qc=!1,zs=_t=Kc=Xa=ra=Qe=0,Nt=Ei=null,Fc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-zt(i),c=1<<o;t|=e[o],i&=~c}return qn=t,Cl(),a}function i0(e,t){xe=null,D.H=Si,t===Ss||t===Ol?(t=Sh(),Re=3):t===nc?(t=Sh(),Re=4):Re=t===zc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,Te===null&&(Qe=1,Pl(e,Kt(t,e.current)))}function l0(){var e=Rt.current;return e===null?!0:(Ae&4194048)===Ae?Jt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Jt:!1}function r0(){var e=D.H;return D.H=Si,e===null?Si:e}function o0(){var e=D.A;return D.A=Fx,e}function rr(){Qe=4,la||(Ae&4194048)!==Ae&&Rt.current!==null||(Es=!0),(ra&134217727)===0&&(Xa&134217727)===0||Be===null||ua(Be,Ae,_t,!1)}function Ic(e,t,a){var i=ke;ke|=2;var o=r0(),c=o0();(Be!==e||Ae!==t)&&(ir=null,ks(e,t)),t=!1;var m=Qe;e:do try{if(Re!==0&&Te!==null){var v=Te,w=Ot;switch(Re){case 8:Wc(),m=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var k=Re;if(Re=0,Ot=null,Rs(e,v,w,k),a&&Es){m=0;break e}break;default:k=Re,Re=0,Ot=null,Rs(e,v,w,k)}}Jx(),m=Qe;break}catch(_){i0(e,_)}while(!0);return t&&e.shellSuspendCounter++,Dn=Oa=null,ke=i,D.H=o,D.A=c,Te===null&&(Be=null,Ae=0,Cl()),m}function Jx(){for(;Te!==null;)c0(Te)}function Wx(e,t){var a=ke;ke|=2;var i=r0(),o=o0();Be!==e||Ae!==t?(ir=null,sr=Mt()+500,ks(e,t)):Es=$s(e,t);e:do try{if(Re!==0&&Te!==null){t=Te;var c=Ot;t:switch(Re){case 1:Re=0,Ot=null,Rs(e,t,c,1);break;case 2:case 9:if(vh(c)){Re=0,Ot=null,u0(t);break}t=function(){Re!==2&&Re!==9||Be!==e||(Re=7),vn(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:vh(c)?(Re=0,Ot=null,u0(t)):(Re=0,Ot=null,Rs(e,t,c,7));break;case 5:var m=null;switch(Te.tag){case 26:m=Te.memoizedState;case 5:case 27:var v=Te;if(m?P0(m):v.stateNode.complete){Re=0,Ot=null;var w=v.sibling;if(w!==null)Te=w;else{var k=v.return;k!==null?(Te=k,or(k)):Te=null}break t}}Re=0,Ot=null,Rs(e,t,c,5);break;case 6:Re=0,Ot=null,Rs(e,t,c,6);break;case 8:Wc(),Qe=6;break e;default:throw Error(r(462))}}Ix();break}catch(_){i0(e,_)}while(!0);return Dn=Oa=null,D.H=i,D.A=o,ke=a,Te!==null?0:(Be=null,Ae=0,Cl(),Qe)}function Ix(){for(;Te!==null&&!j2();)c0(Te)}function c0(e){var t=Rm(e.alternate,e,qn);e.memoizedProps=e.pendingProps,t===null?or(e):Te=t}function u0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Cm(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=Cm(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:mc(t);default:Om(a,t),t=Te=oh(t,qn),t=Rm(a,t,qn)}e.memoizedProps=e.pendingProps,t===null?or(e):Te=t}function Rs(e,t,a,i){Dn=Oa=null,mc(t),js=null,hi=0;var o=t.return;try{if(qx(e,o,t,a,Ae)){Qe=1,Pl(e,Kt(a,e.current)),Te=null;return}}catch(c){if(o!==null)throw Te=o,c;Qe=1,Pl(e,Kt(a,e.current)),Te=null;return}t.flags&32768?(Ee||i===1?e=!0:Es||(Ae&536870912)!==0?e=!1:(la=e=!0,(i===2||i===9||i===3||i===6)&&(i=Rt.current,i!==null&&i.tag===13&&(i.flags|=16384))),f0(t,e)):or(t)}function or(e){var t=e;do{if((t.flags&32768)!==0){f0(t,la);return}e=t.return;var a=Xx(t.alternate,t,qn);if(a!==null){Te=a;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Qe===0&&(Qe=5)}function f0(e,t){do{var a=Zx(e.alternate,e);if(a!==null){a.flags&=32767,Te=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=a}while(e!==null);Qe=6,Te=null}function d0(e,t,a,i,o,c,m,v,w){e.cancelPendingCommit=null;do cr();while(nt!==0);if((ke&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=qo,k2(e,a,c,m,v,w),e===Be&&(Te=Be=null,Ae=0),Ds=t,ca=e,Gn=a,Pc=c,$c=o,t0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,av(fl,function(){return y0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,o=K.p,K.p=2,m=ke,ke|=4;try{Qx(e,t,a)}finally{ke=m,K.p=o,D.T=i}}nt=1,h0(),m0(),p0()}}function h0(){if(nt===1){nt=0;var e=ca,t=Ds,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var i=K.p;K.p=2;var o=ke;ke|=4;try{Km(t,e);var c=fu,m=Id(e.containerInfo),v=c.focusedElem,w=c.selectionRange;if(m!==v&&v&&v.ownerDocument&&Wd(v.ownerDocument.documentElement,v)){if(w!==null&&_o(v)){var k=w.start,_=w.end;if(_===void 0&&(_=k),"selectionStart"in v)v.selectionStart=k,v.selectionEnd=Math.min(_,v.value.length);else{var G=v.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var V=R.getSelection(),ae=v.textContent.length,he=Math.min(w.start,ae),Le=w.end===void 0?he:Math.min(w.end,ae);!V.extend&&he>Le&&(m=Le,Le=he,he=m);var C=Jd(v,he),A=Jd(v,Le);if(C&&A&&(V.rangeCount!==1||V.anchorNode!==C.node||V.anchorOffset!==C.offset||V.focusNode!==A.node||V.focusOffset!==A.offset)){var z=G.createRange();z.setStart(C.node,C.offset),V.removeAllRanges(),he>Le?(V.addRange(z),V.extend(A.node,A.offset)):(z.setEnd(A.node,A.offset),V.addRange(z))}}}}for(G=[],V=v;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var U=G[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Sr=!!uu,fu=uu=null}finally{ke=o,K.p=i,D.T=a}}e.current=t,nt=2}}function m0(){if(nt===2){nt=0;var e=ca,t=Ds,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var i=K.p;K.p=2;var o=ke;ke|=4;try{Gm(e,t.alternate,t)}finally{ke=o,K.p=i,D.T=a}}nt=3}}function p0(){if(nt===4||nt===3){nt=0,w2();var e=ca,t=Ds,a=Gn,i=t0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Ds=ca=null,g0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(oa=null),yo(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Ps,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,o=K.p,K.p=2,D.T=null;try{for(var c=e.onRecoverableError,m=0;m<i.length;m++){var v=i[m];c(v.value,{componentStack:v.stack})}}finally{D.T=t,K.p=o}}(Gn&3)!==0&&cr(),vn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Jc?zi++:(zi=0,Jc=e):zi=0,Di(0)}}function g0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function cr(){return h0(),m0(),p0(),y0()}function y0(){if(nt!==5)return!1;var e=ca,t=Pc;Pc=0;var a=yo(Gn),i=D.T,o=K.p;try{K.p=32>a?32:a,D.T=null,a=$c,$c=null;var c=ca,m=Gn;if(nt=0,Ds=ca=null,Gn=0,(ke&6)!==0)throw Error(r(331));var v=ke;if(ke|=4,Wm(c.current),Pm(c,c.current,m,a),ke=v,Di(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Ps,c)}catch{}return!0}finally{K.p=o,D.T=i,g0(e,t)}}function x0(e,t,a){t=Kt(a,t),t=Ec(e.stateNode,t,2),e=na(e,t,2),e!==null&&(Js(e,2),vn(e))}function Ve(e,t,a){if(e.tag===3)x0(e,e,a);else for(;t!==null;){if(t.tag===3){x0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(oa===null||!oa.has(i))){e=Kt(a,e),a=vm(2),i=na(t,a,2),i!==null&&(bm(a,i,t,e),Js(i,2),vn(i));break}}t=t.return}}function eu(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Px;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(Qc=!0,o.add(a),e=ev.bind(null,e,t,a),t.then(e,e))}function ev(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Be===e&&(Ae&a)===a&&(Qe===4||Qe===3&&(Ae&62914560)===Ae&&300>Mt()-ar?(ke&2)===0&&ks(e,0):Kc|=a,zs===Ae&&(zs=0)),vn(e)}function v0(e,t){t===0&&(t=hd()),e=ka(e,t),e!==null&&(Js(e,t),vn(e))}function tv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),v0(e,a)}function nv(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),v0(e,a)}function av(e,t){return ho(e,t)}var ur=null,Vs=null,tu=!1,fr=!1,nu=!1,fa=0;function vn(e){e!==Vs&&e.next===null&&(Vs===null?ur=Vs=e:Vs=Vs.next=e),fr=!0,tu||(tu=!0,iv())}function Di(e,t){if(!nu&&fr){nu=!0;do for(var a=!1,i=ur;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var m=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-zt(42|e)+1)-1,c&=o&~(m&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,w0(i,c))}else c=Ae,c=pl(i,i===Be?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||$s(i,c)||(a=!0,w0(i,c));i=i.next}while(a);nu=!1}}function sv(){b0()}function b0(){fr=tu=!1;var e=0;fa!==0&&pv()&&(e=fa);for(var t=Mt(),a=null,i=ur;i!==null;){var o=i.next,c=S0(i,t);c===0?(i.next=null,a===null?ur=o:a.next=o,o===null&&(Vs=a)):(a=i,(e!==0||(c&3)!==0)&&(fr=!0)),i=o}nt!==0&&nt!==5||Di(e),fa!==0&&(fa=0)}function S0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-zt(c),v=1<<m,w=o[m];w===-1?((v&a)===0||(v&i)!==0)&&(o[m]=D2(v,t)):w<=t&&(e.expiredLanes|=v),c&=~v}if(t=Be,a=Ae,a=pl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&mo(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||$s(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&mo(i),yo(a)){case 2:case 8:a=fd;break;case 32:a=fl;break;case 268435456:a=dd;break;default:a=fl}return i=j0.bind(null,e),a=ho(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&mo(i),e.callbackPriority=2,e.callbackNode=null,2}function j0(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cr()&&e.callbackNode!==a)return null;var i=Ae;return i=pl(e,e===Be?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(a0(e,i,t),S0(e,Mt()),e.callbackNode!=null&&e.callbackNode===a?j0.bind(null,e):null)}function w0(e,t){if(cr())return null;a0(e,t,!0)}function iv(){yv(function(){(ke&6)!==0?ho(ud,sv):b0()})}function au(){if(fa===0){var e=vs;e===0&&(e=dl,dl<<=1,(dl&261888)===0&&(dl=256)),fa=e}return fa}function T0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vl(""+e)}function N0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function lv(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=T0((o[bt]||null).action),m=i.submitter;m&&(t=(t=m[bt]||null)?T0(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var v=new wl("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fa!==0){var w=m?N0(o,m):new FormData(o);wc(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(v.preventDefault(),w=m?N0(o,m):new FormData(o),wc(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var su=0;su<Ho.length;su++){var iu=Ho[su],rv=iu.toLowerCase(),ov=iu[0].toUpperCase()+iu.slice(1);un(rv,"on"+ov)}un(nh,"onAnimationEnd"),un(ah,"onAnimationIteration"),un(sh,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(Tx,"onTransitionRun"),un(Nx,"onTransitionStart"),un(Ax,"onTransitionCancel"),un(ih,"onTransitionEnd"),is("onMouseEnter",["mouseout","mouseover"]),is("onMouseLeave",["mouseout","mouseover"]),is("onPointerEnter",["pointerout","pointerover"]),is("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function A0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var v=i[m],w=v.instance,k=v.currentTarget;if(v=v.listener,w!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=k;try{c(o)}catch(_){Al(_)}o.currentTarget=null,c=w}else for(m=0;m<i.length;m++){if(v=i[m],w=v.instance,k=v.currentTarget,v=v.listener,w!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=k;try{c(o)}catch(_){Al(_)}o.currentTarget=null,c=w}}}}function Ne(e,t){var a=t[xo];a===void 0&&(a=t[xo]=new Set);var i=e+"__bubble";a.has(i)||(C0(t,e,2,!1),a.add(i))}function lu(e,t,a){var i=0;t&&(i|=4),C0(a,e,i,t)}var dr="_reactListening"+Math.random().toString(36).slice(2);function ru(e){if(!e[dr]){e[dr]=!0,bd.forEach(function(a){a!=="selectionchange"&&(cv.has(a)||lu(a,!1,e),lu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dr]||(t[dr]=!0,lu("selectionchange",!1,t))}}function C0(e,t,a,i){switch(np(t)){case 2:var o=Lv;break;case 8:o=Bv;break;default:o=ju}a=o.bind(null,t,a,e),o=void 0,!Co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function ou(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var v=i.stateNode.containerInfo;if(v===o)break;if(m===4)for(m=i.return;m!==null;){var w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;v!==null;){if(m=ns(v),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){i=c=m;continue e}v=v.parentNode}}i=i.return}kd(function(){var k=c,_=No(a),G=[];e:{var R=lh.get(e);if(R!==void 0){var V=wl,ae=e;switch(e){case"keypress":if(Sl(a)===0)break e;case"keydown":case"keyup":V=nx;break;case"focusin":ae="focus",V=Do;break;case"focusout":ae="blur",V=Do;break;case"beforeblur":case"afterblur":V=Do;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ix;break;case nh:case ah:case sh:V=K2;break;case ih:V=rx;break;case"scroll":case"scrollend":V=G2;break;case"wheel":V=cx;break;case"copy":case"cut":case"paste":V=P2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ld;break;case"toggle":case"beforetoggle":V=fx}var he=(t&4)!==0,Le=!he&&(e==="scroll"||e==="scrollend"),C=he?R!==null?R+"Capture":null:R;he=[];for(var A=k,z;A!==null;){var U=A;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||C===null||(U=ei(A,C),U!=null&&he.push(Ri(A,U,z))),Le)break;A=A.return}0<he.length&&(R=new V(R,ae,null,a,_),G.push({event:R,listeners:he}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",R&&a!==To&&(ae=a.relatedTarget||a.fromElement)&&(ns(ae)||ae[ts]))break e;if((V||R)&&(R=_.window===_?_:(R=_.ownerDocument)?R.defaultView||R.parentWindow:window,V?(ae=a.relatedTarget||a.toElement,V=k,ae=ae?ns(ae):null,ae!==null&&(Le=d(ae),he=ae.tag,ae!==Le||he!==5&&he!==27&&he!==6)&&(ae=null)):(V=null,ae=k),V!==ae)){if(he=Od,U="onMouseLeave",C="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=Ld,U="onPointerLeave",C="onPointerEnter",A="pointer"),Le=V==null?R:Is(V),z=ae==null?R:Is(ae),R=new he(U,A+"leave",V,a,_),R.target=Le,R.relatedTarget=z,U=null,ns(_)===k&&(he=new he(C,A+"enter",ae,a,_),he.target=z,he.relatedTarget=Le,U=he),Le=U,V&&ae)t:{for(he=uv,C=V,A=ae,z=0,U=C;U;U=he(U))z++;U=0;for(var ce=A;ce;ce=he(ce))U++;for(;0<z-U;)C=he(C),z--;for(;0<U-z;)A=he(A),U--;for(;z--;){if(C===A||A!==null&&C===A.alternate){he=C;break t}C=he(C),A=he(A)}he=null}else he=null;V!==null&&M0(G,R,V,he,!1),ae!==null&&Le!==null&&M0(G,Le,ae,he,!0)}}e:{if(R=k?Is(k):window,V=R.nodeName&&R.nodeName.toLowerCase(),V==="select"||V==="input"&&R.type==="file")var ze=Zd;else if(Yd(R))if(Qd)ze=Sx;else{ze=vx;var ie=xx}else V=R.nodeName,!V||V.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?k&&wo(k.elementType)&&(ze=Zd):ze=bx;if(ze&&(ze=ze(e,k))){Xd(G,ze,a,_);break e}ie&&ie(e,R,k),e==="focusout"&&k&&R.type==="number"&&k.memoizedProps.value!=null&&jo(R,"number",R.value)}switch(ie=k?Is(k):window,e){case"focusin":(Yd(ie)||ie.contentEditable==="true")&&(fs=ie,Lo=k,oi=null);break;case"focusout":oi=Lo=fs=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,eh(G,a,_);break;case"selectionchange":if(wx)break;case"keydown":case"keyup":eh(G,a,_)}var ve;if(Ro)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else us?qd(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(Bd&&a.locale!=="ko"&&(us||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&us&&(ve=Rd()):(Pn=_,Mo="value"in Pn?Pn.value:Pn.textContent,us=!0)),ie=hr(k,Ce),0<ie.length&&(Ce=new _d(Ce,e,null,a,_),G.push({event:Ce,listeners:ie}),ve?Ce.data=ve:(ve=Gd(a),ve!==null&&(Ce.data=ve)))),(ve=hx?mx(e,a):px(e,a))&&(Ce=hr(k,"onBeforeInput"),0<Ce.length&&(ie=new _d("onBeforeInput","beforeinput",null,a,_),G.push({event:ie,listeners:Ce}),ie.data=ve)),lv(G,e,k,a,_)}A0(G,t)})}function Ri(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hr(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ei(e,a),o!=null&&i.unshift(Ri(e,o,c)),o=ei(e,t),o!=null&&i.push(Ri(e,o,c))),e.tag===3)return i;e=e.return}return[]}function uv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function M0(e,t,a,i,o){for(var c=t._reactName,m=[];a!==null&&a!==i;){var v=a,w=v.alternate,k=v.stateNode;if(v=v.tag,w!==null&&w===i)break;v!==5&&v!==26&&v!==27||k===null||(w=k,o?(k=ei(a,c),k!=null&&m.unshift(Ri(a,k,w))):o||(k=ei(a,c),k!=null&&m.push(Ri(a,k,w)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var fv=/\r\n?/g,dv=/\u0000|\uFFFD/g;function E0(e){return(typeof e=="string"?e:""+e).replace(fv,`
|
|
9
|
-
`).replace(dv,"")}function z0(e,t){return t=E0(t),E0(e)===t}function _e(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||rs(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&rs(e,""+i);break;case"className":yl(e,"class",i);break;case"tabIndex":yl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":yl(e,a,i);break;case"style":zd(e,i,c);break;case"data":if(t!=="object"){yl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=vl(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"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 c=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",o.name,o,null),_e(e,t,"formEncType",o.formEncType,o,null),_e(e,t,"formMethod",o.formMethod,o,null),_e(e,t,"formTarget",o.formTarget,o,null)):(_e(e,t,"encType",o.encType,o,null),_e(e,t,"method",o.method,o,null),_e(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=vl(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=vl(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),gl(e,"popover",i);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":gl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=H2.get(a)||a,gl(e,a,i))}}function cu(e,t,a,i,o,c){switch(a){case"style":zd(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof i=="string"?rs(e,i):(typeof i=="number"||typeof i=="bigint")&&rs(e,""+i);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[bt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):gl(e,a,i)}}}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:_e(e,t,c,m,a,null)}}o&&_e(e,t,"srcSet",a.srcSet,a,null),i&&_e(e,t,"src",a.src,a,null);return;case"input":Ne("invalid",e);var v=c=m=o=null,w=null,k=null;for(i in a)if(a.hasOwnProperty(i)){var _=a[i];if(_!=null)switch(i){case"name":o=_;break;case"type":m=_;break;case"checked":w=_;break;case"defaultChecked":k=_;break;case"value":c=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_e(e,t,i,_,a,null)}}Ad(e,c,v,w,k,m,o,!1);return;case"select":Ne("invalid",e),i=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":m=v;break;case"multiple":i=v;default:_e(e,t,o,v,a,null)}t=c,a=m,e.multiple=!!i,t!=null?ls(e,!!i,t,!1):a!=null&&ls(e,!!i,a,!0);return;case"textarea":Ne("invalid",e),c=o=i=null;for(m in a)if(a.hasOwnProperty(m)&&(v=a[m],v!=null))switch(m){case"value":i=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:_e(e,t,m,v,a,null)}Md(e,i,o,c);return;case"option":for(w in a)a.hasOwnProperty(w)&&(i=a[w],i!=null)&&(w==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":_e(e,t,w,i,a,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(i=0;i<ki.length;i++)Ne(ki[i],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(k in a)if(a.hasOwnProperty(k)&&(i=a[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:_e(e,t,k,i,a,null)}return;default:if(wo(t)){for(_ in a)a.hasOwnProperty(_)&&(i=a[_],i!==void 0&&cu(e,t,_,i,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(i=a[v],i!=null&&_e(e,t,v,i,a,null))}function hv(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,v=null,w=null,k=null,_=null;for(V in a){var G=a[V];if(a.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":w=G;default:i.hasOwnProperty(V)||_e(e,t,V,null,i,G)}}for(var R in i){var V=i[R];if(G=a[R],i.hasOwnProperty(R)&&(V!=null||G!=null))switch(R){case"type":c=V;break;case"name":o=V;break;case"checked":k=V;break;case"defaultChecked":_=V;break;case"value":m=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:V!==G&&_e(e,t,R,V,i,G)}}So(e,m,v,w,k,_,c,o);return;case"select":V=m=v=R=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":V=w;default:i.hasOwnProperty(c)||_e(e,t,c,null,i,w)}for(o in i)if(c=i[o],w=a[o],i.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":R=c;break;case"defaultValue":v=c;break;case"multiple":m=c;default:c!==w&&_e(e,t,o,c,i,w)}t=v,a=m,i=V,R!=null?ls(e,!!a,R,!1):!!i!=!!a&&(t!=null?ls(e,!!a,t,!0):ls(e,!!a,a?[]:"",!1));return;case"textarea":V=R=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:_e(e,t,v,null,i,o)}for(m in i)if(o=i[m],c=a[m],i.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":R=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&_e(e,t,m,o,i,c)}Cd(e,R,V);return;case"option":for(var ae in a)R=a[ae],a.hasOwnProperty(ae)&&R!=null&&!i.hasOwnProperty(ae)&&(ae==="selected"?e.selected=!1:_e(e,t,ae,null,i,R));for(w in i)R=i[w],V=a[w],i.hasOwnProperty(w)&&R!==V&&(R!=null||V!=null)&&(w==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":_e(e,t,w,R,i,V));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 he in a)R=a[he],a.hasOwnProperty(he)&&R!=null&&!i.hasOwnProperty(he)&&_e(e,t,he,null,i,R);for(k in i)if(R=i[k],V=a[k],i.hasOwnProperty(k)&&R!==V&&(R!=null||V!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:_e(e,t,k,R,i,V)}return;default:if(wo(t)){for(var Le in a)R=a[Le],a.hasOwnProperty(Le)&&R!==void 0&&!i.hasOwnProperty(Le)&&cu(e,t,Le,void 0,i,R);for(_ in i)R=i[_],V=a[_],!i.hasOwnProperty(_)||R===V||R===void 0&&V===void 0||cu(e,t,_,R,i,V);return}}for(var C in a)R=a[C],a.hasOwnProperty(C)&&R!=null&&!i.hasOwnProperty(C)&&_e(e,t,C,null,i,R);for(G in i)R=i[G],V=a[G],!i.hasOwnProperty(G)||R===V||R==null&&V==null||_e(e,t,G,R,i,V)}function D0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,m=o.initiatorType,v=o.duration;if(c&&v&&D0(m)){for(m=0,v=o.responseEnd,i+=1;i<a.length;i++){var w=a[i],k=w.startTime;if(k>v)break;var _=w.transferSize,G=w.initiatorType;_&&D0(G)&&(w=w.responseEnd,m+=_*(w<v?1:(v-k)/(w-k)))}if(--i,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var uu=null,fu=null;function mr(e){return e.nodeType===9?e:e.ownerDocument}function k0(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 R0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function du(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hu=null;function pv(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var V0=typeof setTimeout=="function"?setTimeout:void 0,gv=typeof clearTimeout=="function"?clearTimeout:void 0,O0=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof O0<"u"?function(e){return O0.resolve(null).then(e).catch(xv)}:V0;function xv(e){setTimeout(function(){throw e})}function da(e){return e==="head"}function _0(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Bs(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Vi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vi(a);for(var c=a.firstChild;c;){var m=c.nextSibling,v=c.nodeName;c[Ws]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Vi(e.ownerDocument.body);a=o}while(a);Bs(t)}function L0(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function mu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":mu(a),vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function vv(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ws])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Wt(e.nextSibling),e===null)break}return null}function bv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Wt(e.nextSibling),e===null))return null;return e}function B0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wt(e.nextSibling),e===null))return null;return e}function pu(e){return e.data==="$?"||e.data==="$~"}function gu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Sv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var yu=null;function U0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Wt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function H0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function q0(e,t,a){switch(t=mr(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Vi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var It=new Map,G0=new Set;function pr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yn=K.d;K.d={f:jv,r:wv,D:Tv,C:Nv,L:Av,m:Cv,X:Ev,S:Mv,M:zv};function jv(){var e=Yn.f(),t=lr();return e||t}function wv(e){var t=as(e);t!==null&&t.tag===5&&t.type==="form"?im(t):Yn.r(e)}var Os=typeof document>"u"?null:document;function Y0(e,t,a){var i=Os;if(i&&typeof t=="string"&&t){var o=Zt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),G0.has(o)||(G0.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),dt(t,"link",e),lt(t),i.head.appendChild(t)))}}function Tv(e){Yn.D(e),Y0("dns-prefetch",e,null)}function Nv(e,t){Yn.C(e,t),Y0("preconnect",e,t)}function Av(e,t,a){Yn.L(e,t,a);var i=Os;if(i&&e&&t){var o='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Zt(a.imageSizes)+'"]')):o+='[href="'+Zt(e)+'"]';var c=o;switch(t){case"style":c=_s(e);break;case"script":c=Ls(e)}It.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),It.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Oi(c))||t==="script"&&i.querySelector(_i(c))||(t=i.createElement("link"),dt(t,"link",e),lt(t),i.head.appendChild(t)))}}function Cv(e,t){Yn.m(e,t);var a=Os;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Zt(i)+'"][href="'+Zt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ls(e)}if(!It.has(c)&&(e=b({rel:"modulepreload",href:e},t),It.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(_i(c)))return}i=a.createElement("link"),dt(i,"link",e),lt(i),a.head.appendChild(i)}}}function Mv(e,t,a){Yn.S(e,t,a);var i=Os;if(i&&e){var o=ss(i).hoistableStyles,c=_s(e);t=t||"default";var m=o.get(c);if(!m){var v={loading:0,preload:null};if(m=i.querySelector(Oi(c)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=It.get(c))&&xu(e,a);var w=m=i.createElement("link");lt(w),dt(w,"link",e),w._p=new Promise(function(k,_){w.onload=k,w.onerror=_}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,gr(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:v},o.set(c,m)}}}function Ev(e,t){Yn.X(e,t);var a=Os;if(a&&e){var i=ss(a).hoistableScripts,o=Ls(e),c=i.get(o);c||(c=a.querySelector(_i(o)),c||(e=b({src:e,async:!0},t),(t=It.get(o))&&vu(e,t),c=a.createElement("script"),lt(c),dt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function zv(e,t){Yn.M(e,t);var a=Os;if(a&&e){var i=ss(a).hoistableScripts,o=Ls(e),c=i.get(o);c||(c=a.querySelector(_i(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=It.get(o))&&vu(e,t),c=a.createElement("script"),lt(c),dt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function X0(e,t,a,i){var o=(o=ue.current)?pr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=_s(a.href),a=ss(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=_s(a.href);var c=ss(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(Oi(e)))&&!c._p&&(m.instance=c,m.state.loading=5),It.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},It.set(e,a),c||Dv(o,e,a,m.state))),t&&i===null)throw Error(r(528,""));return m}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ls(a),a=ss(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function _s(e){return'href="'+Zt(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function Z0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Dv(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),dt(t,"link",a),lt(t),e.head.appendChild(t))}function Ls(e){return'[src="'+Zt(e)+'"]'}function _i(e){return"script[async]"+e}function Q0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Zt(a.href)+'"]');if(i)return t.instance=i,lt(i),i;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),lt(i),dt(i,"style",o),gr(i,a.precedence,e),t.instance=i;case"stylesheet":o=_s(a.href);var c=e.querySelector(Oi(o));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;i=Z0(a),(o=It.get(o))&&xu(i,o),c=(e.ownerDocument||e).createElement("link"),lt(c);var m=c;return m._p=new Promise(function(v,w){m.onload=v,m.onerror=w}),dt(c,"link",i),t.state.loading|=4,gr(c,a.precedence,e),t.instance=c;case"script":return c=Ls(a.src),(o=e.querySelector(_i(c)))?(t.instance=o,lt(o),o):(i=a,(o=It.get(c))&&(i=b({},a),vu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),dt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,gr(i,a.precedence,e));return t.instance}function gr(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,m=0;m<i.length;m++){var v=i[m];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yr=null;function K0(e,t,a){if(yr===null){var i=new Map,o=yr=new Map;o.set(a,i)}else o=yr,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Ws]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var v=i.get(m);v?v.push(c):i.set(m,[c])}}return i}function F0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function kv(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function P0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rv(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=_s(i.href),c=t.querySelector(Oi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,lt(c);return}c=t.ownerDocument||t,i=Z0(i),(o=It.get(o))&&xu(i,o),c=c.createElement("link"),lt(c);var m=c;m._p=new Promise(function(v,w){m.onload=v,m.onerror=w}),dt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=xr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bu=0;function Vv(e,t){return e.stylesheets&&e.count===0&&br(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&br(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*mv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&br(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function xr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)br(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vr=null;function br(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vr=new Map,t.forEach(Ov,e),vr=null,xr.call(e))}function Ov(e,t){if(!(t.state.loading&4)){var a=vr.get(e);if(a)var i=a.get(null);else{a=new Map,vr.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}o=t.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||i,c===i&&a.set(null,o),a.set(m,o),this.count++,i=xr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Li={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _v(e,t,a,i,o,c,m,v,w){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=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function $0(e,t,a,i,o,c,m,v,w,k,_,G){return e=new _v(e,t,a,m,w,k,_,G,v),t=1,c===!0&&(t|=24),c=kt(3,null,null,t),e.current=c,c.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},ac(c),e}function J0(e){return e?(e=ms,e):ms}function W0(e,t,a,i,o,c){o=J0(o),i.context===null?i.context=o:i.pendingContext=o,i=ta(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=na(e,i,t),a!==null&&(At(a,e,t),pi(a,e,t))}function I0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Su(e,t){I0(e,t),(e=e.alternate)&&I0(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&At(t,e,67108864),Su(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=Lt();t=go(t);var a=ka(e,t);a!==null&&At(a,e,t),Su(e,t)}}var Sr=!0;function Lv(e,t,a,i){var o=D.T;D.T=null;var c=K.p;try{K.p=2,ju(e,t,a,i)}finally{K.p=c,D.T=o}}function Bv(e,t,a,i){var o=D.T;D.T=null;var c=K.p;try{K.p=8,ju(e,t,a,i)}finally{K.p=c,D.T=o}}function ju(e,t,a,i){if(Sr){var o=wu(i);if(o===null)ou(e,t,i,jr,a),ap(e,i);else if(Hv(o,e,t,a,i))i.stopPropagation();else if(ap(e,i),t&4&&-1<Uv.indexOf(e)){for(;o!==null;){var c=as(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Ca(c.pendingLanes);if(m!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var w=1<<31-zt(m);v.entanglements[1]|=w,m&=~w}vn(c),(ke&6)===0&&(sr=Mt()+500,Di(0))}}break;case 31:case 13:v=ka(c,2),v!==null&&At(v,c,2),lr(),Su(c,2)}if(c=wu(i),c===null&&ou(e,t,i,jr,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else ou(e,t,i,null,a)}}function wu(e){return e=No(e),Tu(e)}var jr=null;function Tu(e){if(jr=null,e=ns(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return jr=e,null}function np(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(T2()){case ud:return 2;case fd:return 8;case fl:case N2:return 32;case dd:return 268435456;default:return 32}default:return 32}}var Nu=!1,ha=null,ma=null,pa=null,Bi=new Map,Ui=new Map,ga=[],Uv="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 ap(e,t){switch(e){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Hi(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=as(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Hv(e,t,a,i,o){switch(t){case"focusin":return ha=Hi(ha,e,t,a,i,o),!0;case"dragenter":return ma=Hi(ma,e,t,a,i,o),!0;case"mouseover":return pa=Hi(pa,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return Bi.set(c,Hi(Bi.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Ui.set(c,Hi(Ui.get(c)||null,e,t,a,i,o)),!0}return!1}function sp(e){var t=ns(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,xd(e.priority,function(){tp(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,xd(e.priority,function(){tp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wu(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);To=i,a.target.dispatchEvent(i),To=null}else return t=as(a),t!==null&&ep(t),e.blockedOn=a,!1;t.shift()}return!0}function ip(e,t,a){wr(e)&&a.delete(t)}function qv(){Nu=!1,ha!==null&&wr(ha)&&(ha=null),ma!==null&&wr(ma)&&(ma=null),pa!==null&&wr(pa)&&(pa=null),Bi.forEach(ip),Ui.forEach(ip)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Nu||(Nu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,qv)))}var Nr=null;function lp(e){Nr!==e&&(Nr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Nr===e&&(Nr=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Tu(i||a)===null)continue;break}var c=as(a);c!==null&&(e.splice(t,3),t-=3,wc(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Bs(e){function t(w){return Tr(w,e)}ha!==null&&Tr(ha,e),ma!==null&&Tr(ma,e),pa!==null&&Tr(pa,e),Bi.forEach(t),Ui.forEach(t);for(var a=0;a<ga.length;a++){var i=ga[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ga.length&&(a=ga[0],a.blockedOn===null);)sp(a),a.blockedOn===null&&ga.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],m=o[bt]||null;if(typeof c=="function")m||lp(a);else if(m){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[bt]||null)v=m.formAction;else if(Tu(o)!==null)continue}else v=m.action;typeof v=="function"?a[i+1]=v:(a.splice(i,3),i-=3),lp(a)}}}function rp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Au(e){this._internalRoot=e}Ar.prototype.render=Au.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,i=Lt();W0(a,i,e,t,null,null)},Ar.prototype.unmount=Au.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;W0(e.current,2,null,e,null,null),lr(),t[ts]=null}};function Ar(e){this._internalRoot=e}Ar.prototype.unstable_scheduleHydration=function(e){if(e){var t=yd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ga.length&&t!==0&&t<ga[a].priority;a++);ga.splice(a,0,e),a===0&&sp(e)}};var op=s.version;if(op!=="19.2.6")throw Error(r(527,op,"19.2.6"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Gv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{Ps=Cr.inject(Gv),Et=Cr}catch{}}return Gi.createRoot=function(e,t){if(!f(e))throw Error(r(299));var a=!1,i="",o=pm,c=gm,m=ym;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=$0(e,1,!1,null,null,a,i,null,o,c,m,rp),e[ts]=t.current,ru(e),new Au(t)},Gi.hydrateRoot=function(e,t,a){if(!f(e))throw Error(r(299));var i=!1,o="",c=pm,m=gm,v=ym,w=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=$0(e,1,!0,t,a??null,i,o,w,c,m,v,rp),t.context=J0(null),a=t.current,i=Lt(),i=go(i),o=ta(i),o.callback=null,na(a,o,i),a=i,t.current.lanes=a,Js(t,a),vn(t),e[ts]=t.current,ru(e),new Ar(t)},Gi.version="19.2.6",Gi}var xp;function Jv(){if(xp)return Eu.exports;xp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Eu.exports=$v(),Eu.exports}var eg=Jv();const tg=(...n)=>n.filter((s,l,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===l).join(" ").trim();const Wv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Iv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,r)=>r?r.toUpperCase():l.toLowerCase());const vp=n=>{const s=Iv(n);return s.charAt(0).toUpperCase()+s.slice(1)};var Ru={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"};const eb=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},tb=E.createContext({}),nb=()=>E.useContext(tb),ab=E.forwardRef(({color:n,size:s,strokeWidth:l,absoluteStrokeWidth:r,className:f="",children:d,iconNode:h,...g},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:b=!1,color:S="currentColor",className:j=""}=nb()??{},T=r??b?Number(l??x)*24/Number(s??p):l??x;return E.createElement("svg",{ref:y,...Ru,width:s??p??Ru.width,height:s??p??Ru.height,stroke:n??S,strokeWidth:T,className:tg("lucide",j,f),...!d&&!eb(g)&&{"aria-hidden":"true"},...g},[...h.map(([M,O])=>E.createElement(M,O)),...Array.isArray(d)?d:[d]])});const me=(n,s)=>{const l=E.forwardRef(({className:r,...f},d)=>E.createElement(ab,{ref:d,iconNode:s,className:tg(`lucide-${Wv(vp(n))}`,`lucide-${n}`,r),...f}));return l.displayName=vp(n),l};const sb=[["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"}]],Fi=me("activity",sb);const ib=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],lb=me("arrow-down",ib);const rb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ob=me("arrow-up",rb);const cb=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ii=me("bot",cb);const ub=[["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],bp=me("box",ub);const fb=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],db=me("brain",fb);const hb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ng=me("check",hb);const mb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=me("chevron-down",mb);const pb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ag=me("chevron-right",pb);const gb=[["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"}]],sg=me("copy",gb);const yb=[["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"}]],xb=me("cpu",yb);const vb=[["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"}]],bb=me("database",vb);const Sb=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jb=me("earth",Sb);const wb=[["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"}]],ig=me("external-link",wb);const Tb=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Nb=me("file-code-corner",Tb);const Ab=[["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"}]],Cb=me("file-text",Ab);const Mb=[["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"}]],Eb=me("file",Mb);const zb=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Db=me("flask-conical",zb);const kb=[["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"}]],Rb=me("folder-open",kb);const Vb=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],Ob=me("folder-plus",Vb);const _b=[["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"}]],Df=me("folder",_b);const Lb=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Bb=me("gauge",Lb);const Ub=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Xr=me("git-branch",Ub);const Hb=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v3",key:"1jb6z3"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],qb=me("git-pull-request-create",Hb);const Gb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Yb=me("image",Gb);const Xb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lg=me("loader-circle",Xb);const Zb=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Qb=me("lock-keyhole",Zb);const Kb=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],Fb=me("memory-stick",Kb);const Pb=[["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"}]],$b=me("network",Pb);const Jb=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Wb=me("palette",Jb);const Ib=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],e3=me("panel-left-close",Ib);const t3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],n3=me("panel-left-open",t3);const a3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],s3=me("panel-left",a3);const i3=[["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"}]],l3=me("pencil",i3);const r3=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rg=me("play",r3);const o3=[["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"}]],c3=me("plug",o3);const u3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zr=me("plus",u3);const f3=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Sp=me("radio",f3);const d3=[["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"}]],og=me("refresh-cw",d3);const h3=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],m3=me("rotate-ccw",h3);const p3=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],g3=me("save",p3);const y3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],x3=me("search",y3);const v3=[["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"}]],b3=me("server",v3);const S3=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],j3=me("settings-2",S3);const w3=[["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"}]],T3=me("sparkles",w3);const N3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],cg=me("square",N3);const A3=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ug=me("terminal",A3);const C3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],so=me("x",C3);const M3=[["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"}]],E3=me("zap",M3),z3="/assets/nomoreide-logo-B2E14b65.png";async function D3(){return Wa("/api/dashboard")}async function k3(){return(await Wa("/api/agent")).agent}async function R3(){return(await Wa("/api/agent/usage")).usage}async function V3(n){const s=await fetch(`/api/git/diff?file=${encodeURIComponent(n)}`);if(!s.ok){const l=await s.json().catch(()=>({error:s.statusText}));throw new Error(l.error||"Unable to load diff")}return s.text()}async function O3(n){return Wa(`/api/fs/directories?path=${encodeURIComponent(n)}`)}async function af(n){return(await Wa(`/api/services/${encodeURIComponent(n)}/logs`)).logs}async function an(n,s){const l=new URLSearchParams;for(const[r,f]of Object.entries(s))f!==void 0&&String(f).trim()&&l.set(r,String(f));await Wa(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function _3(n){return L3("/api/services/test",n)}async function L3(n,s){const l=new URLSearchParams;for(const[r,f]of Object.entries(s))f!==void 0&&String(f).trim()&&l.set(r,String(f));return Wa(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}class fg extends Error{conflict;constructor(s,l){super(s),this.name="PortConflictResponseError",this.conflict=l}}async function Wa(n,s){const l=await fetch(n,s),r=await l.json().catch(()=>{});if(!l.ok)throw l.status===409&&r?.conflict?.code==="PORT_IN_USE"?new fg(r?.error||"Port already in use",r.conflict):new Error(r?.error||l.statusText);return r}function dg(n){var s,l,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(s=0;s<f;s++)n[s]&&(l=dg(n[s]))&&(r&&(r+=" "),r+=l)}else for(l in n)n[l]&&(r&&(r+=" "),r+=l);return r}function el(){for(var n,s,l=0,r="",f=arguments.length;l<f;l++)(n=arguments[l])&&(s=dg(n))&&(r&&(r+=" "),r+=s);return r}const jp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,wp=el,hg=(n,s)=>l=>{var r;if(s?.variants==null)return wp(n,l?.class,l?.className);const{variants:f,defaultVariants:d}=s,h=Object.keys(f).map(p=>{const x=l?.[p],b=d?.[p];if(x===null)return null;const S=jp(x)||jp(b);return f[p][S]}),g=l&&Object.entries(l).reduce((p,x)=>{let[b,S]=x;return S===void 0||(p[b]=S),p},{}),y=s==null||(r=s.compoundVariants)===null||r===void 0?void 0:r.reduce((p,x)=>{let{class:b,className:S,...j}=x;return Object.entries(j).every(T=>{let[M,O]=T;return Array.isArray(O)?O.includes({...d,...g}[M]):{...d,...g}[M]===O})?[...p,b,S]:p},[]);return wp(n,h,y,l?.class,l?.className)},B3=(n,s)=>{const l=new Array(n.length+s.length);for(let r=0;r<n.length;r++)l[r]=n[r];for(let r=0;r<s.length;r++)l[n.length+r]=s[r];return l},U3=(n,s)=>({classGroupId:n,validator:s}),mg=(n=new Map,s=null,l)=>({nextPart:n,validators:s,classGroupId:l}),Qr="-",Tp=[],H3="arbitrary..",q3=n=>{const s=Y3(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return G3(h);const g=h.split(Qr),y=g[0]===""&&g.length>1?1:0;return pg(g,y,s)},getConflictingClassGroupIds:(h,g)=>{if(g){const y=r[h],p=l[h];return y?p?B3(p,y):y:p||Tp}return l[h]||Tp}}},pg=(n,s,l)=>{if(n.length-s===0)return l.classGroupId;const f=n[s],d=l.nextPart.get(f);if(d){const p=pg(n,s+1,d);if(p)return p}const h=l.validators;if(h===null)return;const g=s===0?n.join(Qr):n.slice(s).join(Qr),y=h.length;for(let p=0;p<y;p++){const x=h[p];if(x.validator(g))return x.classGroupId}},G3=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=n.slice(1,-1),l=s.indexOf(":"),r=s.slice(0,l);return r?H3+r:void 0})(),Y3=n=>{const{theme:s,classGroups:l}=n;return X3(l,s)},X3=(n,s)=>{const l=mg();for(const r in n){const f=n[r];kf(f,l,r,s)}return l},kf=(n,s,l,r)=>{const f=n.length;for(let d=0;d<f;d++){const h=n[d];Z3(h,s,l,r)}},Z3=(n,s,l,r)=>{if(typeof n=="string"){Q3(n,s,l);return}if(typeof n=="function"){K3(n,s,l,r);return}F3(n,s,l,r)},Q3=(n,s,l)=>{const r=n===""?s:gg(s,n);r.classGroupId=l},K3=(n,s,l,r)=>{if(P3(n)){kf(n(r),s,l,r);return}s.validators===null&&(s.validators=[]),s.validators.push(U3(l,n))},F3=(n,s,l,r)=>{const f=Object.entries(n),d=f.length;for(let h=0;h<d;h++){const[g,y]=f[h];kf(y,gg(s,g),l,r)}},gg=(n,s)=>{let l=n;const r=s.split(Qr),f=r.length;for(let d=0;d<f;d++){const h=r[d];let g=l.nextPart.get(h);g||(g=mg(),l.nextPart.set(h,g)),l=g}return l},P3=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,$3=n=>{if(n<1)return{get:()=>{},set:()=>{}};let s=0,l=Object.create(null),r=Object.create(null);const f=(d,h)=>{l[d]=h,s++,s>n&&(s=0,r=l,l=Object.create(null))};return{get(d){let h=l[d];if(h!==void 0)return h;if((h=r[d])!==void 0)return f(d,h),h},set(d,h){d in l?l[d]=h:f(d,h)}}},sf="!",Np=":",J3=[],Ap=(n,s,l,r,f)=>({modifiers:n,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:r,isExternal:f}),W3=n=>{const{prefix:s,experimentalParseClassName:l}=n;let r=f=>{const d=[];let h=0,g=0,y=0,p;const x=f.length;for(let M=0;M<x;M++){const O=f[M];if(h===0&&g===0){if(O===Np){d.push(f.slice(y,M)),y=M+1;continue}if(O==="/"){p=M;continue}}O==="["?h++:O==="]"?h--:O==="("?g++:O===")"&&g--}const b=d.length===0?f:f.slice(y);let S=b,j=!1;b.endsWith(sf)?(S=b.slice(0,-1),j=!0):b.startsWith(sf)&&(S=b.slice(1),j=!0);const T=p&&p>y?p-y:void 0;return Ap(d,j,S,T)};if(s){const f=s+Np,d=r;r=h=>h.startsWith(f)?d(h.slice(f.length)):Ap(J3,!1,h,void 0,!0)}if(l){const f=r;r=d=>l({className:d,parseClassName:f})}return r},I3=n=>{const s=new Map;return n.orderSensitiveModifiers.forEach((l,r)=>{s.set(l,1e6+r)}),l=>{const r=[];let f=[];for(let d=0;d<l.length;d++){const h=l[d],g=h[0]==="[",y=s.has(h);g||y?(f.length>0&&(f.sort(),r.push(...f),f=[]),r.push(h)):f.push(h)}return f.length>0&&(f.sort(),r.push(...f)),r}},e5=n=>({cache:$3(n.cacheSize),parseClassName:W3(n),sortModifiers:I3(n),postfixLookupClassGroupIds:t5(n),...q3(n)}),t5=n=>{const s=Object.create(null),l=n.postfixLookupClassGroups;if(l)for(let r=0;r<l.length;r++)s[l[r]]=!0;return s},n5=/\s+/,a5=(n,s)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:f,sortModifiers:d,postfixLookupClassGroupIds:h}=s,g=[],y=n.trim().split(n5);let p="";for(let x=y.length-1;x>=0;x-=1){const b=y[x],{isExternal:S,modifiers:j,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:O}=l(b);if(S){p=b+(p.length>0?" "+p:p);continue}let B=!!O,q;if(B){const $=M.substring(0,O);q=r($);const L=q&&h[q]?r(M):void 0;L&&L!==q&&(q=L,B=!1)}else q=r(M);if(!q){if(!B){p=b+(p.length>0?" "+p:p);continue}if(q=r(M),!q){p=b+(p.length>0?" "+p:p);continue}B=!1}const Y=j.length===0?"":j.length===1?j[0]:d(j).join(":"),X=T?Y+sf:Y,Z=X+q;if(g.indexOf(Z)>-1)continue;g.push(Z);const J=f(q,B);for(let $=0;$<J.length;++$){const L=J[$];g.push(X+L)}p=b+(p.length>0?" "+p:p)}return p},s5=(...n)=>{let s=0,l,r,f="";for(;s<n.length;)(l=n[s++])&&(r=yg(l))&&(f&&(f+=" "),f+=r);return f},yg=n=>{if(typeof n=="string")return n;let s,l="";for(let r=0;r<n.length;r++)n[r]&&(s=yg(n[r]))&&(l&&(l+=" "),l+=s);return l},i5=(n,...s)=>{let l,r,f,d;const h=y=>{const p=s.reduce((x,b)=>b(x),n());return l=e5(p),r=l.cache.get,f=l.cache.set,d=g,g(y)},g=y=>{const p=r(y);if(p)return p;const x=a5(y,l);return f(y,x),x};return d=h,(...y)=>d(s5(...y))},l5=[],at=n=>{const s=l=>l[n]||l5;return s.isThemeGetter=!0,s},xg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,r5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,o5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c5=/\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$/,u5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,f5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=n=>r5.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),bn=n=>!!n&&Number.isInteger(Number(n)),Vu=n=>n.endsWith("%")&&je(n.slice(0,-1)),Xn=n=>o5.test(n),bg=()=>!0,h5=n=>c5.test(n)&&!u5.test(n),Rf=()=>!1,m5=n=>f5.test(n),p5=n=>d5.test(n),g5=n=>!ee(n)&&!ne(n),y5=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),x5=n=>Ta(n,wg,Rf),ee=n=>xg.test(n),Za=n=>Ta(n,Tg,h5),Cp=n=>Ta(n,A5,je),v5=n=>Ta(n,Ag,bg),b5=n=>Ta(n,Ng,Rf),Mp=n=>Ta(n,Sg,Rf),S5=n=>Ta(n,jg,p5),Mr=n=>Ta(n,Cg,m5),ne=n=>vg.test(n),Yi=n=>Ia(n,Tg),j5=n=>Ia(n,Ng),Ep=n=>Ia(n,Sg),w5=n=>Ia(n,wg),T5=n=>Ia(n,jg),Er=n=>Ia(n,Cg,!0),N5=n=>Ia(n,Ag,!0),Ta=(n,s,l)=>{const r=xg.exec(n);return r?r[1]?s(r[1]):l(r[2]):!1},Ia=(n,s,l=!1)=>{const r=vg.exec(n);return r?r[1]?s(r[1]):l:!1},Sg=n=>n==="position"||n==="percentage",jg=n=>n==="image"||n==="url",wg=n=>n==="length"||n==="size"||n==="bg-size",Tg=n=>n==="length",A5=n=>n==="number",Ng=n=>n==="family-name",Ag=n=>n==="number"||n==="weight",Cg=n=>n==="shadow",C5=()=>{const n=at("color"),s=at("font"),l=at("text"),r=at("font-weight"),f=at("tracking"),d=at("leading"),h=at("breakpoint"),g=at("container"),y=at("spacing"),p=at("radius"),x=at("shadow"),b=at("inset-shadow"),S=at("text-shadow"),j=at("drop-shadow"),T=at("blur"),M=at("perspective"),O=at("aspect"),B=at("ease"),q=at("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...X(),ne,ee],J=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],L=()=>[ne,ee,y],de=()=>[xa,"full","auto",...L()],le=()=>[bn,"none","subgrid",ne,ee],F=()=>["auto",{span:["full",bn,ne,ee]},bn,ne,ee],oe=()=>[bn,"auto",ne,ee],we=()=>["auto","min","max","fr",ne,ee],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...L()],K=()=>[xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],W=()=>[xa,"screen","full","dvw","lvw","svw","min","max","fit",...L()],P=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],Q=()=>[n,ne,ee],N=()=>[...X(),Ep,Mp,{position:[ne,ee]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",w5,x5,{size:[ne,ee]}],te=()=>[Vu,Yi,Za],re=()=>["","none","full",p,ne,ee],ue=()=>["",je,Yi,Za],Me=()=>["solid","dashed","dotted","double"],it=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[je,Vu,Ep,Mp],Zn=()=>["","none",T,ne,ee],Nn=()=>["none",je,ne,ee],Qn=()=>["none",je,ne,ee],es=()=>[je,ne,ee],Yt=()=>[xa,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[bg],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[g5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",je],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,ee,ne,O]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,ee]}],"container-named":[y5],columns:[{columns:[je,ee,ne,g]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:Z()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:de()}],"inset-x":[{"inset-x":de()}],"inset-y":[{"inset-y":de()}],start:[{"inset-s":de(),start:de()}],end:[{"inset-e":de(),end:de()}],"inset-bs":[{"inset-bs":de()}],"inset-be":[{"inset-be":de()}],top:[{top:de()}],right:[{right:de()}],bottom:[{bottom:de()}],left:[{left:de()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",ne,ee]}],basis:[{basis:[xa,"full","auto",g,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,xa,"auto","initial","none",ee]}],grow:[{grow:["",je,ne,ee]}],shrink:[{shrink:["",je,ne,ee]}],order:[{order:[bn,"first","last","none",ne,ee]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[g,"screen",...K()]}],"min-w":[{"min-w":[g,"screen","none",...K()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[h]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",l,Yi,Za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N5,v5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vu,ee]}],"font-family":[{font:[j5,b5,s]}],"font-features":[{"font-features":[ee]}],"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:[f,ne,ee]}],"line-clamp":[{"line-clamp":[je,"none",ne,Cp]}],leading:[{leading:[d,...L()]}],"list-image":[{"list-image":["none",ne,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ne,Za]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[je,"auto",ne,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[bn,ne,ee]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,ee]}],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",ne,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bn,ne,ee],radial:["",ne,ee],conic:[bn,ne,ee]},T5,S5]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ne,ee]}],"outline-w":[{outline:["",je,Yi,Za]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",x,Er,Mr]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",b,Er,Mr]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[je,Za]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,Er,Mr]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[je,ne,ee]}],"mix-blend":[{"mix-blend":[...it(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":it()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ne,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":X()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,ee]}],filter:[{filter:["","none",ne,ee]}],blur:[{blur:Zn()}],brightness:[{brightness:[je,ne,ee]}],contrast:[{contrast:[je,ne,ee]}],"drop-shadow":[{"drop-shadow":["","none",j,Er,Mr]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",je,ne,ee]}],"hue-rotate":[{"hue-rotate":[je,ne,ee]}],invert:[{invert:["",je,ne,ee]}],saturate:[{saturate:[je,ne,ee]}],sepia:[{sepia:["",je,ne,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,ee]}],"backdrop-blur":[{"backdrop-blur":Zn()}],"backdrop-brightness":[{"backdrop-brightness":[je,ne,ee]}],"backdrop-contrast":[{"backdrop-contrast":[je,ne,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ne,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ne,ee]}],"backdrop-invert":[{"backdrop-invert":["",je,ne,ee]}],"backdrop-opacity":[{"backdrop-opacity":[je,ne,ee]}],"backdrop-saturate":[{"backdrop-saturate":[je,ne,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ne,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ne,ee]}],ease:[{ease:["linear","initial",B,ne,ee]}],delay:[{delay:[je,ne,ee]}],animate:[{animate:["none",q,ne,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,ne,ee]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Nn()}],"rotate-x":[{"rotate-x":Nn()}],"rotate-y":[{"rotate-y":Nn()}],"rotate-z":[{"rotate-z":Nn()}],scale:[{scale:Qn()}],"scale-x":[{"scale-x":Qn()}],"scale-y":[{"scale-y":Qn()}],"scale-z":[{"scale-z":Qn()}],"scale-3d":["scale-3d"],skew:[{skew:es()}],"skew-x":[{"skew-x":es()}],"skew-y":[{"skew-y":es()}],transform:[{transform:[ne,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Yt()}],"translate-x":[{"translate-x":Yt()}],"translate-y":[{"translate-y":Yt()}],"translate-z":[{"translate-z":Yt()}],"translate-none":["translate-none"],zoom:[{zoom:[bn,ne,ee]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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",ne,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",ne,ee]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[je,Yi,Za,Cp]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},M5=i5(C5);function fe(...n){return M5(el(n))}const E5=hg("inline-flex h-9 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent px-3 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border-border bg-background hover:bg-muted",ghost:"hover:bg-muted",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},size:{default:"h-9 px-3",sm:"h-8 px-2.5 text-xs",icon:"size-9 p-0"}},defaultVariants:{variant:"default",size:"default"}});function ge({className:n,variant:s,size:l,...r}){return u.jsx("button",{className:fe(E5({variant:s,size:l,className:n})),...r})}const Mg=E.createContext({});function z5(n){const s=E.useRef(null);return s.current===null&&(s.current=n()),s.current}const D5=typeof window<"u",k5=D5?E.useLayoutEffect:E.useEffect,Vf=E.createContext(null);function Of(n,s){n.indexOf(s)===-1&&n.push(s)}function Kr(n,s){const l=n.indexOf(s);l>-1&&n.splice(l,1)}const Tn=(n,s,l)=>l>s?s:l<n?n:l;let _f=()=>{};const ja={},Eg=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function zg(n){return typeof n=="object"&&n!==null}const Dg=n=>/^0[^.\s]+$/u.test(n);function kg(n){let s;return()=>(s===void 0&&(s=n()),s)}const sn=n=>n,R5=(n,s)=>l=>s(n(l)),rl=(...n)=>n.reduce(R5),tl=(n,s,l)=>{const r=s-n;return r===0?1:(l-n)/r};class Lf{constructor(){this.subscriptions=[]}add(s){return Of(this.subscriptions,s),()=>Kr(this.subscriptions,s)}notify(s,l,r){const f=this.subscriptions.length;if(f)if(f===1)this.subscriptions[0](s,l,r);else for(let d=0;d<f;d++){const h=this.subscriptions[d];h&&h(s,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gt=n=>n*1e3,nn=n=>n/1e3;function Rg(n,s){return s?n*(1e3/s):0}const Vg=(n,s,l)=>(((1-3*l+3*s)*n+(3*l-6*s))*n+3*s)*n,V5=1e-7,O5=12;function _5(n,s,l,r,f){let d,h,g=0;do h=s+(l-s)/2,d=Vg(h,r,f)-n,d>0?l=h:s=h;while(Math.abs(d)>V5&&++g<O5);return h}function ol(n,s,l,r){if(n===s&&l===r)return sn;const f=d=>_5(d,0,1,n,l);return d=>d===0||d===1?d:Vg(f(d),s,r)}const Og=n=>s=>s<=.5?n(2*s)/2:(2-n(2*(1-s)))/2,_g=n=>s=>1-n(1-s),Lg=ol(.33,1.53,.69,.99),Bf=_g(Lg),Bg=Og(Bf),Ug=n=>n>=1?1:(n*=2)<1?.5*Bf(n):.5*(2-Math.pow(2,-10*(n-1))),Uf=n=>1-Math.sin(Math.acos(n)),Hg=_g(Uf),qg=Og(Uf),L5=ol(.42,0,1,1),B5=ol(0,0,.58,1),Gg=ol(.42,0,.58,1),U5=n=>Array.isArray(n)&&typeof n[0]!="number",Yg=n=>Array.isArray(n)&&typeof n[0]=="number",H5={linear:sn,easeIn:L5,easeInOut:Gg,easeOut:B5,circIn:Uf,circInOut:qg,circOut:Hg,backIn:Bf,backInOut:Bg,backOut:Lg,anticipate:Ug},q5=n=>typeof n=="string",zp=n=>{if(Yg(n)){_f(n.length===4);const[s,l,r,f]=n;return ol(s,l,r,f)}else if(q5(n))return H5[n];return n},zr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function G5(n,s){let l=new Set,r=new Set,f=!1,d=!1;const h=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(x){h.has(x)&&(p.schedule(x),n()),x(g)}const p={schedule:(x,b=!1,S=!1)=>{const T=S&&f?l:r;return b&&h.add(x),T.add(x),x},cancel:x=>{r.delete(x),h.delete(x)},process:x=>{if(g=x,f){d=!0;return}f=!0;const b=l;l=r,r=b,l.forEach(y),l.clear(),f=!1,d&&(d=!1,p.process(x))}};return p}const Y5=40;function Xg(n,s){let l=!1,r=!0;const f={delta:0,timestamp:0,isProcessing:!1},d=()=>l=!0,h=zr.reduce((Y,X)=>(Y[X]=G5(d),Y),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:x,update:b,preRender:S,render:j,postRender:T}=h,M=()=>{const Y=ja.useManualTiming,X=Y?f.timestamp:performance.now();l=!1,Y||(f.delta=r?1e3/60:Math.max(Math.min(X-f.timestamp,Y5),1)),f.timestamp=X,f.isProcessing=!0,g.process(f),y.process(f),p.process(f),x.process(f),b.process(f),S.process(f),j.process(f),T.process(f),f.isProcessing=!1,l&&s&&(r=!1,n(M))},O=()=>{l=!0,r=!0,f.isProcessing||n(M)};return{schedule:zr.reduce((Y,X)=>{const Z=h[X];return Y[X]=(J,$=!1,L=!1)=>(l||O(),Z.schedule(J,$,L)),Y},{}),cancel:Y=>{for(let X=0;X<zr.length;X++)h[zr[X]].cancel(Y)},state:f,steps:h}}const{schedule:Ue,cancel:wa,state:ht,steps:Ou}=Xg(typeof requestAnimationFrame<"u"?requestAnimationFrame:sn,!0);let _r;function X5(){_r=void 0}const xt={now:()=>(_r===void 0&&xt.set(ht.isProcessing||ja.useManualTiming?ht.timestamp:performance.now()),_r),set:n=>{_r=n,queueMicrotask(X5)}},Zg=n=>s=>typeof s=="string"&&s.startsWith(n),Qg=Zg("--"),Z5=Zg("var(--"),Hf=n=>Z5(n)?Q5.test(n.split("/*")[0].trim()):!1,Q5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dp(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Qs={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},nl={...Qs,transform:n=>Tn(0,1,n)},Dr={...Qs,default:1},Pi=n=>Math.round(n*1e5)/1e5,qf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function K5(n){return n==null}const F5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gf=(n,s)=>l=>!!(typeof l=="string"&&F5.test(l)&&l.startsWith(n)||s&&!K5(l)&&Object.prototype.hasOwnProperty.call(l,s)),Kg=(n,s,l)=>r=>{if(typeof r!="string")return r;const[f,d,h,g]=r.match(qf);return{[n]:parseFloat(f),[s]:parseFloat(d),[l]:parseFloat(h),alpha:g!==void 0?parseFloat(g):1}},P5=n=>Tn(0,255,n),_u={...Qs,transform:n=>Math.round(P5(n))},Fa={test:Gf("rgb","red"),parse:Kg("red","green","blue"),transform:({red:n,green:s,blue:l,alpha:r=1})=>"rgba("+_u.transform(n)+", "+_u.transform(s)+", "+_u.transform(l)+", "+Pi(nl.transform(r))+")"};function $5(n){let s="",l="",r="",f="";return n.length>5?(s=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),f=n.substring(7,9)):(s=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),f=n.substring(4,5),s+=s,l+=l,r+=r,f+=f),{red:parseInt(s,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:f?parseInt(f,16)/255:1}}const lf={test:Gf("#"),parse:$5,transform:Fa.transform},cl=n=>({test:s=>typeof s=="string"&&s.endsWith(n)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${n}`}),ba=cl("deg"),wn=cl("%"),se=cl("px"),J5=cl("vh"),W5=cl("vw"),kp={...wn,parse:n=>wn.parse(n)/100,transform:n=>wn.transform(n*100)},Hs={test:Gf("hsl","hue"),parse:Kg("hue","saturation","lightness"),transform:({hue:n,saturation:s,lightness:l,alpha:r=1})=>"hsla("+Math.round(n)+", "+wn.transform(Pi(s))+", "+wn.transform(Pi(l))+", "+Pi(nl.transform(r))+")"},et={test:n=>Fa.test(n)||lf.test(n)||Hs.test(n),parse:n=>Fa.test(n)?Fa.parse(n):Hs.test(n)?Hs.parse(n):lf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Fa.transform(n):Hs.transform(n),getAnimatableNone:n=>{const s=et.parse(n);return s.alpha=0,et.transform(s)}},I5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function e4(n){return isNaN(n)&&typeof n=="string"&&(n.match(qf)?.length||0)+(n.match(I5)?.length||0)>0}const Fg="number",Pg="color",t4="var",n4="var(",Rp="${}",a4=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ys(n){const s=n.toString(),l=[],r={color:[],number:[],var:[]},f=[];let d=0;const g=s.replace(a4,y=>(et.test(y)?(r.color.push(d),f.push(Pg),l.push(et.parse(y))):y.startsWith(n4)?(r.var.push(d),f.push(t4),l.push(y)):(r.number.push(d),f.push(Fg),l.push(parseFloat(y))),++d,Rp)).split(Rp);return{values:l,split:g,indexes:r,types:f}}function s4(n){return Ys(n).values}function $g({split:n,types:s}){const l=n.length;return r=>{let f="";for(let d=0;d<l;d++)if(f+=n[d],r[d]!==void 0){const h=s[d];h===Fg?f+=Pi(r[d]):h===Pg?f+=et.transform(r[d]):f+=r[d]}return f}}function i4(n){return $g(Ys(n))}const l4=n=>typeof n=="number"?0:et.test(n)?et.getAnimatableNone(n):n,r4=(n,s)=>typeof n=="number"?s?.trim().endsWith("/")?n:0:l4(n);function o4(n){const s=Ys(n);return $g(s)(s.values.map((r,f)=>r4(r,s.split[f])))}const pn={test:e4,parse:s4,createTransformer:i4,getAnimatableNone:o4};function Lu(n,s,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(s-n)*6*l:l<1/2?s:l<2/3?n+(s-n)*(2/3-l)*6:n}function c4({hue:n,saturation:s,lightness:l,alpha:r}){n/=360,s/=100,l/=100;let f=0,d=0,h=0;if(!s)f=d=h=l;else{const g=l<.5?l*(1+s):l+s-l*s,y=2*l-g;f=Lu(y,g,n+1/3),d=Lu(y,g,n),h=Lu(y,g,n-1/3)}return{red:Math.round(f*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:r}}function Fr(n,s){return l=>l>0?s:n}const Ye=(n,s,l)=>n+(s-n)*l,Bu=(n,s,l)=>{const r=n*n,f=l*(s*s-r)+r;return f<0?0:Math.sqrt(f)},u4=[lf,Fa,Hs],f4=n=>u4.find(s=>s.test(n));function Vp(n){const s=f4(n);if(!s)return!1;let l=s.parse(n);return s===Hs&&(l=c4(l)),l}const Op=(n,s)=>{const l=Vp(n),r=Vp(s);if(!l||!r)return Fr(n,s);const f={...l};return d=>(f.red=Bu(l.red,r.red,d),f.green=Bu(l.green,r.green,d),f.blue=Bu(l.blue,r.blue,d),f.alpha=Ye(l.alpha,r.alpha,d),Fa.transform(f))},rf=new Set(["none","hidden"]);function d4(n,s){return rf.has(n)?l=>l<=0?n:s:l=>l>=1?s:n}function h4(n,s){return l=>Ye(n,s,l)}function Yf(n){return typeof n=="number"?h4:typeof n=="string"?Hf(n)?Fr:et.test(n)?Op:g4:Array.isArray(n)?Jg:typeof n=="object"?et.test(n)?Op:m4:Fr}function Jg(n,s){const l=[...n],r=l.length,f=n.map((d,h)=>Yf(d)(d,s[h]));return d=>{for(let h=0;h<r;h++)l[h]=f[h](d);return l}}function m4(n,s){const l={...n,...s},r={};for(const f in l)n[f]!==void 0&&s[f]!==void 0&&(r[f]=Yf(n[f])(n[f],s[f]));return f=>{for(const d in r)l[d]=r[d](f);return l}}function p4(n,s){const l=[],r={color:0,var:0,number:0};for(let f=0;f<s.values.length;f++){const d=s.types[f],h=n.indexes[d][r[d]],g=n.values[h]??0;l[f]=g,r[d]++}return l}const g4=(n,s)=>{const l=pn.createTransformer(s),r=Ys(n),f=Ys(s);return r.indexes.var.length===f.indexes.var.length&&r.indexes.color.length===f.indexes.color.length&&r.indexes.number.length>=f.indexes.number.length?rf.has(n)&&!f.values.length||rf.has(s)&&!r.values.length?d4(n,s):rl(Jg(p4(r,f),f.values),l):Fr(n,s)};function Wg(n,s,l){return typeof n=="number"&&typeof s=="number"&&typeof l=="number"?Ye(n,s,l):Yf(n)(n,s)}const y4=n=>{const s=({timestamp:l})=>n(l);return{start:(l=!0)=>Ue.update(s,l),stop:()=>wa(s),now:()=>ht.isProcessing?ht.timestamp:xt.now()}},Ig=(n,s,l=10)=>{let r="";const f=Math.max(Math.round(s/l),2);for(let d=0;d<f;d++)r+=Math.round(n(d/(f-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Pr=2e4;function Xf(n){let s=0;const l=50;let r=n.next(s);for(;!r.done&&s<Pr;)s+=l,r=n.next(s);return s>=Pr?1/0:s}function x4(n,s=100,l){const r=l({...n,keyframes:[0,s]}),f=Math.min(Xf(r),Pr);return{type:"keyframes",ease:d=>r.next(f*d).value/s,duration:nn(f)}}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function of(n,s){return n*Math.sqrt(1-s*s)}const v4=12;function b4(n,s,l){let r=l;for(let f=1;f<v4;f++)r=r-n(r)/s(r);return r}const Uu=.001;function S4({duration:n=Ke.duration,bounce:s=Ke.bounce,velocity:l=Ke.velocity,mass:r=Ke.mass}){let f,d,h=1-s;h=Tn(Ke.minDamping,Ke.maxDamping,h),n=Tn(Ke.minDuration,Ke.maxDuration,nn(n)),h<1?(f=p=>{const x=p*h,b=x*n,S=x-l,j=of(p,h),T=Math.exp(-b);return Uu-S/j*T},d=p=>{const b=p*h*n,S=b*l+l,j=Math.pow(h,2)*Math.pow(p,2)*n,T=Math.exp(-b),M=of(Math.pow(p,2),h);return(-f(p)+Uu>0?-1:1)*((S-j)*T)/M}):(f=p=>{const x=Math.exp(-p*n),b=(p-l)*n+1;return-Uu+x*b},d=p=>{const x=Math.exp(-p*n),b=(l-p)*(n*n);return x*b});const g=5/n,y=b4(f,d,g);if(n=Gt(n),isNaN(y))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:n};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:h*2*Math.sqrt(r*p),duration:n}}}const j4=["duration","bounce"],w4=["stiffness","damping","mass"];function _p(n,s){return s.some(l=>n[l]!==void 0)}function T4(n){let s={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...n};if(!_p(n,w4)&&_p(n,j4))if(s.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),f=r*r,d=2*Tn(.05,1,1-(n.bounce||0))*Math.sqrt(f);s={...s,mass:Ke.mass,stiffness:f,damping:d}}else{const l=S4({...n,velocity:0});s={...s,...l,mass:Ke.mass},s.isResolvedFromDuration=!0}return s}function $r(n=Ke.visualDuration,s=Ke.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:s}:n;let{restSpeed:r,restDelta:f}=l;const d=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],g={done:!1,value:d},{stiffness:y,damping:p,mass:x,duration:b,velocity:S,isResolvedFromDuration:j}=T4({...l,velocity:-nn(l.velocity||0)}),T=S||0,M=p/(2*Math.sqrt(y*x)),O=h-d,B=nn(Math.sqrt(y/x)),q=Math.abs(O)<5;r||(r=q?Ke.restSpeed.granular:Ke.restSpeed.default),f||(f=q?Ke.restDelta.granular:Ke.restDelta.default);let Y,X,Z,J,$,L;if(M<1)Z=of(B,M),J=(T+M*B*O)/Z,Y=le=>{const F=Math.exp(-M*B*le);return h-F*(J*Math.sin(Z*le)+O*Math.cos(Z*le))},$=M*B*J+O*Z,L=M*B*O-J*Z,X=le=>Math.exp(-M*B*le)*($*Math.sin(Z*le)+L*Math.cos(Z*le));else if(M===1){Y=F=>h-Math.exp(-B*F)*(O+(T+B*O)*F);const le=T+B*O;X=F=>Math.exp(-B*F)*(B*le*F-T)}else{const le=B*Math.sqrt(M*M-1);Y=be=>{const ye=Math.exp(-M*B*be),D=Math.min(le*be,300);return h-ye*((T+M*B*O)*Math.sinh(D)+le*O*Math.cosh(D))/le};const F=(T+M*B*O)/le,oe=M*B*F-O*le,we=M*B*O-F*le;X=be=>{const ye=Math.exp(-M*B*be),D=Math.min(le*be,300);return ye*(oe*Math.sinh(D)+we*Math.cosh(D))}}const de={calculatedDuration:j&&b||null,velocity:le=>Gt(X(le)),next:le=>{if(!j&&M<1){const oe=Math.exp(-M*B*le),we=Math.sin(Z*le),be=Math.cos(Z*le),ye=h-oe*(J*we+O*be),D=Gt(oe*($*we+L*be));return g.done=Math.abs(D)<=r&&Math.abs(h-ye)<=f,g.value=g.done?h:ye,g}const F=Y(le);if(j)g.done=le>=b;else{const oe=Gt(X(le));g.done=Math.abs(oe)<=r&&Math.abs(h-F)<=f}return g.value=g.done?h:F,g},toString:()=>{const le=Math.min(Xf(de),Pr),F=Ig(oe=>de.next(le*oe).value,le,30);return le+"ms "+F},toTransition:()=>{}};return de}$r.applyToOptions=n=>{const s=x4(n,100,$r);return n.ease=s.ease,n.duration=Gt(s.duration),n.type="keyframes",n};const N4=5;function ey(n,s,l){const r=Math.max(s-N4,0);return Rg(l-n(r),s-r)}function cf({keyframes:n,velocity:s=0,power:l=.8,timeConstant:r=325,bounceDamping:f=10,bounceStiffness:d=500,modifyTarget:h,min:g,max:y,restDelta:p=.5,restSpeed:x}){const b=n[0],S={done:!1,value:b},j=L=>g!==void 0&&L<g||y!==void 0&&L>y,T=L=>g===void 0?y:y===void 0||Math.abs(g-L)<Math.abs(y-L)?g:y;let M=l*s;const O=b+M,B=h===void 0?O:h(O);B!==O&&(M=B-b);const q=L=>-M*Math.exp(-L/r),Y=L=>B+q(L),X=L=>{const de=q(L),le=Y(L);S.done=Math.abs(de)<=p,S.value=S.done?B:le};let Z,J;const $=L=>{j(S.value)&&(Z=L,J=$r({keyframes:[S.value,T(S.value)],velocity:ey(Y,L,S.value),damping:f,stiffness:d,restDelta:p,restSpeed:x}))};return $(0),{calculatedDuration:null,next:L=>{let de=!1;return!J&&Z===void 0&&(de=!0,X(L),$(L)),Z!==void 0&&L>=Z?J.next(L-Z):(!de&&X(L),S)}}}function A4(n,s,l){const r=[],f=l||ja.mix||Wg,d=n.length-1;for(let h=0;h<d;h++){let g=f(n[h],n[h+1]);if(s){const y=Array.isArray(s)?s[h]||sn:s;g=rl(y,g)}r.push(g)}return r}function C4(n,s,{clamp:l=!0,ease:r,mixer:f}={}){const d=n.length;if(_f(d===s.length),d===1)return()=>s[0];if(d===2&&s[0]===s[1])return()=>s[1];const h=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),s=[...s].reverse());const g=A4(s,r,f),y=g.length,p=x=>{if(h&&x<n[0])return s[0];let b=0;if(y>1)for(;b<n.length-2&&!(x<n[b+1]);b++);const S=tl(n[b],n[b+1],x);return g[b](S)};return l?x=>p(Tn(n[0],n[d-1],x)):p}function M4(n,s){const l=n[n.length-1];for(let r=1;r<=s;r++){const f=tl(0,s,r);n.push(Ye(l,1,f))}}function E4(n){const s=[0];return M4(s,n.length-1),s}function z4(n,s){return n.map(l=>l*s)}function D4(n,s){return n.map(()=>s||Gg).splice(0,n.length-1)}function $i({duration:n=300,keyframes:s,times:l,ease:r="easeInOut"}){const f=U5(r)?r.map(zp):zp(r),d={done:!1,value:s[0]},h=z4(l&&l.length===s.length?l:E4(s),n),g=C4(h,s,{ease:Array.isArray(f)?f:D4(s,f)});return{calculatedDuration:n,next:y=>(d.value=g(y),d.done=y>=n,d)}}const k4=n=>n!==null;function io(n,{repeat:s,repeatType:l="loop"},r,f=1){const d=n.filter(k4),g=f<0||s&&l!=="loop"&&s%2===1?0:d.length-1;return!g||r===void 0?d[g]:r}const R4={decay:cf,inertia:cf,tween:$i,keyframes:$i,spring:$r};function ty(n){typeof n.type=="string"&&(n.type=R4[n.type])}class Zf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,l){return this.finished.then(s,l)}}const V4=n=>n/100;class Jr extends Zf{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==xt.now()&&this.tick(xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;ty(s);const{type:l=$i,repeat:r=0,repeatDelay:f=0,repeatType:d,velocity:h=0}=s;let{keyframes:g}=s;const y=l||$i;y!==$i&&typeof g[0]!="number"&&(this.mixKeyframes=rl(V4,Wg(g[0],g[1])),g=[0,100]);const p=y({...s,keyframes:g});d==="mirror"&&(this.mirroredGenerator=y({...s,keyframes:[...g].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=Xf(p));const{calculatedDuration:x}=p;this.calculatedDuration=x,this.resolvedDuration=x+f,this.totalDuration=this.resolvedDuration*(r+1)-f,this.generator=p}updateTime(s){const l=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(s,l=!1){const{generator:r,totalDuration:f,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:x,repeat:b,repeatType:S,repeatDelay:j,type:T,onUpdate:M,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-f/this.speed,this.startTime)),l?this.currentTime=s:this.updateTime(s);const B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?B<0:B>f;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let Y=this.currentTime,X=r;if(b){const L=Math.min(this.currentTime,f)/g;let de=Math.floor(L),le=L%1;!le&&L>=1&&(le=1),le===1&&de--,de=Math.min(de,b+1),de%2&&(S==="reverse"?(le=1-le,j&&(le-=j/g)):S==="mirror"&&(X=h)),Y=Tn(0,1,le)*g}let Z;q?(this.delayState.value=x[0],Z=this.delayState):Z=X.next(Y),d&&!q&&(Z.value=d(Z.value));let{done:J}=Z;!q&&y!==null&&(J=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&J);return $&&T!==cf&&(Z.value=io(x,this.options,O,this.speed)),M&&M(Z.value),$&&this.finish(),Z}then(s,l){return this.finished.then(s,l)}get duration(){return nn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+nn(s)}get time(){return nn(this.currentTime)}set time(s){s=Gt(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=s,this.tick(s))}getGeneratorVelocity(){const s=this.currentTime;if(s<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(s);const l=this.generator.next(s).value;return ey(r=>this.generator.next(r).value,s,l)}get speed(){return this.playbackSpeed}set speed(s){const l=this.playbackSpeed!==s;l&&this.driver&&this.updateTime(xt.now()),this.playbackSpeed=s,l&&this.driver&&(this.time=nn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=y4,startTime:l}=this.options;this.driver||(this.driver=s(f=>this.tick(f))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function O4(n){for(let s=1;s<n.length;s++)n[s]??(n[s]=n[s-1])}const Pa=n=>n*180/Math.PI,uf=n=>{const s=Pa(Math.atan2(n[1],n[0]));return ff(s)},_4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:uf,rotateZ:uf,skewX:n=>Pa(Math.atan(n[1])),skewY:n=>Pa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},ff=n=>(n=n%360,n<0&&(n+=360),n),Lp=uf,Bp=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Up=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),L4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bp,scaleY:Up,scale:n=>(Bp(n)+Up(n))/2,rotateX:n=>ff(Pa(Math.atan2(n[6],n[5]))),rotateY:n=>ff(Pa(Math.atan2(-n[2],n[0]))),rotateZ:Lp,rotate:Lp,skewX:n=>Pa(Math.atan(n[4])),skewY:n=>Pa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function df(n){return n.includes("scale")?1:0}function hf(n,s){if(!n||n==="none")return df(s);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,f;if(l)r=L4,f=l;else{const g=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_4,f=g}if(!f)return df(s);const d=r[s],h=f[1].split(",").map(U4);return typeof d=="function"?d(h):h[d]}const B4=(n,s)=>{const{transform:l="none"}=getComputedStyle(n);return hf(l,s)};function U4(n){return parseFloat(n.trim())}const Ks=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fs=new Set(Ks),Hp=n=>n===Qs||n===se,H4=new Set(["x","y","z"]),q4=Ks.filter(n=>!H4.has(n));function G4(n){const s=[];return q4.forEach(l=>{const r=n.getValue(l);r!==void 0&&(s.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),s}const Sa={width:({x:n},{paddingLeft:s="0",paddingRight:l="0",boxSizing:r})=>{const f=n.max-n.min;return r==="border-box"?f:f-parseFloat(s)-parseFloat(l)},height:({y:n},{paddingTop:s="0",paddingBottom:l="0",boxSizing:r})=>{const f=n.max-n.min;return r==="border-box"?f:f-parseFloat(s)-parseFloat(l)},top:(n,{top:s})=>parseFloat(s),left:(n,{left:s})=>parseFloat(s),bottom:({y:n},{top:s})=>parseFloat(s)+(n.max-n.min),right:({x:n},{left:s})=>parseFloat(s)+(n.max-n.min),x:(n,{transform:s})=>hf(s,"x"),y:(n,{transform:s})=>hf(s,"y")};Sa.translateX=Sa.x;Sa.translateY=Sa.y;const $a=new Set;let mf=!1,pf=!1,gf=!1;function ny(){if(pf){const n=Array.from($a).filter(r=>r.needsMeasurement),s=new Set(n.map(r=>r.element)),l=new Map;s.forEach(r=>{const f=G4(r);f.length&&(l.set(r,f),r.render())}),n.forEach(r=>r.measureInitialState()),s.forEach(r=>{r.render();const f=l.get(r);f&&f.forEach(([d,h])=>{r.getValue(d)?.set(h)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}pf=!1,mf=!1,$a.forEach(n=>n.complete(gf)),$a.clear()}function ay(){$a.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(pf=!0)})}function Y4(){gf=!0,ay(),ny(),gf=!1}class Qf{constructor(s,l,r,f,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=l,this.name=r,this.motionValue=f,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?($a.add(this),mf||(mf=!0,Ue.read(ay),Ue.resolveKeyframes(ny))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:l,element:r,motionValue:f}=this;if(s[0]===null){const d=f?.get(),h=s[s.length-1];if(d!==void 0)s[0]=d;else if(r&&l){const g=r.readValue(l,h);g!=null&&(s[0]=g)}s[0]===void 0&&(s[0]=h),f&&d===void 0&&f.set(s[0])}O4(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),$a.delete(this)}cancel(){this.state==="scheduled"&&($a.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const X4=n=>n.startsWith("--");function sy(n,s,l){X4(s)?n.style.setProperty(s,l):n.style[s]=l}const Z4={};function iy(n,s){const l=kg(n);return()=>Z4[s]??l()}const Q4=iy(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ly=iy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qi=([n,s,l,r])=>`cubic-bezier(${n}, ${s}, ${l}, ${r})`,qp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qi([0,.65,.55,1]),circOut:Qi([.55,0,1,.45]),backIn:Qi([.31,.01,.66,-.59]),backOut:Qi([.33,1.53,.69,.99])};function ry(n,s){if(n)return typeof n=="function"?ly()?Ig(n,s):"ease-out":Yg(n)?Qi(n):Array.isArray(n)?n.map(l=>ry(l,s)||qp.easeOut):qp[n]}function K4(n,s,l,{delay:r=0,duration:f=300,repeat:d=0,repeatType:h="loop",ease:g="easeOut",times:y}={},p=void 0){const x={[s]:l};y&&(x.offset=y);const b=ry(g,f);Array.isArray(b)&&(x.easing=b);const S={delay:r,duration:f,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(x,S)}function oy(n){return typeof n=="function"&&"applyToOptions"in n}function F4({type:n,...s}){return oy(n)&&ly()?n.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class cy extends Zf{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:l,name:r,keyframes:f,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:g,onComplete:y}=s;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=s,_f(typeof s.type!="string");const p=F4(s);this.animation=K4(l,r,f,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const x=io(f,this.options,g,this.speed);this.updateMotionValue&&this.updateMotionValue(x),sy(l,r,x),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const s=this.options?.element;!this.isPseudoElement&&s?.isConnected&&this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return nn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+nn(s)}get time(){return nn(Number(this.animation.currentTime)||0)}set time(s){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Gt(s),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(s){this.manualStartTime=this.animation.startTime=s}attachTimeline({timeline:s,rangeStart:l,rangeEnd:r,observe:f}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&Q4()?(this.animation.timeline=s,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),sn):f(this)}}const uy={anticipate:Ug,backInOut:Bg,circInOut:qg};function P4(n){return n in uy}function $4(n){typeof n.ease=="string"&&P4(n.ease)&&(n.ease=uy[n.ease])}const Hu=10;class J4 extends cy{constructor(s){$4(s),ty(s),super(s),s.startTime!==void 0&&s.autoplay!==!1&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:l,onUpdate:r,onComplete:f,element:d,...h}=this.options;if(!l)return;if(s!==void 0){l.set(s);return}const g=new Jr({...h,autoplay:!1}),y=Math.max(Hu,xt.now()-this.startTime),p=Tn(0,Hu,y-Hu),x=g.sample(y).value,{name:b}=this.options;d&&b&&sy(d,b,x),l.setWithVelocity(g.sample(Math.max(0,y-p)).value,x,p),g.stop()}}const Gp=(n,s)=>s==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(pn.test(n)||n==="0")&&!n.startsWith("url("));function W4(n){const s=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==s)return!0}function I4(n,s,l,r){const f=n[0];if(f===null)return!1;if(s==="display"||s==="visibility")return!0;const d=n[n.length-1],h=Gp(f,s),g=Gp(d,s);return!h||!g?!1:W4(n)||(l==="spring"||oy(l))&&r}function yf(n){n.duration=0,n.type="keyframes"}const fy=new Set(["opacity","clipPath","filter","transform"]),e8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function t8(n){for(let s=0;s<n.length;s++)if(typeof n[s]=="string"&&e8.test(n[s]))return!0;return!1}const n8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),a8=kg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function s8(n){const{motionValue:s,name:l,repeatDelay:r,repeatType:f,damping:d,type:h,keyframes:g}=n;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:x}=s.owner.getProps();return a8()&&l&&(fy.has(l)||n8.has(l)&&t8(g))&&(l!=="transform"||!x)&&!p&&!r&&f!=="mirror"&&d!==0&&h!=="inertia"}const i8=40;class l8 extends Zf{constructor({autoplay:s=!0,delay:l=0,type:r="keyframes",repeat:f=0,repeatDelay:d=0,repeatType:h="loop",keyframes:g,name:y,motionValue:p,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xt.now();const S={autoplay:s,delay:l,type:r,repeat:f,repeatDelay:d,repeatType:h,name:y,motionValue:p,element:x,...b},j=x?.KeyframeResolver||Qf;this.keyframeResolver=new j(g,(T,M,O)=>this.onKeyframesResolved(T,M,S,!O),y,p,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,l,r,f){this.keyframeResolver=void 0;const{name:d,type:h,velocity:g,delay:y,isHandoff:p,onUpdate:x}=r;this.resolvedAt=xt.now();let b=!0;I4(s,d,h,g)||(b=!1,(ja.instantAnimations||!y)&&x?.(io(s,r,l)),s[0]=s[s.length-1],yf(r),r.repeat=0);const j={startTime:f?this.resolvedAt?this.resolvedAt-this.createdAt>i8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:s},T=b&&!p&&s8(j),M=j.motionValue?.owner?.current;let O;if(T)try{O=new J4({...j,element:M})}catch{O=new Jr(j)}else O=new Jr(j);O.finished.then(()=>{this.notifyFinished()}).catch(sn),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}get finished(){return this._animation?this.animation.finished:this._finished}then(s,l){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Y4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function dy(n,s,l,r=0,f=1){const d=Array.from(n).sort((p,x)=>p.sortNodePosition(x)).indexOf(s),h=n.size,g=(h-1)*r;return typeof l=="function"?l(d,h):f===1?d*r:g-d*r}const r8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o8(n){const s=r8.exec(n);if(!s)return[,];const[,l,r,f]=s;return[`--${l??r}`,f]}function hy(n,s,l=1){const[r,f]=o8(n);if(!r)return;const d=window.getComputedStyle(s).getPropertyValue(r);if(d){const h=d.trim();return Eg(h)?parseFloat(h):h}return Hf(f)?hy(f,s,l+1):f}const c8={type:"spring",stiffness:500,damping:25,restSpeed:10},u8=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),f8={type:"keyframes",duration:.8},d8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h8=(n,{keyframes:s})=>s.length>2?f8:Fs.has(n)?n.startsWith("scale")?u8(s[1]):c8:d8;function my(n,s){if(n?.inherit&&s){const{inherit:l,...r}=n;return{...s,...r}}return n}function Kf(n,s){const l=n?.[s]??n?.default??n;return l!==n?my(l,n):l}const m8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function p8(n){for(const s in n)if(!m8.has(s))return!0;return!1}const Ff=(n,s,l,r={},f,d)=>h=>{const g=Kf(r,n)||{},y=g.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Gt(y);const x={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:s.getVelocity(),...g,delay:-p,onUpdate:S=>{s.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{h(),g.onComplete&&g.onComplete()},name:n,motionValue:s,element:d?void 0:f};p8(g)||Object.assign(x,h8(n,x)),x.duration&&(x.duration=Gt(x.duration)),x.repeatDelay&&(x.repeatDelay=Gt(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(yf(x),x.delay===0&&(b=!0)),(ja.instantAnimations||ja.skipAnimations||f?.shouldSkipAnimations)&&(b=!0,yf(x),x.delay=0),x.allowFlatten=!g.type&&!g.ease,b&&!d&&s.get()!==void 0){const S=io(x.keyframes,g);if(S!==void 0){Ue.update(()=>{x.onUpdate(S),x.onComplete()});return}}return g.isSync?new Jr(x):new l8(x)};function Yp(n){const s=[{},{}];return n?.values.forEach((l,r)=>{s[0][r]=l.get(),s[1][r]=l.getVelocity()}),s}function Pf(n,s,l,r){if(typeof s=="function"){const[f,d]=Yp(r);s=s(l!==void 0?l:n.custom,f,d)}if(typeof s=="string"&&(s=n.variants&&n.variants[s]),typeof s=="function"){const[f,d]=Yp(r);s=s(l!==void 0?l:n.custom,f,d)}return s}function Ja(n,s,l){const r=n.getProps();return Pf(r,s,l!==void 0?l:r.custom,n)}const py=new Set(["width","height","top","left","right","bottom",...Ks]),Xp=30,g8=n=>!isNaN(parseFloat(n));class y8{constructor(s,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const f=xt.now();if(this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=l.owner}setCurrent(s){this.current=s,this.updatedAt=xt.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=g8(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,l){this.events[s]||(this.events[s]=new Lf);const r=this.events[s].add(l);return s==="change"?()=>{r(),Ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,l){this.passiveEffect=s,this.stopPassiveEffect=l}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-r}jump(s,l=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>Xp)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Xp);return Rg(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(s){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=s(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xs(n,s){return new y8(n,s)}const xf=n=>Array.isArray(n);function x8(n,s,l){n.hasValue(s)?n.getValue(s).set(l):n.addValue(s,Xs(l))}function v8(n){return xf(n)?n[n.length-1]||0:n}function b8(n,s){const l=Ja(n,s);let{transitionEnd:r={},transition:f={},...d}=l||{};d={...d,...r};for(const h in d){const g=v8(d[h]);x8(n,h,g)}}const mt=n=>!!(n&&n.getVelocity);function S8(n){return!!(mt(n)&&n.add)}function vf(n,s){const l=n.getValue("willChange");if(S8(l))return l.add(s);if(!l&&ja.WillChange){const r=new ja.WillChange("auto");n.addValue("willChange",r),r.add(s)}}function $f(n){return n.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const j8="framerAppearId",gy="data-"+$f(j8);function yy(n){return n.props[gy]}function w8({protectedKeys:n,needsAnimating:s},l){const r=n.hasOwnProperty(l)&&s[l]!==!0;return s[l]=!1,r}function xy(n,s,{delay:l=0,transitionOverride:r,type:f}={}){let{transition:d,transitionEnd:h,...g}=s;const y=n.getDefaultTransition();d=d?my(d,y):y;const p=d?.reduceMotion;r&&(d=r);const x=[],b=f&&n.animationState&&n.animationState.getState()[f];for(const S in g){const j=n.getValue(S,n.latestValues[S]??null),T=g[S];if(T===void 0||b&&w8(b,S))continue;const M={delay:l,...Kf(d||{},S)},O=j.get();if(O!==void 0&&!j.isAnimating()&&!Array.isArray(T)&&T===O&&!M.velocity){Ue.update(()=>j.set(T));continue}let B=!1;if(window.MotionHandoffAnimation){const X=yy(n);if(X){const Z=window.MotionHandoffAnimation(X,S,Ue);Z!==null&&(M.startTime=Z,B=!0)}}vf(n,S);const q=p??n.shouldReduceMotion;j.start(Ff(S,j,T,q&&py.has(S)?{type:!1}:M,n,B));const Y=j.animation;Y&&x.push(Y)}if(h){const S=()=>Ue.update(()=>{h&&b8(n,h)});x.length?Promise.all(x).then(S):S()}return x}function bf(n,s,l={}){const r=Ja(n,s,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(f=l.transitionOverride);const d=r?()=>Promise.all(xy(n,r,l)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:x,staggerDirection:b}=f;return T8(n,s,y,p,x,b,l)}:()=>Promise.resolve(),{when:g}=f;if(g){const[y,p]=g==="beforeChildren"?[d,h]:[h,d];return y().then(()=>p())}else return Promise.all([d(),h(l.delay)])}function T8(n,s,l=0,r=0,f=0,d=1,h){const g=[];for(const y of n.variantChildren)y.notify("AnimationStart",s),g.push(bf(y,s,{...h,delay:l+(typeof r=="function"?0:r)+dy(n.variantChildren,y,r,f,d)}).then(()=>y.notify("AnimationComplete",s)));return Promise.all(g)}function N8(n,s,l={}){n.notify("AnimationStart",s);let r;if(Array.isArray(s)){const f=s.map(d=>bf(n,d,l));r=Promise.all(f)}else if(typeof s=="string")r=bf(n,s,l);else{const f=typeof s=="function"?Ja(n,s,l.custom):s;r=Promise.all(xy(n,f,l))}return r.then(()=>{n.notify("AnimationComplete",s)})}const A8={test:n=>n==="auto",parse:n=>n},vy=n=>s=>s.test(n),by=[Qs,se,wn,ba,W5,J5,A8],Zp=n=>by.find(vy(n));function C8(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Dg(n):!0}const M8=new Set(["brightness","contrast","saturate","opacity"]);function E8(n){const[s,l]=n.slice(0,-1).split("(");if(s==="drop-shadow")return n;const[r]=l.match(qf)||[];if(!r)return n;const f=l.replace(r,"");let d=M8.has(s)?1:0;return r!==l&&(d*=100),s+"("+d+f+")"}const z8=/\b([a-z-]*)\(.*?\)/gu,Sf={...pn,getAnimatableNone:n=>{const s=n.match(z8);return s?s.map(E8).join(" "):n}},jf={...pn,getAnimatableNone:n=>{const s=pn.parse(n);return pn.createTransformer(n)(s.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Qp={...Qs,transform:Math.round},D8={rotate:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:Dr,scaleX:Dr,scaleY:Dr,scaleZ:Dr,skew:ba,skewX:ba,skewY:ba,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:nl,originX:kp,originY:kp,originZ:se},Jf={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,top:se,right:se,bottom:se,left:se,inset:se,insetBlock:se,insetBlockStart:se,insetBlockEnd:se,insetInline:se,insetInlineStart:se,insetInlineEnd:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,paddingBlock:se,paddingBlockStart:se,paddingBlockEnd:se,paddingInline:se,paddingInlineStart:se,paddingInlineEnd:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,marginBlock:se,marginBlockStart:se,marginBlockEnd:se,marginInline:se,marginInlineStart:se,marginInlineEnd:se,fontSize:se,backgroundPositionX:se,backgroundPositionY:se,...D8,zIndex:Qp,fillOpacity:nl,strokeOpacity:nl,numOctaves:Qp},k8={...Jf,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:Sf,WebkitFilter:Sf,mask:jf,WebkitMask:jf},Sy=n=>k8[n],R8=new Set([Sf,jf]);function jy(n,s){let l=Sy(n);return R8.has(l)||(l=pn),l.getAnimatableNone?l.getAnimatableNone(s):void 0}const V8=new Set(["auto","none","0"]);function O8(n,s,l){let r=0,f;for(;r<n.length&&!f;){const d=n[r];typeof d=="string"&&!V8.has(d)&&Ys(d).values.length&&(f=n[r]),r++}if(f&&l)for(const d of s)n[d]=jy(l,f)}class _8 extends Qf{constructor(s,l,r,f,d){super(s,l,r,f,d,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let x=0;x<s.length;x++){let b=s[x];if(typeof b=="string"&&(b=b.trim(),Hf(b))){const S=hy(b,l.current);S!==void 0&&(s[x]=S),x===s.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!py.has(r)||s.length!==2)return;const[f,d]=s,h=Zp(f),g=Zp(d),y=Dp(f),p=Dp(d);if(y!==p&&Sa[r]){this.needsMeasurement=!0;return}if(h!==g)if(Hp(h)&&Hp(g))for(let x=0;x<s.length;x++){const b=s[x];typeof b=="string"&&(s[x]=parseFloat(b))}else Sa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:l}=this,r=[];for(let f=0;f<s.length;f++)(s[f]===null||C8(s[f]))&&r.push(f);r.length&&O8(s,r,l)}measureInitialState(){const{element:s,unresolvedKeyframes:l,name:r}=this;if(!s||!s.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Sa[r](s.measureViewportBox(),window.getComputedStyle(s.current)),l[0]=this.measuredOrigin;const f=l[l.length-1];f!==void 0&&s.getValue(r,f).jump(f,!1)}measureEndState(){const{element:s,name:l,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const f=s.getValue(l);f&&f.jump(this.measuredOrigin,!1);const d=r.length-1,h=r[d];r[d]=Sa[l](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{s.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function wy(n,s,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const f=l?.[n]??r.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n).filter(r=>r!=null)}const Ty=(n,s)=>s&&typeof n=="number"?s.transform(n):n;function L8(n){return zg(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Wf}=Xg(queueMicrotask,!1),mn={x:!1,y:!1};function Ny(){return mn.x||mn.y}function B8(n){return n==="x"||n==="y"?mn[n]?null:(mn[n]=!0,()=>{mn[n]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function Ay(n,s){const l=wy(n),r=new AbortController,f={passive:!0,...s,signal:r.signal};return[l,f,()=>r.abort()]}function U8(n){return!(n.pointerType==="touch"||Ny())}function H8(n,s,l={}){const[r,f,d]=Ay(n,l);return r.forEach(h=>{let g=!1,y=!1,p;const x=()=>{h.removeEventListener("pointerleave",T)},b=O=>{p&&(p(O),p=void 0),x()},S=O=>{g=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,b(O))},j=()=>{g=!0,window.addEventListener("pointerup",S,f),window.addEventListener("pointercancel",S,f)},T=O=>{if(O.pointerType!=="touch"){if(g){y=!0;return}b(O)}},M=O=>{if(!U8(O))return;y=!1;const B=s(h,O);typeof B=="function"&&(p=B,h.addEventListener("pointerleave",T,f))};h.addEventListener("pointerenter",M,f),h.addEventListener("pointerdown",j,f)}),d}const Cy=(n,s)=>s?n===s?!0:Cy(n,s.parentElement):!1,If=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,q8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G8(n){return q8.has(n.tagName)||n.isContentEditable===!0}const Y8=new Set(["INPUT","SELECT","TEXTAREA"]);function X8(n){return Y8.has(n.tagName)||n.isContentEditable===!0}const Lr=new WeakSet;function Kp(n){return s=>{s.key==="Enter"&&n(s)}}function qu(n,s){n.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const Z8=(n,s)=>{const l=n.currentTarget;if(!l)return;const r=Kp(()=>{if(Lr.has(l))return;qu(l,"down");const f=Kp(()=>{qu(l,"up")}),d=()=>qu(l,"cancel");l.addEventListener("keyup",f,s),l.addEventListener("blur",d,s)});l.addEventListener("keydown",r,s),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),s)};function Fp(n){return If(n)&&!Ny()}const Pp=new WeakSet;function Q8(n,s,l={}){const[r,f,d]=Ay(n,l),h=g=>{const y=g.currentTarget;if(!Fp(g)||Pp.has(g))return;Lr.add(y),l.stopPropagation&&Pp.add(g);const p=s(y,g),x=(j,T)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),Lr.has(y)&&Lr.delete(y),Fp(j)&&typeof p=="function"&&p(j,{success:T})},b=j=>{x(j,y===window||y===document||l.useGlobalTarget||Cy(y,j.target))},S=j=>{x(j,!1)};window.addEventListener("pointerup",b,f),window.addEventListener("pointercancel",S,f)};return r.forEach(g=>{(l.useGlobalTarget?window:g).addEventListener("pointerdown",h,f),L8(g)&&(g.addEventListener("focus",p=>Z8(p,f)),!G8(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function ed(n){return zg(n)&&"ownerSVGElement"in n}const Br=new WeakMap;let Ur;const My=(n,s,l)=>(r,f)=>f&&f[0]?f[0][n+"Size"]:ed(r)&&"getBBox"in r?r.getBBox()[s]:r[l],K8=My("inline","width","offsetWidth"),F8=My("block","height","offsetHeight");function P8({target:n,borderBoxSize:s}){Br.get(n)?.forEach(l=>{l(n,{get width(){return K8(n,s)},get height(){return F8(n,s)}})})}function $8(n){n.forEach(P8)}function J8(){typeof ResizeObserver>"u"||(Ur=new ResizeObserver($8))}function W8(n,s){Ur||J8();const l=wy(n);return l.forEach(r=>{let f=Br.get(r);f||(f=new Set,Br.set(r,f)),f.add(s),Ur?.observe(r)}),()=>{l.forEach(r=>{const f=Br.get(r);f?.delete(s),f?.size||Ur?.unobserve(r)})}}const Hr=new Set;let qs;function I8(){qs=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Hr.forEach(s=>s(n))},window.addEventListener("resize",qs)}function e6(n){return Hr.add(n),qs||I8(),()=>{Hr.delete(n),!Hr.size&&typeof qs=="function"&&(window.removeEventListener("resize",qs),qs=void 0)}}function $p(n,s){return typeof n=="function"?e6(n):W8(n,s)}function t6(n){return ed(n)&&n.tagName==="svg"}const n6=[...by,et,pn],a6=n=>n6.find(vy(n)),Jp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gs=()=>({x:Jp(),y:Jp()}),Wp=()=>({min:0,max:0}),st=()=>({x:Wp(),y:Wp()}),s6=new WeakMap;function lo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function al(n){return typeof n=="string"||Array.isArray(n)}const td=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nd=["initial",...td];function ro(n){return lo(n.animate)||nd.some(s=>al(n[s]))}function Ey(n){return!!(ro(n)||n.variants)}function i6(n,s,l){for(const r in s){const f=s[r],d=l[r];if(mt(f))n.addValue(r,f);else if(mt(d))n.addValue(r,Xs(f,{owner:n}));else if(d!==f)if(n.hasValue(r)){const h=n.getValue(r);h.liveStyle===!0?h.jump(f):h.hasAnimated||h.set(f)}else{const h=n.getStaticValue(r);n.addValue(r,Xs(h!==void 0?h:f,{owner:n}))}}for(const r in l)s[r]===void 0&&n.removeValue(r);return s}const wf={current:null},zy={current:!1},l6=typeof window<"u";function r6(){if(zy.current=!0,!!l6)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),s=()=>wf.current=n.matches;n.addEventListener("change",s),s()}else wf.current=!1}const Ip=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Wr={};function Dy(n){Wr=n}function o6(){return Wr}class c6{scrapeMotionValuesFromProps(s,l,r){return{}}constructor({parent:s,props:l,presenceContext:r,reducedMotionConfig:f,skipAnimations:d,blockInitialAnimation:h,visualState:g},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Qf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const j=xt.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,Ue.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=g;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=x,this.parent=s,this.props=l,this.presenceContext=r,this.depth=s?s.depth+1:0,this.reducedMotionConfig=f,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=ro(l),this.isVariantNode=Ey(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const j in S){const T=S[j];p[j]!==void 0&&mt(T)&&T.set(p[j])}}mount(s){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=s,s6.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,r)=>this.bindToMotionValue(r,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zy.current||r6(),this.shouldReduceMotion=wf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),wa(this.notifyUpdate),wa(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,l){if(this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)(),l.accelerate&&fy.has(s)&&this.current instanceof HTMLElement){const{factory:h,keyframes:g,times:y,ease:p,duration:x}=l.accelerate,b=new cy({element:this.current,name:s,keyframes:g,times:y,ease:p,duration:Gt(x)}),S=h(b);this.valueSubscriptions.set(s,()=>{S(),b.cancel()});return}const r=Fs.has(s);r&&this.onBindTransform&&this.onBindTransform();const f=l.on("change",h=>{this.latestValues[s]=h,this.props.onUpdate&&Ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,s,l)),this.valueSubscriptions.set(s,()=>{f(),d&&d(),l.owner&&l.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in Wr){const l=Wr[s];if(!l)continue;const{isEnabled:r,Feature:f}=l;if(!this.features[s]&&f&&r(this.props)&&(this.features[s]=new f(this)),this.features[s]){const d=this.features[s];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):st()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,l){this.latestValues[s]=l}update(s,l){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<Ip.length;r++){const f=Ip[r];this.propEventSubscriptions[f]&&(this.propEventSubscriptions[f](),delete this.propEventSubscriptions[f]);const d="on"+f,h=s[d];h&&(this.propEventSubscriptions[f]=this.on(f,h))}this.prevMotionValues=i6(this,this.scrapeMotionValuesFromProps(s,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(s),()=>l.variantChildren.delete(s)}addValue(s,l){const r=this.values.get(s);l!==r&&(r&&this.removeValue(s),this.bindToMotionValue(s,l),this.values.set(s,l),this.latestValues[s]=l.get())}removeValue(s){this.values.delete(s);const l=this.valueSubscriptions.get(s);l&&(l(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,l){if(this.props.values&&this.props.values[s])return this.props.values[s];let r=this.values.get(s);return r===void 0&&l!==void 0&&(r=Xs(l===null?void 0:l,{owner:this}),this.addValue(s,r)),r}readValue(s,l){let r=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return r!=null&&(typeof r=="string"&&(Eg(r)||Dg(r))?r=parseFloat(r):!a6(r)&&pn.test(l)&&(r=jy(s,l)),this.setBaseTarget(s,mt(r)?r.get():r)),mt(r)?r.get():r}setBaseTarget(s,l){this.baseTarget[s]=l}getBaseTarget(s){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const d=Pf(this.props,l,this.presenceContext?.custom);d&&(r=d[s])}if(l&&r!==void 0)return r;const f=this.getBaseTargetFromProps(this.props,s);return f!==void 0&&!mt(f)?f:this.initialValues[s]!==void 0&&r===void 0?void 0:this.baseTarget[s]}on(s,l){return this.events[s]||(this.events[s]=new Lf),this.events[s].add(l)}notify(s,...l){this.events[s]&&this.events[s].notify(...l)}scheduleRenderMicrotask(){Wf.render(this.render)}}class ky extends c6{constructor(){super(...arguments),this.KeyframeResolver=_8}sortInstanceNodePosition(s,l){return s.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(s,l){const r=s.style;return r?r[l]:void 0}removeValueFromRenderState(s,{vars:l,style:r}){delete l[s],delete r[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;mt(s)&&(this.childSubscription=s.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Na{constructor(s){this.isMounted=!1,this.node=s}update(){}}function Ry({top:n,left:s,right:l,bottom:r}){return{x:{min:s,max:l},y:{min:n,max:r}}}function u6({x:n,y:s}){return{top:s.min,right:n.max,bottom:s.max,left:n.min}}function f6(n,s){if(!s)return n;const l=s({x:n.left,y:n.top}),r=s({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Gu(n){return n===void 0||n===1}function Tf({scale:n,scaleX:s,scaleY:l}){return!Gu(n)||!Gu(s)||!Gu(l)}function Ka(n){return Tf(n)||Vy(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Vy(n){return e1(n.x)||e1(n.y)}function e1(n){return n&&n!=="0%"}function Ir(n,s,l){const r=n-l,f=s*r;return l+f}function t1(n,s,l,r,f){return f!==void 0&&(n=Ir(n,f,r)),Ir(n,l,r)+s}function Nf(n,s=0,l=1,r,f){n.min=t1(n.min,s,l,r,f),n.max=t1(n.max,s,l,r,f)}function Oy(n,{x:s,y:l}){Nf(n.x,s.translate,s.scale,s.originPoint),Nf(n.y,l.translate,l.scale,l.originPoint)}const n1=.999999999999,a1=1.0000000000001;function d6(n,s,l,r=!1){const f=l.length;if(!f)return;s.x=s.y=1;let d,h;for(let g=0;g<f;g++){d=l[g],h=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(jn(n.x,-d.scroll.offset.x),jn(n.y,-d.scroll.offset.y)),h&&(s.x*=h.x.scale,s.y*=h.y.scale,Oy(n,h)),r&&Ka(d.latestValues)&&qr(n,d.latestValues,d.layout?.layoutBox))}s.x<a1&&s.x>n1&&(s.x=1),s.y<a1&&s.y>n1&&(s.y=1)}function jn(n,s){n.min+=s,n.max+=s}function s1(n,s,l,r,f=.5){const d=Ye(n.min,n.max,f);Nf(n,s,l,d,r)}function i1(n,s){return typeof n=="string"?parseFloat(n)/100*(s.max-s.min):n}function qr(n,s,l){const r=l??n;s1(n.x,i1(s.x,r.x),s.scaleX,s.scale,s.originX),s1(n.y,i1(s.y,r.y),s.scaleY,s.scale,s.originY)}function _y(n,s){return Ry(f6(n.getBoundingClientRect(),s))}function h6(n,s,l){const r=_y(n,l),{scroll:f}=s;return f&&(jn(r.x,f.offset.x),jn(r.y,f.offset.y)),r}const m6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p6=Ks.length;function g6(n,s,l){let r="",f=!0;for(let d=0;d<p6;d++){const h=Ks[d],g=n[h];if(g===void 0)continue;let y=!0;if(typeof g=="number")y=g===(h.startsWith("scale")?1:0);else{const p=parseFloat(g);y=h.startsWith("scale")?p===1:p===0}if(!y||l){const p=Ty(g,Jf[h]);if(!y){f=!1;const x=m6[h]||h;r+=`${x}(${p}) `}l&&(s[h]=p)}}return r=r.trim(),l?r=l(s,f?"":r):f&&(r="none"),r}function ad(n,s,l){const{style:r,vars:f,transformOrigin:d}=n;let h=!1,g=!1;for(const y in s){const p=s[y];if(Fs.has(y)){h=!0;continue}else if(Qg(y)){f[y]=p;continue}else{const x=Ty(p,Jf[y]);y.startsWith("origin")?(g=!0,d[y]=x):r[y]=x}}if(s.transform||(h||l?r.transform=g6(s,n.transform,l):r.transform&&(r.transform="none")),g){const{originX:y="50%",originY:p="50%",originZ:x=0}=d;r.transformOrigin=`${y} ${p} ${x}`}}function Ly(n,{style:s,vars:l},r,f){const d=n.style;let h;for(h in s)d[h]=s[h];f?.applyProjectionStyles(d,r);for(h in l)d.setProperty(h,l[h])}function l1(n,s){return s.max===s.min?0:n/(s.max-s.min)*100}const Xi={correct:(n,s)=>{if(!s.target)return n;if(typeof n=="string")if(se.test(n))n=parseFloat(n);else return n;const l=l1(n,s.target.x),r=l1(n,s.target.y);return`${l}% ${r}%`}},y6={correct:(n,{treeScale:s,projectionDelta:l})=>{const r=n,f=pn.parse(n);if(f.length>5)return r;const d=pn.createTransformer(n),h=typeof f[0]!="number"?1:0,g=l.x.scale*s.x,y=l.y.scale*s.y;f[0+h]/=g,f[1+h]/=y;const p=Ye(g,y,.5);return typeof f[2+h]=="number"&&(f[2+h]/=p),typeof f[3+h]=="number"&&(f[3+h]/=p),d(f)}},Af={borderRadius:{...Xi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xi,borderTopRightRadius:Xi,borderBottomLeftRadius:Xi,borderBottomRightRadius:Xi,boxShadow:y6};function By(n,{layout:s,layoutId:l}){return Fs.has(n)||n.startsWith("origin")||(s||l!==void 0)&&(!!Af[n]||n==="opacity")}function sd(n,s,l){const r=n.style,f=s?.style,d={};if(!r)return d;for(const h in r)(mt(r[h])||f&&mt(f[h])||By(h,n)||l?.getValue(h)?.liveStyle!==void 0)&&(d[h]=r[h]);return d}function x6(n){return window.getComputedStyle(n)}class v6 extends ky{constructor(){super(...arguments),this.type="html",this.renderInstance=Ly}readValueFromInstance(s,l){if(Fs.has(l))return this.projection?.isProjecting?df(l):B4(s,l);{const r=x6(s),f=(Qg(l)?r.getPropertyValue(l):r[l])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(s,{transformPagePoint:l}){return _y(s,l)}build(s,l,r){ad(s,l,r.transformTemplate)}scrapeMotionValuesFromProps(s,l,r){return sd(s,l,r)}}const b6={offset:"stroke-dashoffset",array:"stroke-dasharray"},S6={offset:"strokeDashoffset",array:"strokeDasharray"};function j6(n,s,l=1,r=0,f=!0){n.pathLength=1;const d=f?b6:S6;n[d.offset]=`${-r}`,n[d.array]=`${s} ${l}`}const w6=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Uy(n,{attrX:s,attrY:l,attrScale:r,pathLength:f,pathSpacing:d=1,pathOffset:h=0,...g},y,p,x){if(ad(n,g,p),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const j of w6)b[j]!==void 0&&(S[j]=b[j],delete b[j]);s!==void 0&&(b.x=s),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),f!==void 0&&j6(b,f,d,h,!1)}const Hy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),qy=n=>typeof n=="string"&&n.toLowerCase()==="svg";function T6(n,s,l,r){Ly(n,s,void 0,r);for(const f in s.attrs)n.setAttribute(Hy.has(f)?f:$f(f),s.attrs[f])}function Gy(n,s,l){const r=sd(n,s,l);for(const f in n)if(mt(n[f])||mt(s[f])){const d=Ks.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;r[d]=n[f]}return r}class N6 extends ky{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(s,l){return s[l]}readValueFromInstance(s,l){if(Fs.has(l)){const r=Sy(l);return r&&r.default||0}return l=Hy.has(l)?l:$f(l),s.getAttribute(l)}scrapeMotionValuesFromProps(s,l,r){return Gy(s,l,r)}build(s,l,r){Uy(s,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(s,l,r,f){T6(s,l,r,f)}mount(s){this.isSVGTag=qy(s.tagName),super.mount(s)}}const A6=nd.length;function Yy(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Yy(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const s={};for(let l=0;l<A6;l++){const r=nd[l],f=n.props[r];(al(f)||f===!1)&&(s[r]=f)}return s}function Xy(n,s){if(!Array.isArray(s))return!1;const l=s.length;if(l!==n.length)return!1;for(let r=0;r<l;r++)if(s[r]!==n[r])return!1;return!0}const C6=[...td].reverse(),M6=td.length;function E6(n){return s=>Promise.all(s.map(({animation:l,options:r})=>N8(n,l,r)))}function z6(n){let s=E6(n),l=r1(),r=!0,f=!1;const d=p=>(x,b)=>{const S=Ja(n,b,p==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:T,...M}=S;x={...x,...M,...T}}return x};function h(p){s=p(n)}function g(p){const{props:x}=n,b=Yy(n.parent)||{},S=[],j=new Set;let T={},M=1/0;for(let B=0;B<M6;B++){const q=C6[B],Y=l[q],X=x[q]!==void 0?x[q]:b[q],Z=al(X),J=q===p?Y.isActive:null;J===!1&&(M=B);let $=X===b[q]&&X!==x[q]&&Z;if($&&(r||f)&&n.manuallyAnimateOnMount&&($=!1),Y.protectedKeys={...T},!Y.isActive&&J===null||!X&&!Y.prevProp||lo(X)||typeof X=="boolean")continue;if(q==="exit"&&Y.isActive&&J!==!0){Y.prevResolvedValues&&(T={...T,...Y.prevResolvedValues});continue}const L=D6(Y.prevProp,X);let de=L||q===p&&Y.isActive&&!$&&Z||B>M&&Z,le=!1;const F=Array.isArray(X)?X:[X];let oe=F.reduce(d(q),{});J===!1&&(oe={});const{prevResolvedValues:we={}}=Y,be={...we,...oe},ye=W=>{de=!0,j.has(W)&&(le=!0,j.delete(W)),Y.needsAnimating[W]=!0;const P=n.getValue(W);P&&(P.liveStyle=!1)};for(const W in be){const P=oe[W],Q=we[W];if(T.hasOwnProperty(W))continue;let N=!1;xf(P)&&xf(Q)?N=!Xy(P,Q):N=P!==Q,N?P!=null?ye(W):j.add(W):P!==void 0&&j.has(W)?ye(W):Y.protectedKeys[W]=!0}Y.prevProp=X,Y.prevResolvedValues=oe,Y.isActive&&(T={...T,...oe}),(r||f)&&n.blockInitialAnimation&&(de=!1);const D=$&&L;de&&(!D||le)&&S.push(...F.map(W=>{const P={type:q};if(typeof W=="string"&&(r||f)&&!D&&n.manuallyAnimateOnMount&&n.parent){const{parent:Q}=n,N=Ja(Q,W);if(Q.enteringChildren&&N){const{delayChildren:H}=N.transition||{};P.delay=dy(Q.enteringChildren,n,H)}}return{animation:W,options:P}}))}if(j.size){const B={};if(typeof x.initial!="boolean"){const q=Ja(n,Array.isArray(x.initial)?x.initial[0]:x.initial);q&&q.transition&&(B.transition=q.transition)}j.forEach(q=>{const Y=n.getBaseTarget(q),X=n.getValue(q);X&&(X.liveStyle=!0),B[q]=Y??null}),S.push({animation:B})}let O=!!S.length;return r&&(x.initial===!1||x.initial===x.animate)&&!n.manuallyAnimateOnMount&&(O=!1),r=!1,f=!1,O?s(S):Promise.resolve()}function y(p,x){if(l[p].isActive===x)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(p,x)),l[p].isActive=x;const b=g(p);for(const S in l)l[S].protectedKeys={};return b}return{animateChanges:g,setActive:y,setAnimateFunction:h,getState:()=>l,reset:()=>{l=r1(),f=!0}}}function D6(n,s){return typeof s=="string"?s!==n:Array.isArray(s)?!Xy(s,n):!1}function Qa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r1(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}function Cf(n,s){n.min=s.min,n.max=s.max}function hn(n,s){Cf(n.x,s.x),Cf(n.y,s.y)}function o1(n,s){n.translate=s.translate,n.scale=s.scale,n.originPoint=s.originPoint,n.origin=s.origin}const Zy=1e-4,k6=1-Zy,R6=1+Zy,Qy=.01,V6=0-Qy,O6=0+Qy;function vt(n){return n.max-n.min}function _6(n,s,l){return Math.abs(n-s)<=l}function c1(n,s,l,r=.5){n.origin=r,n.originPoint=Ye(s.min,s.max,n.origin),n.scale=vt(l)/vt(s),n.translate=Ye(l.min,l.max,n.origin)-n.originPoint,(n.scale>=k6&&n.scale<=R6||isNaN(n.scale))&&(n.scale=1),(n.translate>=V6&&n.translate<=O6||isNaN(n.translate))&&(n.translate=0)}function Ji(n,s,l,r){c1(n.x,s.x,l.x,r?r.originX:void 0),c1(n.y,s.y,l.y,r?r.originY:void 0)}function u1(n,s,l,r=0){const f=r?Ye(l.min,l.max,r):l.min;n.min=f+s.min,n.max=n.min+vt(s)}function L6(n,s,l,r){u1(n.x,s.x,l.x,r?.x),u1(n.y,s.y,l.y,r?.y)}function f1(n,s,l,r=0){const f=r?Ye(l.min,l.max,r):l.min;n.min=s.min-f,n.max=n.min+vt(s)}function eo(n,s,l,r){f1(n.x,s.x,l.x,r?.x),f1(n.y,s.y,l.y,r?.y)}function d1(n,s,l,r,f){return n-=s,n=Ir(n,1/l,r),f!==void 0&&(n=Ir(n,1/f,r)),n}function B6(n,s=0,l=1,r=.5,f,d=n,h=n){if(wn.test(s)&&(s=parseFloat(s),s=Ye(h.min,h.max,s/100)-h.min),typeof s!="number")return;let g=Ye(d.min,d.max,r);n===d&&(g-=s),n.min=d1(n.min,s,l,g,f),n.max=d1(n.max,s,l,g,f)}function h1(n,s,[l,r,f],d,h){B6(n,s[l],s[r],s[f],s.scale,d,h)}const U6=["x","scaleX","originX"],H6=["y","scaleY","originY"];function m1(n,s,l,r){h1(n.x,s,U6,l?l.x:void 0,r?r.x:void 0),h1(n.y,s,H6,l?l.y:void 0,r?r.y:void 0)}function p1(n){return n.translate===0&&n.scale===1}function Ky(n){return p1(n.x)&&p1(n.y)}function g1(n,s){return n.min===s.min&&n.max===s.max}function q6(n,s){return g1(n.x,s.x)&&g1(n.y,s.y)}function y1(n,s){return Math.round(n.min)===Math.round(s.min)&&Math.round(n.max)===Math.round(s.max)}function Fy(n,s){return y1(n.x,s.x)&&y1(n.y,s.y)}function x1(n){return vt(n.x)/vt(n.y)}function v1(n,s){return n.translate===s.translate&&n.scale===s.scale&&n.originPoint===s.originPoint}function Sn(n){return[n("x"),n("y")]}function G6(n,s,l){let r="";const f=n.x.translate/s.x,d=n.y.translate/s.y,h=l?.z||0;if((f||d||h)&&(r=`translate3d(${f}px, ${d}px, ${h}px) `),(s.x!==1||s.y!==1)&&(r+=`scale(${1/s.x}, ${1/s.y}) `),l){const{transformPerspective:p,rotate:x,rotateX:b,rotateY:S,skewX:j,skewY:T}=l;p&&(r=`perspective(${p}px) ${r}`),x&&(r+=`rotate(${x}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),j&&(r+=`skewX(${j}deg) `),T&&(r+=`skewY(${T}deg) `)}const g=n.x.scale*s.x,y=n.y.scale*s.y;return(g!==1||y!==1)&&(r+=`scale(${g}, ${y})`),r||"none"}const Py=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Y6=Py.length,b1=n=>typeof n=="string"?parseFloat(n):n,S1=n=>typeof n=="number"||se.test(n);function X6(n,s,l,r,f,d){f?(n.opacity=Ye(0,l.opacity??1,Z6(r)),n.opacityExit=Ye(s.opacity??1,0,Q6(r))):d&&(n.opacity=Ye(s.opacity??1,l.opacity??1,r));for(let h=0;h<Y6;h++){const g=Py[h];let y=j1(s,g),p=j1(l,g);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||S1(y)===S1(p)?(n[g]=Math.max(Ye(b1(y),b1(p),r),0),(wn.test(p)||wn.test(y))&&(n[g]+="%")):n[g]=p}(s.rotate||l.rotate)&&(n.rotate=Ye(s.rotate||0,l.rotate||0,r))}function j1(n,s){return n[s]!==void 0?n[s]:n.borderRadius}const Z6=$y(0,.5,Hg),Q6=$y(.5,.95,sn);function $y(n,s,l){return r=>r<n?0:r>s?1:l(tl(n,s,r))}function K6(n,s,l){const r=mt(n)?n:Xs(n);return r.start(Ff("",r,s,l)),r.animation}function sl(n,s,l,r={passive:!0}){return n.addEventListener(s,l,r),()=>n.removeEventListener(s,l)}const F6=(n,s)=>n.depth-s.depth;class P6{constructor(){this.children=[],this.isDirty=!1}add(s){Of(this.children,s),this.isDirty=!0}remove(s){Kr(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(F6),this.isDirty=!1,this.children.forEach(s)}}function $6(n,s){const l=xt.now(),r=({timestamp:f})=>{const d=f-l;d>=s&&(wa(r),n(d-s))};return Ue.setup(r,!0),()=>wa(r)}function Gr(n){return mt(n)?n.get():n}class J6{constructor(){this.members=[]}add(s){Of(this.members,s);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===s||r===this.lead||r===this.prevLead)continue;const f=r.instance;(!f||f.isConnected===!1)&&!r.snapshot&&(Kr(this.members,r),r.unmount())}s.scheduleRender()}remove(s){if(Kr(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(s){for(let l=this.members.indexOf(s)-1;l>=0;l--){const r=this.members[l];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(s,l){const r=this.lead;if(s!==r&&(this.prevLead=r,this.lead=s,s.show(),r)){r.updateSnapshot(),s.scheduleRender();const{layoutDependency:f}=r.options,{layoutDependency:d}=s.options;(f===void 0||f!==d)&&(s.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(s.snapshot=r.snapshot,s.snapshot.latestValues=r.animationValues||r.latestValues),s.root?.isUpdating&&(s.isLayoutDirty=!0)),s.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(s=>{s.options.onExitComplete?.(),s.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(s=>s.instance&&s.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Yr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yu=["","X","Y","Z"],W6=1e3;let I6=0;function Xu(n,s,l,r){const{latestValues:f}=s;f[n]&&(l[n]=f[n],s.setStaticValue(n,0),r&&(r[n]=0))}function Jy(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:s}=n.options;if(!s)return;const l=yy(s);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:f,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ue,!(f||d))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Jy(r)}function Wy({attachResizeListener:n,defaultParent:s,measureScroll:l,checkIsScrollRoot:r,resetTransform:f}){return class{constructor(h={},g=s?.()){this.id=I6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nS),this.nodes.forEach(oS),this.nodes.forEach(cS),this.nodes.forEach(aS)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new P6)}addEventListener(h,g){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Lf),this.eventHandlers.get(h).add(g)}notifyListeners(h,...g){const y=this.eventHandlers.get(h);y&&y.notify(...g)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=ed(h)&&!t6(h),this.instance=h;const{layoutId:g,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),n){let x,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ue.read(()=>{b=window.innerWidth}),n(h,()=>{const j=window.innerWidth;j!==b&&(b=j,this.root.updateBlockedByResize=!0,x&&x(),x=$6(S,250),Yr.hasAnimatedSinceResize&&(Yr.hasAnimatedSinceResize=!1,this.nodes.forEach(N1)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||p.getDefaultTransition()||mS,{onLayoutAnimationStart:M,onLayoutAnimationComplete:O}=p.getProps(),B=!this.targetLayout||!Fy(this.targetLayout,j),q=!b&&S;if(this.options.layoutRoot||this.resumeFrom||q||b&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Kf(T,"layout"),onPlay:M,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(x,q)}else b||N1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uS),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(iS),this.nodes.forEach(w1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lS),this.nodes.forEach(rS),this.nodes.forEach(eS),this.nodes.forEach(tS)):this.nodes.forEach(T1),this.clearAllSnapshots();const g=xt.now();ht.delta=Tn(0,1e3/60,g-ht.timestamp),ht.timestamp=g,ht.isProcessing=!0,Ou.update.process(ht),Ou.preRender.process(ht),Ou.render.process(ht),ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sS),this.sharedNodes.forEach(fS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=st()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(g=!1),g&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!f)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Ky(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,x=p!==this.prevTransformTemplateValue;h&&this.instance&&(g||Ka(this.latestValues)||x)&&(f(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return h&&(y=this.removeTransform(y)),pS(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return st();const g=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(gS))){const{scroll:p}=this.root;p&&(jn(g.x,p.offset.x),jn(g.y,p.offset.y))}return g}removeElementScroll(h){const g=st();if(hn(g,h),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:x,options:b}=p;p!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&hn(g,h),jn(g.x,x.offset.x),jn(g.y,x.offset.y))}return g}applyTransform(h,g=!1,y){const p=y||st();hn(p,h);for(let x=0;x<this.path.length;x++){const b=this.path[x];!g&&b.options.layoutScroll&&b.scroll&&b!==b.root&&(jn(p.x,-b.scroll.offset.x),jn(p.y,-b.scroll.offset.y)),Ka(b.latestValues)&&qr(p,b.latestValues,b.layout?.layoutBox)}return Ka(this.latestValues)&&qr(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(h){const g=st();hn(g,h);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!Ka(p.latestValues))continue;let x;p.instance&&(Tf(p.latestValues)&&p.updateSnapshot(),x=st(),hn(x,p.measurePageBox())),m1(g,p.latestValues,p.snapshot?.layoutBox,x)}return Ka(this.latestValues)&&m1(g,this.latestValues),g}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ht.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!this.layout||!(x||b))return;this.resolvedRelativeTargetAt=ht.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=st(),this.targetWithTransforms=st()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L6(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):hn(this.target,this.layout.layoutBox),Oy(this.target,this.targetDelta)):hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tf(this.parent.latestValues)||Vy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,g,y){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=st(),this.relativeTargetOrigin=st(),eo(this.relativeTargetOrigin,g,y,this.options.layoutAnchor||void 0),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),g=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ht.timestamp&&(y=!1),y)return;const{layout:p,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||x))return;hn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;d6(this.layoutCorrected,this.treeScale,this.path,g),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=st());const{target:j}=h;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(o1(this.prevProjectionDelta.x,this.projectionDelta.x),o1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ji(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!v1(this.projectionDelta.x,this.prevProjectionDelta.x)||!v1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gs(),this.projectionDelta=Gs(),this.projectionDeltaWithTransform=Gs()}setAnimationOrigin(h,g=!1){const y=this.snapshot,p=y?y.latestValues:{},x={...this.latestValues},b=Gs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=st(),j=y?y.source:void 0,T=this.layout?this.layout.source:void 0,M=j!==T,O=this.getStack(),B=!O||O.members.length<=1,q=!!(M&&!B&&this.options.crossfade===!0&&!this.path.some(hS));this.animationProgress=0;let Y;this.mixTargetDelta=X=>{const Z=X/1e3;A1(b.x,h.x,Z),A1(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(eo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),dS(this.relativeTarget,this.relativeTargetOrigin,S,Z),Y&&q6(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=st()),hn(Y,this.relativeTarget)),M&&(this.animationValues=x,X6(x,p,this.latestValues,Z,q,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ue.update(()=>{Yr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xs(0)),this.motionValue.jump(0,!1),this.currentAnimation=K6(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),h.onUpdate&&h.onUpdate(g)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:x}=h;if(!(!g||!y||!p)){if(this!==h&&this.layout&&p&&Iy(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||st();const b=vt(this.layout.layoutBox.x);y.x.min=h.target.x.min,y.x.max=y.x.min+b;const S=vt(this.layout.layoutBox.y);y.y.min=h.target.y.min,y.y.max=y.y.min+S}hn(g,y),qr(g,x),Ji(this.projectionDeltaWithTransform,this.layoutCorrected,g,x)}}registerSharedNode(h,g){this.sharedNodes.has(h)||this.sharedNodes.set(h,new J6),this.sharedNodes.get(h).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),h&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let g=!1;const{latestValues:y}=h;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&Xu("z",h,p,this.animationValues);for(let x=0;x<Yu.length;x++)Xu(`rotate${Yu[x]}`,h,p,this.animationValues),Xu(`skew${Yu[x]}`,h,p,this.animationValues);h.render();for(const x in p)h.setStaticValue(x,p[x]),this.animationValues&&(this.animationValues[x]=p[x]);h.scheduleRender()}applyProjectionStyles(h,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Gr(g?.pointerEvents)||"",h.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Gr(g?.pointerEvents)||""),this.hasProjected&&!Ka(this.latestValues)&&(h.transform=y?y({},""):"none",this.hasProjected=!1);return}h.visibility="";const x=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=G6(this.projectionDeltaWithTransform,this.treeScale,x);y&&(b=y(x,b)),h.transform=b;const{x:S,y:j}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${j.origin*100}% 0`,p.animationValues?h.opacity=p===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const T in Af){if(x[T]===void 0)continue;const{correct:M,applyTo:O,isCSSVariable:B}=Af[T],q=b==="none"?x[T]:M(x[T],p);if(O){const Y=O.length;for(let X=0;X<Y;X++)h[O[X]]=q}else B?this.options.visualElement.renderState.vars[T]=q:h[T]=q}this.options.layoutId&&(h.pointerEvents=p===this?Gr(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(w1),this.root.sharedNodes.clear()}}}function eS(n){n.updateLayout()}function tS(n){const s=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=n.layout,{animationType:f}=n.options,d=s.source!==n.layout.source;if(f==="size")Sn(x=>{const b=d?s.measuredBox[x]:s.layoutBox[x],S=vt(b);b.min=l[x].min,b.max=b.min+S});else if(f==="x"||f==="y"){const x=f==="x"?"y":"x";Cf(d?s.measuredBox[x]:s.layoutBox[x],l[x])}else Iy(f,s.layoutBox,l)&&Sn(x=>{const b=d?s.measuredBox[x]:s.layoutBox[x],S=vt(l[x]);b.max=b.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+S)});const h=Gs();Ji(h,l,s.layoutBox);const g=Gs();d?Ji(g,n.applyTransform(r,!0),s.measuredBox):Ji(g,l,s.layoutBox);const y=!Ky(h);let p=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:S}=x;if(b&&S){const j=n.options.layoutAnchor||void 0,T=st();eo(T,s.layoutBox,b.layoutBox,j);const M=st();eo(M,l,S.layoutBox,j),Fy(T,M)||(p=!0),x.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=T,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:g,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function nS(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function aS(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function sS(n){n.clearSnapshot()}function w1(n){n.clearMeasurements()}function iS(n){n.isLayoutDirty=!0,n.updateLayout()}function T1(n){n.isLayoutDirty=!1}function lS(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function rS(n){const{visualElement:s}=n.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),n.resetTransform()}function N1(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function oS(n){n.resolveTargetDelta()}function cS(n){n.calcProjection()}function uS(n){n.resetSkewAndRotation()}function fS(n){n.removeLeadSnapshot()}function A1(n,s,l){n.translate=Ye(s.translate,0,l),n.scale=Ye(s.scale,1,l),n.origin=s.origin,n.originPoint=s.originPoint}function C1(n,s,l,r){n.min=Ye(s.min,l.min,r),n.max=Ye(s.max,l.max,r)}function dS(n,s,l,r){C1(n.x,s.x,l.x,r),C1(n.y,s.y,l.y,r)}function hS(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const mS={duration:.45,ease:[.4,0,.1,1]},M1=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),E1=M1("applewebkit/")&&!M1("chrome/")?Math.round:sn;function z1(n){n.min=E1(n.min),n.max=E1(n.max)}function pS(n){z1(n.x),z1(n.y)}function Iy(n,s,l){return n==="position"||n==="preserve-aspect"&&!_6(x1(s),x1(l),.2)}function gS(n){return n!==n.root&&n.scroll?.wasRoot}const yS=Wy({attachResizeListener:(n,s)=>sl(n,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Zu={current:void 0},e2=Wy({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Zu.current){const n=new yS({});n.mount(window),n.setOptions({layoutScroll:!0}),Zu.current=n}return Zu.current},resetTransform:(n,s)=>{n.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),t2=E.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function xS(n=!0){const s=E.useContext(Vf);if(s===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:f}=s,d=E.useId();E.useEffect(()=>{if(n)return f(d)},[n]);const h=E.useCallback(()=>n&&r&&r(d),[d,r,n]);return!l&&r?[!1,h]:[!0]}const n2=E.createContext({strict:!1}),D1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let k1=!1;function vS(){if(k1)return;const n={};for(const s in D1)n[s]={isEnabled:l=>D1[s].some(r=>!!l[r])};Dy(n),k1=!0}function a2(){return vS(),o6()}function bS(n){const s=a2();for(const l in n)s[l]={...s[l],...n[l]};Dy(s)}const SS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function to(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||SS.has(n)}let s2=n=>!to(n);function jS(n){typeof n=="function"&&(s2=s=>s.startsWith("on")?!to(s):n(s))}try{jS(require("@emotion/is-prop-valid").default)}catch{}function wS(n,s,l){const r={};for(const f in n)f==="values"&&typeof n.values=="object"||mt(n[f])||(s2(f)||l===!0&&to(f)||!s&&!to(f)||n.draggable&&f.startsWith("onDrag"))&&(r[f]=n[f]);return r}const oo=E.createContext({});function TS(n,s){if(ro(n)){const{initial:l,animate:r}=n;return{initial:l===!1||al(l)?l:void 0,animate:al(r)?r:void 0}}return n.inherit!==!1?s:{}}function NS(n){const{initial:s,animate:l}=TS(n,E.useContext(oo));return E.useMemo(()=>({initial:s,animate:l}),[R1(s),R1(l)])}function R1(n){return Array.isArray(n)?n.join(" "):n}const id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function i2(n,s,l){for(const r in s)!mt(s[r])&&!By(r,l)&&(n[r]=s[r])}function AS({transformTemplate:n},s){return E.useMemo(()=>{const l=id();return ad(l,s,n),Object.assign({},l.vars,l.style)},[s])}function CS(n,s){const l=n.style||{},r={};return i2(r,l,n),Object.assign(r,AS(n,s)),r}function MS(n,s){const l={},r=CS(n,s);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=r,l}const l2=()=>({...id(),attrs:{}});function ES(n,s,l,r){const f=E.useMemo(()=>{const d=l2();return Uy(d,s,qy(r),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[s]);if(n.style){const d={};i2(d,n.style,n),f.style={...d,...f.style}}return f}const zS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ld(n){return typeof n!="string"||n.includes("-")?!1:!!(zS.indexOf(n)>-1||/[A-Z]/u.test(n))}function DS(n,s,l,{latestValues:r},f,d=!1,h){const y=(h??ld(n)?ES:MS)(s,r,f,n),p=wS(s,typeof n=="string",d),x=n!==E.Fragment?{...p,...y,ref:l}:{},{children:b}=s,S=E.useMemo(()=>mt(b)?b.get():b,[b]);return E.createElement(n,{...x,children:S})}function kS({scrapeMotionValuesFromProps:n,createRenderState:s},l,r,f){return{latestValues:RS(l,r,f,n),renderState:s()}}function RS(n,s,l,r){const f={},d=r(n,{});for(const S in d)f[S]=Gr(d[S]);let{initial:h,animate:g}=n;const y=ro(n),p=Ey(n);s&&p&&!y&&n.inherit!==!1&&(h===void 0&&(h=s.initial),g===void 0&&(g=s.animate));let x=l?l.initial===!1:!1;x=x||h===!1;const b=x?g:h;if(b&&typeof b!="boolean"&&!lo(b)){const S=Array.isArray(b)?b:[b];for(let j=0;j<S.length;j++){const T=Pf(n,S[j]);if(T){const{transitionEnd:M,transition:O,...B}=T;for(const q in B){let Y=B[q];if(Array.isArray(Y)){const X=x?Y.length-1:0;Y=Y[X]}Y!==null&&(f[q]=Y)}for(const q in M)f[q]=M[q]}}}return f}const r2=n=>(s,l)=>{const r=E.useContext(oo),f=E.useContext(Vf),d=()=>kS(n,s,r,f);return l?d():z5(d)},VS=r2({scrapeMotionValuesFromProps:sd,createRenderState:id}),OS=r2({scrapeMotionValuesFromProps:Gy,createRenderState:l2}),_S=Symbol.for("motionComponentSymbol");function LS(n,s,l){const r=E.useRef(l);E.useInsertionEffect(()=>{r.current=l});const f=E.useRef(null);return E.useCallback(d=>{d&&n.onMount?.(d);const h=r.current;if(typeof h=="function")if(d){const g=h(d);typeof g=="function"&&(f.current=g)}else f.current?(f.current(),f.current=null):h(d);else h&&(h.current=d);s&&(d?s.mount(d):s.unmount())},[s])}const o2=E.createContext({});function Us(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function BS(n,s,l,r,f,d){const{visualElement:h}=E.useContext(oo),g=E.useContext(n2),y=E.useContext(Vf),p=E.useContext(t2),x=p.reducedMotion,b=p.skipAnimations,S=E.useRef(null),j=E.useRef(!1);r=r||g.renderer,!S.current&&r&&(S.current=r(n,{visualState:s,parent:h,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:d}),j.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const T=S.current,M=E.useContext(o2);T&&!T.projection&&f&&(T.type==="html"||T.type==="svg")&&US(S.current,l,f,M);const O=E.useRef(!1);E.useInsertionEffect(()=>{T&&O.current&&T.update(l,y)});const B=l[gy],q=E.useRef(!!B&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(B)&&window.MotionHasOptimisedAnimation?.(B));return k5(()=>{j.current=!0,T&&(O.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),T.scheduleRenderMicrotask(),q.current&&T.animationState&&T.animationState.animateChanges())}),E.useEffect(()=>{T&&(!q.current&&T.animationState&&T.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(B)}),q.current=!1),T.enteringChildren=void 0)}),T}function US(n,s,l,r){const{layoutId:f,layout:d,drag:h,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutAnchor:x,layoutCrossfade:b}=s;n.projection=new l(n.latestValues,s["data-framer-portal-id"]?void 0:c2(n.parent)),n.projection.setOptions({layoutId:f,layout:d,alwaysMeasureLayout:!!h||g&&Us(g),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:r,crossfade:b,layoutScroll:y,layoutRoot:p,layoutAnchor:x})}function c2(n){if(n)return n.options.allowProjection!==!1?n.projection:c2(n.parent)}function Qu(n,{forwardMotionProps:s=!1,type:l}={},r,f){r&&bS(r);const d=l?l==="svg":ld(n),h=d?OS:VS;function g(p,x){let b;const S={...E.useContext(t2),...p,layoutId:HS(p)},{isStatic:j}=S,T=NS(p),M=h(p,j);if(!j&&typeof window<"u"){qS();const O=GS(S);b=O.MeasureLayout,T.visualElement=BS(n,M,S,f,O.ProjectionNode,d)}return u.jsxs(oo.Provider,{value:T,children:[b&&T.visualElement?u.jsx(b,{visualElement:T.visualElement,...S}):null,DS(n,p,LS(M,T.visualElement,x),M,j,s,d)]})}g.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=E.forwardRef(g);return y[_S]=n,y}function HS({layoutId:n}){const s=E.useContext(Mg).id;return s&&n!==void 0?s+"-"+n:n}function qS(n,s){E.useContext(n2).strict}function GS(n){const s=a2(),{drag:l,layout:r}=s;if(!l&&!r)return{};const f={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?f.MeasureLayout:void 0,ProjectionNode:f.ProjectionNode}}function YS(n,s){if(typeof Proxy>"u")return Qu;const l=new Map,r=(d,h)=>Qu(d,h,n,s),f=(d,h)=>r(d,h);return new Proxy(f,{get:(d,h)=>h==="create"?r:(l.has(h)||l.set(h,Qu(h,void 0,n,s)),l.get(h))})}const XS=(n,s)=>s.isSVG??ld(n)?new N6(s):new v6(s,{allowProjection:n!==E.Fragment});class ZS extends Na{constructor(s){super(s),s.animationState||(s.animationState=z6(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();lo(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:l}=this.node.prevProps||{};s!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let QS=0;class KS extends Na{constructor(){super(...arguments),this.id=QS++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===r)return;if(s&&r===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const g=Ja(this.node,d,h);if(g){const{transition:y,transitionEnd:p,...x}=g;for(const b in x)this.node.getValue(b)?.jump(x[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const f=this.node.animationState.setActive("exit",!s);l&&!s&&f.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:s,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const FS={animation:{Feature:ZS},exit:{Feature:KS}};function ul(n){return{point:{x:n.pageX,y:n.pageY}}}const PS=n=>s=>If(s)&&n(s,ul(s));function Wi(n,s,l,r){return sl(n,s,PS(l),r)}const u2=({current:n})=>n?n.ownerDocument.defaultView:null,V1=(n,s)=>Math.abs(n-s);function $S(n,s){const l=V1(n.x,s.x),r=V1(n.y,s.y);return Math.sqrt(l**2+r**2)}const O1=new Set(["auto","scroll"]);class f2{constructor(s,l,{transformPagePoint:r,contextWindow:f=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=kr(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Ku(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,M=$S(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!M)return;const{point:O}=j,{timestamp:B}=ht;this.history.push({...O,timestamp:B});const{onStart:q,onMove:Y}=this.handlers;T||(q&&q(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,j)},this.handlePointerMove=(j,T)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=T,this.lastMoveEventInfo=kr(T,this.transformPagePoint),Ue.update(this.updatePoint,!0)},this.handlePointerUp=(j,T)=>{this.end();const{onEnd:M,onSessionEnd:O,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Ku(j.type==="pointercancel"?this.lastMoveEventInfo:kr(T,this.transformPagePoint),this.history);this.startEvent&&M&&M(j,q),O&&O(j,q)},!If(s))return;this.dragSnapToOrigin=d,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=f||window;const y=ul(s),p=kr(y,this.transformPagePoint),{point:x}=p,{timestamp:b}=ht;this.history=[{...x,timestamp:b}];const{onSessionStart:S}=l;S&&S(s,Ku(p,this.history)),this.removeListeners=rl(Wi(this.contextWindow,"pointermove",this.handlePointerMove),Wi(this.contextWindow,"pointerup",this.handlePointerUp),Wi(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(s){let l=s.parentElement;for(;l;){const r=getComputedStyle(l);(O1.has(r.overflowX)||O1.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(s){const l=this.scrollPositions.get(s);if(!l)return;const r=s===window,f=r?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},d={x:f.x-l.x,y:f.y-l.y};d.x===0&&d.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(s,f),Ue.update(this.updatePoint,!0))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wa(this.updatePoint)}}function kr(n,s){return s?{point:s(n.point)}:n}function _1(n,s){return{x:n.x-s.x,y:n.y-s.y}}function Ku({point:n},s){return{point:n,delta:_1(n,d2(s)),offset:_1(n,JS(s)),velocity:WS(s,.1)}}function JS(n){return n[0]}function d2(n){return n[n.length-1]}function WS(n,s){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const f=d2(n);for(;l>=0&&(r=n[l],!(f.timestamp-r.timestamp>Gt(s)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&f.timestamp-r.timestamp>Gt(s)*2&&(r=n[1]);const d=nn(f.timestamp-r.timestamp);if(d===0)return{x:0,y:0};const h={x:(f.x-r.x)/d,y:(f.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function IS(n,{min:s,max:l},r){return s!==void 0&&n<s?n=r?Ye(s,n,r.min):Math.max(n,s):l!==void 0&&n>l&&(n=r?Ye(l,n,r.max):Math.min(n,l)),n}function L1(n,s,l){return{min:s!==void 0?n.min+s:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function e7(n,{top:s,left:l,bottom:r,right:f}){return{x:L1(n.x,l,f),y:L1(n.y,s,r)}}function B1(n,s){let l=s.min-n.min,r=s.max-n.max;return s.max-s.min<n.max-n.min&&([l,r]=[r,l]),{min:l,max:r}}function t7(n,s){return{x:B1(n.x,s.x),y:B1(n.y,s.y)}}function n7(n,s){let l=.5;const r=vt(n),f=vt(s);return f>r?l=tl(s.min,s.max-r,n.min):r>f&&(l=tl(n.min,n.max-f,s.min)),Tn(0,1,l)}function a7(n,s){const l={};return s.min!==void 0&&(l.min=s.min-n.min),s.max!==void 0&&(l.max=s.max-n.min),l}const Mf=.35;function s7(n=Mf){return n===!1?n=0:n===!0&&(n=Mf),{x:U1(n,"left","right"),y:U1(n,"top","bottom")}}function U1(n,s,l){return{min:H1(n,s),max:H1(n,l)}}function H1(n,s){return typeof n=="number"?n:n[s]||0}const i7=new WeakMap;class l7{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=st(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:f}=this.visualElement;if(f&&f.isPresent===!1)return;const d=b=>{l&&this.snapToCursor(ul(b).point),this.stopAnimation()},h=(b,S)=>{const{drag:j,dragPropagation:T,onDragStart:M}=this.getProps();if(j&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=B8(j),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sn(B=>{let q=this.getAxisMotionValue(B).get()||0;if(wn.test(q)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const X=Y.layout.layoutBox[B];X&&(q=vt(X)*(parseFloat(q)/100))}}this.originPoint[B]=q}),M&&Ue.update(()=>M(b,S),!1,!0),vf(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},g=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:T,onDirectionLock:M,onDrag:O}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:B}=S;if(T&&this.currentDirection===null){this.currentDirection=o7(B),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",S.point,B),this.updateAxis("y",S.point,B),this.visualElement.render(),O&&Ue.update(()=>O(b,S),!1,!0)},y=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new f2(s,{onSessionStart:d,onStart:h,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:r,contextWindow:u2(this.visualElement),element:this.visualElement.current})}stop(s,l){const r=s||this.latestPointerEvent,f=l||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!f||!r)return;const{velocity:h}=f;this.startAnimation(h);const{onDragEnd:g}=this.getProps();g&&Ue.postRender(()=>g(r,f))}cancel(){this.isDragging=!1;const{projection:s,animationState:l}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(s,l,r){const{drag:f}=this.getProps();if(!r||!Rr(s,f,this.currentDirection))return;const d=this.getAxisMotionValue(s);let h=this.originPoint[s]+r[s];this.constraints&&this.constraints[s]&&(h=IS(h,this.constraints[s],this.elastic[s])),d.set(h)}resolveConstraints(){const{dragConstraints:s,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,f=this.constraints;s&&Us(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=e7(r.layoutBox,s):this.constraints=!1,this.elastic=s7(l),f!==this.constraints&&!Us(s)&&r&&this.constraints&&!this.hasMutatedConstraints&&Sn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=a7(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:l}=this.getProps();if(!s||!Us(s))return!1;const r=s.current,{projection:f}=this.visualElement;if(!f||!f.layout)return!1;const d=h6(r,f.root,this.visualElement.getTransformPagePoint());let h=t7(f.layout.layoutBox,d);if(l){const g=l(u6(h));this.hasMutatedConstraints=!!g,g&&(h=Ry(g))}return h}startAnimation(s){const{drag:l,dragMomentum:r,dragElastic:f,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=Sn(x=>{if(!Rr(x,l,this.currentDirection))return;let b=y&&y[x]||{};(h===!0||h===x)&&(b={min:0,max:0});const S=f?200:1e6,j=f?40:1e7,T={type:"inertia",velocity:r?s[x]:0,bounceStiffness:S,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(x,T)});return Promise.all(p).then(g)}startAxisValueAnimation(s,l){const r=this.getAxisMotionValue(s);return vf(this.visualElement,s),r.start(Ff(s,r,0,l,this.visualElement,!1))}stopAnimation(){Sn(s=>this.getAxisMotionValue(s).stop())}getAxisMotionValue(s){const l=`_drag${s.toUpperCase()}`,r=this.visualElement.getProps(),f=r[l];return f||this.visualElement.getValue(s,(r.initial?r.initial[s]:void 0)||0)}snapToCursor(s){Sn(l=>{const{drag:r}=this.getProps();if(!Rr(l,r,this.currentDirection))return;const{projection:f}=this.visualElement,d=this.getAxisMotionValue(l);if(f&&f.layout){const{min:h,max:g}=f.layout.layoutBox[l],y=d.get()||0;d.set(s[l]-Ye(h,g,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!Us(l)||!r||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};Sn(h=>{const g=this.getAxisMotionValue(h);if(g&&this.constraints!==!1){const y=g.get();f[h]=n7({min:y,max:y},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Sn(h=>{if(!Rr(h,s,null))return;const g=this.getAxisMotionValue(h),{min:y,max:p}=this.constraints[h];g.set(Ye(y,p,f[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;i7.set(this.visualElement,this);const s=this.visualElement.current,l=Wi(s,"pointerdown",p=>{const{drag:x,dragListener:b=!0}=this.getProps(),S=p.target,j=S!==s&&X8(S);x&&b&&!j&&this.start(p)});let r;const f=()=>{const{dragConstraints:p}=this.getProps();Us(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=r7(s,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",f);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ue.read(f);const g=sl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(Sn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=p[b].translate,S.set(S.get()+p[b].translate))}),this.visualElement.render())}));return()=>{g(),l(),h(),y&&y(),r&&r()}}getProps(){const s=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:f=!1,dragConstraints:d=!1,dragElastic:h=Mf,dragMomentum:g=!0}=s;return{...s,drag:l,dragDirectionLock:r,dragPropagation:f,dragConstraints:d,dragElastic:h,dragMomentum:g}}}function q1(n){let s=!0;return()=>{if(s){s=!1;return}n()}}function r7(n,s,l){const r=$p(n,q1(l)),f=$p(s,q1(l));return()=>{r(),f()}}function Rr(n,s,l){return(s===!0||s===n)&&(l===null||l===n)}function o7(n,s=10){let l=null;return Math.abs(n.y)>s?l="y":Math.abs(n.x)>s&&(l="x"),l}class c7 extends Na{constructor(s){super(s),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new l7(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sn}update(){const{dragControls:s}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};s!==l&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Fu=n=>(s,l)=>{n&&Ue.update(()=>n(s,l),!1,!0)};class u7 extends Na{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(s){this.session=new f2(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:u2(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:l,onPan:r,onPanEnd:f}=this.node.getProps();return{onSessionStart:Fu(s),onStart:Fu(l),onMove:Fu(r),onEnd:(d,h)=>{delete this.session,f&&Ue.postRender(()=>f(d,h))}}}mount(){this.removePointerDownListener=Wi(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Pu=!1;class f7 extends E.Component{componentDidMount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r,layoutId:f}=this.props,{projection:d}=s;d&&(l.group&&l.group.add(d),r&&r.register&&f&&r.register(d),Pu&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Yr.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:l,visualElement:r,drag:f,isPresent:d}=this.props,{projection:h}=r;return h&&(h.isPresent=d,s.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Pu=!0,f||s.layoutDependency!==l||l===void 0||s.isPresent!==d?h.willUpdate():this.safeToRemove(),s.isPresent!==d&&(d?h.promote():h.relegate()||Ue.postRender(()=>{const g=h.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:s,layoutAnchor:l}=this.props,{projection:r}=s;r&&(r.options.layoutAnchor=l,r.root.didUpdate(),Wf.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:f}=s;Pu=!0,f&&(f.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(f),r&&r.deregister&&r.deregister(f))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function h2(n){const[s,l]=xS(),r=E.useContext(Mg);return u.jsx(f7,{...n,layoutGroup:r,switchLayoutGroup:E.useContext(o2),isPresent:s,safeToRemove:l})}const d7={pan:{Feature:u7},drag:{Feature:c7,ProjectionNode:e2,MeasureLayout:h2}};function G1(n,s,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const f="onHover"+l,d=r[f];d&&Ue.postRender(()=>d(s,ul(s)))}class h7 extends Na{mount(){const{current:s}=this.node;s&&(this.unmount=H8(s,(l,r)=>(G1(this.node,r,"Start"),f=>G1(this.node,f,"End"))))}unmount(){}}class m7 extends Na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rl(sl(this.node.current,"focus",()=>this.onFocus()),sl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Y1(n,s,l){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",l==="Start");const f="onTap"+(l==="End"?"":l),d=r[f];d&&Ue.postRender(()=>d(s,ul(s)))}class p7 extends Na{mount(){const{current:s}=this.node;if(!s)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=Q8(s,(f,d)=>(Y1(this.node,d,"Start"),(h,{success:g})=>Y1(this.node,h,g?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const Ef=new WeakMap,$u=new WeakMap,g7=n=>{const s=Ef.get(n.target);s&&s(n)},y7=n=>{n.forEach(g7)};function x7({root:n,...s}){const l=n||document;$u.has(l)||$u.set(l,{});const r=$u.get(l),f=JSON.stringify(s);return r[f]||(r[f]=new IntersectionObserver(y7,{root:n,...s})),r[f]}function v7(n,s,l){const r=x7(s);return Ef.set(n,l),r.observe(n),()=>{Ef.delete(n),r.unobserve(n)}}const b7={some:0,all:1};class S7 extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:s={}}=this.node.getProps(),{root:l,margin:r,amount:f="some",once:d}=s,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof f=="number"?f:b7[f]},g=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),S=p?x:b;S&&S(y)};this.stopObserver=v7(this.node.current,h,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:l}=this.node;["amount","margin","root"].some(j7(s,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function j7({viewport:n={}},{viewport:s={}}={}){return l=>n[l]!==s[l]}const w7={inView:{Feature:S7},tap:{Feature:p7},focus:{Feature:m7},hover:{Feature:h7}},T7={layout:{ProjectionNode:e2,MeasureLayout:h2}},N7={...FS,...w7,...d7,...T7},Ju=YS(N7,XS),Ge=({label:n,children:s,variant:l="primary",size:r="medium",icon:f,onClick:d,removable:h=!1,className:g,maxWidth:y,appearance:p,onRemove:x,isLoading:b=!1})=>{const S=A7(l),j=p??(l==="outline"?"outline":"solid"),T=n??s,M=!!d,O={primary:{solid:"bg-[#11111198] text-white border border-transparent",outline:"border-2 border-[#11111198] text-[#11111198]",subtle:"bg-[#11111140] text-[#11111198] border border-transparent"},secondary:{solid:"bg-zinc-700 text-white border border-transparent",outline:"border-2 border-zinc-400 text-zinc-800 bg-white",subtle:"bg-zinc-100 text-zinc-800 border border-zinc-300"},success:{solid:"bg-emerald-600 text-white border border-transparent",outline:"border-2 border-emerald-600 text-emerald-700",subtle:"bg-emerald-100 text-emerald-700 border border-transparent"},warning:{solid:"bg-amber-500 text-white border border-transparent",outline:"border-2 border-amber-500 text-amber-700",subtle:"bg-amber-100 text-amber-700 border border-transparent"},error:{solid:"bg-destructive text-destructive-foreground border border-transparent",outline:"border-2 border-destructive text-destructive",subtle:"bg-destructive/20 text-destructive border border-transparent"}},B={small:"text-xs px-2 py-1",medium:"text-xs px-2.5 py-1",large:"text-sm px-3 py-1.5"},q=X=>{X.stopPropagation(),d?.()},Y=X=>{X.stopPropagation(),x?.()};return u.jsxs(Ju.div,{initial:{opacity:0,scale:.95,y:8,filter:"blur(8px)"},animate:{opacity:1,scale:1,y:0,filter:"blur(0px)"},transition:{duration:.32,ease:"easeInOut",type:"spring"},whileHover:{scale:M?1.04:1,backgroundColor:M&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:q,style:{maxWidth:y},className:fe("inline-flex max-w-full items-center gap-1.5 rounded-lg font-medium shadow-[0_0_16px_rgba(0,0,0,0.14)] backdrop-blur-sm",O[S][j],B[r],M&&"cursor-pointer",g),children:[b?u.jsx(Ju.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:u.jsx(lg,{className:"size-3.5"})}):f&&u.jsx("span",{className:"flex-shrink-0",children:f}),u.jsx("span",{className:"min-w-0 truncate",children:T}),h&&u.jsx(Ju.button,{initial:{opacity:0,scale:.95,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},whileHover:{scale:1.1,opacity:1,transition:{duration:.2,ease:"easeInOut",type:"spring"}},className:"flex items-center justify-center rounded-md bg-[#11111198] p-1 opacity-70 hover:opacity-100",onClick:Y,type:"button",children:u.jsx(so,{className:"size-3.5"})})]})};function A7(n){return n==="danger"?"error":n==="default"||n==="outline"?"primary":n}const C7=hg("rounded-lg border p-4 text-sm",{variants:{variant:{default:"border-border bg-card text-card-foreground",muted:"border-border bg-muted text-muted-foreground",destructive:"border-red-200 bg-red-50 text-red-700"}},defaultVariants:{variant:"default"}});function ln({className:n,variant:s,...l}){return u.jsx("div",{className:fe(C7({variant:s,className:n})),...l})}function Bt({className:n,...s}){return u.jsx("div",{className:fe("rounded-lg border border-border bg-card text-card-foreground",n),...s})}function Ut({className:n,...s}){return u.jsx("div",{className:fe("grid gap-1.5 p-4",n),...s})}function Ht({className:n,...s}){return u.jsx("h3",{className:fe("text-sm font-semibold tracking-tight",n),...s})}function tn({className:n,...s}){return u.jsx("p",{className:fe("text-sm text-muted-foreground",n),...s})}function qt({className:n,...s}){return u.jsx("div",{className:fe("p-4 pt-0",n),...s})}const M7={"claude-code":{label:"Claude Code",tone:"bg-orange-500/15 text-orange-700 border-orange-500/40"},codex:{label:"OpenAI Codex CLI",tone:"bg-emerald-500/15 text-emerald-700 border-emerald-500/40"},gemini:{label:"Gemini CLI",tone:"bg-sky-500/15 text-sky-700 border-sky-500/40"},unknown:{label:"Unknown agent",tone:"bg-muted text-muted-foreground border-border"}};function E7(){const[n,s]=E.useState(null),[l,r]=E.useState(null);if(E.useEffect(()=>{let d=!0;return k3().then(h=>{d&&s(h)}).catch(h=>{d&&r(h instanceof Error?h.message:String(h))}),()=>{d=!1}},[]),l)return u.jsxs("div",{className:"p-4 text-sm text-destructive",children:["Failed to load agent info: ",l]});if(!n)return u.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Loading agent info…"});const f=M7[n.detected.name];return u.jsxs("div",{className:"grid h-full min-h-0 grid-cols-1 gap-3 overflow-auto bg-card/85 p-3 xl:grid-cols-2",children:[u.jsx(D7,{}),u.jsxs(Bt,{className:"min-w-0",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ii,{className:"size-4"}),u.jsx(Ht,{children:"Active Agent"})]}),u.jsx(tn,{className:"text-xs",children:"Detected from environment variables and parent process of this MCP server."})]}),u.jsxs(qt,{className:"space-y-2 p-3",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:fe("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold",f.tone),children:f.label}),n.detected.parentProcess?u.jsxs("span",{className:"font-mono text-[11px] text-muted-foreground",children:["parent: ",n.detected.parentProcess]}):null]}),n.detected.signals.length?u.jsx("ul",{className:"space-y-0.5 font-mono text-[11px] text-muted-foreground",children:n.detected.signals.map(d=>u.jsxs("li",{children:["• ",d]},d))}):u.jsx("p",{className:"text-xs text-muted-foreground",children:"No detection signals captured."}),u.jsxs("div",{className:"pt-2 text-[11px] text-muted-foreground",children:["cwd: ",u.jsx("span",{className:"font-mono",children:n.project.cwd})]})]})]}),u.jsxs(Bt,{className:"min-w-0",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(db,{className:"size-4"}),u.jsx(Ht,{children:"Project Memory"}),u.jsx(Ge,{variant:"outline",size:"small",children:n.project.memoryFiles.length})]}),u.jsx(tn,{className:"text-xs",children:n.project.memoryDir??"No memory directory found for this project."})]}),u.jsxs(qt,{className:"space-y-3 p-3",children:[n.project.claudeMdPath?u.jsxs("details",{className:"rounded-md border border-border bg-background/40 p-2",children:[u.jsx("summary",{className:"cursor-pointer text-xs font-semibold",children:"CLAUDE.md"}),u.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap text-[11px] leading-relaxed",children:n.project.claudeMdPreview})]}):null,n.project.memoryFiles.length?n.project.memoryFiles.map(d=>u.jsxs("details",{className:"rounded-md border border-border bg-background/40 p-2",open:d.name==="MEMORY.md",children:[u.jsxs("summary",{className:"cursor-pointer text-xs font-semibold",children:[d.name," ",u.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground",children:[d.size," B"]})]}),u.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap text-[11px] leading-relaxed",children:d.preview})]},d.path)):u.jsx("p",{className:"text-xs text-muted-foreground",children:"No memory files persisted yet for this project."})]})]}),u.jsxs(Bt,{className:"min-w-0",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(T3,{className:"size-4"}),u.jsx(Ht,{children:"Skills"}),u.jsx(Ge,{variant:"outline",size:"small",children:n.skills.length})]}),u.jsx(tn,{className:"text-xs",children:"User, project, and plugin skills discovered for the active agent."})]}),u.jsx(qt,{className:"p-0",children:n.skills.length?u.jsx("ul",{className:"divide-y divide-border",children:n.skills.map(d=>u.jsxs("li",{className:"px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("span",{className:"font-mono text-xs font-semibold",children:d.name}),u.jsx(Ge,{variant:"outline",size:"small",children:d.scope})]}),d.description?u.jsx("p",{className:"mt-1 text-[11px] text-muted-foreground",children:d.description}):null]},`${d.scope}:${d.name}`))}):u.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:"No skills found."})})]}),u.jsxs(Bt,{className:"min-w-0",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(c3,{className:"size-4"}),u.jsx(Ht,{children:"MCP Servers"}),u.jsx(Ge,{variant:"outline",size:"small",children:n.mcpServers.length})]}),u.jsxs(tn,{className:"text-xs",children:["From ",u.jsx("code",{className:"font-mono",children:"~/.claude.json"})," (user + project scopes)."]})]}),u.jsx(qt,{className:"p-0",children:n.mcpServers.length?u.jsx("ul",{className:"divide-y divide-border",children:n.mcpServers.map(d=>u.jsxs("li",{className:"px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("span",{className:"font-mono text-xs font-semibold",children:d.name}),u.jsx(Ge,{variant:"outline",size:"small",children:d.scope})]}),u.jsx("div",{className:"mt-1 font-mono text-[11px] text-muted-foreground",children:d.command??d.url??d.type??"—"})]},`${d.scope}:${d.name}`))}):u.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:"No MCP servers configured."})})]}),u.jsx(V7,{}),u.jsxs(Bt,{className:"min-w-0 xl:col-span-2",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Rb,{className:"size-4"}),u.jsx(Ht,{children:"Recent Projects"}),u.jsx(Ge,{variant:"outline",size:"small",children:n.projects.length})]}),u.jsx(tn,{className:"text-xs",children:"Most recently active projects known to the agent."})]}),u.jsx(qt,{className:"p-0",children:n.projects.length?u.jsx("ul",{className:"divide-y divide-border",children:n.projects.map(d=>u.jsxs("li",{className:fe("flex items-start justify-between gap-3 px-3 py-2",d.current&&"bg-primary/5"),children:[u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"truncate font-mono text-xs font-semibold",children:d.path}),d.current?u.jsx(Ge,{variant:"success",size:"small",children:"current"}):null]}),d.lastSessionFirstPrompt?u.jsx("p",{className:"mt-0.5 truncate text-[11px] text-muted-foreground",children:d.lastSessionFirstPrompt}):null]}),u.jsxs("div",{className:"shrink-0 text-right font-mono text-[10px] text-muted-foreground",children:[d.mcpServerCount?`${d.mcpServerCount} mcp`:null,d.lastSessionModified?u.jsx("div",{children:z7(d.lastSessionModified)}):null]})]},d.path))}):u.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:"No known projects."})})]})]})}function z7(n){const s=Date.parse(n);return Number.isNaN(s)?n:new Date(s).toLocaleString()}function D7(){const[n,s]=E.useState(null),[l,r]=E.useState(null);return E.useEffect(()=>{let f=!0;const d=()=>{R3().then(g=>{f&&(s(g),r(null))}).catch(g=>{f&&r(g instanceof Error?g.message:String(g))})};d();const h=window.setInterval(d,1e4);return()=>{f=!1,window.clearInterval(h)}},[]),u.jsxs(Bt,{className:"min-w-0 xl:col-span-2",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Bb,{className:"size-4"}),u.jsx(Ht,{children:"Token & Cost Usage"})]}),u.jsxs(tn,{className:"text-xs",children:["Last-session metrics from ",u.jsx("code",{className:"font-mono",children:"~/.claude.json"})," and rate limits scraped from ",u.jsx("code",{className:"font-mono",children:"~/.codex/sessions"}),"."]})]}),u.jsxs(qt,{className:"space-y-3 p-3",children:[l?u.jsx("p",{className:"text-xs text-destructive",children:l}):null,n?.claude?u.jsx(k7,{usage:n.claude}):null,n?.codex?u.jsx(R7,{usage:n.codex}):null,!n?.claude&&!n?.codex&&!l?u.jsx("p",{className:"text-xs text-muted-foreground",children:"No usage data yet. Run a session with Claude Code or Codex CLI in this project."}):null]})]})}function k7({usage:n}){const s=n.inputTokens+n.cacheCreationInputTokens+n.cacheReadInputTokens,l=s>0?n.cacheReadInputTokens/s*100:0;return u.jsxs("div",{className:"rounded-md border border-border bg-background/40 p-3",children:[u.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Claude Code · last session"}),n.sessionId?u.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:n.sessionId.slice(0,8)}):null]}),u.jsxs("span",{className:"font-mono text-sm font-semibold text-emerald-700",children:["$",n.costUSD.toFixed(4)]})]}),u.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 text-[11px] sm:grid-cols-4",children:[u.jsx(va,{label:"Input",value:Zi(n.inputTokens)}),u.jsx(va,{label:"Output",value:Zi(n.outputTokens)}),u.jsx(va,{label:"Cache read",value:Zi(n.cacheReadInputTokens)}),u.jsx(va,{label:"Cache create",value:Zi(n.cacheCreationInputTokens)}),u.jsx(va,{label:"Lines +",value:String(n.linesAdded)}),u.jsx(va,{label:"Lines −",value:String(n.linesRemoved)}),u.jsx(va,{label:"Wall",value:X1(n.durationMs)}),u.jsx(va,{label:"API",value:X1(n.apiDurationMs)})]}),u.jsxs("div",{className:"mt-3",children:[u.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground",children:[u.jsx("span",{children:"Cache read share of input"}),u.jsxs("span",{className:"font-mono",children:[l.toFixed(1),"%"]})]}),u.jsx("div",{className:"mt-1 h-1.5 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:"h-full bg-emerald-500",style:{width:`${Math.min(100,l).toFixed(2)}%`}})})]}),n.fiveHour||n.weekly?u.jsxs("div",{className:"mt-3 space-y-2 rounded-md border border-border bg-background/60 p-2",children:[u.jsx("div",{className:"text-[11px] font-semibold uppercase text-muted-foreground",children:"Rate limits"}),n.fiveHour?u.jsx(no,{label:"5h block",window:n.fiveHour}):null,n.weekly?u.jsx(no,{label:"This week",window:n.weekly}):null]}):null,n.models.length?u.jsxs("div",{className:"mt-3 space-y-1",children:[u.jsx("div",{className:"text-[11px] font-semibold uppercase text-muted-foreground",children:"By model"}),n.models.map(r=>u.jsxs("div",{className:"flex items-center justify-between gap-2 font-mono text-[11px]",children:[u.jsx("span",{className:"truncate",children:r.model}),u.jsxs("span",{className:"shrink-0 text-muted-foreground",children:[Zi(r.inputTokens+r.outputTokens)," tok ·"," ","$",r.costUSD.toFixed(4)]})]},r.model))]}):null]})}function R7({usage:n}){return u.jsxs("div",{className:"rounded-md border border-border bg-background/40 p-3",children:[u.jsxs("div",{className:"flex items-baseline justify-between",children:[u.jsx("span",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Codex · rate limits"}),n.timestamp?u.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:new Date(n.timestamp).toLocaleString()}):null]}),u.jsxs("div",{className:"mt-3 space-y-2",children:[n.primary?u.jsx(no,{label:"5h window",window:n.primary}):null,n.secondary?u.jsx(no,{label:"Weekly window",window:n.secondary}):null]})]})}function no({label:n,window:s}){const l=Math.min(100,Math.max(0,s.usedPercent)),r=s.resetsAtUnix?new Date(s.resetsAtUnix*1e3).toLocaleString():null,f=l>=90?"bg-red-500":l>=70?"bg-amber-500":"bg-emerald-500";return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[u.jsx("span",{className:"text-muted-foreground",children:n}),u.jsxs("span",{className:"font-mono",children:[l.toFixed(1),"%"]})]}),u.jsx("div",{className:"mt-1 h-1.5 overflow-hidden rounded-full bg-muted",children:u.jsx("div",{className:fe("h-full",f),style:{width:`${l.toFixed(2)}%`}})}),r?u.jsxs("div",{className:"mt-0.5 font-mono text-[10px] text-muted-foreground",children:["resets ",r]}):null]})}function va({label:n,value:s}){return u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase text-muted-foreground",children:n}),u.jsx("div",{className:"font-mono text-xs font-semibold",children:s})]})}function Zi(n){return n>=1e6?`${(n/1e6).toFixed(2)}M`:n>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}function X1(n){if(!n)return"0s";if(n<1e3)return`${n}ms`;const s=n/1e3;if(s<60)return`${s.toFixed(1)}s`;const l=Math.floor(s/60),r=Math.round(s-l*60);return`${l}m ${r}s`}const Z1=100;function V7(){const[n,s]=E.useState([]),[l,r]=E.useState(!1),f=E.useRef(new Set);E.useEffect(()=>{const h=new EventSource("/api/agent/tool-calls/stream");return h.addEventListener("open",()=>r(!0)),h.addEventListener("error",()=>r(!1)),h.addEventListener("tool-call",g=>{try{const y=JSON.parse(g.data);s(p=>{if(f.current.has(y.id))return p;f.current.add(y.id);const x=[...p,y];return x.length>Z1&&x.splice(0,x.length-Z1),x})}catch{}}),()=>{h.close()}},[]);const d=[...n].reverse();return u.jsxs(Bt,{className:"min-w-0 xl:col-span-2",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Fi,{className:"size-4"}),u.jsx(Ht,{children:"Live MCP Tool Calls"}),u.jsxs("span",{className:fe("inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] font-semibold",l?"bg-emerald-500/15 text-emerald-700":"bg-muted text-muted-foreground"),children:[u.jsx("span",{className:fe("inline-block size-1.5 rounded-full",l?"animate-pulse bg-emerald-500":"bg-muted-foreground/60")}),l?"live":"reconnecting…"]}),u.jsx(Ge,{variant:"outline",size:"small",children:n.length})]}),u.jsx(tn,{className:"text-xs",children:"Streamed from this NoMoreIDE MCP server. Newest at the top."})]}),u.jsx(qt,{className:"p-0",children:d.length?u.jsx("ul",{className:"max-h-80 divide-y divide-border overflow-auto",children:d.map(h=>u.jsxs("li",{className:"px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("span",{className:"truncate font-mono text-xs font-semibold",children:h.tool}),u.jsxs("div",{className:"flex shrink-0 items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[u.jsxs("span",{children:[h.durationMs," ms"]}),u.jsx(Ge,{variant:h.status==="ok"?"success":"danger",size:"small",children:h.status})]})]}),h.args?u.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:h.args}):null,h.error?u.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-destructive",children:h.error}):null,u.jsx("div",{className:"mt-0.5 font-mono text-[10px] text-muted-foreground/80",children:new Date(h.startedAt).toLocaleTimeString()})]},h.id))}):u.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:"No tool calls yet. Invoke a NoMoreIDE MCP tool from your agent and it will appear here."})})]})}const O7=[{animationDelay:"-1.2s",transform:"rotate(.0001deg) translate(146%)"},{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},{animationDelay:"-1.0s",transform:"rotate(60deg) translate(146%)"},{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}],_7=({size:n=20,color:s="#8f8f8f"})=>u.jsx("div",{style:{width:n,height:n},children:u.jsx("div",{className:"relative left-1/2 top-1/2",style:{width:n,height:n},children:O7.map(l=>u.jsx("div",{className:"absolute -left-[10%] -top-[3.9%] h-[8%] w-[24%] animate-fade-spin rounded-[5px]",style:{backgroundColor:s,...l}},l.transform))})}),L7=[{tiny:"px-1.5 h-6 text-sm",small:"px-1.5 h-8 text-sm",medium:"px-2.5 h-10 text-sm",large:"px-3.5 h-12 text-base"},{tiny:"w-6 h-6 text-sm",small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-sm",large:"w-12 h-12 text-base"}],B7={primary:"bg-gray-1000 hover:bg-gray-1000-h text-background-100 fill-background-100",secondary:"bg-background-100 hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000 border border-gray-alpha-400",tertiary:"bg-none hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000",error:"bg-red-800 hover:bg-red-900 text-white fill-white",warning:"bg-amber-800 hover:bg-amber-850 text-black fill-black"},U7={square:{tiny:"rounded",small:"rounded-md",medium:"rounded-md",large:"rounded-lg"},circle:{tiny:"rounded-[100%]",small:"rounded-[100%]",medium:"rounded-[100%]",large:"rounded-[100%]"},rounded:{tiny:"rounded-[100px]",small:"rounded-[100px]",medium:"rounded-[100px]",large:"rounded-[100px]"}},Vr=({size:n="medium",type:s="primary",variant:l="styled",shape:r="square",svgOnly:f=!1,children:d,prefix:h,suffix:g,shadow:y=!1,loading:p=!1,disabled:x=!1,fullWidth:b=!1,className:S,...j})=>u.jsxs("button",{disabled:x,tabIndex:0,className:el("flex items-center justify-center gap-0.5 duration-150",L7[+f][n],x||p?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":B7[s],U7[r][n],y&&"shadow-border-small border-none",b&&"w-full",l==="unstyled"?"h-fit bg-transparent px-0 text-gray-1000 outline-none hover:bg-transparent":"focus:shadow-focus-ring focus:outline-0",S),type:"button",...j,children:[p?u.jsx(_7,{size:n==="large"?24:16}):h,u.jsx("span",{className:el("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",n!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:d}),!p&&g]}),H7=({className:n})=>u.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:n,children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z"})}),q7=()=>u.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:"fill-gray-1000",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z"})});let Wu=null,G7=0;const tt={toasts:[],listeners:new Set,add(n,s,l,r,f,d){const h=G7++,g={id:h,text:n,preserve:l,action:r,onAction:f,onUndoAction:d,type:s};if(!g.preserve){g.remaining=3e3,g.start=Date.now();const y=()=>{this.toasts=this.toasts.filter(p=>p.id!==h),this.notify()};g.timeout=setTimeout(y,g.remaining),g.pause=()=>{g.timeout&&(clearTimeout(g.timeout),g.timeout=void 0,g.remaining-=Date.now()-g.start)},g.resume=()=>{g.timeout||(g.start=Date.now(),g.timeout=setTimeout(y,g.remaining))}}this.toasts.push(g),this.notify()},remove(n){tt.toasts=tt.toasts.filter(s=>s.id!==n),tt.notify()},subscribe(n){return tt.listeners.add(n),()=>{tt.listeners.delete(n)}},notify(){tt.listeners.forEach(n=>n())}},Y7=()=>{const[n,s]=E.useState([]),[l,r]=E.useState([]),[f,d]=E.useState(!1),h=T=>M=>{M&&T.measuredHeight==null&&(T.measuredHeight=M.getBoundingClientRect().height,tt.notify())};E.useEffect(()=>(s([...tt.toasts]),tt.subscribe(()=>{s([...tt.toasts])})),[]),E.useEffect(()=>{const T=n.filter(M=>!l.includes(M.id)).map(M=>M.id);T.length>0&&requestAnimationFrame(()=>{r(M=>[...M,...T])})},[l,n]);const y=Math.max(0,n.length-3),p=(T,M)=>{if(T===M-1)return"none";const O=M-1-T;let B=n[M-1]?.measuredHeight||63;for(let X=M-1;X>T;X--)f?B+=(n[X-1]?.measuredHeight||63)+10:B+=20;const q=-O,Y=f?1:1-.05*O;return`translate3d(0, calc(100% - ${B}px), ${q}px) scale(${Y})`},x=()=>{d(!0),tt.toasts.forEach(T=>T.pause?.())},b=()=>{d(!1),tt.toasts.forEach(T=>T.resume?.())},j=n.slice(y).reduce((T,M)=>T+(M.measuredHeight??63),0);return u.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[9999] w-[min(420px,calc(100vw-2rem))]",style:{height:j},children:u.jsx("div",{className:"pointer-events-auto relative w-full",style:{height:j},onMouseEnter:x,onMouseLeave:b,children:n.map((T,M)=>{const O=M>=y;return u.jsx("div",{ref:h(T),className:el("absolute bottom-0 right-0 h-fit rounded-xl p-4 leading-[21px] shadow-menu",{message:"bg-geist-background text-gray-1000",success:"bg-blue-700 text-contrast-fg",warning:"bg-amber-800 text-gray-1000 dark:text-gray-100",error:"bg-red-800 text-contrast-fg"}[T.type],O?"opacity-100":"opacity-0",M<y&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(T.id)?p(M,n.length):"translate3d(0, 100%, 150px) scale(1)"},children:u.jsxs("div",{className:"flex flex-col items-center justify-between text-[.875rem]",children:[u.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[u.jsx("span",{children:T.text}),!T.action&&u.jsxs("div",{className:"flex gap-1",children:[T.onUndoAction&&u.jsx(Vr,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{T.onUndoAction?.(),tt.remove(T.id)},children:u.jsx(q7,{})}),u.jsx(Vr,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>tt.remove(T.id),children:u.jsx(H7,{className:{message:"fill-gray-1000",success:"fill-contrast-fg",warning:"fill-gray-1000 dark:fill-gray-100",error:"fill-contrast-fg"}[T.type]})})]})]}),T.action&&u.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[u.jsx(Vr,{type:"tertiary",size:"small",onClick:()=>tt.remove(T.id),children:"Dismiss"}),u.jsx(Vr,{type:"primary",size:"small",onClick:()=>{T.onAction?.(),tt.remove(T.id)},children:T.action})]})]})},T.id)})})})},Or=()=>{if(Wu)return;const n=document.createElement("div");n.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(n),Wu=eg.createRoot(n),Wu.render(u.jsx(Y7,{}))},Aa=()=>({message:E.useCallback(({text:n,preserve:s,action:l,onAction:r,onUndoAction:f})=>{Or(),tt.add(n,"message",s,l,r,f)},[]),success:E.useCallback(n=>{Or(),tt.add(n,"success")},[]),warning:E.useCallback(n=>{Or(),tt.add(n,"warning")},[]),error:E.useCallback(n=>{Or(),tt.add(n,"error")},[])});var m2=I1();function gt({className:n,type:s,...l}){return u.jsx("input",{type:s,className:fe("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),...l})}function en({className:n,...s}){return u.jsx("label",{className:fe("grid gap-1.5 text-xs font-medium text-muted-foreground",n),...s})}const rn='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',on='</title><path d="',cn='"/></svg>',X7={title:".NET",slug:"dotnet",get svg(){return rn+".NET"+on+this.path+cn},path:"M24 8.77h-2.468v7.565h-1.425V8.77h-2.462V7.53H24zm-6.852 7.565h-4.821V7.53h4.63v1.24h-3.205v2.494h2.953v1.234h-2.953v2.604h3.396zm-6.708 0H8.882L4.78 9.863a2.896 2.896 0 0 1-.258-.51h-.036c.032.189.048.592.048 1.21v5.772H3.157V7.53h1.659l3.965 6.32c.167.261.275.442.323.54h.024c-.04-.233-.06-.629-.06-1.185V7.529h1.372zm-8.703-.693a.868.829 0 0 1-.869.829.868.829 0 0 1-.868-.83.868.829 0 0 1 .868-.828.868.829 0 0 1 .869.829Z",source:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/logo/dotnet-logo.svg",hex:"512BD4",guidelines:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/dotnet-styleGuide-2024.pdf",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},Z7={title:"Bun",slug:"bun",get svg(){return rn+"Bun"+on+this.path+cn},path:"M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083 5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z",source:"https://bun.sh/press-kit",hex:"000000"},Q7={title:"Deno",slug:"deno",get svg(){return rn+"Deno"+on+this.path+cn},path:"M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771 12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774 12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305 12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437-.455-.197-1.04-.624-1.226-.829-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35.66.111 1.484.25 2.317.292 2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19 12 12 0 0 1-1.25-1.634 12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236.13.979-.228 1.99-1.41 2.013-1.01.02-1.315-.997-1.248-1.614.066-.616.574-1.575 1.35-1.635",source:"https://github.com/denoland/docs/blob/5dee713844c7447f80acd4093caa9d350d80bf36/static/img/logo.svg",hex:"000000",guidelines:"https://deno.com/brand",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},K7={title:"Docker",slug:"docker",get svg(){return rn+"Docker"+on+this.path+cn},path:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z",source:"https://www.docker.com/company/newsroom/media-resources",hex:"2496ED"},F7={title:"Go",slug:"go",get svg(){return rn+"Go"+on+this.path+cn},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},P7={title:"Node.js",slug:"nodedotjs",get svg(){return rn+"Node.js"+on+this.path+cn},path:"M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z",source:"https://nodejs.org/en/about/branding",hex:"5FA04E",guidelines:"https://nodejs.org/en/about/branding"},$7={title:"npm",slug:"npm",get svg(){return rn+"npm"+on+this.path+cn},path:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",source:"https://www.npmjs.com",hex:"CB3837",guidelines:"https://docs.npmjs.com/policies/logos-and-usage"},J7={title:"pnpm",slug:"pnpm",get svg(){return rn+"pnpm"+on+this.path+cn},path:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM2 2h3.5v3.5H2zm8.25 0h3.498v3.5H10.25zm8.25 0H22v3.5h-3.5zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zm2 2H22v3.5h-3.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",source:"https://pnpm.io/logos",hex:"F69220"},W7={title:"Python",slug:"python",get svg(){return rn+"Python"+on+this.path+cn},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},Q1={title:"Rust",slug:"rust",get svg(){return rn+"Rust"+on+this.path+cn},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},I7={title:"Vite",slug:"vite",get svg(){return rn+"Vite"+on+this.path+cn},path:"M13.056 23.238a.57.57 0 0 1-1.02-.355v-5.202c0-.63-.512-1.143-1.144-1.143H5.148a.57.57 0 0 1-.464-.903l3.777-5.29c.54-.753 0-1.804-.93-1.804H.57a.574.574 0 0 1-.543-.746.6.6 0 0 1 .08-.157L5.008.78a.57.57 0 0 1 .467-.24h14.589a.57.57 0 0 1 .466.903l-3.778 5.29c-.54.755 0 1.806.93 1.806h5.745c.238 0 .424.138.513.322a.56.56 0 0 1-.063.603z",source:"https://github.com/voidzero-dev/community-design-resources/blob/55902097229cf01cf2a4ceb376f992f5cf306756/brand-assets/vite/vite-icon-color-bracketless.svg",hex:"9135FF"},ej={title:"Yarn",slug:"yarn",get svg(){return rn+"Yarn"+on+this.path+cn},path:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",source:"https://github.com/yarnpkg/assets/blob/76d30ca2aebed5b73ea8131d972218fb860bd32d/yarn-kitten-circle.svg",hex:"2C8EBB",guidelines:"https://github.com/yarnpkg/assets/tree/76d30ca2aebed5b73ea8131d972218fb860bd32d",license:{type:"CC-BY-4.0",url:"https://spdx.org/licenses/CC-BY-4.0"}};function tj(n){const s=n.toLowerCase();return/\bvite\b/.test(s)?Ct.vite:/\bcargo\s+/.test(s)?Ct.cargo:/\brustc\b/.test(s)?Ct.rust:/\bdotnet\b/.test(s)?Ct.dotnet:/\bdocker(?:\s+compose|-compose|\s+)/.test(s)?Ct.docker:/\bpython3?\b|\buvicorn\b|\bfastapi\b/.test(s)?Ct.python:/\bgo\s+(run|test|build)\b|\bair\b/.test(s)?Ct.go:/\bbun\b/.test(s)?Ct.bun:/\bdeno\b/.test(s)?Ct.deno:/\bpnpm\b/.test(s)?Ct.pnpm:/\byarn\b/.test(s)?Ct.yarn:/\bnpm\b/.test(s)?Ct.npm:/\bnode\b/.test(s)?Ct.node:Ct.generic}const Ct={bun:{kind:"bun",label:"Bun"},cargo:{kind:"cargo",label:"Cargo"},deno:{kind:"deno",label:"Deno"},dotnet:{kind:"dotnet",label:".NET"},docker:{kind:"docker",label:"Docker"},generic:{kind:"generic",label:"Process"},go:{kind:"go",label:"Go"},node:{kind:"node",label:"Node"},npm:{kind:"npm",label:"npm"},pnpm:{kind:"pnpm",label:"pnpm"},python:{kind:"python",label:"Python"},rust:{kind:"rust",label:"Rust"},vite:{kind:"vite",label:"Vite"},yarn:{kind:"yarn",label:"Yarn"}};function rd({command:n,compact:s}){const l=tj(n),r=nj[l.kind];return u.jsx("span",{"aria-label":`${l.label} process`,className:fe("inline-flex shrink-0 items-center justify-center rounded-md border bg-white shadow-sm",s?"size-6":"size-7",r?"border-zinc-200":"border-zinc-300 bg-zinc-100 text-zinc-700"),style:r?{color:`#${r.hex}`}:void 0,title:l.label,children:r?u.jsx("svg",{"aria-hidden":"true",className:s?"size-3.5":"size-4",fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:u.jsx("path",{d:r.path})}):u.jsx(ug,{className:s?"size-3.5":"size-4"})})}const nj={bun:Z7,cargo:Q1,deno:Q7,dotnet:X7,docker:K7,generic:null,go:F7,node:P7,npm:$7,pnpm:J7,python:W7,rust:Q1,vite:I7,yarn:ej};function p2({active:n,baseUrl:s,onRefresh:l,restartAction:r,targetLabel:f}){return n?u.jsxs(u.Fragment,{children:[u.jsx(Iu,{intent:"restart",icon:u.jsx(m3,{}),label:"Restart",action:r,targetLabel:f,url:`${s}/restart`,onRefresh:l}),u.jsx(Iu,{intent:"stop",icon:u.jsx(cg,{}),label:"Stop",targetLabel:f,url:`${s}/stop`,onRefresh:l})]}):u.jsx(Iu,{intent:"start",icon:u.jsx(rg,{}),label:"Start",targetLabel:f,url:`${s}/start`,onRefresh:l})}function il(n,s,l){const r=l instanceof Error?l.message:String(l);return`${n} failed for ${s}: ${r}`}function Iu({action:n,intent:s="neutral",icon:l,label:r,targetLabel:f,url:d,onRefresh:h}){const[g,y]=E.useState(!1),[p,x]=E.useState(null),{error:b,success:S}=Aa();async function j(T={}){y(!0);try{n?await n():await an(d,T),S(`${r} requested for ${f}.`),await h(),x(null)}catch(M){M instanceof fg?x(M.conflict):b(il(r,f,M))}finally{y(!1)}}return u.jsxs(u.Fragment,{children:[u.jsxs(ge,{className:sj[s],variant:"outline",size:"sm",disabled:g,onClick:()=>j(),children:[l,r]}),p?u.jsx(aj,{busy:g,conflict:p,onCancel:()=>x(null),onKillAndStart:()=>j({strategy:"killHolder"}),targetLabel:f}):null]})}function aj({busy:n,conflict:s,onCancel:l,onKillAndStart:r,targetLabel:f}){const d=s.holder,h=`http://localhost:${s.port}/`;return u.jsx(ll,{icon:u.jsx(E3,{}),onClose:n?()=>{}:l,title:`Port ${s.port} is already in use`,children:u.jsxs("div",{className:"space-y-3 p-4 text-sm",children:[u.jsxs("p",{children:[u.jsx("span",{className:"font-medium",children:f})," wants port"," ",u.jsx("span",{className:"font-mono",children:s.port}),", but it's already held by:"]}),u.jsx("pre",{className:"overflow-auto whitespace-pre-wrap rounded border border-border bg-background p-3 font-mono text-xs",children:d?`pid ${d.pid}${d.pgid?` (pgid ${d.pgid})`:""}
|
|
10
|
-
${d.command}`:"unknown process"}),u.jsxs("div",{className:"flex flex-wrap justify-end gap-2 pt-2",children:[u.jsx(ge,{onClick:l,size:"sm",type:"button",variant:"outline",disabled:n,children:"Cancel"}),u.jsxs(ge,{onClick:()=>window.open(h,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",disabled:n,children:[u.jsx(ig,{}),"Open in browser"]}),u.jsx(ge,{className:"border-red-600 bg-red-600 text-white hover:bg-red-700",disabled:n||!d,onClick:r,size:"sm",type:"button",children:"Stop holder & start"})]})]})})}const sj={neutral:"",restart:"border-amber-600 bg-amber-600 text-white hover:bg-amber-700",start:"border-emerald-600 bg-emerald-600 text-white hover:bg-emerald-700",stop:"border-red-600 bg-red-600 text-white hover:bg-red-700"};function ll({children:n,icon:s,onClose:l,title:r,size:f="md"}){return E.useEffect(()=>{function d(h){h.key==="Escape"&&l()}return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l]),m2.createPortal(u.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",onMouseDown:l,children:u.jsxs("div",{"aria-modal":"true",className:`flex max-h-[min(760px,calc(100vh-2rem))] w-full flex-col overflow-hidden rounded-lg border border-border bg-card shadow-xl ${f==="lg"?"max-w-3xl":"max-w-lg"}`,onMouseDown:d=>d.stopPropagation(),role:"dialog",children:[u.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[u.jsx("div",{className:"flex size-8 items-center justify-center rounded-md border border-border bg-background text-foreground [&_svg]:size-4",children:s}),u.jsx("h2",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:r}),u.jsx(ge,{"aria-label":"Close dialog",onClick:l,size:"icon",type:"button",variant:"ghost",children:u.jsx(so,{})})]}),u.jsx("div",{className:"min-h-0 overflow-auto p-4",children:n})]})}),document.body)}const ij=[{label:"npm",command:"npm run dev",description:"Node dev server"},{label:"pnpm",command:"pnpm dev",description:"pnpm dev server"},{label:"yarn",command:"yarn dev",description:"Yarn dev server"},{label:"bun",command:"bun dev",description:"Bun dev server"},{label:"Deno",command:"deno task dev",description:"Deno dev task"},{label:"Vite",badgeCommand:"vite",command:"npm run dev -- --host 127.0.0.1",description:"Vite app"},{label:"Go",command:"go run .",description:"Go app"},{label:"Rust",command:"cargo run",description:"Rust app"},{label:".NET",command:"dotnet watch run",description:".NET app"},{label:"Python",command:"python manage.py runserver",description:"Python app"},{label:"Docker",command:"docker compose up",description:"Docker Compose stack"}];function lj({cwd:n,onRefresh:s,onSaved:l}){const{error:r,success:f}=Aa(),[d,h]=E.useState("local"),[g,y]=E.useState(""),[p,x]=E.useState(""),[b,S]=E.useState(n),[j,T]=E.useState(""),[M,O]=E.useState(""),[B,q]=E.useState(""),[Y,X]=E.useState(""),[Z,J]=E.useState(""),[$,L]=E.useState(null),[de,le]=E.useState(!1);E.useEffect(()=>{L(null)},[p,b,j,d]);function F(){y(""),x(""),S(n),T(""),O(""),q(""),X(""),J(""),L(null)}async function oe(P){P.preventDefault();try{const Q={name:g,kind:d,cwd:b,port:j,description:M};(d==="local"||d==="ssh")&&(Q.command=p),d==="docker-compose"&&(Q.composeFile=B,Q.composeService=Y),d==="ssh"&&(Q.host=Z),await an("/api/services",Q),F(),f(`${g} added.`),await s(),l?.()}catch(Q){r(il("Add service",g||"service",Q))}}async function we(){if(!p.trim()){r("Test command failed for service: command is required.");return}le(!0);try{L(await _3({command:p,cwd:b,port:j}))}catch(P){r(il("Test command",g||"service",P))}finally{le(!1)}}const be=[{value:"local",label:"Local",hint:"Run a command in a local working directory."},{value:"docker-compose",label:"Docker Compose",hint:"Bring up a service defined in a docker-compose.yml file."},{value:"ssh",label:"SSH (remote)",hint:"Run a command on a remote host using your local ~/.ssh/config + ssh-agent."}],ye=be.find(P=>P.value===d),D=d==="local"&&p.trim().length>0&&b.trim().length>0,K="grid gap-2 rounded-md border border-border bg-muted/30 p-3",W="px-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground";return u.jsxs("form",{className:"grid gap-3",onSubmit:oe,children:[u.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[u.jsxs("fieldset",{className:`${K} sm:col-span-2`,children:[u.jsx("legend",{className:W,children:"Step 1 · Service kind"}),u.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:be.map(P=>u.jsx(ge,{className:"justify-center",onClick:()=>h(P.value),size:"sm",type:"button",variant:d===P.value?"default":"outline",children:P.label},P.value))}),u.jsx("p",{className:"text-[11px] text-muted-foreground",children:ye.hint})]}),u.jsxs("div",{className:"grid gap-3 sm:col-start-1 sm:row-start-2 sm:self-start",children:[u.jsxs("fieldset",{className:K,children:[u.jsx("legend",{className:W,children:"Step 2 · Identity"}),u.jsxs(en,{children:["Name",u.jsx(gt,{className:"h-8 text-sm",name:"name",onChange:P=>y(P.target.value),placeholder:"backend",required:!0,value:g})]}),u.jsxs(en,{children:["Description",u.jsx(gt,{className:"h-8 text-sm",name:"description",onChange:P=>O(P.target.value),placeholder:"API server",value:M})]})]}),u.jsxs("fieldset",{className:K,children:[u.jsx("legend",{className:W,children:"Step 4 · Networking (optional)"}),u.jsxs(en,{children:["Port",u.jsx(gt,{className:"h-8 text-sm",inputMode:"numeric",name:"port",onChange:P=>T(P.target.value),placeholder:"3001",value:j})]})]})]}),d==="local"?u.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[u.jsx("legend",{className:W,children:"Step 3 · Local command"}),u.jsx("div",{className:"grid grid-cols-2 gap-1.5 sm:grid-cols-4",children:ij.map(P=>u.jsxs(ge,{className:"justify-start gap-1.5",onClick:()=>{x(P.command),O(P.description)},size:"sm",type:"button",variant:"outline",children:[u.jsx(rd,{command:P.badgeCommand??P.command,compact:!0}),u.jsx("span",{className:"truncate",children:P.label})]},P.label))}),u.jsxs(en,{children:["Command",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"command",onChange:P=>x(P.target.value),placeholder:"npm run dev",required:!0,value:p})]}),u.jsxs(en,{children:["Working Directory",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),required:!0,value:b})]})]}):null,d==="docker-compose"?u.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[u.jsx("legend",{className:W,children:"Step 3 · Docker Compose target"}),u.jsxs(en,{children:["Compose Service",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"composeService",onChange:P=>X(P.target.value),placeholder:"api",required:!0,value:Y})]}),u.jsxs(en,{children:["Compose File (optional)",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"composeFile",onChange:P=>q(P.target.value),placeholder:"docker-compose.yml",value:B})]}),u.jsxs(en,{children:["Working Directory (where compose file lives)",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),required:!0,value:b})]})]}):null,d==="ssh"?u.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[u.jsx("legend",{className:W,children:"Step 3 · SSH connection"}),u.jsxs(en,{children:["SSH Host (alias from ~/.ssh/config)",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"host",onChange:P=>J(P.target.value),placeholder:"devbox",required:!0,value:Z})]}),u.jsxs(en,{children:["Remote Command",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"command",onChange:P=>x(P.target.value),placeholder:"npm run dev",required:!0,value:p})]}),u.jsxs(en,{children:["Remote Working Directory",u.jsx(gt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),placeholder:"/srv/app",required:!0,value:b})]}),u.jsxs(ln,{variant:"muted",children:[u.jsx("div",{className:"font-medium",children:"SSH key handling"}),u.jsxs("div",{className:"mt-1 text-xs",children:["NoMoreIDE never stores key files. Add a ",u.jsxs("code",{children:["Host ",Z||"<alias>"]})," entry to",u.jsx("code",{children:" ~/.ssh/config"})," with ",u.jsx("code",{children:"HostName"}),", ",u.jsx("code",{children:"User"}),", and"," ",u.jsx("code",{children:"IdentityFile ~/.ssh/your-key.pem"})," (chmod 0600). Make sure"," ",u.jsx("code",{children:"ssh-agent"})," is running or your key is loaded (",u.jsx("code",{children:"ssh-add ~/.ssh/your-key.pem"}),"). NoMoreIDE will run"," ",u.jsxs("code",{children:["ssh ",Z||"<alias>"]})," using that config."]})]})]}):null]}),$?u.jsx(rj,{result:$}):null,u.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[d==="local"?u.jsxs(ge,{disabled:de||!D,onClick:we,type:"button",variant:"outline",children:[u.jsx(ug,{}),de?"Testing...":"Test Command"]}):null,u.jsx(ge,{type:"submit",children:"Add Service"})]})]})}function rj({result:n}){const s=[...n.stdout,...n.stderr].slice(0,4);return u.jsxs(ln,{variant:n.ok?"default":"destructive",children:[u.jsx("div",{className:"font-medium",children:n.ok?"Command test passed":"Command test failed"}),u.jsx("div",{className:"mt-1 text-xs",children:n.message}),s.length?u.jsx("pre",{className:"mt-2 max-h-24 overflow-auto rounded-md bg-background/80 p-2 font-mono text-[11px] leading-4",children:s.join(`
|
|
11
|
-
`)}):null]})}function g2({initialName:n="",initialServices:s=[],onSaved:l,onRefresh:r,originalName:f,services:d,submitLabel:h="Save Group"}){const{error:g,success:y}=Aa();async function p(x){x.preventDefault();const b=x.currentTarget,S=new FormData(b),j=String(S.get("name")??""),T=S.getAll("services").map(M=>String(M)).filter(Boolean);try{await an("/api/bundles",{name:j,originalName:f,services:T.join(",")}),b.reset(),y(`${j} group saved.`),await r(),l?.()}catch(M){g(il("Save group",j||"group",M))}}return u.jsxs("form",{className:"grid gap-2.5",onSubmit:p,children:[u.jsxs(en,{children:["Group name",u.jsx(gt,{className:"h-8 text-sm",defaultValue:n,name:"name",placeholder:"full-stack",required:!0})]}),u.jsxs("fieldset",{className:"grid gap-1.5",children:[u.jsx("legend",{className:"text-xs font-medium",children:"Services"}),d.length?d.map(x=>u.jsxs("label",{className:"flex items-center gap-2 overflow-hidden rounded-md border border-border px-2.5 py-1.5 text-sm",children:[u.jsx("input",{className:"size-4 shrink-0 accent-primary",defaultChecked:s.includes(x.name),name:"services",type:"checkbox",value:x.name}),u.jsx(rd,{command:x.command??"",compact:!0}),u.jsxs("span",{className:"min-w-0 flex-1",children:[u.jsx("span",{className:"block truncate text-sm font-medium",children:x.name}),u.jsx("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:x.command??x.kind??""})]})]},x.name)):u.jsx(ln,{variant:"muted",children:"All services are already grouped, or none registered."})]}),u.jsx(ge,{className:"h-8",disabled:!d.length,type:"submit",children:h})]})}function od({label:n}){return u.jsx(ln,{variant:"muted",className:"m-4 text-center",children:n})}const oj=900*1e3,Ki=12,ef=200;function cj({events:n}){const[s,l]=E.useState(null),[r,f]=E.useState(null),{rows:d,windowStart:h,windowEnd:g}=E.useMemo(()=>uj(n),[n]),y=s?d.find(p=>p.service===s)??null:null;return u.jsxs(u.Fragment,{children:[u.jsxs(Bt,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs(Ht,{className:"flex items-center gap-2",children:[u.jsx(Fi,{className:"size-3.5"}),"Runtime Monitor"]}),u.jsx(tn,{className:"text-xs",children:n.length===0?"No events yet":`${n.length} event${n.length===1?"":"s"} · last 15 min`})]}),u.jsx(qt,{className:"p-0",children:d.length===0?u.jsx(od,{label:"No runtime timeline events yet."}):u.jsxs("div",{className:"divide-y divide-border",children:[d.map(p=>u.jsx(dj,{onClick:()=>l(p.service),row:p,windowEnd:g,windowStart:h},p.service)),u.jsxs("div",{className:"flex justify-between px-3 py-1.5 font-mono text-[10px] text-muted-foreground",children:[u.jsx("span",{children:ao(h)}),u.jsx("span",{children:"now"})]})]})})]}),y?u.jsx(ll,{icon:u.jsx(Fi,{}),onClose:()=>l(null),title:y.service,children:u.jsx(mj,{onSelect:f,row:y})}):null,r?u.jsx(ll,{icon:u.jsx(Fi,{}),onClose:()=>f(null),title:r.title,children:u.jsx(pj,{event:r})}):null]})}function uj(n){const s=Date.now(),l=s,r=s-oj;let f=n.filter(y=>{if(y.kind==="service.http")return!1;const p=new Date(y.timestamp).getTime();return!Number.isNaN(p)&&p>=r});f.length===0&&n.length>0?f=n.slice(-ef):f.length>ef&&(f=f.slice(-ef));const d=new Map;for(const y of f){const p=y.service||"·system",x=d.get(p)??[];x.push(y),d.set(p,x)}const h=Math.max(l-r,1);return{rows:Array.from(d.entries()).map(([y,p])=>{const x=[...p].sort((q,Y)=>q.timestamp.localeCompare(Y.timestamp)),b=new Array(Ki).fill(0),S=new Array(Ki).fill(null);for(const q of x){const Y=new Date(q.timestamp).getTime(),X=Math.max(r,Math.min(l,Y)),Z=Math.min(Ki-1,Math.floor((X-r)/h*Ki));b[Z]+=1;const J=S[Z];S[Z]=fj(J,q.severity)}const j=x.filter(q=>q.severity==="error").length,T=x.filter(q=>q.severity==="warning").length,M=x.length-j-T,O=[...x].reverse().find(q=>q.severity!=="info")??null,B=j>0?"error":T>0?"warning":"info";return{service:y,events:x,errors:j,warnings:T,infos:M,buckets:b,bucketSeverity:S,lastNotable:O,worstSeverity:B}}).sort((y,p)=>{const x=S=>S.errors*1e3+S.warnings,b=x(p)-x(y);return b!==0?b:y.service.localeCompare(p.service)}),windowStart:r,windowEnd:l}}function fj(n,s){return n==="error"||s==="error"?"error":n==="warning"||s==="warning"?"warning":"info"}function dj({onClick:n,row:s,windowEnd:l,windowStart:r}){const f=Math.max(1,...s.buckets);return u.jsxs("button",{className:"timeline-service-row block w-full px-3 py-2 text-left transition-colors hover:bg-muted/40 focus:outline-none focus-visible:bg-muted/40","data-testid":"timeline-service-row",onClick:n,type:"button",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[u.jsx("span",{className:fe("size-2 shrink-0 rounded-full",y2(s.worstSeverity))}),u.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",dir:"rtl",children:u.jsx("bdi",{children:s.service})}),s.errors>0?u.jsxs("span",{className:"rounded bg-red-500/15 px-1 font-mono text-[10px] text-red-500",children:[s.errors,"E"]}):null,s.warnings>0?u.jsxs("span",{className:"rounded bg-amber-500/15 px-1 font-mono text-[10px] text-amber-500",children:[s.warnings,"W"]}):null,u.jsx(ag,{className:"size-3 text-muted-foreground"})]}),u.jsx("div",{className:"timeline-density mt-1.5 grid h-3 gap-px","data-testid":"timeline-density",style:{gridTemplateColumns:`repeat(${Ki}, minmax(0, 1fr))`},children:s.buckets.map((d,h)=>u.jsx(hj,{count:d,max:f,severity:s.bucketSeverity[h]},h))}),s.lastNotable?u.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:s.lastNotable.detail??s.lastNotable.title}):u.jsxs("div",{className:"mt-1 truncate text-[10px] text-muted-foreground",children:[s.infos," info ",s.infos===1?"event":"events"]}),u.jsxs("div",{className:"mt-0.5 flex justify-between font-mono text-[9px] text-muted-foreground/60",children:[u.jsx("span",{children:ao(r)}),u.jsx("span",{children:ao(l)})]})]})}function hj({count:n,max:s,severity:l}){if(n===0)return u.jsx("span",{className:"rounded-sm bg-border/60"});const r=Math.min(1,.35+n/s*.65);return u.jsx("span",{className:fe("rounded-sm",gj(l)),style:{opacity:r},title:`${n} event${n===1?"":"s"}`})}function mj({onSelect:n,row:s}){const l=[...s.events].sort((r,f)=>f.timestamp.localeCompare(r.timestamp));return u.jsxs("div",{className:"flex max-h-[480px] flex-col overflow-hidden",children:[u.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-4 py-2 text-xs text-muted-foreground",children:[u.jsxs("span",{children:[s.events.length," events"]}),u.jsx("span",{children:"·"}),u.jsxs("span",{children:[s.errors," error",s.errors===1?"":"s"]}),u.jsx("span",{children:"·"}),u.jsxs("span",{children:[s.warnings," warning",s.warnings===1?"":"s"]})]}),u.jsx("ul",{className:"min-h-0 divide-y divide-border overflow-auto",children:l.map(r=>u.jsx("li",{children:u.jsxs("button",{className:"block w-full px-4 py-2 text-left hover:bg-muted/40 focus:outline-none focus-visible:bg-muted/40",onClick:()=>n(r),type:"button",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:fe("size-2 shrink-0 rounded-full",y2(r.severity))}),u.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",children:r.title}),u.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:ao(r.timestamp)})]}),r.detail?u.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:r.detail}):null]})},r.id))})]})}function pj({event:n}){const s=new Date(n.timestamp);return u.jsxs("div",{className:"space-y-3 p-4 text-sm",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:fe("rounded px-1.5 py-0.5 font-mono text-[10px] uppercase text-white",yj(n.severity)),children:n.severity}),u.jsx("span",{className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:n.kind}),n.service?u.jsx("span",{className:"rounded border border-border bg-background px-1.5 py-0.5 font-mono text-[10px] text-foreground",children:n.service}):null]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"When"}),u.jsx("div",{className:"font-mono text-xs",children:Number.isNaN(s.getTime())?n.timestamp:s.toLocaleString()})]}),n.detail?u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground",children:"Detail"}),u.jsx("pre",{className:"mt-1 max-h-72 overflow-auto whitespace-pre-wrap rounded border border-border bg-background p-3 font-mono text-xs",children:n.detail})]}):null]})}function y2(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-400"}function gj(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-500"}function yj(n){return n==="error"?"bg-red-600":n==="warning"?"bg-amber-600":"bg-zinc-700"}function ao(n){const s=typeof n=="number"?new Date(n):new Date(n);return Number.isNaN(s.getTime())?"--:--:--":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function K1({onChange:n,value:s}){return u.jsxs("label",{className:"relative block",children:[u.jsx(x3,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),u.jsx(gt,{"aria-label":"Search logs",className:"h-8 w-44 pl-7 text-xs",onChange:l=>n(l.target.value),placeholder:"Search logs",value:s})]})}function F1({className:n,containerRef:s,emptyText:l,logs:r,query:f}){return u.jsx("div",{className:fe("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",n),ref:s,role:"log",children:r.length?r.map((d,h)=>u.jsxs("div",{className:fe("grid min-w-max grid-cols-[168px_minmax(420px,1fr)] gap-2 border-b border-border/45 px-3 py-0.5",d.stream==="stderr"?"bg-red-50/70 text-red-800":"bg-emerald-50/35 text-zinc-800"),children:[u.jsx("span",{className:"text-muted-foreground",children:d.timestamp}),u.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[d.stream==="stderr"?u.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,vj(d.text,f)]})]},`${d.timestamp}-${d.stream}-${h}`)):u.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function xj(n){return`${n.timestamp} ${n.stream} ${n.text}`}function vj(n,s){const l=s.trim();if(!l)return n;const r=n.toLowerCase(),f=l.toLowerCase(),d=[];let h=0,g=r.indexOf(f);for(;g!==-1;){g>h&&d.push(n.slice(h,g));const y=g+l.length;d.push(u.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:n.slice(g,y)},`${g}-${y}`)),h=y,g=r.indexOf(f,h)}return h<n.length&&d.push(n.slice(h)),d}function bj({ports:n}){const s=n.filter(r=>r.state==="occupied").length,l=n.filter(r=>r.state==="managed").length;return u.jsxs(Bt,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(Ut,{className:"border-b border-border px-3 py-2",children:[u.jsxs(Ht,{className:"flex items-center gap-2",children:[u.jsx($b,{className:"size-3.5"}),"Ports"]}),u.jsxs(tn,{className:"text-xs",children:[l," managed, ",s," occupied by other"]})]}),u.jsx(qt,{className:"p-0",children:n.length?u.jsx("div",{className:"divide-y divide-border",children:n.map(r=>u.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2 px-3 py-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs("div",{className:"font-mono text-xs",children:[":",r.port]}),u.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:r.services.join(", ")||"Unassigned"}),r.urls[0]?u.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:r.urls[0]}):null]}),u.jsx(x2,{port:r})]},r.port))}):u.jsx(od,{label:"No configured ports yet."})})]})}function x2({compact:n,port:s}){const l=s.state==="managed"?"managed":s.state==="occupied"?"occupied by other":"available",r=s.state==="managed"?"success":s.state==="occupied"?"warning":"outline";return u.jsx(Ge,{className:fe(n&&"max-w-36 truncate"),variant:r,children:l})}function Sj({context:n}){const[s,l]=E.useState(!1);if(!n)return u.jsx("div",{className:"rounded-md border border-border bg-muted/30 p-3 text-xs text-muted-foreground",children:"No agent context available yet."});async function r(){try{await navigator.clipboard.writeText(n),l(!0),window.setTimeout(()=>l(!1),1500)}catch{l(!1)}}return u.jsxs("section",{"aria-label":"Agent context",className:"rounded-md border border-border bg-muted/30 p-3","data-testid":"agent-context-panel",children:[u.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u.jsxs("h3",{className:"flex items-center gap-1.5 text-xs font-medium",children:[u.jsx(Ii,{className:"size-3.5"}),"Agent context"]}),u.jsxs(ge,{onClick:r,size:"sm",type:"button",variant:"outline",children:[s?u.jsx(ng,{className:"size-3.5"}):u.jsx(sg,{className:"size-3.5"}),s?"Copied":"Copy"]})]}),u.jsx("pre",{className:"mt-2 max-h-72 overflow-auto whitespace-pre-wrap rounded bg-background p-3 font-mono text-[11px] leading-relaxed",children:n})]})}function jj({health:n}){if(!n)return null;const s=n.processTree,l=n.status==="healthy"||n.status==="unknown"?void 0:Aj(n.summary);return u.jsxs("div",{className:"mt-1.5 grid min-w-0 gap-2 text-[11px] text-muted-foreground sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[u.jsxs("span",{className:fe("inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2.5 font-medium",wj(n.status)),children:[u.jsx("span",{className:"inline-flex shrink-0",children:u.jsx(Fi,{className:"size-3"})}),u.jsx("span",{className:"whitespace-nowrap",children:n.status})]}),l?u.jsx("span",{className:"min-w-0 truncate",children:l}):null]}),s?u.jsxs("div",{className:"health-metrics flex min-w-max items-center gap-2 font-mono sm:justify-end",children:[u.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[u.jsx(xb,{className:"size-3"}),s.processCount," ",s.processCount===1?"process":"processes"]}),u.jsxs("span",{children:[Nj(s.cpuPercent)," CPU"]}),u.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[u.jsx(Fb,{className:"size-3"}),Tj(s.rssMb)," RAM"]})]}):null]})}function wj(n){return n==="healthy"?"bg-emerald-600 text-white":n==="warning"?"bg-amber-600 text-white":n==="unhealthy"?"bg-red-600 text-white":"bg-zinc-700 text-white"}function Tj(n){return Number.isInteger(n)?`${n} MB`:`${n.toFixed(1)} MB`}function Nj(n){return`${n.toFixed(1)}%`}function Aj(n){return n.replace(/^Recent error log:\s*/i,"Recent stderr: ").replace(/:\s*\d+(?:\.\d+)? MB RSS\.?$/i,"").replace(/\s+RSS\.?$/i,"")}function Cj({serviceName:n,status:s,health:l,timeline:r,onRefresh:f}){const[d,h]=E.useState("processes"),g=l?.processTree?.processes??[];return u.jsxs("div",{className:"border-t border-border bg-muted/30 px-3 py-2 text-xs",children:[u.jsxs("div",{className:"mb-2 flex gap-1",children:[u.jsxs(tf,{active:d==="processes",onClick:()=>h("processes"),children:["Processes ",g.length?u.jsx(Ge,{variant:"secondary",size:"small",children:g.length}):null]}),u.jsxs(tf,{active:d==="http",onClick:()=>h("http"),children:["HTTP",s?.inspector?.enabled?u.jsx(Ge,{variant:"success",size:"small",children:"on"}):null]}),u.jsx(tf,{active:d==="logs",onClick:()=>h("logs"),children:"Logs"})]}),d==="processes"?u.jsx(Mj,{rows:g}):null,d==="http"?u.jsx(Ej,{serviceName:n,status:s,timeline:r,onRefresh:f}):null,d==="logs"?u.jsx(kj,{serviceName:n}):null]})}function tf({active:n,onClick:s,children:l}){return u.jsx("button",{className:fe("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors",n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:s,type:"button",children:l})}function Mj({rows:n}){if(n.length===0)return u.jsx("div",{className:"text-muted-foreground",children:"No process tree (service not running)."});const s=[...n].sort((r,f)=>f.cpuPercent-r.cpuPercent),l=new Set(n.map(r=>r.pid));return u.jsx("div",{className:"overflow-x-auto",children:u.jsxs("table",{className:"w-full font-mono text-[11px]",children:[u.jsx("thead",{className:"text-left text-muted-foreground",children:u.jsxs("tr",{children:[u.jsx("th",{className:"py-1 pr-3",children:"PID"}),u.jsx("th",{className:"py-1 pr-3",children:"PPID"}),u.jsx("th",{className:"py-1 pr-3 text-right",children:"CPU%"}),u.jsx("th",{className:"py-1 pr-3 text-right",children:"RSS MB"}),u.jsx("th",{className:"py-1",children:"Command"})]})}),u.jsx("tbody",{children:s.map(r=>{const f=l.has(r.ppid);return u.jsxs("tr",{className:"border-t border-border/40",children:[u.jsx("td",{className:"py-1 pr-3",children:r.pid}),u.jsx("td",{className:"py-1 pr-3 text-muted-foreground",children:r.ppid}),u.jsx("td",{className:"py-1 pr-3 text-right",children:r.cpuPercent.toFixed(1)}),u.jsx("td",{className:"py-1 pr-3 text-right",children:r.rssMb.toFixed(1)}),u.jsx("td",{className:fe("py-1 truncate max-w-[60ch]",f&&"pl-4"),children:r.command})]},r.pid)})})]})})}function Ej({serviceName:n,status:s,timeline:l,onRefresh:r}){const{error:f,success:d}=Aa(),[h,g]=E.useState(!1),y=s?.inspector,p=s?.state==="running",x=E.useMemo(()=>l.filter(j=>j.kind==="service.http"&&j.service===n).map(j=>{const T=j.data??{};return{id:T.id??j.id,startedAt:j.timestamp,method:T.method??"?",path:T.path??"?",status:T.status??0,durationMs:T.durationMs??0,reqBytes:T.reqBytes??0,resBytes:T.resBytes??0}}).slice(-500).reverse(),[l,n]);async function b(j){g(!0);try{await an(`/api/services/${encodeURIComponent(n)}/inspector`,{enabled:j?"true":"false"}),await r(),d(j?`HTTP inspector started for ${n}.`:`HTTP inspector stopped for ${n}.`)}catch(T){f(T instanceof Error?T.message:String(T))}finally{g(!1)}}if(!p)return u.jsx("div",{className:"text-muted-foreground",children:"Service is not running."});if(!y?.enabled)return u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-muted-foreground",children:"The HTTP inspector starts a local proxy that forwards traffic to this service and records every request. Hit the inspect URL instead of the original port to see requests appear here. The service itself is not touched."}),u.jsxs(ge,{disabled:h,onClick:()=>b(!0),size:"sm",type:"button",children:[u.jsx(rg,{})," Start HTTP inspector"]})]});const S=y.port?`http://127.0.0.1:${y.port}`:void 0;return u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-muted-foreground",children:"Inspect URL:"}),S?u.jsxs(u.Fragment,{children:[u.jsx("code",{className:"rounded bg-background px-1.5 py-0.5 font-mono",children:S}),u.jsxs(ge,{onClick:()=>{navigator.clipboard.writeText(S),d("Copied inspect URL.")},size:"sm",type:"button",variant:"outline",children:[u.jsx(sg,{})," Copy"]}),u.jsx(ge,{onClick:()=>window.open(S,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",children:"Open"})]}):u.jsx("span",{className:"text-muted-foreground",children:"starting…"}),u.jsxs("span",{className:"text-muted-foreground",children:["→ upstream :",y.upstreamPort??"?"]}),u.jsxs(ge,{disabled:h,onClick:()=>b(!1),size:"sm",type:"button",variant:"outline",children:[u.jsx(cg,{})," Stop"]})]}),x.length===0?u.jsx("div",{className:"text-muted-foreground",children:"No requests captured yet. Hit the inspect URL in your browser to see traffic."}):u.jsx("div",{className:"max-h-80 overflow-auto",children:u.jsxs("table",{className:"w-full font-mono text-[11px]",children:[u.jsx("thead",{className:"sticky top-0 bg-muted/60 text-left text-muted-foreground",children:u.jsxs("tr",{children:[u.jsx("th",{className:"py-1 pr-3",children:"Time"}),u.jsx("th",{className:"py-1 pr-3",children:"Method"}),u.jsx("th",{className:"py-1 pr-3",children:"Path"}),u.jsx("th",{className:"py-1 pr-3 text-right",children:"Status"}),u.jsx("th",{className:"py-1 pr-3 text-right",children:"Size"}),u.jsx("th",{className:"py-1 pr-3 text-right",children:"ms"})]})}),u.jsx("tbody",{children:x.map(j=>u.jsxs("tr",{className:"border-t border-border/40",children:[u.jsx("td",{className:"py-1 pr-3 text-muted-foreground",children:new Date(j.startedAt).toLocaleTimeString()}),u.jsx("td",{className:"py-1 pr-3",children:j.method}),u.jsx("td",{className:"py-1 pr-3 truncate max-w-[40ch]",children:j.path}),u.jsx("td",{className:fe("py-1 pr-3 text-right",zj(j.status)),children:j.status}),u.jsx("td",{className:"py-1 pr-3 text-right text-muted-foreground",children:Dj(j.resBytes)}),u.jsx("td",{className:"py-1 pr-3 text-right",children:j.durationMs.toFixed(1)})]},j.id))})]})})]})}function zj(n){return n>=500?"text-red-600 dark:text-red-400":n>=400?"text-amber-600 dark:text-amber-400":n>=300?"text-zinc-500":n>=200?"text-emerald-600 dark:text-emerald-400":"text-muted-foreground"}function Dj(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`}function kj({serviceName:n}){const[s,l]=E.useState(),[r,f]=E.useState();return E.useEffect(()=>{let d=!1;const h=async()=>{try{const y=await af(n);d||l(y)}catch(y){d||f(y instanceof Error?y.message:String(y))}};h();const g=window.setInterval(h,2e3);return()=>{d=!0,window.clearInterval(g)}},[n]),r?u.jsx("div",{className:"text-red-600",children:r}):s?s.length===0?u.jsx("div",{className:"text-muted-foreground",children:"No log entries."}):u.jsx("pre",{className:"max-h-80 overflow-auto whitespace-pre-wrap break-all rounded bg-background p-2 font-mono text-[11px]",children:s.map(d=>`${new Date(d.timestamp).toLocaleTimeString()} [${d.stream}] ${d.text}`).join(`
|
|
12
|
-
`)}):u.jsx("div",{className:"text-muted-foreground",children:"Loading…"})}function Rj({allServices:n,group:s,onRefresh:l,ports:r,services:f,health:d,statuses:h,timeline:g}){const[y,p]=E.useState(!1),[x,b]=E.useState(!1),S=f.some(j=>b2(h[j.name]?.state));return u.jsxs("section",{children:[u.jsxs("div",{className:"grid gap-2 bg-muted/35 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[u.jsx("div",{className:"min-w-0",children:u.jsxs("button",{className:"flex max-w-full items-start gap-2 text-left",onClick:()=>b(j=>!j),type:"button",children:[u.jsx(Zs,{className:fe("mt-0.5 size-3.5 shrink-0 text-muted-foreground transition-transform",x&&"-rotate-90")}),u.jsxs("span",{className:"min-w-0",children:[u.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(Ge,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),u.jsx("span",{className:"text-sm font-medium",children:s.name}),u.jsx(Ge,{variant:"secondary",children:s.services.length})]}),u.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:s.services.join(", ")})]})]})}),u.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[u.jsxs(ge,{"aria-expanded":y,onClick:()=>p(j=>!j),size:"sm",type:"button",variant:"outline",children:[u.jsx(l3,{}),"Edit"]}),u.jsx(p2,{active:S,baseUrl:`/api/bundles/${encodeURIComponent(s.name)}`,restartAction:async()=>{await an(`/api/bundles/${encodeURIComponent(s.name)}/stop`,{}),await an(`/api/bundles/${encodeURIComponent(s.name)}/start`,{})},targetLabel:`group ${s.name}`,onRefresh:l})]})]}),y?u.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:u.jsx(g2,{initialName:s.name,initialServices:s.services,onRefresh:l,onSaved:()=>p(!1),originalName:s.name,services:n,submitLabel:"Save Group"})}):null,x?null:u.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:f.length?f.map(j=>u.jsx(v2,{service:j,status:h[j.name],health:d[j.name],ports:r,onRefresh:l,timeline:g},j.name)):u.jsx(ln,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function v2({service:n,status:s,health:l,ports:r,onRefresh:f,timeline:d=[]}){const[h,g]=E.useState(!1),[y,p]=E.useState(!1),x=s?.state??"stopped",b=b2(x),S=s?.url??(n.port?Oj(n.port):void 0),j=n.port?r.find(O=>O.port===n.port):void 0,T=_j(s?.url),M=T?r.find(O=>O.port===T):void 0;return u.jsxs("div",{children:[u.jsxs("div",{className:"grid gap-2 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[u.jsx("button",{"aria-expanded":y,"aria-label":y?"Collapse details":"Expand details",className:"inline-flex shrink-0 items-center text-muted-foreground hover:text-foreground",onClick:()=>p(O=>!O),type:"button",children:u.jsx(Zs,{className:fe("size-3.5 transition-transform",y?"":"-rotate-90")})}),u.jsx(rd,{command:n.command??""}),u.jsx("span",{className:"text-sm font-medium",children:n.name}),u.jsx(Lj,{state:x}),n.kind&&n.kind!=="local"?u.jsx(Ge,{variant:"outline",children:n.kind}):null,n.port?u.jsxs(Ge,{variant:"outline",children:[":",n.port]}):null,j?u.jsx(x2,{port:j,compact:!0}):null,M&&M.port!==n.port?u.jsxs(Ge,{variant:"success",children:["actual :",M.port]}):null]}),n.command?u.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:n.command}):null,n.kind==="docker-compose"?u.jsxs("div",{className:"truncate text-[11px] text-muted-foreground",children:["docker compose service: ",n.composeService,n.composeFile?` (${n.composeFile})`:""]}):null,n.kind==="ssh"?u.jsxs("div",{className:"truncate text-[11px] text-amber-600 dark:text-amber-400",children:["Remote service on ",n.host,". Commands run through your local SSH config and SSH agent."]}):null,n.cwd?u.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:n.cwd}):null,u.jsx(jj,{health:l})]}),u.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[u.jsx(Vj,{service:n,onRefresh:f}),S?u.jsxs(ge,{onClick:()=>window.open(S,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:S,children:[u.jsx(ig,{}),"Open"]}):null,l?.agentContext?u.jsxs(ge,{onClick:()=>g(!0),size:"sm",title:"Copy a paste-ready debug packet for an AI agent",type:"button",variant:"outline",children:[u.jsx(Ii,{}),"Context"]}):null,u.jsx(p2,{active:b,baseUrl:`/api/services/${encodeURIComponent(n.name)}`,targetLabel:n.name,onRefresh:f})]}),h&&l?.agentContext?u.jsx(ll,{icon:u.jsx(Ii,{}),onClose:()=>g(!1),title:`Agent context — ${n.name}`,children:u.jsx("div",{className:"p-4",children:u.jsx(Sj,{context:l.agentContext})})}):null]}),y?u.jsx(Cj,{serviceName:n.name,status:s,health:l,timeline:d,onRefresh:f}):null]})}function b2(n){return n==="running"||n==="starting"}function Vj({service:n,onRefresh:s}){const[l,r]=E.useState(n.port?String(n.port):""),[f,d]=E.useState(!1),{error:h,success:g}=Aa(),y=l.trim()!==(n.port?String(n.port):"");E.useEffect(()=>{r(n.port?String(n.port):"")},[n.port]);async function p(x){x.preventDefault(),d(!0);try{await an("/api/services",{name:n.name,command:n.command??"",cwd:n.cwd??"",port:l,description:n.description}),g(`Port saved for ${n.name}.`),await s()}catch(b){h(il("Save port",n.name,b))}finally{d(!1)}}return u.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:p,children:[u.jsx(gt,{"aria-label":`Port for ${n.name}`,className:"h-8 w-20 font-mono text-xs",inputMode:"numeric",min:1,max:65535,onChange:x=>r(x.target.value),placeholder:"port",type:"number",value:l}),u.jsx(ge,{"aria-label":`Save port for ${n.name}`,disabled:f||!y,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:u.jsx(g3,{})})]})}function Oj(n){return`http://127.0.0.1:${n}`}function _j(n){if(n)try{const s=new URL(n);return s.port?Number(s.port):void 0}catch{return}}function Lj({state:n}){return u.jsx(Ge,{variant:n==="running"?"success":n==="exited"?"danger":n==="starting"?"warning":"outline",className:fe(n==="running"&&"font-mono"),children:n})}function Bj({data:n,onRefresh:s}){const l=n.config.services[0]?.name??"",[r,f]=E.useState(l),[d,h]=E.useState(n.logs),[g,y]=E.useState(""),[p,x]=E.useState(null),[b,S]=E.useState(!1),j=E.useRef(null),T=E.useRef(!0),M=E.useRef({}),{error:O,message:B,success:q}=Aa(),Y=E.useMemo(()=>new Set(n.config.bundles.flatMap(F=>F.services)),[n.config.bundles]),X=E.useMemo(()=>{const F=new Map;for(const oe of n.config.bundles)for(const we of oe.services)F.has(we)||F.set(we,oe.name);return F},[n.config.bundles]),Z=E.useMemo(()=>n.config.services.filter(F=>!Y.has(F.name)),[n.config.services,Y]),J=n.health??{},$=n.config.bundles.length>0||Z.length>0,L=g.trim().toLowerCase(),de=E.useMemo(()=>L?d.filter(F=>xj(F).toLowerCase().includes(L)):d,[d,L]);E.useEffect(()=>{!r&&l&&f(l)},[l,r]),E.useEffect(()=>{if(!r){h([]);return}let F=!0;return af(r).then(oe=>{F&&h(oe)}).catch(()=>{F&&h([])}),()=>{F=!1}},[r,n.runtime.services]),E.useEffect(()=>{if(!b||!r)return;let F=!0;const oe=async()=>{try{const be=await af(r);F&&h(be)}catch{F&&h([])}};oe();const we=window.setInterval(oe,1e3);return()=>{F=!1,window.clearInterval(we)}},[r,b]),E.useEffect(()=>{const F=j.current;if(!F)return;function oe(){if(!F)return;const we=F.scrollHeight-F.scrollTop-F.clientHeight;T.current=we<40}return oe(),F.addEventListener("scroll",oe,{passive:!0}),()=>F.removeEventListener("scroll",oe)},[r]),E.useEffect(()=>{if(!b||!T.current)return;const F=j.current;F&&(F.scrollTop=F.scrollHeight)},[b,de]),E.useEffect(()=>{T.current=!0;const F=j.current;F&&(F.scrollTop=F.scrollHeight)},[r]),E.useEffect(()=>{const F=Object.fromEntries(n.config.services.map(we=>[we.name,n.runtime.services[we.name]?.state??"stopped"])),oe=M.current;if(Object.keys(oe).length){const we=new Map,be=new Map;for(const ye of n.config.services){const D=F[ye.name],K=oe[ye.name];if(!K||K===D)continue;const W=n.runtime.services[ye.name],P=X.get(ye.name);if(P){const Q=we.get(P)??new Map;if(Q.set(D,(Q.get(D)??0)+1),we.set(P,Q),D==="exited"){const N=be.get(P)??[];N.push(W?.exitCode),be.set(P,N)}continue}if(D==="running")q(`${ye.name} is running.`);else if(D==="stopped")B({text:`${ye.name} stopped.`});else if(D==="starting")B({text:`${ye.name} is starting.`});else if(D==="exited"){const Q=W?.exitCode===void 0||W.exitCode===null?"":` with code ${W.exitCode}`;O(`${ye.name} exited${Q}.`)}}for(const[ye,D]of we)Uj({exitCodes:be.get(ye)??[],groupName:ye,showErrorToast:O,showMessageToast:B,showSuccessToast:q,transitions:D})}M.current=F},[n.config.services,n.runtime.services,X,O,B,q]);const le=r?L?`No log lines match "${g.trim()}".`:`No logs captured for ${r}.`:"No services registered.";return b?u.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:u.jsxs(Bt,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[u.jsx(Ut,{className:"shrink-0 border-b border-border px-3 py-2",children:u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[u.jsxs("div",{children:[u.jsx(Ht,{children:"Streaming Logs"}),u.jsx(tn,{className:"text-xs",children:"Polling the selected service every second and pinned to latest output."})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(K1,{value:g,onChange:y}),u.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!n.config.services.length,onChange:F=>f(F.target.value),value:r,children:n.config.services.map(F=>u.jsx("option",{value:F.name,children:F.name},F.name))}),u.jsxs(ge,{"aria-pressed":b,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>S(!1),size:"sm",type:"button",variant:"outline",children:[u.jsx(Sp,{}),"Streaming"]})]})]})}),u.jsx(qt,{className:"min-h-0 flex-1 p-0",children:u.jsx(F1,{containerRef:j,emptyText:le,logs:de,query:g})})]})}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden bg-card/85 xl:grid-cols-[minmax(0,1fr)_340px]",children:[u.jsxs("div",{className:"min-h-0 min-w-0 overflow-auto",children:[u.jsxs(Bt,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[u.jsx(Ut,{className:"border-b border-border px-3 py-2",children:u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[u.jsxs("div",{children:[u.jsx(Ht,{children:"Services"}),u.jsx(tn,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsxs(ge,{"aria-haspopup":"dialog",onClick:()=>x("service"),size:"sm",type:"button",variant:"outline",children:[u.jsx(Zr,{}),"Add Service"]}),u.jsxs(ge,{"aria-haspopup":"dialog",onClick:()=>x("group"),size:"sm",type:"button",variant:"outline",children:[u.jsx(bp,{}),"Create Group"]})]})]})}),u.jsx(qt,{className:"p-0",children:$?u.jsxs("div",{className:"divide-y divide-border",children:[n.config.bundles.map(F=>u.jsx(Rj,{group:F,onRefresh:s,ports:n.ports,allServices:n.config.services,health:J,services:n.config.services.filter(oe=>F.services.includes(oe.name)),statuses:n.runtime.services,timeline:n.timeline},F.name)),Z.length?[{key:"local",label:"Local Services"},{key:"docker-compose",label:"Docker Compose"},{key:"ssh",label:"Remote (SSH)"}].map(({key:F,label:oe})=>{const we=Z.filter(be=>(be.kind??"local")===F);return we.length===0?null:u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 bg-muted/55 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:[u.jsx("span",{children:oe}),u.jsx("span",{className:"text-muted-foreground/80",children:we.length})]}),u.jsx("div",{className:"divide-y divide-border",children:we.map(be=>u.jsx(v2,{service:be,status:n.runtime.services[be.name],health:J[be.name],ports:n.ports,onRefresh:s,timeline:n.timeline},be.name))})]},F)}):null]}):u.jsx(od,{label:"No services registered yet."})})]}),u.jsxs(Bt,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsx(Ut,{className:"border-b border-border px-3 py-2",children:u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[u.jsxs("div",{children:[u.jsx(Ht,{children:"Recent Logs"}),u.jsx(tn,{className:"text-xs",children:"Updates with dashboard refresh. Use Stream for a full-page live view."})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(K1,{value:g,onChange:y}),u.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!n.config.services.length,onChange:F=>f(F.target.value),value:r,children:n.config.services.map(F=>u.jsx("option",{value:F.name,children:F.name},F.name))}),u.jsxs(ge,{"aria-pressed":b,disabled:!r,onClick:()=>S(!0),size:"sm",type:"button",variant:"outline",children:[u.jsx(Sp,{}),"Stream"]})]})]})}),u.jsx(qt,{className:"min-w-0 p-0",children:u.jsx(F1,{className:"max-h-[320px]",containerRef:j,emptyText:le,logs:de,query:g})})]})]}),u.jsxs("div",{className:"min-h-0 overflow-auto border-l border-border",children:[u.jsx(bj,{ports:n.ports}),u.jsx(cj,{events:n.timeline??[]})]})]}),p?u.jsx(ll,{icon:p==="service"?u.jsx(Zr,{}):u.jsx(bp,{}),onClose:()=>x(null),size:p==="service"?"lg":"md",title:p==="service"?"Add Service":"Create Group",children:p==="service"?u.jsx(lj,{cwd:n.cwd,onRefresh:s,onSaved:()=>x(null)}):u.jsx(g2,{services:Z,onRefresh:s,onSaved:()=>x(null)})}):null]})}function Uj({exitCodes:n,groupName:s,showErrorToast:l,showMessageToast:r,showSuccessToast:f,transitions:d}){if(d.size===1){const[y]=d.keys();if(y==="running")f(`${s} group is running.`);else if(y==="stopped")r({text:`${s} group stopped.`});else if(y==="starting")r({text:`${s} group is starting.`});else if(y==="exited"){const p=n.filter(b=>b!=null),x=p.length?` with code ${p.join(", ")}`:"";l(`${s} group exited${x}.`)}return}const h=[...d.entries()].map(([y,p])=>`${p} ${y}`).join(", "),g=`${s} group updated: ${h}.`;d.has("exited")?l(g):r({text:g})}function Hj({activeHunkIndex:n=0,diff:s}){const l=Gj(s),r=E.useRef([]);return E.useEffect(()=>{r.current[n]?.scrollIntoView({block:"start",behavior:"smooth"})},[n,s]),u.jsx("div",{className:"h-full min-h-0 overflow-auto bg-white text-xs leading-6",children:u.jsx("div",{className:"min-w-max font-mono",children:l.map((f,d)=>u.jsxs("div",{className:fe("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",f.kind==="add"&&"bg-emerald-50 text-emerald-800",f.kind==="delete"&&"bg-red-50 text-red-800",P1(l,d)&&f.hunkIndex===n&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:f.hunkIndex!==null&&P1(l,d)?h=>{r.current[f.hunkIndex??0]=h}:void 0,children:[u.jsx($1,{value:f.oldLine}),u.jsx($1,{value:f.newLine}),u.jsx("span",{className:"whitespace-pre px-2",children:f.content||" "})]},`${d}-${f.content}`))})})}function qj(n){return n.split(`
|
|
13
|
-
`).reduce((s,l)=>(l.startsWith("@@")?s.hunks+=1:l.startsWith("+")&&!l.startsWith("+++")?s.additions+=1:l.startsWith("-")&&!l.startsWith("---")&&(s.deletions+=1),s),{additions:0,deletions:0,hunks:0})}function Gj(n){const s=Yj(n);return s.some(l=>l.kind==="hunk")?s.filter(l=>l.kind!=="meta"&&l.kind!=="hunk"):s}function Yj(n){let s=null,l=null,r=null;return n.split(`
|
|
14
|
-
`).map(f=>{if(Xj(f))return s=null,l=null,r=null,{content:f,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(f.startsWith("@@")){const h=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(f);return h&&(s=Number(h[1]),l=Number(h[2])),r=(r??-1)+1,{content:f,hunkIndex:r,kind:"hunk",oldLine:null,newLine:null}}if(s===null||l===null)return{content:f,hunkIndex:null,kind:"meta",oldLine:null,newLine:null};if(f.startsWith("\\ No newline"))return{content:f,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(f.startsWith("+")&&!f.startsWith("+++")){const h={content:f,hunkIndex:r,kind:"add",oldLine:null,newLine:l};return l+=1,h}if(f.startsWith("-")&&!f.startsWith("---")){const h={content:f,hunkIndex:r,kind:"delete",oldLine:s,newLine:null};return s+=1,h}const d={content:f,hunkIndex:r,kind:"context",oldLine:s,newLine:l};return s+=1,l+=1,d})}function P1(n,s){const l=n[s]?.hunkIndex;if(l===null)return!1;const r=n.findIndex(f=>f.hunkIndex===l&&(f.kind==="add"||f.kind==="delete"));return r!==-1?r===s:n.findIndex(f=>f.hunkIndex===l)===s}function Xj(n){return n.startsWith("diff --git ")||n.startsWith("index ")||n.startsWith("--- ")||n.startsWith("+++ ")||n.startsWith("new file mode ")||n.startsWith("deleted file mode ")||n.startsWith("old mode ")||n.startsWith("new mode ")||n.startsWith("similarity index ")||n.startsWith("rename from ")||n.startsWith("rename to ")||n.startsWith("Binary files ")}function $1({value:n}){return u.jsx("span",{className:fe("select-none border-r border-border/70 px-2 text-right text-muted-foreground",n===null&&"text-transparent"),children:n??"-"})}const Zj=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),Qj=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),Kj=new Set(["conf","config","ini","toml","yaml","yml"]),Fj=new Set(["csv","json","sql","xml"]),Pj=new Set(["md","mdx","rst","txt"]),$j=new Set(["gif","jpeg","jpg","png","svg","webp"]),Jj=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),Wj=new Set(["css","less","sass","scss"]);function Ij(n){const s=n.split("/").pop()?.toLowerCase()??n.toLowerCase(),l=s.includes(".")?s.split(".").pop()??"":"";return Jj.has(s)||s.endsWith(".lock")?"lock":e9(s)?"test":Qj.has(s)||Kj.has(l)?"config":Wj.has(l)?"style":$j.has(l)?"image":Pj.has(l)?"document":Fj.has(l)?"data":Zj.has(l)?"code":"generic"}function e9(n){return n.includes(".test.")||n.includes(".spec.")||n.endsWith("_test.go")}function t9({branch:n,error:s,files:l,selectedFile:r,onSelectFile:f}){const d=E.useMemo(()=>l9(l).filter(y=>y.files.length),[l]),[h,g]=E.useState({staged:!1,unstaged:!1,untracked:!1});return u.jsxs(Bt,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[u.jsx(Ut,{className:"border-b border-border px-2.5 py-1.5",children:u.jsxs(Ht,{className:"flex items-center justify-between gap-2",children:[u.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[u.jsx(Xr,{className:"size-3.5"}),u.jsx("span",{className:"truncate",children:"Changes"})]}),u.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[n?u.jsx(Ge,{variant:"outline",children:n}):null,u.jsx(Ge,{variant:"secondary",children:l.length})]})]})}),u.jsx(qt,{className:"min-h-0 flex-1 overflow-auto p-0",children:d.length?d.map(y=>u.jsx(n9,{collapsed:h[y.id],group:y,onSelectFile:f,onToggle:()=>g(p=>({...p,[y.id]:!p[y.id]})),selectedFile:r},y.id)):u.jsx(ln,{variant:"muted",className:"m-3 text-center",children:s??"No changed files."})})]})}function n9({collapsed:n,group:s,onSelectFile:l,onToggle:r,selectedFile:f}){const d=n?ag:Zs;return u.jsxs("section",{className:"border-b border-border last:border-b-0",children:[u.jsxs("button",{className:"flex w-full items-center justify-between gap-2 bg-muted/55 px-2.5 py-1 text-left text-[10px] font-semibold uppercase text-muted-foreground hover:bg-muted",onClick:r,type:"button",children:[u.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[u.jsx(d,{className:"size-3.5"}),u.jsx("span",{className:"truncate",children:s.label})]}),u.jsx(Ge,{className:"min-w-6 justify-center font-mono shadow-none",size:"small",variant:"outline",children:s.files.length})]}),n?null:u.jsx("div",{children:s.files.map(h=>u.jsx(a9,{active:f===h.path,file:h,group:s.id,onClick:()=>l(h.path)},h.path))})]})}function a9({active:n,file:s,group:l,onClick:r}){const f=s.path.split("/").pop()||s.path,d=s.path.split("/").slice(0,-1).join("/");return u.jsxs(ge,{className:fe("grid h-auto w-full grid-cols-[1fr_auto] items-center gap-2 rounded-none border-b border-border px-2.5 py-1.5 text-left",n&&"bg-muted"),onClick:r,type:"button",variant:"ghost",children:[u.jsxs("span",{className:"min-w-0",children:[u.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[u.jsx(i9,{path:s.path}),u.jsx("span",{className:"truncate text-[13px] font-medium",children:f})]}),d?u.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:d}):null]}),u.jsx("span",{className:fe("w-3.5 shrink-0 text-center font-mono text-[11px] font-semibold",l==="untracked"&&"text-amber-700",l==="staged"&&"text-emerald-700",l==="unstaged"&&"text-zinc-800"),children:s9(s,l)})]})}function s9(n,s){return s==="untracked"?"?":s==="staged"?n.index.trim():n.workingTree.trim()}function i9({path:n}){const s=Ij(n),l=r9[s];return u.jsx(l,{"aria-label":`${s} file`,className:fe("size-3.5 shrink-0",o9[s])})}function l9(n){return[{id:"unstaged",label:"Changes",files:n.filter(s=>!(s.index==="?"&&s.workingTree==="?")&&s.workingTree.trim())},{id:"staged",label:"Staged Changes",files:n.filter(s=>!(s.index==="?"&&s.workingTree==="?")&&s.index.trim()&&!s.workingTree.trim())},{id:"untracked",label:"Untracked Files",files:n.filter(s=>s.index==="?"&&s.workingTree==="?")}]}const r9={code:Nb,config:j3,data:bb,document:Cb,generic:Eb,image:Yb,lock:Qb,style:Wb,test:Db},o9={code:"text-sky-600",config:"text-zinc-600",data:"text-emerald-700",document:"text-blue-700",generic:"text-muted-foreground",image:"text-fuchsia-700",lock:"text-amber-700",style:"text-rose-700",test:"text-violet-700"};function c9({activeHunkIndex:n,filePaths:s,hunkCount:l,pendingNextFilePath:r,selectedFile:f}){if(l>0&&n<l-1)return{kind:"hunk",activeHunkIndex:n+1};const d=s.findIndex(g=>g===f),h=s[d+1];return h?r===h?{kind:"file",filePath:h}:{kind:"confirm-next-file",filePath:h}:{kind:"none"}}function u9({data:n}){const[s,l]=E.useState(n.git.status?.files[0]?.path??""),[r,f]=E.useState(""),[d,h]=E.useState(null),[g,y]=E.useState(0),[p,x]=E.useState(null),b=n.git.status?.files??[],S=E.useMemo(()=>b.map(Z=>Z.path),[b]),j=E.useMemo(()=>qj(r),[r]);E.useEffect(()=>{const Z=n.git.status?.files[0]?.path??"";l(J=>J&&n.git.status?.files.some($=>$.path===J)?J:Z)},[n.git.status?.files]),E.useEffect(()=>{if(!s){f("");return}let Z=!0;return h(null),V3(s).then(J=>{Z&&(f(J),y(0),x(null))}).catch(J=>{Z&&h(J instanceof Error?J.message:String(J))}),()=>{Z=!1}},[s]);function T(Z){y(0),x(null),l(Z)}function M(){const Z=c9({activeHunkIndex:g,filePaths:S,hunkCount:j.hunks,pendingNextFilePath:p,selectedFile:s});Z.kind==="hunk"?(x(null),y(Z.activeHunkIndex)):Z.kind==="confirm-next-file"?x(Z.filePath):Z.kind==="file"?T(Z.filePath):x(null)}function O(){if(x(null),g>0){y($=>$-1);return}const Z=b.findIndex($=>$.path===s),J=b[Z-1];J&&T(J.path)}const B=b.findIndex(Z=>Z.path===s),q=!!(j.hunks&&g<j.hunks-1||b[B+1]),Y=!!(g>0||b[B-1]),X=p?`End of file. Click Next again to open ${p}.`:null;return u.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden border-0 bg-card/85 xl:grid-cols-[320px_minmax(0,1fr)]",children:[u.jsx("aside",{className:"flex min-h-0 flex-col overflow-hidden",children:u.jsx(t9,{branch:n.git.status?.branch||void 0,error:n.git.error,files:n.git.status?.files??[],selectedFile:s,onSelectFile:T})}),u.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[u.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-1.5",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("h2",{className:"truncate text-[13px] font-semibold tracking-tight",children:s||"Diff"}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[u.jsx("span",{children:"Long rows scroll horizontally inside the editor pane."}),j.additions||j.deletions?u.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[u.jsxs("span",{className:"text-emerald-700",children:["+",j.additions]}),u.jsxs("span",{className:"text-red-700",children:["-",j.deletions]})]}):null]})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[X?u.jsx("span",{className:"max-w-72 truncate rounded border border-amber-200 bg-amber-50 px-2 py-1 text-[11px] text-amber-900",children:X}):null,u.jsxs(ge,{disabled:!s||!Y,onClick:O,size:"sm",type:"button",variant:"outline",children:[u.jsx(ob,{}),"Previous"]}),u.jsxs(ge,{disabled:!s||!q,onClick:M,size:"sm",type:"button",variant:"outline",children:[u.jsx(lb,{}),"Next"]})]})]}),u.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:d?u.jsx("div",{className:"p-4",children:u.jsx(ln,{variant:"destructive",children:d})}):s?u.jsx(Hj,{activeHunkIndex:g,diff:r||"No unstaged diff for this file."}):u.jsx("div",{className:"p-4",children:u.jsx(ln,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function f9({initialPath:n,onSelect:s,selectedPath:l}){const[r,f]=E.useState(n),[d,h]=E.useState(null),[g,y]=E.useState(null),[p,x]=E.useState(!1),b=d9(d);return E.useEffect(()=>{f(n)},[n]),E.useEffect(()=>{let S=!0;return x(!0),y(null),O3(r).then(j=>{S&&(h(j),s(j.path))}).catch(j=>{S&&y(j instanceof Error?j.message:String(j))}).finally(()=>{S&&x(!1)}),()=>{S=!1}},[r,s]),u.jsxs("div",{className:"rounded-md border border-border bg-background",children:[u.jsxs("div",{className:"flex items-center gap-2 border-b border-border p-2",children:[b?u.jsx(ge,{"aria-label":"Open parent folder",onClick:()=>d&&f(d.parent),size:"icon",type:"button",variant:"ghost",children:u.jsx(Zs,{className:"rotate-90"})}):null,u.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:d?.path??r}),p?u.jsx(lg,{className:"size-4 animate-spin text-muted-foreground"}):null]}),u.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[g?u.jsx(ln,{variant:"destructive",className:"m-1",children:g}):null,!g&&d?.entries.length===0?u.jsx(ln,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,d?.entries.map(S=>u.jsxs(ge,{className:fe("h-8 w-full justify-start rounded-sm px-2 text-left",l===S.path&&"bg-muted"),onClick:()=>f(S.path),title:S.path,type:"button",variant:"ghost",children:[u.jsx(Df,{className:"text-accent"}),u.jsx("span",{className:"truncate",children:S.name})]},S.path))]})]})}function d9(n){return!!(n&&n.parent!==n.path)}function J1(n){return n.split(/[\\/]/).filter(Boolean).pop()??"project"}function h9({data:n,onRefresh:s}){const[l,r]=E.useState(!1),[f,d]=E.useState(n.git.cwd),[h,g]=E.useState(null),[y,p]=E.useState(!1),[x,b]=E.useState("add"),[S,j]=E.useState(n.git.cwd),T=E.useRef(null),M=n.git.selectedRepository,O=M?.name??J1(n.git.cwd),{error:B,success:q}=Aa();E.useEffect(()=>{d(n.git.cwd),j(n.git.cwd)},[n.git.cwd]),E.useEffect(()=>{if(!l)return;function J($){T.current&&$.target instanceof Node&&!T.current.contains($.target)&&r(!1)}return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[l]);async function Y(J){try{await an("/api/git/select",{name:J}),r(!1),await s(),q(`Switched to ${J}.`)}catch($){B($ instanceof Error?$.message:String($))}}async function X(J){const $=J.trim();if(!m9($)){const L="Please add an absolute path. Paths beginning with ~ are not expanded here.";return g(L),B(L),!1}try{const L=J1($);return await an("/api/git/repositories",{name:L,path:$}),g(null),await s(),q(`Added Git project ${L}.`),!0}catch(L){const de=L instanceof Error?L.message:String(L);return g(de),B(de),!1}}async function Z(J){J.preventDefault(),await X(f)&&r(!1)}return u.jsxs("div",{className:"relative z-50 flex items-center gap-2",ref:T,children:[u.jsxs(ge,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>r(J=>!J),size:"sm",type:"button",variant:"outline",children:[u.jsx(Df,{className:"text-muted-foreground"}),u.jsx("span",{className:"truncate",children:O}),u.jsx(Zs,{className:fe("ml-auto transition-transform",l&&"rotate-180")})]}),u.jsx(ge,{"aria-label":"Add Git project",onClick:()=>{b("add"),g(null),j(n.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:u.jsx(Zr,{})}),l?u.jsxs("div",{className:"absolute right-0 top-10 z-50 w-[min(380px,calc(100vw-2rem))] overflow-hidden rounded-lg border border-border bg-card shadow-lg",children:[u.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[u.jsx(jb,{className:"size-3.5 text-muted-foreground"}),u.jsx("div",{className:"text-xs font-semibold",children:"Git Projects"}),u.jsx(Ge,{className:"ml-auto h-5 px-1.5 text-[10px]",variant:"outline",children:n.config.gitRepositories.length})]}),u.jsx("div",{className:"max-h-72 overflow-auto",children:n.config.gitRepositories.length?u.jsx("div",{className:"divide-y divide-border",children:n.config.gitRepositories.map(J=>{const $=J.name===M?.name;return u.jsxs("button",{className:fe("grid w-full grid-cols-[1fr_auto] items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-muted",$&&"bg-muted/70"),onClick:()=>{Y(J.name)},type:"button",children:[u.jsxs("span",{className:"min-w-0",children:[u.jsx("span",{className:"block truncate text-sm font-medium leading-tight",children:J.name}),u.jsx("span",{className:"block truncate font-mono text-[10px] leading-tight text-muted-foreground",children:J.path})]}),$?u.jsx(ng,{className:"size-3.5"}):null]},J.name)})}):u.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No saved Git projects yet."})}),u.jsxs("div",{className:"border-t border-border bg-muted/20 p-2",children:[u.jsxs("form",{className:"flex gap-1.5",onSubmit:Z,children:[u.jsx(gt,{"aria-label":"Paste absolute path",className:"h-7 flex-1 px-2 font-mono text-[11px]",onChange:J=>{d(J.target.value),g(null)},placeholder:"/absolute/path",value:f}),u.jsxs(ge,{className:"h-7 px-2 text-[11px]",size:"sm",type:"submit",children:[u.jsx(Zr,{className:"size-3"}),"Add"]}),u.jsx(ge,{"aria-label":"Browse folders",className:"h-7 px-2",onClick:()=>{b("fill"),g(null),j(f||n.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:u.jsx(Ob,{className:"size-3"})})]}),h?u.jsx("div",{className:"mt-1.5 truncate text-[10px] text-destructive",children:h}):null]})]}):null,y?u.jsx(p9,{confirmLabel:x==="add"?"Add Git project":"Use this folder",errorMessage:x==="add"?h:null,initialPath:x==="add"?n.git.cwd:f||n.git.cwd,selectedPath:S,title:x==="add"?"Add Git Project":"Choose Git Project Folder",onCancel:()=>p(!1),onSelect:j,onUse:async()=>{x==="add"?await X(S)&&(p(!1),r(!1)):(d(S),g(null),p(!1))}}):null]})}function m9(n){return n.startsWith("/")}function p9({confirmLabel:n="Use this folder",errorMessage:s,initialPath:l,onCancel:r,onSelect:f,onUse:d,selectedPath:h,title:g="Choose Git Project Folder"}){return m2.createPortal(u.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",children:u.jsxs("div",{className:"w-full max-w-2xl rounded-xl border border-border bg-card p-4 shadow-xl",children:[u.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[u.jsx("div",{className:"flex size-8 items-center justify-center rounded-lg border border-border bg-background",children:u.jsx(Df,{className:"size-4"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("div",{className:"text-sm font-semibold",children:g}),u.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:h})]}),u.jsx(ge,{"aria-label":"Close folder picker",onClick:r,size:"icon",variant:"ghost",children:u.jsx(so,{})})]}),u.jsx(f9,{initialPath:l,onSelect:f,selectedPath:h}),s?u.jsx("div",{className:"mt-3 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:s}):null,u.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[u.jsx(ge,{onClick:r,type:"button",variant:"outline",children:"Cancel"}),u.jsx(ge,{onClick:()=>{d()},type:"button",children:n})]})]})}),document.body)}function g9({branches:n,currentBranch:s,disabled:l,onRefresh:r}){const[f,d]=E.useState(!1),[h,g]=E.useState(""),[y,p]=E.useState(null),[x,b]=E.useState(null),[S,j]=E.useState(null),T=n.filter(X=>!X.remote),M=n.filter(X=>X.remote);async function O(X,Z){p(X),j(null),b(null);try{await Z(),await r()}catch(J){j(J instanceof Error?J.message:String(J))}finally{p(null)}}async function B(X){await O(`switch:${X}`,async()=>{await an("/api/git/branches/switch",{name:X}),d(!1)})}async function q(){await O("fetch",async()=>{await an("/api/git/fetch",{}),b("Fetched latest branch refs.")})}async function Y(X){X.preventDefault();const Z=h.trim();if(!Z){j("Branch name is required.");return}await O("create",async()=>{await an("/api/git/branches",{name:Z}),g(""),d(!1)})}return u.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[f?u.jsxs("div",{"aria-label":"Switch Git branch",className:"mb-11 w-[min(460px,calc(100vw-2rem))] rounded-lg border border-border bg-card shadow-xl",role:"dialog",children:[u.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border p-3",children:[u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[u.jsx(Xr,{className:"size-4 text-muted-foreground"}),u.jsx("span",{className:"truncate text-sm font-semibold",children:s||"Branches"})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.jsx(ge,{"aria-label":"Fetch branches",disabled:l||y!==null,onClick:()=>{q()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:u.jsx(og,{className:fe(y==="fetch"&&"animate-spin")})}),u.jsx(ge,{"aria-label":"Close branch dialog",onClick:()=>d(!1),size:"icon",type:"button",variant:"ghost",children:u.jsx(so,{})})]})]}),u.jsx("div",{className:"max-h-72 overflow-auto",children:n.length?u.jsxs(u.Fragment,{children:[u.jsx(W1,{branches:T,busy:y!==null,disabled:l,label:"Local",onSwitch:B}),u.jsx(W1,{branches:M,busy:y!==null,disabled:l,label:"Remote",onSwitch:B})]}):u.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No branches found."})}),u.jsxs("div",{className:"border-t border-border p-3",children:[u.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:Y,children:[u.jsx(gt,{"aria-label":"New branch name",disabled:l||y!==null,onChange:X=>{g(X.target.value),j(null),b(null)},placeholder:"feature/new-work",value:h}),u.jsxs(ge,{disabled:l||y!==null,type:"submit",children:[u.jsx(qb,{}),"Create"]})]}),S||x?u.jsx(ln,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??x}):null]})]}):null,u.jsxs(ge,{className:"h-8 max-w-[260px] gap-2 rounded-md shadow-lg",disabled:l,onClick:()=>d(X=>!X),size:"sm",title:"Switch Git branch",type:"button",variant:"default",children:[u.jsx(Xr,{className:"size-4"}),u.jsx("span",{className:"truncate font-mono text-xs",children:s||"No branch"}),u.jsx(Zs,{className:fe("size-4 transition-transform",f&&"rotate-180")})]})]})}function W1({branches:n,busy:s,disabled:l,label:r,onSwitch:f}){return u.jsxs("section",{children:[u.jsx("div",{className:"border-b border-border bg-muted/60 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:r}),n.length?n.map(d=>u.jsxs("button",{className:fe("grid w-full grid-cols-[1fr_auto] items-center gap-2 border-b border-border px-3 py-2 text-left text-sm last:border-b-0 hover:bg-muted",d.current&&"bg-muted/70"),disabled:l||s||d.current,onClick:()=>{f(d.name)},type:"button",children:[u.jsxs("span",{className:"min-w-0",children:[u.jsx("span",{className:"block truncate font-medium",children:d.name}),d.upstream?u.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",d.upstream]}):null]}),u.jsx(Ge,{variant:d.current?"success":d.remote?"outline":"secondary",children:d.current?"current":d.remote?"remote":"local"})]},`${d.remote?"remote":"local"}:${d.name}`)):u.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",r.toLowerCase()," branches."]})]})}function y9({className:n}){return u.jsxs("div",{className:fe("min-w-0",n),children:[u.jsxs("div",{className:"flex items-baseline gap-1.5",children:[u.jsx("div",{className:"text-sm font-semibold",children:"NoMoreIDE"}),u.jsxs("div",{className:"font-mono text-[10px] text-muted-foreground",children:["v","0.1.17"]})]}),u.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]})}function x9(){const[n,s]=E.useState(()=>window.location.pathname.startsWith("/agent")?"agent":window.location.pathname.startsWith("/git")?"git":"services"),[l,r]=E.useState(null),[f,d]=E.useState(null),[h,g]=E.useState(!0),{error:y,success:p}=Aa(),[x,b]=E.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=E.useCallback(async(T={})=>{T.silent||g(!0),d(null);try{r(await D3()),T.notify&&p("Dashboard refreshed.")}catch(M){const O=M instanceof Error?M.message:String(M);d(O),y(O)}finally{g(!1)}},[y,p]);E.useEffect(()=>{S()},[S]),E.useEffect(()=>{function T(){document.visibilityState==="visible"&&S({silent:!0})}const M=window.setInterval(T,5e3);return window.addEventListener("focus",T),document.addEventListener("visibilitychange",T),()=>{window.clearInterval(M),window.removeEventListener("focus",T),document.removeEventListener("visibilitychange",T)}},[n,S]),E.useEffect(()=>{const T=n==="git"?"/git":n==="agent"?"/agent":"/";window.location.pathname!==T&&window.history.pushState(null,"",T)},[n]),E.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",x?"collapsed":"expanded")},[x]);const j=E.useMemo(()=>l?Object.values(l.runtime.services).filter(T=>T.state==="running").length:0,[l]);return u.jsxs("div",{className:"h-screen overflow-hidden",children:[u.jsxs("div",{className:"mx-auto flex h-screen max-w-[1500px]",children:[u.jsxs("aside",{className:fe("hidden h-screen shrink-0 overflow-auto border-r border-border bg-card/85 px-4 py-5 backdrop-blur transition-[width] duration-200 md:block",x?"w-[76px]":"w-64"),children:[u.jsxs("div",{className:fe("flex items-center px-2",x?"justify-center":"gap-3"),children:[u.jsx("div",{className:"flex size-9 items-center justify-center overflow-hidden rounded-md bg-primary",children:u.jsx("img",{alt:"NoMoreIDE",className:"size-full object-cover",src:z3})}),u.jsx(y9,{className:fe(x&&"hidden")}),u.jsx(ge,{"aria-label":x?"Expand navigation":"Collapse navigation",className:fe("ml-auto",x&&"hidden"),size:"icon",variant:"ghost",onClick:()=>b(T=>!T),children:u.jsx(e3,{})})]}),u.jsx("div",{className:fe("mt-4",!x&&"hidden"),children:u.jsx(ge,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>b(T=>!T),children:u.jsx(n3,{})})}),u.jsxs("nav",{className:"mt-5 grid gap-1",children:[u.jsx(nf,{active:n==="services",badge:j,collapsed:x,icon:u.jsx(b3,{}),label:"Services",onClick:()=>s("services")}),u.jsx(nf,{active:n==="git",collapsed:x,icon:u.jsx(Xr,{}),label:"Git Review",onClick:()=>s("git")}),u.jsx(nf,{active:n==="agent",collapsed:x,icon:u.jsx(Ii,{}),label:"Agent",onClick:()=>s("agent")})]})]}),u.jsxs("main",{className:"flex h-screen min-w-0 flex-1 flex-col px-0 py-0",children:[u.jsxs("header",{className:fe("relative z-40 flex shrink-0 flex-wrap items-center justify-between gap-3 border border-border bg-card/90 px-4 py-3 backdrop-blur","border-x-0 border-t-0 border-b"),children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(s3,{className:"size-4 text-muted-foreground md:hidden"}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:n==="git"?"Git Review":n==="agent"?"Agent":"Services"}),u.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l?.git.selectedRepository?.name??l?.git.cwd??"Local workspace"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[f?u.jsx(Ge,{variant:"danger",children:f}):null,l&&n==="git"?u.jsx(h9,{data:l,onRefresh:S}):null,u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[u.jsx(og,{className:fe(h&&"animate-spin")}),"Refresh"]})]})]}),h&&!l?u.jsx(ln,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,u.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&n==="services"?u.jsx(Bj,{data:l,onRefresh:S}):null,l&&n==="git"?u.jsx(u9,{data:l}):null,n==="agent"?u.jsx(E7,{}):null]})]})]}),l&&n==="git"?u.jsx(g9,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function nf({active:n,badge:s,collapsed:l,icon:r,label:f,onClick:d}){return u.jsxs(ge,{"aria-label":f,title:l?f:void 0,className:fe("w-full",l?"relative justify-center px-0":"justify-start"),variant:n?"default":"ghost",onClick:d,type:"button",children:[u.jsx("span",{className:fe(l&&"[&_svg]:size-4"),children:r}),u.jsx("span",{className:fe("min-w-0 flex-1 text-left",l&&"hidden"),children:f}),s!==void 0?u.jsx(Ge,{appearance:s>0?"solid":"outline",className:fe("min-w-6 justify-center px-1.5 font-mono shadow-none",n?"border-primary-foreground/40 bg-primary-foreground/15 text-primary-foreground":s>0?"":"border-border bg-background text-muted-foreground",l&&"absolute right-1.5 top-1.5 h-4 min-w-4 rounded-full px-1 text-[10px] leading-none shadow-none"),size:"small",variant:s>0?"success":"outline",children:s}):null]})}eg.createRoot(document.getElementById("root")).render(u.jsx(E.StrictMode,{children:u.jsx(x9,{})}));
|