nomoreide 0.1.18 → 0.1.19
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/core/git-graph-layout.d.ts +34 -0
- package/dist/core/git-graph-layout.js +94 -0
- package/dist/core/git-graph-layout.js.map +1 -0
- package/dist/core/git-manager.d.ts +32 -0
- package/dist/core/git-manager.js +158 -0
- package/dist/core/git-manager.js.map +1 -1
- package/dist/web/client/assets/index-CZxkTcFO.js +23 -0
- package/dist/web/client/assets/index-Di8-pWM4.css +1 -0
- package/dist/web/client/index.html +2 -2
- package/dist/web/server.js +75 -0
- package/dist/web/server.js.map +1 -1
- package/package.json +2 -1
- package/dist/web/client/assets/index-CuB3Yvp-.css +0 -1
- package/dist/web/client/assets/index-D0nvtIvN.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 d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=l(d);fetch(d.href,f)}})();var Cu={exports:{}},Gi={};var u1;function $v(){if(u1)return Gi;u1=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(r,d,f){var h=null;if(f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),"key"in d){f={};for(var p in d)p!=="key"&&(f[p]=d[p])}else f=d;return d=f.ref,{$$typeof:n,type:r,key:h,ref:d!==void 0?d:null,props:f}}return Gi.Fragment=s,Gi.jsx=l,Gi.jsxs=l,Gi}var d1;function Jv(){return d1||(d1=1,Cu.exports=$v()),Cu.exports}var u=Jv(),Mu={exports:{}},pe={};var f1;function Wv(){if(f1)return pe;f1=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=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(){}},E=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,E(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 fe(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 fe(N.type,H,N.props)}function F(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function ce(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?ce(""+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 k(N,H,I,te,re){var de=typeof N;(de==="undefined"||de==="boolean")&&(N=null);var Me=!1;if(N===null)Me=!0;else switch(de){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,k(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,"$&/")+"/"),k(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],de=it+be(te,Se),Me+=k(te,H,I,de,re);else if(Se=j(N),typeof Se=="function")for(N=Se.call(N),Se=0;!(te=N.next()).done;)te=te.value,de=it+be(te,Se++),Me+=k(te,H,I,de,re);else if(de==="object"){if(typeof N.then=="function")return k(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 k(N,te,"","",function(de){return H.call(I,de,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=d,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=E({},N.props),re=N.key;if(H!=null)for(de in H.key!==void 0&&(re=""+H.key),H)!L.call(H,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&H.ref===void 0||(te[de]=H[de]);var de=arguments.length-2;if(de===1)te.children=I;else if(1<de){for(var Me=Array(de),it=0;it<de;it++)Me[it]=arguments[it+2];te.children=Me}return fe(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:f,_context:N},N},pe.createElement=function(N,H,I){var te,re={},de=null;if(H!=null)for(te in H.key!==void 0&&(de=""+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 fe(N,de,re)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(N){return{$$typeof:p,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:g,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(de){P(de)}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 h1;function Ed(){return h1||(h1=1,Mu.exports=Wv()),Mu.exports}var M=Ed(),Eu={exports:{}},Yi={},zu={exports:{}},ku={};var m1;function Iv(){return m1||(m1=1,(function(n){function s(k,K){var W=k.length;k.push(K);e:for(;0<W;){var P=W-1>>>1,Q=k[P];if(0<d(Q,K))k[P]=K,k[W]=Q,W=P;else break e}}function l(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var K=k[0],W=k.pop();if(W!==K){k[0]=W;e:for(var P=0,Q=k.length,N=Q>>>1;P<N;){var H=2*(P+1)-1,I=k[H],te=H+1,re=k[te];if(0>d(I,W))te<Q&&0>d(re,I)?(k[P]=re,k[te]=W,P=te):(k[P]=I,k[H]=W,P=H);else if(te<Q&&0>d(re,W))k[P]=re,k[te]=W,P=te;else break e}}return K}function d(k,K){var W=k.sortIndex-K.sortIndex;return W!==0?W:k.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();n.unstable_now=function(){return h.now()-p}}var y=[],g=[],x=1,b=null,S=3,j=!1,T=!1,E=!1,O=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(k){for(var K=l(g);K!==null;){if(K.callback===null)r(g);else if(K.startTime<=k)r(g),K.sortIndex=K.expirationTime,s(y,K);else break;K=l(g)}}function Z(k){if(E=!1,X(k),!T)if(l(y)!==null)T=!0,J||(J=!0,ce());else{var K=l(g);K!==null&&ye(Z,K.startTime-k)}}var J=!1,$=-1,L=5,fe=-1;function le(){return O?!0:!(n.unstable_now()-fe<L)}function F(){if(O=!1,J){var k=n.unstable_now();fe=k;var K=!0;try{e:{T=!1,E&&(E=!1,q($),$=-1),j=!0;var W=S;try{t:{for(X(k),b=l(y);b!==null&&!(b.expirationTime>k&&le());){var P=b.callback;if(typeof P=="function"){b.callback=null,S=b.priorityLevel;var Q=P(b.expirationTime<=k);if(k=n.unstable_now(),typeof Q=="function"){b.callback=Q,X(k),K=!0;break t}b===l(y)&&r(y),X(k)}else r(y);b=l(y)}if(b!==null)K=!0;else{var N=l(g);N!==null&&ye(Z,N.startTime-k),K=!1}}break e}finally{b=null,S=W,j=!1}K=void 0}}finally{K?ce():J=!1}}}var ce;if(typeof Y=="function")ce=function(){Y(F)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,be=we.port2;we.port1.onmessage=F,ce=function(){be.postMessage(null)}}else ce=function(){B(F,0)};function ye(k,K){$=B(function(){k(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(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var W=S;S=K;try{return k()}finally{S=W}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var W=S;S=k;try{return K()}finally{S=W}},n.unstable_scheduleCallback=function(k,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,k){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,k={id:x++,callback:K,priorityLevel:k,startTime:W,expirationTime:Q,sortIndex:-1},W>P?(k.sortIndex=W,s(g,k),l(y)===null&&k===l(g)&&(E?(q($),$=-1):E=!0,ye(Z,W-P))):(k.sortIndex=Q,s(y,k),T||j||(T=!0,J||(J=!0,ce()))),k},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(k){var K=S;return function(){var W=S;S=K;try{return k.apply(this,arguments)}finally{S=W}}}})(ku)),ku}var p1;function eb(){return p1||(p1=1,zu.exports=Iv()),zu.exports}var Du={exports:{}},pt={};var g1;function tb(){if(g1)return pt;g1=1;var n=Ed();function s(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" 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},d=Symbol.for("react.portal");function f(y,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:b==null?null:""+b,children:y,containerInfo:g,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pt.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return f(y,g,null,x)},pt.flushSync=function(y){var g=h.T,x=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=g,r.p=x,r.d.f()}},pt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},pt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},pt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,b=p(x,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:j}):x==="script"&&r.d.X(y,{crossOrigin:b,integrity:S,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},pt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=p(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},pt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=p(x,g.crossOrigin);r.d.L(y,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},pt.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=p(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},pt.requestFormReset=function(y){r.d.r(y)},pt.unstable_batchedUpdates=function(y,g){return y(g)},pt.useFormState=function(y,g,x){return h.H.useFormState(y,g,x)},pt.useFormStatus=function(){return h.H.useHostTransitionStatus()},pt.version="19.2.6",pt}var y1;function tg(){if(y1)return Du.exports;y1=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(),Du.exports=tb(),Du.exports}var x1;function nb(){if(x1)return Yi;x1=1;var n=eb(),s=Ed(),l=tg();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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 p(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(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(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"),E=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"),fe=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ce(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 E:return"Fragment";case B:return"Profiler";case O:return"StrictMode";case Z:return"Suspense";case J:return"SuspenseList";case fe: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,k=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),de=N(null),Me=N(null);function it(e,t){switch(I(de,t),I(re,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?R0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=R0(t),e=V0(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(de)}function Zn(e){e.memoizedState!==null&&I(Me,e);var t=te.current,a=V0(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),Bi._currentValue=W)}var Qn,es;function Xt(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
|
-
`),D=v.split(`
|
|
5
|
-
`);for(o=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(i===w.length||o===D.length)for(i=w.length-1,o=D.length-1;1<=i&&0<=o&&w[i]!==D[o];)o--;for(;1<=i&&0<=o;i--,o--)if(w[i]!==D[o]){if(i!==1||o!==1)do if(i--,o--,0>o||w[i]!==D[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:"")?Xt(a):""}function Cy(e,t){switch(e.tag){case 26:case 27:case 5:return Xt(e.type);case 16:return Xt("Lazy");case 13:return e.child!==t&&t!==null?Xt("Suspense Fallback"):Xt("Suspense");case 19:return Xt("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 Xt("Activity");default:return""}}function uf(e){try{var t="",a=null;do t+=Cy(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,My=n.unstable_shouldYield,Ey=n.unstable_requestPaint,Et=n.unstable_now,zy=n.unstable_getCurrentPriorityLevel,df=n.unstable_ImmediatePriority,ff=n.unstable_UserBlockingPriority,dl=n.unstable_NormalPriority,ky=n.unstable_LowPriority,hf=n.unstable_IdlePriority,Dy=n.log,Ry=n.unstable_setDisableYieldValue,$s=null,zt=null;function Kn(e){if(typeof Dy=="function"&&Ry(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode($s,e)}catch{}}var kt=Math.clz32?Math.clz32:_y,Vy=Math.log,Oy=Math.LN2;function _y(e){return e>>>=0,e===0?32:31-(Vy(e)/Oy|0)|0}var fl=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 Js(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ly(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 mf(){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 Ws(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function By(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,D=e.hiddenUpdates;for(a=m&~a;0<a;){var _=31-kt(a),G=1<<_;v[_]=0,w[_]=-1;var R=D[_];if(R!==null)for(D[_]=null,_=0;_<R.length;_++){var V=R[_];V!==null&&(V.lane&=-536870913)}a&=~G}i!==0&&pf(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function pf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-kt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function gf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-kt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function yf(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 xf(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:a1(e.type))}function vf(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,Uy="__reactListeners$"+Fn,Hy="__reactHandles$"+Fn,bf="__reactResources$"+Fn,Is="__reactMarker$"+Fn;function vo(e){delete e[ot],delete e[bt],delete e[xo],delete e[Uy],delete e[Hy]}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=q0(e);e!==null;){if(a=e[ot])return a;e=q0(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 ei(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[bf];return t||(t=e[bf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Is]=!0}var Sf=new Set,jf={};function Ma(e,t){is(e,t),is(e+"Capture",t)}function is(e,t){for(jf[e]=t,e=0;e<t.length;e++)Sf.add(t[e])}var qy=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]*$"),wf={},Tf={};function Gy(e){return fo.call(Tf,e)?!0:fo.call(wf,e)?!1:qy.test(e)?Tf[e]=!0:(wf[e]=!0,!1)}function gl(e,t,a){if(Gy(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 Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yy(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=Nf(e)?"checked":"value";e._valueTracker=Yy(e,t,""+e[t])}}function Af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Nf(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 Xy=/[\n"\\]/g;function Qt(e){return e.replace(Xy,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=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?jo(e,m,Zt(t)):a!=null?jo(e,m,Zt(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=""+Zt(v):e.removeAttribute("name")}function Cf(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?""+Zt(a):"",t=t!=null?""+Zt(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=""+Zt(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 Mf(e,t,a){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Zt(a):""}function Ef(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=Zt(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 Zy=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 zf(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||Zy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function kf(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&&zf(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&zf(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 Qy=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"]]),Ky=/^[\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 Ky.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 Df(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="'+Qt(""+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&&Af(i)}break e;case"textarea":Mf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ls(e,!!a.multiple,t,!1)}}}var Ao=!1;function Rf(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,Df(t),e)))for(t=0;t<e.length;t++)Df(e[t])}}function ti(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 ni={};Object.defineProperty(ni,"passive",{get:function(){Co=!0}}),window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{Co=!1}var Pn=null,Mo=null,bl=null;function Vf(){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 Of(){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:Of,this.isPropagationStopped=Of,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),ai=b({},Ea,{view:0,detail:0}),Fy=St(ai),Eo,zo,si,Tl=b({},ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==si&&(si&&e.type==="mousemove"?(Eo=e.screenX-si.screenX,zo=e.screenY-si.screenY):zo=Eo=0,si=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),_f=St(Tl),Py=b({},Tl,{dataTransfer:0}),$y=St(Py),Jy=b({},ai,{relatedTarget:0}),ko=St(Jy),Wy=b({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=St(Wy),ex=b({},Ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tx=St(ex),nx=b({},Ea,{data:0}),Lf=St(nx),ax={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sx={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"},ix={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ix[e])?!!t[e]:!1}function Do(){return lx}var rx=b({},ai,{key:function(e){if(e.key){var t=ax[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"?sx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,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}}),ox=St(rx),cx=b({},Tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bf=St(cx),ux=b({},ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),dx=St(ux),fx=b({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),hx=St(fx),mx=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}),px=St(mx),gx=b({},Ea,{newState:0,oldState:0}),yx=St(gx),xx=[9,13,27,32],Ro=Mn&&"CompositionEvent"in window,ii=null;Mn&&"documentMode"in document&&(ii=document.documentMode);var vx=Mn&&"TextEvent"in window&&!ii,Uf=Mn&&(!Ro||ii&&8<ii&&11>=ii),Hf=" ",qf=!1;function Gf(e,t){switch(e){case"keyup":return xx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var us=!1;function bx(e,t){switch(e){case"compositionend":return Yf(t);case"keypress":return t.which!==32?null:(qf=!0,Hf);case"textInput":return e=t.data,e===Hf&&qf?null:e;default:return null}}function Sx(e,t){if(us)return e==="compositionend"||!Ro&&Gf(e,t)?(e=Vf(),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 Uf&&t.locale!=="ko"?null:t.data;default:return null}}var jx={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 Xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jx[e.type]:t==="textarea"}function Zf(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 li=null,ri=null;function wx(e){C0(e,0)}function Nl(e){var t=ei(e);if(Af(t))return e}function Qf(e,t){if(e==="change")return t}var Kf=!1;if(Mn){var Vo;if(Mn){var Oo="oninput"in document;if(!Oo){var Ff=document.createElement("div");Ff.setAttribute("oninput","return;"),Oo=typeof Ff.oninput=="function"}Vo=Oo}else Vo=!1;Kf=Vo&&(!document.documentMode||9<document.documentMode)}function Pf(){li&&(li.detachEvent("onpropertychange",$f),ri=li=null)}function $f(e){if(e.propertyName==="value"&&Nl(ri)){var t=[];Zf(t,ri,e,No(e)),Rf(wx,t)}}function Tx(e,t,a){e==="focusin"?(Pf(),li=t,ri=a,li.attachEvent("onpropertychange",$f)):e==="focusout"&&Pf()}function Nx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(ri)}function Ax(e,t){if(e==="click")return Nl(t)}function Cx(e,t){if(e==="input"||e==="change")return Nl(t)}function Mx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:Mx;function oi(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 Jf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wf(e,t){var a=Jf(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=Jf(a)}}function If(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?If(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eh(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 Ex=Mn&&"documentMode"in document&&11>=document.documentMode,ds=null,Lo=null,ci=null,Bo=!1;function th(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bo||ds==null||ds!==xl(i)||(i=ds,"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}),ci&&oi(ci,i)||(ci=i,i=hr(Lo,"onSelect"),0<i.length&&(t=new wl("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ds)))}function za(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fs={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={},nh={};Mn&&(nh=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);function ka(e){if(Uo[e])return Uo[e];if(!fs[e])return e;var t=fs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in nh)return Uo[e]=t[a];return e}var ah=ka("animationend"),sh=ka("animationiteration"),ih=ka("animationstart"),zx=ka("transitionrun"),kx=ka("transitionstart"),Dx=ka("transitioncancel"),lh=ka("transitionend"),rh=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){rh.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)},Kt=[],hs=0,qo=0;function Cl(){for(var e=hs,t=qo=hs=0;t<e;){var a=Kt[t];Kt[t++]=null;var i=Kt[t];Kt[t++]=null;var o=Kt[t];Kt[t++]=null;var c=Kt[t];if(Kt[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&&oh(a,o,c)}}function Ml(e,t,a,i){Kt[hs++]=e,Kt[hs++]=t,Kt[hs++]=a,Kt[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 Da(e,t){return Ml(e,null,null,t),El(e)}function oh(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-kt(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<ki)throw ki=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 Rx(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 Rt(e,t,a,i){return new Rx(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=Rt(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 ch(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=Bv(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Rt(31,a,t,o),e.elementType=fe,e.lanes=c,e;case E:return Ra(a.children,o,c,t);case O:m=8,o|=24;break;case B:return e=Rt(12,a,t,o|2),e.elementType=B,e.lanes=c,e;case Z:return e=Rt(13,a,t,o),e.elementType=Z,e.lanes=c,e;case J:return e=Rt(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=Rt(m,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Ra(e,t,a,i){return e=Rt(7,e,i,t),e.lanes=a,e}function Xo(e,t,a){return e=Rt(6,e,null,t),e.lanes=a,e}function uh(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function Zo(e,t,a){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dh=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var a=dh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:uf(t)},dh.set(e,t),t)}return{value:e,source:t,stack:uf(t)}}var ps=[],gs=0,kl=null,ui=0,Pt=[],$t=0,$n=null,gn=1,yn="";function zn(e,t){ps[gs++]=ui,ps[gs++]=kl,kl=e,ui=t}function fh(e,t,a){Pt[$t++]=gn,Pt[$t++]=yn,Pt[$t++]=$n,$n=e;var i=gn;e=yn;var o=32-kt(i)-1;i&=~(1<<o),a+=1;var c=32-kt(t)+o;if(30<c){var m=o-o%5;c=(i&(1<<m)-1).toString(32),i>>=m,o-=m,gn=1<<32-kt(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===kl;)kl=ps[--gs],ps[gs]=null,ui=ps[--gs],ps[gs]=null;for(;e===$n;)$n=Pt[--$t],Pt[$t]=null,yn=Pt[--$t],Pt[$t]=null,gn=Pt[--$t],Pt[$t]=null}function hh(e,t){Pt[$t++]=gn,Pt[$t++]=yn,Pt[$t++]=$n,gn=t.id,yn=t.overflow,$n=e}var ct=null,qe=null,Ee=!1,Jn=null,Jt=!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 di(Ft(t,e)),Fo}function mh(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<Ri.length;a++)Ne(Ri[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),Cf(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),Ef(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||k0(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 ph(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:ct=ct.return}}function ys(e){if(e!==ct)return!1;if(!Ee)return ph(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")||fu(e.type,e.memoizedProps)),a=!a),a&&qe&&Wn(e),ph(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=H0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=H0(e)}else t===27?(t=qe,fa(e.type)?(e=yu,yu=null,qe=e):qe=t):qe=ct?It(e.stateNode.nextSibling):null;return!0}function Va(){qe=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 di(e){Jn===null?Jn=[e]:Jn.push(e)}var $o=N(null),Oa=null,kn=null;function In(e,t,a){I($o,t._currentValue),t._currentValue=a}function Dn(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(Bi):e=[Bi])}o=o.return}e!==null&&Wo(t,e,a,i),t.flags|=262144}function Dl(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,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return gh(Oa,e)}function Rl(e,t){return Oa===null&&_a(e),gh(e,t)}function gh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},kn===null){if(e===null)throw Error(r(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return a}var Vx=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()})}},Ox=n.unstable_scheduleCallback,_x=n.unstable_NormalPriority,$e={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Vx,data:new Map,refCount:0}}function fi(e){e.refCount--,e.refCount===0&&Ox(_x,function(){e.controller.abort()})}var hi=null,ec=0,vs=0,bs=null;function Lx(e,t){if(hi===null){var a=hi=[];ec=0,vs=au(),bs={status:"pending",value:void 0,then:function(i){a.push(i)}}}return ec++,t.then(yh,yh),t}function yh(){if(--ec===0&&hi!==null){bs!==null&&(bs.status="fulfilled");var e=hi;hi=null,vs=0,bs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bx(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 xh=k.S;k.S=function(e,t){t0=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lx(e,t),xh!==null&&xh(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 vh(){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 bh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Sh(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,wh(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,wh(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 jh(){if(Ua===null)throw Error(r(459));var e=Ua;return Ua=null,e}function wh(e){if(e===Ss||e===Ol)throw Error(r(483))}var js=null,mi=0;function Ll(e){var t=mi;return mi+=1,js===null&&(js=[]),Sh(js,e,t)}function pi(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 Th(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 ue=z.type;return ue===E?_(C,A,z.props.children,U,z.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===L&&Ba(ue)===A.type)?(A=o(A,z.props),pi(A,z),A.return=C,A):(A=zl(z.type,z.key,z.props,null,C.mode,U),pi(A,z),A.return=C,A)}function D(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,ue){return A===null||A.tag!==7?(A=Ra(z,C.mode,U,ue),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),pi(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)||ce(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 ue=A!==null?A.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ue!==null?null:v(C,A,""+z,U);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===ue?w(C,A,z,U):null;case T:return z.key===ue?D(C,A,z,U):null;case L:return z=Ba(z),R(C,A,z,U)}if(ye(z)||ce(z))return ue!==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,ue){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(z)||null,v(A,C,""+U,ue);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,ue);case T:return C=C.get(U.key===null?z:U.key)||null,D(A,C,U,ue);case L:return U=Ba(U),V(C,A,z,U,ue)}if(ye(U)||ce(U))return C=C.get(z)||null,_(A,C,U,ue,null);if(typeof U.then=="function")return V(C,A,z,Ll(U),ue);if(U.$$typeof===Y)return V(C,A,z,Rl(A,U),ue);Bl(A,U)}return null}function ae(C,A,z,U){for(var ue=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 ke=R(C,ie,z[ve],U);if(ke===null){ie===null&&(ie=Ce);break}e&&ie&&ke.alternate===null&&t(C,ie),A=c(ke,A,ve),ze===null?ue=ke:ze.sibling=ke,ze=ke,ie=Ce}if(ve===z.length)return a(C,ie),Ee&&zn(C,ve),ue;if(ie===null){for(;ve<z.length;ve++)ie=G(C,z[ve],U),ie!==null&&(A=c(ie,A,ve),ze===null?ue=ie:ze.sibling=ie,ze=ie);return Ee&&zn(C,ve),ue}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?ue=Ce:ze.sibling=Ce,ze=Ce);return e&&ie.forEach(function(ya){return t(C,ya)}),Ee&&zn(C,ve),ue}function he(C,A,z,U){if(z==null)throw Error(r(151));for(var ue=null,ze=null,ie=A,ve=A=0,Ce=null,ke=z.next();ie!==null&&!ke.done;ve++,ke=z.next()){ie.index>ve?(Ce=ie,ie=null):Ce=ie.sibling;var ya=R(C,ie,ke.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?ue=ya:ze.sibling=ya,ze=ya,ie=Ce}if(ke.done)return a(C,ie),Ee&&zn(C,ve),ue;if(ie===null){for(;!ke.done;ve++,ke=z.next())ke=G(C,ke.value,U),ke!==null&&(A=c(ke,A,ve),ze===null?ue=ke:ze.sibling=ke,ze=ke);return Ee&&zn(C,ve),ue}for(ie=i(ie);!ke.done;ve++,ke=z.next())ke=V(ie,C,ve,ke.value,U),ke!==null&&(e&&ke.alternate!==null&&ie.delete(ke.key===null?ve:ke.key),A=c(ke,A,ve),ze===null?ue=ke:ze.sibling=ke,ze=ke);return e&&ie.forEach(function(Pv){return t(C,Pv)}),Ee&&zn(C,ve),ue}function Le(C,A,z,U){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:e:{for(var ue=z.key;A!==null;){if(A.key===ue){if(ue=z.type,ue===E){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===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===L&&Ba(ue)===A.type){a(C,A.sibling),U=o(A,z.props),pi(U,z),U.return=C,C=U;break e}a(C,A);break}else t(C,A);A=A.sibling}z.type===E?(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),pi(U,z),U.return=C,C=U)}return m(C);case T:e:{for(ue=z.key;A!==null;){if(A.key===ue)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(ce(z)){if(ue=ce(z),typeof ue!="function")throw Error(r(150));return z=ue.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{mi=0;var ue=Le(C,A,z,U);return js=null,ue}catch(ie){if(ie===Ss||ie===Ol)throw ie;var ze=Rt(29,ie,null,C.mode);return ze.lanes=U,ze.return=C,ze}}}var Ha=Th(!0),Nh=Th(!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,(De&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),oh(e,null,a),t}return Ml(e,i,t,a),El(e)}function gi(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,gf(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 yi(){if(lc){var e=bs;if(e!==null)throw e}}function xi(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,D=w.next;w.next=null,m===null?c=D:m.next=D,m=w;var _=e.alternate;_!==null&&(_=_.updateQueue,v=_.lastBaseUpdate,v!==m&&(v===null?_.firstBaseUpdate=D:v.next=D,_.lastBaseUpdate=w))}if(c!==null){var G=o.baseState;m=0,_=D=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?(D=_=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=D,o.lastBaseUpdate=_,c===null&&(o.shared.lanes=0),ra|=m,e.lanes=m,e.memoizedState=G}}function Ah(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ch(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ah(a[e],t)}var ws=N(null),Ul=N(0);function Mh(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 Vt=N(null),Wt=null;function aa(e){var t=e.alternate;I(Fe,Fe.current&1),I(Vt,e),Wt===null&&(t===null||ws.current!==null||t.memoizedState!==null)&&(Wt=e)}function cc(e){I(Fe,Fe.current),I(Vt,e),Wt===null&&(Wt=e)}function Eh(e){e.tag===22?(I(Fe,Fe.current),I(Vt,e),Wt===null&&(Wt=e)):sa()}function sa(){I(Fe,Fe.current),I(Vt,Vt.current)}function Ot(e){H(Vt),Wt===e&&(Wt=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,vi=0,Ns=null,Ux=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 dc(e,t,a,i,o,c){return Rn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?fm:Ac,qa=!1,c=a(i,o),qa=!1,Ts&&(c=kh(t,a,i,o)),zh(e),c}function zh(e){k.H=ji;var t=Oe!==null&&Oe.next!==null;if(Rn=0,Je=Oe=xe=null,ql=!1,vi=0,Ns=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&Dl(e)&&(We=!0))}function kh(e,t,a,i){xe=e;var o=0;do{if(Ts&&(Ns=null),vi=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)}k.H=hm,c=t(a,i)}while(Ts);return c}function Hx(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(xe.flags|=1024),t}function fc(){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,vi=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 bi(e){var t=vi;return vi+=1,Ns===null&&(Ns=[]),e=Sh(Ns,e,t),t=xe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?fm:Ac),e}function Xl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(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,D=t,_=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Ae&G)===G:(Rn&G)===G){var R=D.revertLane;if(R===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===vs&&(_=!0);else if((Rn&R)===R){D=D.next,R===vs&&(_=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(v=w=G,m=c):w=w.next=G,xe.lanes|=R,ra|=R;G=D.action,qa&&a(c,G),c=D.hasEagerState?D.eagerState:a(c,G)}else R={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(v=w=R,m=c):w=w.next=R,xe.lanes|=G,ra|=G;D=D.next}while(D!==null&&D!==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(Oh.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},Vh.bind(null,i,o,a,t),null),Be===null)throw Error(r(349));c||(Rn&127)!==0||Rh(i,t,a)}return a}function Rh(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 Vh(e,t,a,i){t.value=a,t.getSnapshot=i,_h(t)&&Lh(e)}function Oh(e,t,a){return a(function(){_h(t)&&Lh(e)})}function _h(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Dt(e,a)}catch{return!0}}function Lh(e){var t=Da(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 Bh(e,t,a,i){return e.baseState=a,gc(e,Oe,typeof i=="function"?i:Vn)}function qx(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)}};k.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Uh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Uh(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=k.T,m={};k.T=m;try{var v=a(o,i),w=k.S;w!==null&&w(m,v),Hh(e,t,v)}catch(D){vc(e,t,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),k.T=c}}else try{c=a(o,i),Hh(e,t,c)}catch(D){vc(e,t,D)}}function Hh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){qh(e,t,i)},function(i){return vc(e,t,i)}):qh(e,t,a)}function qh(e,t,a){t.status="fulfilled",t.value=a,Gh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Uh(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,Gh(t),t=t.next;while(t!==i)}e.action=null}function Gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yh(e,t){return t}function Xh(e,t){if(Ee){var a=Be.formState;if(a!==null){e:{var i=xe;if(Ee){if(qe){t:{for(var o=qe,c=Jt;o.nodeType!==8;){if(!c){o=null;break t}if(o=It(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){qe=It(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:Yh,lastRenderedState:t},a.queue=i,a=cm.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=qx.bind(null,xe,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Zh(e){var t=Pe();return Qh(t,Oe,e)}function Qh(e,t,a){if(t=gc(e,t,Yh)[0],e=Zl(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=bi(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},Gx.bind(null,o,a),null)),[i,c,e]}function Gx(e,t){e.action=t}function Kh(e){var t=Pe(),a=Oe;if(a!==null)return Qh(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 Fh(){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 Ph(e,t){Ql(8390656,8,e,t)}function bc(e,t){Kl(2048,8,e,t)}function Yx(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 $h(e){var t=Pe().memoizedState;return Yx({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Jh(e,t){return Kl(4,2,e,t)}function Wh(e,t){return Kl(4,4,e,t)}function Ih(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 em(e,t,a){a=a!=null?a.concat([e]):null,Kl(4,4,Ih.bind(null,t,e),a)}function Sc(){}function tm(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 nm(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=a0(),xe.lanes|=e,ra|=e,a)}function am(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=a0(),xe.lanes|=e,ra|=e,t)}function sm(e,t,a,i,o){var c=K.p;K.p=c!==0&&8>c?c:8;var m=k.T,v={};k.T=v,Nc(e,!1,t,a);try{var w=o(),D=k.S;if(D!==null&&D(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var _=Bx(w,i);Si(e,t,_,Bt(e))}else Si(e,t,i,Bt(e))}catch(G){Si(e,t,{then:function(){},status:"rejected",reason:G},Bt())}finally{K.p=c,m!==null&&v.types!==null&&(m.types=v.types),k.T=m}}function Xx(){}function wc(e,t,a,i){if(e.tag!==5)throw Error(r(476));var o=im(e).queue;sm(e,o,t,W,a===null?Xx:function(){return lm(e),a(i)})}function im(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 lm(e){var t=im(e);t.next===null&&(t=e.alternate.memoizedState),Si(e,t.next.queue,{},Bt())}function Tc(){return ut(Bi)}function rm(){return Pe().memoizedState}function om(){return Pe().memoizedState}function Zx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=ta(a);var i=na(t,e,a);i!==null&&(At(i,t,a),gi(i,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function Qx(e,t,a){var i=Bt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fl(e)?um(t,a):(a=Go(e,t,a,i),a!==null&&(At(a,e,i),dm(a,t,i)))}function cm(e,t,a){var i=Bt();Si(e,t,a,i)}function Si(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fl(e))um(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),dm(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 um(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 dm(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,gf(e,a)}}var ji={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};ji.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:Ph,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ql(4194308,4,Ih.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=Qx.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=cm.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=sm.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||Rh(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Ph(Oh.bind(null,i,c,e),[e]),i.flags|=2048,As(9,{destroy:void 0},Vh.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-kt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Ux++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tc,useFormState:Xh,useActionState:Xh,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=Zx.bind(null,xe)},useEffectEvent:function(e){var t=yt(),a={impl:e};return t.memoizedState=a,function(){if((De&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Ac={readContext:ut,use:Xl,useCallback:tm,useContext:ut,useEffect:bc,useImperativeHandle:em,useInsertionEffect:Jh,useLayoutEffect:Wh,useMemo:nm,useReducer:Zl,useRef:Fh,useState:function(){return Zl(Vn)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=Pe();return am(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Zl(Vn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Dh,useId:rm,useHostTransitionStatus:Tc,useFormState:Zh,useActionState:Zh,useOptimistic:function(e,t){var a=Pe();return Bh(a,Oe,e,t)},useMemoCache:pc,useCacheRefresh:om};Ac.useEffectEvent=$h;var hm={readContext:ut,use:Xl,useCallback:tm,useContext:ut,useEffect:bc,useImperativeHandle:em,useInsertionEffect:Jh,useLayoutEffect:Wh,useMemo:nm,useReducer:yc,useRef:Fh,useState:function(){return yc(Vn)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=Pe();return Oe===null?jc(a,e,t):am(a,Oe.memoizedState,e,t)},useTransition:function(){var e=yc(Vn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Dh,useId:rm,useHostTransitionStatus:Tc,useFormState:Kh,useActionState:Kh,useOptimistic:function(e,t){var a=Pe();return Oe!==null?Bh(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pc,useCacheRefresh:om};hm.useEffectEvent=$h;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=Bt(),o=ta(i);o.payload=t,a!=null&&(o.callback=a),t=na(e,o,i),t!==null&&(At(t,e,i),gi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Bt(),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),gi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),i=ta(a);i.tag=2,t!=null&&(i.callback=t),t=na(e,i,a),t!==null&&(At(t,e,a),gi(t,e,a))}};function mm(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?!oi(a,i)||!oi(o,c):!0}function pm(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 gm(e){Al(e)}function ym(e){console.error(e)}function xm(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 vm(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 bm(e){return e=ta(e),e.tag=3,e}function Sm(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(){vm(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){vm(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 Kx(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=Vt.current,a!==null){switch(a.tag){case 31:case 13:return Wt===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=Vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Fo&&(e=Error(r(422),{cause:i}),di(Ft(e,a)))):(i!==Fo&&(t=Error(r(423),{cause:i}),di(Ft(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Ft(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=Ft(c,a),zi===null?zi=[c]:zi.push(c),Qe!==4&&(Qe=2),t===null)return!0;i=Ft(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=bm(o),Sm(o,e,a,i),ic(a,o),!1}a=a.return}while(a!==null);return!1}var zc=Error(r(461)),We=!1;function dt(e,t,a,i){t.child=e===null?Nh(t,null,a,i):Ha(t,e.child,a,i)}function jm(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=dc(e,t,a,m,c,o),v=fc(),e!==null&&!We?(hc(e,t,o),On(e,t,o)):(Ee&&v&&Qo(t),t.flags|=1,dt(e,t,i,o),t.child)}function wm(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,Tm(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:oi,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 Tm(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(oi(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 kc(e,t,a,i,o)}function Nm(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 Am(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?Mh(t,c):rc(),Eh(t);else return i=t.lanes=536870912,Am(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(Vl(t,c.cachePool),Mh(t,c),sa(),t.memoizedState=null):(e!==null&&Vl(t,null),rc(),sa());return dt(e,t,o,a),t.child}function wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Am(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(),Eh(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 Cm(e,t,a){return Ha(t,e.child,null,a),e=$l(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Fx(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,wi(null,e);if(cc(t),(e=qe)?(e=U0(e,Jt),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=uh(e),a.return=t,t.child=a,ct=t,qe=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=Cm(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=yf(i,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Da(e,m),At(i,e,m),zc;rr(),t=Cm(e,t,a)}else e=c.treeContext,qe=It(m.nextSibling),ct=t,Ee=!0,Jn=null,Jt=!1,e!==null&&hh(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 kc(e,t,a,i,o){return _a(t),a=dc(e,t,a,i,void 0,o),i=fc(),e!==null&&!We?(hc(e,t,o),On(e,t,o)):(Ee&&i&&Qo(t),t.flags|=1,dt(e,t,a,o),t.child)}function Mm(e,t,a,i,o,c){return _a(t),t.updateQueue=null,a=kh(t,i,a,o),zh(e),i=fc(),e!==null&&!We?(hc(e,t,c),On(e,t,c)):(Ee&&i&&Qo(t),t.flags|=1,dt(e,t,a,c),t.child)}function Em(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),xi(t,i,c,o),yi(),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 D=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||D!==m)&&pm(t,c,i,m),ea=!1;var R=t.memoizedState;c.state=R,xi(t,i,c,o),yi(),D=t.memoizedState,v||R!==D||ea?(typeof G=="function"&&(Cc(t,a,G,i),D=t.memoizedState),(w=ea||mm(t,a,w,i,R,D,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=D),c.props=i,c.state=D,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,D=a.contextType,w=ms,typeof D=="object"&&D!==null&&(w=ut(D)),v=a.getDerivedStateFromProps,(D=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==G||R!==w)&&pm(t,c,i,w),ea=!1,R=t.memoizedState,c.state=R,xi(t,i,c,o),yi();var V=t.memoizedState;m!==G||R!==V||ea||e!==null&&e.dependencies!==null&&Dl(e.dependencies)?(typeof v=="function"&&(Cc(t,a,v,i),V=t.memoizedState),(_=ea||mm(t,a,_,i,R,V,w)||e!==null&&e.dependencies!==null&&Dl(e.dependencies))?(D||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)):dt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=On(e,t,o),e}function zm(e,t,a,i){return Va(),t.flags|=256,dt(e,t,a,i),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:vh()}}function Vc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Lt),e}function km(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=qe)?(e=U0(e,Jt),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=uh(e),a.return=t,t.child=a,ct=t,qe=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=Dc,wi(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=Dc,t=wi(null,i));else if(aa(t),gu(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var D=m.dgst;m=D,i=Error(r(419)),i.stack="",i.digest=m,di({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=yf(m,a),i!==0&&i!==w.retryLane))throw w.retryLane=i,Da(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,qe=It(v.nextSibling),ct=t,Ee=!0,Jn=null,Jt=!1,e!==null&&hh(t,e),t=Oc(t,i.children),t.flags|=4096);return t}return o?(sa(),v=i.fallback,o=t.mode,w=e.child,D=w.sibling,i=En(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,D!==null?v=En(D,v):(v=Ra(v,o,a,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,wi(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=vh(),v={baseLanes:v.baseLanes|a,cachePool:o}),i.memoizedState=v,i.childLanes=Vc(e,m,a),t.memoizedState=Dc,wi(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=Rt(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 Rm(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),dt(e,t,i,a),i=Ee?ui: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&&Dl(e)))}function Px(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?km(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 Rm(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,Nm(e,t,a,t.pendingProps);case 24:In(t,$e,e.memoizedState.cache)}return On(e,t,a)}function Vm(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,Px(e,t,a);We=(e.flags&131072)!==0}else We=!1,Ee&&(t.flags&1048576)!==0&&fh(t,ui,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=Em(null,t,e,i,a)):(t.tag=0,t=kc(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=jm(null,t,e,i,a);break e}else if(o===$){t.tag=14,t=wm(null,t,e,i,a);break e}}throw t=be(e)||e,Error(r(306,t,""))}}return t;case 0:return kc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Ga(i,t.pendingProps),Em(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),xi(t,i,null,a);var m=t.memoizedState;if(i=m.cache,In(t,$e,i),i!==c.cache&&Wo(t,[$e],a,!0),yi(),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=zm(e,t,i,a);break e}else if(i!==o){o=Ft(Error(r(424)),t),di(o),t=zm(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,qe=It(e.firstChild),ct=t,Ee=!0,Jn=null,Jt=!0,a=Nh(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}dt(e,t,i,a)}t=t.child}return t;case 26:return Jl(e,t),e===null?(a=Z0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(a=t.type,e=t.pendingProps,i=mr(de.current).createElement(a),i[ot]=t,i[bt]=e,ft(i,a,e),lt(i),t.stateNode=i):t.memoizedState=Z0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zn(t),e===null&&Ee&&(i=t.stateNode=G0(t.type,t.pendingProps,de.current),ct=t,Jt=!0,o=qe,fa(t.type)?(yu=o,qe=It(i.firstChild)):qe=o),dt(e,t,t.pendingProps.children,a),Jl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((o=i=qe)&&(i=Nv(i,t.type,t.pendingProps,Jt),i!==null?(t.stateNode=i,ct=t,qe=It(i.firstChild),Jt=!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,fu(o,c)?i=null:m!==null&&fu(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=dc(e,t,Hx,null,null,a),Bi._currentValue=o),Jl(e,t),dt(e,t,i,a),t.child;case 6:return e===null&&Ee&&((e=a=qe)&&(a=Av(a,t.pendingProps,Jt),a!==null?(t.stateNode=a,ct=t,qe=null,e=!0):e=!1),e||Wn(t)),null;case 13:return km(e,t,a);case 4:return it(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ha(t,null,i,a):dt(e,t,i,a),t.child;case 11:return jm(e,t,t.type,t.pendingProps,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,In(t,t.type,i.value),dt(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,dt(e,t,i,a),t.child;case 14:return wm(e,t,t.type,t.pendingProps,a);case 15:return Tm(e,t,t.type,t.pendingProps,a);case 19:return Rm(e,t,a);case 31:return Fx(e,t,a);case 22:return Nm(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),xi(t,null,null,a),yi()),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))),dt(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(r0())e.flags|=8192;else throw Ua=_l,nc}else e.flags&=-16777217}function Om(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$0(t))if(r0())e.flags|=8192;else throw Ua=_l,nc}function Il(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mf():536870912,e.lanes|=t,zs|=t)}function Ti(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 Ge(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 $x(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 Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Dn($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())),Ge(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(_n(t),c!==null?(Ge(t),Om(t,c)):(Ge(t),Uc(t,o,null,i,a))):c?c!==e.memoizedState?(_n(t),Ge(t),Om(t,c)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&_n(t),Ge(t),Uc(t,o,e,i,a)),null;case 27:if(Nn(t),a=de.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 Ge(t),null}e=te.current,ys(t)?mh(t):(e=G0(o,i,a),t.stateNode=e,_n(t))}return Ge(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 Ge(t),null}if(c=te.current,ys(t))mh(t);else{var m=mr(de.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(ft(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 Ge(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=de.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||k0(e.nodeValue,a)),e||Wn(t,!0)}else e=mr(e).createTextNode(i),e[ot]=t,t.stateNode=e}return Ge(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;Ge(t),e=!1}else a=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ge(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;Ge(t),o=!1}else o=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(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),Ge(t),null);case 4:return Se(),e===null&&ru(t.stateNode.containerInfo),Ge(t),null;case 10:return Dn(t.type),Ge(t),null;case 19:if(H(Fe),i=t.memoizedState,i===null)return Ge(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Ti(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,Ti(i,!1),e=c.updateQueue,t.updateQueue=e,Il(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ch(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&&Et()>sr&&(t.flags|=128,o=!0,Ti(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),Ti(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ee)return Ge(t),null}else 2*Et()-i.renderingStartTime>sr&&a!==536870912&&(t.flags|=128,o=!0,Ti(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=Et(),e.sibling=null,a=Fe.current,I(Fe,o?a&1|2:a&1),Ee&&zn(t,i.treeForkCount),e):(Ge(t),null);case 22:case 23:return Ot(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&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(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),Dn($e),Ge(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Jx(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 Dn($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(Ot(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(Ot(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 Dn(t.type),null;case 22:case 23:return Ot(t),oc(),e!==null&&H(La),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dn($e),null;case 25:return null;default:return null}}function _m(e,t){switch(Ko(t),t.tag){case 3:Dn($e),Se();break;case 26:case 27:case 5:Nn(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:H(Fe);break;case 10:Dn(t.type);break;case 22:case 23:Ot(t),oc(),e!==null&&H(La);break;case 24:Dn($e)}}function Ni(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,D=v;try{D()}catch(_){Ve(o,w,_)}}}i=i.next}while(i!==c)}}catch(_){Ve(t,t.return,_)}}function Lm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ch(t,a)}catch(i){Ve(e,e.return,i)}}}function Bm(e,t,a){a.props=Ga(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ve(e,t,i)}}function Ai(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 Um(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;vv(i,e.type,a,t),i[bt]=t}catch(o){Ve(e,e.return,o)}}function Hm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fa(e.type)||e.tag===4}function qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hm(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&&fa(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&&fa(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&&fa(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 qm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ft(t,i,a),t[ot]=e,t[bt]=a}catch(c){Ve(e,e.return,c)}}var Ln=!1,Ie=!1,Yc=!1,Gm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Wx(e,t){if(e=e.containerInfo,uu=Sr,e=eh(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,D=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&&++D===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(du={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 Ym(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:Un(e,a),i&4&&Ni(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&&Lm(a),i&512&&Ai(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{Ch(e,t)}catch(m){Ve(a,a.return,m)}}break;case 27:t===null&&i&4&&qm(a);case 26:case 5:Un(e,a),t===null&&i&4&&Um(a),i&512&&Ai(a,a.return);break;case 12:Un(e,a);break;case 31:Un(e,a),i&4&&Qm(e,a);break;case 13:Un(e,a),i&4&&Km(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=rv.bind(null,a),Cv(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 Xm(e){var t=e.alternate;t!==null&&(e.alternate=null,Xm(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;)Zm(e,t,a),a=a.sibling}function Zm(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount($s,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;fa(a.type)&&(Xe=a.stateNode,jt=!1),Bn(e,t,a),Oi(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,L0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bs(e)):L0(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"&&Bm(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 Qm(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 Km(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 Ix(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Gm),t;default:throw Error(r(435,e.tag))}}function tr(e,t){var a=Ix(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=ov.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(fa(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));Zm(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;)Fm(t,e),t=t.sibling}var dn=null;function Fm(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),Ni(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=dn;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[Is]||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"))),ft(c,i,a),c[ot]=e,lt(c),i=c;break e;case"link":var m=F0("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),ft(c,i,a),o.head.appendChild(c);break;case"meta":if(m=F0("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),ft(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 P0(o,e.type,e.stateNode);else e.stateNode=K0(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?P0(o,e.type,e.stateNode):K0(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=dn,dn=pr(t.containerInfo),wt(t,e),dn=o,Tt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bs(t.containerInfo)}catch(ae){Ve(e,e.return,ae)}Yc&&(Yc=!1,Pm(e));break;case 4:i=dn,dn=pr(e.stateNode.containerInfo),wt(t,e),Tt(e),dn=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=Et()),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,D=Ln,_=Ie;if(Ln=D||o,Ie=_||w,wt(t,e),Ie=_,Ln=D,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?B0(V,!0):B0(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(Hm(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,D=qc(e);Gc(e,D,w);break;default:throw Error(r(161))}}catch(_){Ve(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pm(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;)Ym(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"&&Bm(t,t.return,a),Ya(t);break;case 27:Oi(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),Ni(4,c);break;case 1:if(Hn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ve(i,i.return,D)}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++)Ah(w[o],v)}catch(D){Ve(i,i.return,D)}}a&&m&64&&Lm(c),Ai(c,c.return);break;case 27:qm(c);case 26:case 5:Hn(o,c,a),a&&i===null&&m&4&&Um(c),Ai(c,c.return);break;case 12:Hn(o,c,a);break;case 31:Hn(o,c,a),a&&m&4&&Qm(o,c);break;case 13:Hn(o,c,a),a&&m&4&&Km(o,c);break;case 22:c.memoizedState===null&&Hn(o,c,a),Ai(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 fn(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$m(e,t,a,i),t=t.sibling}function $m(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,a,i),o&2048&&Ni(9,t);break;case 1:fn(e,t,a,i);break;case 3:fn(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){fn(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 fn(e,t,a,i);break;case 31:fn(e,t,a,i);break;case 13:fn(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?fn(e,t,a,i):Ci(e,t):c._visibility&2?fn(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:fn(e,t,a,i),o&2048&&Zc(t.alternate,t);break;default:fn(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,D=m.flags;switch(m.tag){case 0:case 11:case 15:Cs(c,m,v,w,o),Ni(8,m);break;case 23:break;case 22:var _=m.stateNode;m.memoizedState!==null?_._visibility&2?Cs(c,m,v,w,o):Ci(c,m):(_._visibility|=2,Cs(c,m,v,w,o)),o&&D&2048&&Xc(m.alternate,m);break;case 24:Cs(c,m,v,w,o),o&&D&2048&&Zc(m.alternate,m);break;default:Cs(c,m,v,w,o)}t=t.sibling}}function Ci(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:Ci(a,i),o&2048&&Xc(i.alternate,i);break;case 24:Ci(a,i),o&2048&&Zc(i.alternate,i);break;default:Ci(a,i)}t=t.sibling}}var Mi=8192;function Ms(e,t,a){if(e.subtreeFlags&Mi)for(e=e.child;e!==null;)Jm(e,t,a),e=e.sibling}function Jm(e,t,a){switch(e.tag){case 26:Ms(e,t,a),e.flags&Mi&&e.memoizedState!==null&&Uv(a,dn,e.memoizedState,e.memoizedProps);break;case 5:Ms(e,t,a);break;case 3:case 4:var i=dn;dn=pr(e.stateNode.containerInfo),Ms(e,t,a),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Mi,Mi=16777216,Ms(e,t,a),Mi=i):Ms(e,t,a));break;default:Ms(e,t,a)}}function Wm(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 Ei(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,e0(i,e)}Wm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Im(e),e=e.sibling}function Im(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&ia(9,e,e.return);break;case 3:Ei(e);break;case 12:Ei(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)):Ei(e);break;default:Ei(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,e0(i,e)}Wm(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 e0(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(Xm(i),i===a){rt=null;break e}if(o!==null){o.return=c,rt=o;break e}rt=c}}}var ev={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}},tv=typeof WeakMap=="function"?WeakMap:Map,De=0,Be=null,Te=null,Ae=0,Re=0,_t=null,la=!1,Es=!1,Qc=!1,qn=0,Qe=0,ra=0,Xa=0,Kc=0,Lt=0,zs=0,zi=null,Nt=null,Fc=!1,ar=0,t0=0,sr=1/0,ir=null,oa=null,nt=0,ca=null,ks=null,Gn=0,Pc=0,$c=null,n0=null,ki=0,Jc=null;function Bt(){return(De&2)!==0&&Ae!==0?Ae&-Ae:k.T!==null?au():xf()}function a0(){if(Lt===0)if((Ae&536870912)===0||Ee){var e=hl;hl<<=1,(hl&3932160)===0&&(hl=262144),Lt=e}else Lt=536870912;return e=Vt.current,e!==null&&(e.flags|=32),Lt}function At(e,t,a){(e===Be&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Ds(e,0),ua(e,Ae,Lt,!1)),Ws(e,a),((De&2)===0||e!==Be)&&(e===Be&&((De&2)===0&&(Xa|=a),Qe===4&&ua(e,Ae,Lt,!1)),vn(e))}function s0(e,t,a){if((De&6)!==0)throw Error(r(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Js(e,t),o=i?sv(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&&!nv(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=zi;var w=v.current.memoizedState.isDehydrated;if(w&&(Ds(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){Ds(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,Lt,!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-Et(),10<o)){if(ua(i,t,Lt,!la),pl(i,0,!0)!==0)break e;Gn=t,i.timeoutHandle=O0(i0.bind(null,i,a,Nt,ir,Fc,t,Lt,Xa,zs,la,c,"Throttled",-0,0),o);break e}i0(i,a,Nt,ir,Fc,t,Lt,Xa,zs,la,c,null,-0,0)}}break}while(!0);vn(e)}function i0(e,t,a,i,o,c,m,v,w,D,_,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},Jm(t,c,G);var ae=(c&62914560)===c?ar-Et():(c&4194048)===c?t0-Et():0;if(ae=Hv(G,ae),ae!==null){Gn=c,e.cancelPendingCommit=ae(h0.bind(null,e,t,c,a,i,o,m,v,w,_,G,null,R,V)),ua(e,c,m,!D);return}}h0(e,t,c,a,i,o,m,v,w)}function nv(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-kt(o),m=1<<c;i[c]=-1,o&=~m}a!==0&&pf(e,a,t)}function lr(){return(De&6)===0?(Di(0),!1):!0}function Wc(){if(Te!==null){if(Re===0)var e=Te.return;else e=Te,kn=Oa=null,mc(e),js=null,mi=0,e=Te;for(;e!==null;)_m(e.alternate,e),e=e.return;Te=null}}function Ds(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,jv(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,_t=null,la=!1,Es=Js(e,t),Qc=!1,zs=Lt=Kc=Xa=ra=Qe=0,Nt=zi=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-kt(i),c=1<<o;t|=e[o],i&=~c}return qn=t,Cl(),a}function l0(e,t){xe=null,k.H=ji,t===Ss||t===Ol?(t=jh(),Re=3):t===nc?(t=jh(),Re=4):Re=t===zc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,Te===null&&(Qe=1,Pl(e,Ft(t,e.current)))}function r0(){var e=Vt.current;return e===null?!0:(Ae&4194048)===Ae?Wt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Wt:!1}function o0(){var e=k.H;return k.H=ji,e===null?ji:e}function c0(){var e=k.A;return k.A=ev,e}function rr(){Qe=4,la||(Ae&4194048)!==Ae&&Vt.current!==null||(Es=!0),(ra&134217727)===0&&(Xa&134217727)===0||Be===null||ua(Be,Ae,Lt,!1)}function Ic(e,t,a){var i=De;De|=2;var o=o0(),c=c0();(Be!==e||Ae!==t)&&(ir=null,Ds(e,t)),t=!1;var m=Qe;e:do try{if(Re!==0&&Te!==null){var v=Te,w=_t;switch(Re){case 8:Wc(),m=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(t=!0);var D=Re;if(Re=0,_t=null,Rs(e,v,w,D),a&&Es){m=0;break e}break;default:D=Re,Re=0,_t=null,Rs(e,v,w,D)}}av(),m=Qe;break}catch(_){l0(e,_)}while(!0);return t&&e.shellSuspendCounter++,kn=Oa=null,De=i,k.H=o,k.A=c,Te===null&&(Be=null,Ae=0,Cl()),m}function av(){for(;Te!==null;)u0(Te)}function sv(e,t){var a=De;De|=2;var i=o0(),o=c0();Be!==e||Ae!==t?(ir=null,sr=Et()+500,Ds(e,t)):Es=Js(e,t);e:do try{if(Re!==0&&Te!==null){t=Te;var c=_t;t:switch(Re){case 1:Re=0,_t=null,Rs(e,t,c,1);break;case 2:case 9:if(bh(c)){Re=0,_t=null,d0(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:bh(c)?(Re=0,_t=null,d0(t)):(Re=0,_t=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?$0(m):v.stateNode.complete){Re=0,_t=null;var w=v.sibling;if(w!==null)Te=w;else{var D=v.return;D!==null?(Te=D,or(D)):Te=null}break t}}Re=0,_t=null,Rs(e,t,c,5);break;case 6:Re=0,_t=null,Rs(e,t,c,6);break;case 8:Wc(),Qe=6;break e;default:throw Error(r(462))}}iv();break}catch(_){l0(e,_)}while(!0);return kn=Oa=null,k.H=i,k.A=o,De=a,Te!==null?0:(Be=null,Ae=0,Cl(),Qe)}function iv(){for(;Te!==null&&!My();)u0(Te)}function u0(e){var t=Vm(e.alternate,e,qn);e.memoizedProps=e.pendingProps,t===null?or(e):Te=t}function d0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Mm(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=Mm(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:mc(t);default:_m(a,t),t=Te=ch(t,qn),t=Vm(a,t,qn)}e.memoizedProps=e.pendingProps,t===null?or(e):Te=t}function Rs(e,t,a,i){kn=Oa=null,mc(t),js=null,mi=0;var o=t.return;try{if(Kx(e,o,t,a,Ae)){Qe=1,Pl(e,Ft(a,e.current)),Te=null;return}}catch(c){if(o!==null)throw Te=o,c;Qe=1,Pl(e,Ft(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=Vt.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=$x(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=Jx(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 h0(e,t,a,i,o,c,m,v,w){e.cancelPendingCommit=null;do cr();while(nt!==0);if((De&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,By(e,a,c,m,v,w),e===Be&&(Te=Be=null,Ae=0),ks=t,ca=e,Gn=a,Pc=c,$c=o,n0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cv(dl,function(){return x0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null,o=K.p,K.p=2,m=De,De|=4;try{Wx(e,t,a)}finally{De=m,K.p=o,k.T=i}}nt=1,m0(),p0(),g0()}}function m0(){if(nt===1){nt=0;var e=ca,t=ks,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var i=K.p;K.p=2;var o=De;De|=4;try{Fm(t,e);var c=du,m=eh(e.containerInfo),v=c.focusedElem,w=c.selectionRange;if(m!==v&&v&&v.ownerDocument&&If(v.ownerDocument.documentElement,v)){if(w!==null&&_o(v)){var D=w.start,_=w.end;if(_===void 0&&(_=D),"selectionStart"in v)v.selectionStart=D,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=Wf(v,he),A=Wf(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,du=uu=null}finally{De=o,K.p=i,k.T=a}}e.current=t,nt=2}}function p0(){if(nt===2){nt=0;var e=ca,t=ks,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var i=K.p;K.p=2;var o=De;De|=4;try{Ym(e,t.alternate,t)}finally{De=o,K.p=i,k.T=a}}nt=3}}function g0(){if(nt===4||nt===3){nt=0,Ey();var e=ca,t=ks,a=Gn,i=n0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,ks=ca=null,y0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(oa=null),yo(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot($s,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=k.T,o=K.p,K.p=2,k.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{k.T=t,K.p=o}}(Gn&3)!==0&&cr(),vn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Jc?ki++:(ki=0,Jc=e):ki=0,Di(0)}}function y0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fi(t)))}function cr(){return m0(),p0(),g0(),x0()}function x0(){if(nt!==5)return!1;var e=ca,t=Pc;Pc=0;var a=yo(Gn),i=k.T,o=K.p;try{K.p=32>a?32:a,k.T=null,a=$c,$c=null;var c=ca,m=Gn;if(nt=0,ks=ca=null,Gn=0,(De&6)!==0)throw Error(r(331));var v=De;if(De|=4,Im(c.current),$m(c,c.current,m,a),De=v,Di(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot($s,c)}catch{}return!0}finally{K.p=o,k.T=i,y0(e,t)}}function v0(e,t,a){t=Ft(a,t),t=Ec(e.stateNode,t,2),e=na(e,t,2),e!==null&&(Ws(e,2),vn(e))}function Ve(e,t,a){if(e.tag===3)v0(e,e,a);else for(;t!==null;){if(t.tag===3){v0(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=Ft(a,e),a=bm(2),i=na(t,a,2),i!==null&&(Sm(a,i,t,e),Ws(i,2),vn(i));break}}t=t.return}}function eu(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new tv;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=lv.bind(null,e,t,a),t.then(e,e))}function lv(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>Et()-ar?(De&2)===0&&Ds(e,0):Kc|=a,zs===Ae&&(zs=0)),vn(e)}function b0(e,t){t===0&&(t=mf()),e=Da(e,t),e!==null&&(Ws(e,t),vn(e))}function rv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),b0(e,a)}function ov(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),b0(e,a)}function cv(e,t){return ho(e,t)}var ur=null,Vs=null,tu=!1,dr=!1,nu=!1,da=0;function vn(e){e!==Vs&&e.next===null&&(Vs===null?ur=Vs=e:Vs=Vs.next=e),dr=!0,tu||(tu=!0,dv())}function Di(e,t){if(!nu&&dr){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-kt(42|e)+1)-1,c&=o&~(m&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,T0(i,c))}else c=Ae,c=pl(i,i===Be?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Js(i,c)||(a=!0,T0(i,c));i=i.next}while(a);nu=!1}}function uv(){S0()}function S0(){dr=tu=!1;var e=0;da!==0&&Sv()&&(e=da);for(var t=Et(),a=null,i=ur;i!==null;){var o=i.next,c=j0(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)&&(dr=!0)),i=o}nt!==0&&nt!==5||Di(e),da!==0&&(da=0)}function j0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-kt(c),v=1<<m,w=o[m];w===-1?((v&a)===0||(v&i)!==0)&&(o[m]=Ly(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||Js(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&mo(i),yo(a)){case 2:case 8:a=ff;break;case 32:a=dl;break;case 268435456:a=hf;break;default:a=dl}return i=w0.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 w0(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:(s0(e,i,t),j0(e,Et()),e.callbackNode!=null&&e.callbackNode===a?w0.bind(null,e):null)}function T0(e,t){if(cr())return null;s0(e,t,!0)}function dv(){wv(function(){(De&6)!==0?ho(df,uv):S0()})}function au(){if(da===0){var e=vs;e===0&&(e=fl,fl<<=1,(fl&261888)===0&&(fl=256)),da=e}return da}function N0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vl(""+e)}function A0(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 fv(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=N0((o[bt]||null).action),m=i.submitter;m&&(t=(t=m[bt]||null)?N0(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(da!==0){var w=m?A0(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?A0(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],hv=iu.toLowerCase(),mv=iu[0].toUpperCase()+iu.slice(1);un(hv,"on"+mv)}un(ah,"onAnimationEnd"),un(sh,"onAnimationIteration"),un(ih,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(zx,"onTransitionRun"),un(kx,"onTransitionStart"),un(Dx,"onTransitionCancel"),un(lh,"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 Ri="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(" "),pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function C0(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,D=v.currentTarget;if(v=v.listener,w!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=D;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,D=v.currentTarget,v=v.listener,w!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=D;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)||(M0(t,e,2,!1),a.add(i))}function lu(e,t,a){var i=0;t&&(i|=4),M0(a,e,i,t)}var fr="_reactListening"+Math.random().toString(36).slice(2);function ru(e){if(!e[fr]){e[fr]=!0,Sf.forEach(function(a){a!=="selectionchange"&&(pv.has(a)||lu(a,!1,e),lu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fr]||(t[fr]=!0,lu("selectionchange",!1,t))}}function M0(e,t,a,i){switch(a1(t)){case 2:var o=Yv;break;case 8:o=Xv;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}Rf(function(){var D=c,_=No(a),G=[];e:{var R=rh.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=ox;break;case"focusin":ae="focus",V=ko;break;case"focusout":ae="blur",V=ko;break;case"beforeblur":case"afterblur":V=ko;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=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=$y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=dx;break;case ah:case sh:case ih:V=Iy;break;case lh:V=hx;break;case"scroll":case"scrollend":V=Fy;break;case"wheel":V=px;break;case"copy":case"cut":case"paste":V=tx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Bf;break;case"toggle":case"beforetoggle":V=yx}var he=(t&4)!==0,Le=!he&&(e==="scroll"||e==="scrollend"),C=he?R!==null?R+"Capture":null:R;he=[];for(var A=D,z;A!==null;){var U=A;if(z=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||z===null||C===null||(U=ti(A,C),U!=null&&he.push(Vi(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=D,ae=ae?ns(ae):null,ae!==null&&(Le=f(ae),he=ae.tag,ae!==Le||he!==5&&he!==27&&he!==6)&&(ae=null)):(V=null,ae=D),V!==ae)){if(he=_f,U="onMouseLeave",C="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=Bf,U="onPointerLeave",C="onPointerEnter",A="pointer"),Le=V==null?R:ei(V),z=ae==null?R:ei(ae),R=new he(U,A+"leave",V,a,_),R.target=Le,R.relatedTarget=z,U=null,ns(_)===D&&(he=new he(C,A+"enter",ae,a,_),he.target=z,he.relatedTarget=Le,U=he),Le=U,V&&ae)t:{for(he=gv,C=V,A=ae,z=0,U=C;U;U=he(U))z++;U=0;for(var ue=A;ue;ue=he(ue))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&&E0(G,R,V,he,!1),ae!==null&&Le!==null&&E0(G,Le,ae,he,!0)}}e:{if(R=D?ei(D):window,V=R.nodeName&&R.nodeName.toLowerCase(),V==="select"||V==="input"&&R.type==="file")var ze=Qf;else if(Xf(R))if(Kf)ze=Cx;else{ze=Nx;var ie=Tx}else V=R.nodeName,!V||V.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&wo(D.elementType)&&(ze=Qf):ze=Ax;if(ze&&(ze=ze(e,D))){Zf(G,ze,a,_);break e}ie&&ie(e,R,D),e==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&jo(R,"number",R.value)}switch(ie=D?ei(D):window,e){case"focusin":(Xf(ie)||ie.contentEditable==="true")&&(ds=ie,Lo=D,ci=null);break;case"focusout":ci=Lo=ds=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,th(G,a,_);break;case"selectionchange":if(Ex)break;case"keydown":case"keyup":th(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?Gf(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(Uf&&a.locale!=="ko"&&(us||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&us&&(ve=Vf()):(Pn=_,Mo="value"in Pn?Pn.value:Pn.textContent,us=!0)),ie=hr(D,Ce),0<ie.length&&(Ce=new Lf(Ce,e,null,a,_),G.push({event:Ce,listeners:ie}),ve?Ce.data=ve:(ve=Yf(a),ve!==null&&(Ce.data=ve)))),(ve=vx?bx(e,a):Sx(e,a))&&(Ce=hr(D,"onBeforeInput"),0<Ce.length&&(ie=new Lf("onBeforeInput","beforeinput",null,a,_),G.push({event:ie,listeners:Ce}),ie.data=ve)),fv(G,e,D,a,_)}C0(G,t)})}function Vi(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=ti(e,a),o!=null&&i.unshift(Vi(e,o,c)),o=ti(e,t),o!=null&&i.push(Vi(e,o,c))),e.tag===3)return i;e=e.return}return[]}function gv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function E0(e,t,a,i,o){for(var c=t._reactName,m=[];a!==null&&a!==i;){var v=a,w=v.alternate,D=v.stateNode;if(v=v.tag,w!==null&&w===i)break;v!==5&&v!==26&&v!==27||D===null||(w=D,o?(D=ti(a,c),D!=null&&m.unshift(Vi(a,D,w))):o||(D=ti(a,c),D!=null&&m.push(Vi(a,D,w)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var yv=/\r\n?/g,xv=/\u0000|\uFFFD/g;function z0(e){return(typeof e=="string"?e:""+e).replace(yv,`
|
|
9
|
-
`).replace(xv,"")}function k0(e,t){return t=z0(t),z0(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":kf(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=Qy.get(a)||a,gl(e,a,i))}}function cu(e,t,a,i,o,c){switch(a){case"style":kf(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(!jf.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 ft(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,D=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":D=_;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)}}Cf(e,c,v,w,D,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)}Ef(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<Ri.length;i++)Ne(Ri[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(D in a)if(a.hasOwnProperty(D)&&(i=a[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:_e(e,t,D,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 vv(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,D=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":D=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,D,_,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)}Mf(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(D in i)if(R=i[D],V=a[D],i.hasOwnProperty(D)&&R!==V&&(R!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:_e(e,t,D,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 bv(){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],D=w.startTime;if(D>v)break;var _=w.transferSize,G=w.initiatorType;_&&D0(G)&&(w=w.responseEnd,m+=_*(w<v?1:(v-D)/(w-D)))}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,du=null;function mr(e){return e.nodeType===9?e:e.ownerDocument}function R0(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 V0(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 fu(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 Sv(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var O0=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,_0=typeof Promise=="function"?Promise:void 0,wv=typeof queueMicrotask=="function"?queueMicrotask:typeof _0<"u"?function(e){return _0.resolve(null).then(e).catch(Tv)}:O0;function Tv(e){setTimeout(function(){throw e})}function fa(e){return e==="head"}function L0(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")Oi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Oi(a);for(var c=a.firstChild;c;){var m=c.nextSibling,v=c.nodeName;c[Is]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Oi(e.ownerDocument.body);a=o}while(a);Bs(t)}function B0(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 Nv(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[Is])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=It(e.nextSibling),e===null)break}return null}function Av(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=It(e.nextSibling),e===null))return null;return e}function U0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(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 Cv(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 It(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 H0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return It(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function q0(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 G0(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 Oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var en=new Map,Y0=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:Mv,r:Ev,D:zv,C:kv,L:Dv,m:Rv,X:Ov,S:Vv,M:_v};function Mv(){var e=Yn.f(),t=lr();return e||t}function Ev(e){var t=as(e);t!==null&&t.tag===5&&t.type==="form"?lm(t):Yn.r(e)}var Os=typeof document>"u"?null:document;function X0(e,t,a){var i=Os;if(i&&typeof t=="string"&&t){var o=Qt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Y0.has(o)||(Y0.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),ft(t,"link",e),lt(t),i.head.appendChild(t)))}}function zv(e){Yn.D(e),X0("dns-prefetch",e,null)}function kv(e,t){Yn.C(e,t),X0("preconnect",e,t)}function Dv(e,t,a){Yn.L(e,t,a);var i=Os;if(i&&e&&t){var o='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Qt(a.imageSizes)+'"]')):o+='[href="'+Qt(e)+'"]';var c=o;switch(t){case"style":c=_s(e);break;case"script":c=Ls(e)}en.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),en.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(_i(c))||t==="script"&&i.querySelector(Li(c))||(t=i.createElement("link"),ft(t,"link",e),lt(t),i.head.appendChild(t)))}}function Rv(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="'+Qt(i)+'"][href="'+Qt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ls(e)}if(!en.has(c)&&(e=b({rel:"modulepreload",href:e},t),en.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Li(c)))return}i=a.createElement("link"),ft(i,"link",e),lt(i),a.head.appendChild(i)}}}function Vv(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(_i(c)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=en.get(c))&&xu(e,a);var w=m=i.createElement("link");lt(w),ft(w,"link",e),w._p=new Promise(function(D,_){w.onload=D,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 Ov(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(Li(o)),c||(e=b({src:e,async:!0},t),(t=en.get(o))&&vu(e,t),c=a.createElement("script"),lt(c),ft(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function _v(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(Li(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=en.get(o))&&vu(e,t),c=a.createElement("script"),lt(c),ft(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Z0(e,t,a,i){var o=(o=de.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(_i(e)))&&!c._p&&(m.instance=c,m.state.loading=5),en.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},en.set(e,a),c||Lv(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="'+Qt(e)+'"'}function _i(e){return'link[rel="stylesheet"]['+e+"]"}function Q0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Lv(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}),ft(t,"link",a),lt(t),e.head.appendChild(t))}function Ls(e){return'[src="'+Qt(e)+'"]'}function Li(e){return"script[async]"+e}function K0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Qt(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),ft(i,"style",o),gr(i,a.precedence,e),t.instance=i;case"stylesheet":o=_s(a.href);var c=e.querySelector(_i(o));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;i=Q0(a),(o=en.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}),ft(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(Li(c)))?(t.instance=o,lt(o),o):(i=a,(o=en.get(c))&&(i=b({},a),vu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),ft(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 F0(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[Is]||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 P0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Bv(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 $0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Uv(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(_i(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=Q0(i),(o=en.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}),ft(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 Hv(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*bv());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(qv,e),vr=null,xr.call(e))}function qv(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 Bi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Gv(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 J0(e,t,a,i,o,c,m,v,w,D,_,G){return e=new Gv(e,t,a,m,w,D,_,G,v),t=1,c===!0&&(t|=24),c=Rt(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 W0(e){return e?(e=ms,e):ms}function I0(e,t,a,i,o,c){o=W0(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),gi(a,e,t))}function e1(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){e1(e,t),(e=e.alternate)&&e1(e,t)}function t1(e){if(e.tag===13||e.tag===31){var t=Da(e,67108864);t!==null&&At(t,e,67108864),Su(e,67108864)}}function n1(e){if(e.tag===13||e.tag===31){var t=Bt();t=go(t);var a=Da(e,t);a!==null&&At(a,e,t),Su(e,t)}}var Sr=!0;function Yv(e,t,a,i){var o=k.T;k.T=null;var c=K.p;try{K.p=2,ju(e,t,a,i)}finally{K.p=c,k.T=o}}function Xv(e,t,a,i){var o=k.T;k.T=null;var c=K.p;try{K.p=8,ju(e,t,a,i)}finally{K.p=c,k.T=o}}function ju(e,t,a,i){if(Sr){var o=wu(i);if(o===null)ou(e,t,i,jr,a),s1(e,i);else if(Qv(o,e,t,a,i))i.stopPropagation();else if(s1(e,i),t&4&&-1<Zv.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-kt(m);v.entanglements[1]|=w,m&=~w}vn(c),(De&6)===0&&(sr=Et()+500,Di(0))}}break;case 31:case 13:v=Da(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=f(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=p(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 a1(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(zy()){case df:return 2;case ff:return 8;case dl:case ky:return 32;case hf:return 268435456;default:return 32}default:return 32}}var Nu=!1,ha=null,ma=null,pa=null,Ui=new Map,Hi=new Map,ga=[],Zv="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 s1(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":Ui.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function qi(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&&t1(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Qv(e,t,a,i,o){switch(t){case"focusin":return ha=qi(ha,e,t,a,i,o),!0;case"dragenter":return ma=qi(ma,e,t,a,i,o),!0;case"mouseover":return pa=qi(pa,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return Ui.set(c,qi(Ui.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Hi.set(c,qi(Hi.get(c)||null,e,t,a,i,o)),!0}return!1}function i1(e){var t=ns(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,vf(e.priority,function(){n1(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,vf(e.priority,function(){n1(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&&t1(t),e.blockedOn=a,!1;t.shift()}return!0}function l1(e,t,a){wr(e)&&a.delete(t)}function Kv(){Nu=!1,ha!==null&&wr(ha)&&(ha=null),ma!==null&&wr(ma)&&(ma=null),pa!==null&&wr(pa)&&(pa=null),Ui.forEach(l1),Hi.forEach(l1)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Nu||(Nu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Kv)))}var Nr=null;function r1(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),Ui.forEach(t),Hi.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);)i1(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||r1(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),r1(a)}}}function o1(){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=Bt();I0(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;I0(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=xf();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&&i1(e)}};var c1=s.version;if(c1!=="19.2.6")throw Error(r(527,c1,"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=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Fv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{$s=Cr.inject(Fv),zt=Cr}catch{}}return Yi.createRoot=function(e,t){if(!d(e))throw Error(r(299));var a=!1,i="",o=gm,c=ym,m=xm;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=J0(e,1,!1,null,null,a,i,null,o,c,m,o1),e[ts]=t.current,ru(e),new Au(t)},Yi.hydrateRoot=function(e,t,a){if(!d(e))throw Error(r(299));var i=!1,o="",c=gm,m=ym,v=xm,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=J0(e,1,!0,t,a??null,i,o,w,c,m,v,o1),t.context=W0(null),a=t.current,i=Bt(),i=go(i),o=ta(i),o.callback=null,na(a,o,i),a=i,t.current.lanes=a,Ws(t,a),vn(t),e[ts]=t.current,ru(e),new Ar(t)},Yi.version="19.2.6",Yi}var v1;function ab(){if(v1)return Eu.exports;v1=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=nb(),Eu.exports}var ng=ab();const ag=(...n)=>n.filter((s,l,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===l).join(" ").trim();const sb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ib=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,r)=>r?r.toUpperCase():l.toLowerCase());const b1=n=>{const s=ib(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 lb=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},rb=M.createContext({}),ob=()=>M.useContext(rb),cb=M.forwardRef(({color:n,size:s,strokeWidth:l,absoluteStrokeWidth:r,className:d="",children:f,iconNode:h,...p},y)=>{const{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:b=!1,color:S="currentColor",className:j=""}=ob()??{},T=r??b?Number(l??x)*24/Number(s??g):l??x;return M.createElement("svg",{ref:y,...Ru,width:s??g??Ru.width,height:s??g??Ru.height,stroke:n??S,strokeWidth:T,className:ag("lucide",j,d),...!f&&!lb(p)&&{"aria-hidden":"true"},...p},[...h.map(([E,O])=>M.createElement(E,O)),...Array.isArray(f)?f:[f]])});const me=(n,s)=>{const l=M.forwardRef(({className:r,...d},f)=>M.createElement(cb,{ref:f,iconNode:s,className:ag(`lucide-${sb(b1(n))}`,`lucide-${n}`,r),...d}));return l.displayName=b1(n),l};const ub=[["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"}]],Ys=me("activity",ub);const db=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],fb=me("arrow-down",db);const hb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],mb=me("arrow-up",hb);const pb=[["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",pb);const gb=[["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"}]],S1=me("box",gb);const yb=[["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"}]],sg=me("brain",yb);const xb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ig=me("check",xb);const vb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qs=me("chevron-down",vb);const bb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],zd=me("chevron-right",bb);const Sb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jb=me("circle-question-mark",Sb);const wb=[["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"}]],lg=me("copy",wb);const Tb=[["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"}]],Nb=me("cpu",Tb);const Ab=[["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"}]],Cb=me("database",Ab);const Mb=[["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"}]],Eb=me("earth",Mb);const zb=[["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"}]],rg=me("external-link",zb);const kb=[["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"}]],Db=me("file-code-corner",kb);const Rb=[["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"}]],Vb=me("file-text",Rb);const Ob=[["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"}]],_b=me("file",Ob);const Lb=[["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"}]],Bb=me("flask-conical",Lb);const Ub=[["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"}]],Hb=me("folder-open",Ub);const qb=[["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"}]],Gb=me("folder-plus",qb);const Yb=[["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"}]],kd=me("folder",Yb);const Xb=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],og=me("gauge",Xb);const Zb=[["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",Zb);const Qb=[["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"}]],Kb=me("git-pull-request-create",Qb);const Fb=[["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"}]],Pb=me("image",Fb);const $b=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],cg=me("loader-circle",$b);const Jb=[["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"}]],Wb=me("lock-keyhole",Jb);const Ib=[["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"}]],e3=me("memory-stick",Ib);const t3=[["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"}]],n3=me("network",t3);const a3=[["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"}]],s3=me("palette",a3);const i3=[["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"}]],l3=me("panel-left-close",i3);const r3=[["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"}]],o3=me("panel-left-open",r3);const c3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],u3=me("panel-left",c3);const d3=[["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"}]],f3=me("pencil",d3);const h3=[["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"}]],ug=me("play",h3);const m3=[["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"}]],dg=me("plug",m3);const p3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zr=me("plus",p3);const g3=[["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"}]],j1=me("radio",g3);const y3=[["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"}]],fg=me("refresh-cw",y3);const x3=[["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"}]],v3=me("rotate-ccw",x3);const b3=[["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"}]],S3=me("save",b3);const j3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],w3=me("search",j3);const T3=[["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"}]],N3=me("server",T3);const A3=[["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"}]],C3=me("settings-2",A3);const M3=[["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"}]],E3=me("sparkles",M3);const z3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],hg=me("square",z3);const k3=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],mg=me("terminal",k3);const D3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],so=me("x",D3);const R3=[["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"}]],V3=me("zap",R3),O3="/assets/nomoreide-logo-B2E14b65.png";async function _3(){return Wa("/api/dashboard")}async function L3(){return(await Wa("/api/agent")).agent}async function B3(){return(await Wa("/api/agent/usage")).usage}async function U3(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 H3(n){return Wa(`/api/fs/directories?path=${encodeURIComponent(n)}`)}async function ad(n){return(await Wa(`/api/services/${encodeURIComponent(n)}/logs`)).logs}async function an(n,s){const l=new URLSearchParams;for(const[r,d]of Object.entries(s))d!==void 0&&String(d).trim()&&l.set(r,String(d));await Wa(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function q3(n){return G3("/api/services/test",n)}async function G3(n,s){const l=new URLSearchParams;for(const[r,d]of Object.entries(s))d!==void 0&&String(d).trim()&&l.set(r,String(d));return Wa(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}class pg 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 pg(r?.error||"Port already in use",r.conflict):new Error(r?.error||l.statusText);return r}function gg(n){var s,l,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(s=0;s<d;s++)n[s]&&(l=gg(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="",d=arguments.length;l<d;l++)(n=arguments[l])&&(s=gg(n))&&(r&&(r+=" "),r+=s);return r}const w1=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,T1=el,yg=(n,s)=>l=>{var r;if(s?.variants==null)return T1(n,l?.class,l?.className);const{variants:d,defaultVariants:f}=s,h=Object.keys(d).map(g=>{const x=l?.[g],b=f?.[g];if(x===null)return null;const S=w1(x)||w1(b);return d[g][S]}),p=l&&Object.entries(l).reduce((g,x)=>{let[b,S]=x;return S===void 0||(g[b]=S),g},{}),y=s==null||(r=s.compoundVariants)===null||r===void 0?void 0:r.reduce((g,x)=>{let{class:b,className:S,...j}=x;return Object.entries(j).every(T=>{let[E,O]=T;return Array.isArray(O)?O.includes({...f,...p}[E]):{...f,...p}[E]===O})?[...g,b,S]:g},[]);return T1(n,h,y,l?.class,l?.className)},Y3=(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},X3=(n,s)=>({classGroupId:n,validator:s}),xg=(n=new Map,s=null,l)=>({nextPart:n,validators:s,classGroupId:l}),Qr="-",N1=[],Z3="arbitrary..",Q3=n=>{const s=F3(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return K3(h);const p=h.split(Qr),y=p[0]===""&&p.length>1?1:0;return vg(p,y,s)},getConflictingClassGroupIds:(h,p)=>{if(p){const y=r[h],g=l[h];return y?g?Y3(g,y):y:g||N1}return l[h]||N1}}},vg=(n,s,l)=>{if(n.length-s===0)return l.classGroupId;const d=n[s],f=l.nextPart.get(d);if(f){const g=vg(n,s+1,f);if(g)return g}const h=l.validators;if(h===null)return;const p=s===0?n.join(Qr):n.slice(s).join(Qr),y=h.length;for(let g=0;g<y;g++){const x=h[g];if(x.validator(p))return x.classGroupId}},K3=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?Z3+r:void 0})(),F3=n=>{const{theme:s,classGroups:l}=n;return P3(l,s)},P3=(n,s)=>{const l=xg();for(const r in n){const d=n[r];Dd(d,l,r,s)}return l},Dd=(n,s,l,r)=>{const d=n.length;for(let f=0;f<d;f++){const h=n[f];$3(h,s,l,r)}},$3=(n,s,l,r)=>{if(typeof n=="string"){J3(n,s,l);return}if(typeof n=="function"){W3(n,s,l,r);return}I3(n,s,l,r)},J3=(n,s,l)=>{const r=n===""?s:bg(s,n);r.classGroupId=l},W3=(n,s,l,r)=>{if(e5(n)){Dd(n(r),s,l,r);return}s.validators===null&&(s.validators=[]),s.validators.push(X3(l,n))},I3=(n,s,l,r)=>{const d=Object.entries(n),f=d.length;for(let h=0;h<f;h++){const[p,y]=d[h];Dd(y,bg(s,p),l,r)}},bg=(n,s)=>{let l=n;const r=s.split(Qr),d=r.length;for(let f=0;f<d;f++){const h=r[f];let p=l.nextPart.get(h);p||(p=xg(),l.nextPart.set(h,p)),l=p}return l},e5=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,t5=n=>{if(n<1)return{get:()=>{},set:()=>{}};let s=0,l=Object.create(null),r=Object.create(null);const d=(f,h)=>{l[f]=h,s++,s>n&&(s=0,r=l,l=Object.create(null))};return{get(f){let h=l[f];if(h!==void 0)return h;if((h=r[f])!==void 0)return d(f,h),h},set(f,h){f in l?l[f]=h:d(f,h)}}},sd="!",A1=":",n5=[],C1=(n,s,l,r,d)=>({modifiers:n,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:r,isExternal:d}),a5=n=>{const{prefix:s,experimentalParseClassName:l}=n;let r=d=>{const f=[];let h=0,p=0,y=0,g;const x=d.length;for(let E=0;E<x;E++){const O=d[E];if(h===0&&p===0){if(O===A1){f.push(d.slice(y,E)),y=E+1;continue}if(O==="/"){g=E;continue}}O==="["?h++:O==="]"?h--:O==="("?p++:O===")"&&p--}const b=f.length===0?d:d.slice(y);let S=b,j=!1;b.endsWith(sd)?(S=b.slice(0,-1),j=!0):b.startsWith(sd)&&(S=b.slice(1),j=!0);const T=g&&g>y?g-y:void 0;return C1(f,j,S,T)};if(s){const d=s+A1,f=r;r=h=>h.startsWith(d)?f(h.slice(d.length)):C1(n5,!1,h,void 0,!0)}if(l){const d=r;r=f=>l({className:f,parseClassName:d})}return r},s5=n=>{const s=new Map;return n.orderSensitiveModifiers.forEach((l,r)=>{s.set(l,1e6+r)}),l=>{const r=[];let d=[];for(let f=0;f<l.length;f++){const h=l[f],p=h[0]==="[",y=s.has(h);p||y?(d.length>0&&(d.sort(),r.push(...d),d=[]),r.push(h)):d.push(h)}return d.length>0&&(d.sort(),r.push(...d)),r}},i5=n=>({cache:t5(n.cacheSize),parseClassName:a5(n),sortModifiers:s5(n),postfixLookupClassGroupIds:l5(n),...Q3(n)}),l5=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},r5=/\s+/,o5=(n,s)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:d,sortModifiers:f,postfixLookupClassGroupIds:h}=s,p=[],y=n.trim().split(r5);let g="";for(let x=y.length-1;x>=0;x-=1){const b=y[x],{isExternal:S,modifiers:j,hasImportantModifier:T,baseClassName:E,maybePostfixModifierPosition:O}=l(b);if(S){g=b+(g.length>0?" "+g:g);continue}let B=!!O,q;if(B){const $=E.substring(0,O);q=r($);const L=q&&h[q]?r(E):void 0;L&&L!==q&&(q=L,B=!1)}else q=r(E);if(!q){if(!B){g=b+(g.length>0?" "+g:g);continue}if(q=r(E),!q){g=b+(g.length>0?" "+g:g);continue}B=!1}const Y=j.length===0?"":j.length===1?j[0]:f(j).join(":"),X=T?Y+sd:Y,Z=X+q;if(p.indexOf(Z)>-1)continue;p.push(Z);const J=d(q,B);for(let $=0;$<J.length;++$){const L=J[$];p.push(X+L)}g=b+(g.length>0?" "+g:g)}return g},c5=(...n)=>{let s=0,l,r,d="";for(;s<n.length;)(l=n[s++])&&(r=Sg(l))&&(d&&(d+=" "),d+=r);return d},Sg=n=>{if(typeof n=="string")return n;let s,l="";for(let r=0;r<n.length;r++)n[r]&&(s=Sg(n[r]))&&(l&&(l+=" "),l+=s);return l},u5=(n,...s)=>{let l,r,d,f;const h=y=>{const g=s.reduce((x,b)=>b(x),n());return l=i5(g),r=l.cache.get,d=l.cache.set,f=p,p(y)},p=y=>{const g=r(y);if(g)return g;const x=o5(y,l);return d(y,x),x};return f=h,(...y)=>f(c5(...y))},d5=[],at=n=>{const s=l=>l[n]||d5;return s.isThemeGetter=!0,s},jg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,h5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m5=/\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$/,p5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,g5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=n=>f5.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=>h5.test(n),Tg=()=>!0,x5=n=>m5.test(n)&&!p5.test(n),Rd=()=>!1,v5=n=>g5.test(n),b5=n=>y5.test(n),S5=n=>!ee(n)&&!ne(n),j5=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)),w5=n=>Ta(n,Cg,Rd),ee=n=>jg.test(n),Za=n=>Ta(n,Mg,x5),M1=n=>Ta(n,k5,je),T5=n=>Ta(n,zg,Tg),N5=n=>Ta(n,Eg,Rd),E1=n=>Ta(n,Ng,Rd),A5=n=>Ta(n,Ag,b5),Mr=n=>Ta(n,kg,v5),ne=n=>wg.test(n),Xi=n=>Ia(n,Mg),C5=n=>Ia(n,Eg),z1=n=>Ia(n,Ng),M5=n=>Ia(n,Cg),E5=n=>Ia(n,Ag),Er=n=>Ia(n,kg,!0),z5=n=>Ia(n,zg,!0),Ta=(n,s,l)=>{const r=jg.exec(n);return r?r[1]?s(r[1]):l(r[2]):!1},Ia=(n,s,l=!1)=>{const r=wg.exec(n);return r?r[1]?s(r[1]):l:!1},Ng=n=>n==="position"||n==="percentage",Ag=n=>n==="image"||n==="url",Cg=n=>n==="length"||n==="size"||n==="bg-size",Mg=n=>n==="length",k5=n=>n==="number",Eg=n=>n==="family-name",zg=n=>n==="number"||n==="weight",kg=n=>n==="shadow",D5=()=>{const n=at("color"),s=at("font"),l=at("text"),r=at("font-weight"),d=at("tracking"),f=at("leading"),h=at("breakpoint"),p=at("container"),y=at("spacing"),g=at("radius"),x=at("shadow"),b=at("inset-shadow"),S=at("text-shadow"),j=at("drop-shadow"),T=at("blur"),E=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],fe=()=>[xa,"full","auto",...L()],le=()=>[bn,"none","subgrid",ne,ee],F=()=>["auto",{span:["full",bn,ne,ee]},bn,ne,ee],ce=()=>[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"],k=()=>["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(),z1,E1,{position:[ne,ee]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",M5,w5,{size:[ne,ee]}],te=()=>[Vu,Xi,Za],re=()=>["","none","full",g,ne,ee],de=()=>["",je,Xi,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,z1,E1],Zn=()=>["","none",T,ne,ee],Nn=()=>["none",je,ne,ee],Qn=()=>["none",je,ne,ee],es=()=>[je,ne,ee],Xt=()=>[xa,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[Tg],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[S5],"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":[j5],columns:[{columns:[je,ee,ne,p]}],"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:fe()}],"inset-x":[{"inset-x":fe()}],"inset-y":[{"inset-y":fe()}],start:[{"inset-s":fe(),start:fe()}],end:[{"inset-e":fe(),end:fe()}],"inset-bs":[{"inset-bs":fe()}],"inset-be":[{"inset-be":fe()}],top:[{top:fe()}],right:[{right:fe()}],bottom:[{bottom:fe()}],left:[{left:fe()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",ne,ee]}],basis:[{basis:[xa,"full","auto",p,...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":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"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:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"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:[p,"screen",...K()]}],"min-w":[{"min-w":[p,"screen","none",...K()]}],"max-w":[{"max-w":[p,"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,Xi,Za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,z5,T5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vu,ee]}],"font-family":[{font:[C5,N5,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:[d,ne,ee]}],"line-clamp":[{"line-clamp":[je,"none",ne,M1]}],leading:[{leading:[f,...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]},E5,A5]}],"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:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"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,Xi,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:de()}],"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":de()}],"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:[E,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:Xt()}],"translate-x":[{"translate-x":Xt()}],"translate-y":[{"translate-y":Xt()}],"translate-z":[{"translate-z":Xt()}],"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,Xi,Za,M1]}],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"]}},R5=u5(D5);function oe(...n){return R5(el(n))}const V5=yg("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:oe(V5({variant:s,size:l,className:n})),...r})}const Dg=M.createContext({});function O5(n){const s=M.useRef(null);return s.current===null&&(s.current=n()),s.current}const _5=typeof window<"u",L5=_5?M.useLayoutEffect:M.useEffect,Vd=M.createContext(null);function Od(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 _d=()=>{};const ja={},Rg=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Vg(n){return typeof n=="object"&&n!==null}const Og=n=>/^0[^.\s]+$/u.test(n);function _g(n){let s;return()=>(s===void 0&&(s=n()),s)}const sn=n=>n,B5=(n,s)=>l=>s(n(l)),rl=(...n)=>n.reduce(B5),tl=(n,s,l)=>{const r=s-n;return r===0?1:(l-n)/r};class Ld{constructor(){this.subscriptions=[]}add(s){return Od(this.subscriptions,s),()=>Kr(this.subscriptions,s)}notify(s,l,r){const d=this.subscriptions.length;if(d)if(d===1)this.subscriptions[0](s,l,r);else for(let f=0;f<d;f++){const h=this.subscriptions[f];h&&h(s,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ut=n=>n*1e3,nn=n=>n/1e3;function Lg(n,s){return s?n*(1e3/s):0}const Bg=(n,s,l)=>(((1-3*l+3*s)*n+(3*l-6*s))*n+3*s)*n,U5=1e-7,H5=12;function q5(n,s,l,r,d){let f,h,p=0;do h=s+(l-s)/2,f=Bg(h,r,d)-n,f>0?l=h:s=h;while(Math.abs(f)>U5&&++p<H5);return h}function ol(n,s,l,r){if(n===s&&l===r)return sn;const d=f=>q5(f,0,1,n,l);return f=>f===0||f===1?f:Bg(d(f),s,r)}const Ug=n=>s=>s<=.5?n(2*s)/2:(2-n(2*(1-s)))/2,Hg=n=>s=>1-n(1-s),qg=ol(.33,1.53,.69,.99),Bd=Hg(qg),Gg=Ug(Bd),Yg=n=>n>=1?1:(n*=2)<1?.5*Bd(n):.5*(2-Math.pow(2,-10*(n-1))),Ud=n=>1-Math.sin(Math.acos(n)),Xg=Hg(Ud),Zg=Ug(Ud),G5=ol(.42,0,1,1),Y5=ol(0,0,.58,1),Qg=ol(.42,0,.58,1),X5=n=>Array.isArray(n)&&typeof n[0]!="number",Kg=n=>Array.isArray(n)&&typeof n[0]=="number",Z5={linear:sn,easeIn:G5,easeInOut:Qg,easeOut:Y5,circIn:Ud,circInOut:Zg,circOut:Xg,backIn:Bd,backInOut:Gg,backOut:qg,anticipate:Yg},Q5=n=>typeof n=="string",k1=n=>{if(Kg(n)){_d(n.length===4);const[s,l,r,d]=n;return ol(s,l,r,d)}else if(Q5(n))return Z5[n];return n},zr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K5(n,s){let l=new Set,r=new Set,d=!1,f=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function y(x){h.has(x)&&(g.schedule(x),n()),x(p)}const g={schedule:(x,b=!1,S=!1)=>{const T=S&&d?l:r;return b&&h.add(x),T.add(x),x},cancel:x=>{r.delete(x),h.delete(x)},process:x=>{if(p=x,d){f=!0;return}d=!0;const b=l;l=r,r=b,l.forEach(y),l.clear(),d=!1,f&&(f=!1,g.process(x))}};return g}const F5=40;function Fg(n,s){let l=!1,r=!0;const d={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,h=zr.reduce((Y,X)=>(Y[X]=K5(f),Y),{}),{setup:p,read:y,resolveKeyframes:g,preUpdate:x,update:b,preRender:S,render:j,postRender:T}=h,E=()=>{const Y=ja.useManualTiming,X=Y?d.timestamp:performance.now();l=!1,Y||(d.delta=r?1e3/60:Math.max(Math.min(X-d.timestamp,F5),1)),d.timestamp=X,d.isProcessing=!0,p.process(d),y.process(d),g.process(d),x.process(d),b.process(d),S.process(d),j.process(d),T.process(d),d.isProcessing=!1,l&&s&&(r=!1,n(E))},O=()=>{l=!0,r=!0,d.isProcessing||n(E)};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:d,steps:h}}const{schedule:Ue,cancel:wa,state:ht,steps:Ou}=Fg(typeof requestAnimationFrame<"u"?requestAnimationFrame:sn,!0);let _r;function P5(){_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(P5)}},Pg=n=>s=>typeof s=="string"&&s.startsWith(n),$g=Pg("--"),$5=Pg("var(--"),Hd=n=>$5(n)?J5.test(n.split("/*")[0].trim()):!1,J5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function D1(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Ks={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},nl={...Ks,transform:n=>Tn(0,1,n)},kr={...Ks,default:1},Pi=n=>Math.round(n*1e5)/1e5,qd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W5(n){return n==null}const I5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gd=(n,s)=>l=>!!(typeof l=="string"&&I5.test(l)&&l.startsWith(n)||s&&!W5(l)&&Object.prototype.hasOwnProperty.call(l,s)),Jg=(n,s,l)=>r=>{if(typeof r!="string")return r;const[d,f,h,p]=r.match(qd);return{[n]:parseFloat(d),[s]:parseFloat(f),[l]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},e4=n=>Tn(0,255,n),_u={...Ks,transform:n=>Math.round(e4(n))},Fa={test:Gd("rgb","red"),parse:Jg("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 t4(n){let s="",l="",r="",d="";return n.length>5?(s=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),d=n.substring(7,9)):(s=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),d=n.substring(4,5),s+=s,l+=l,r+=r,d+=d),{red:parseInt(s,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:d?parseInt(d,16)/255:1}}const id={test:Gd("#"),parse:t4,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"),n4=cl("vh"),a4=cl("vw"),R1={...wn,parse:n=>wn.parse(n)/100,transform:n=>wn.transform(n*100)},Hs={test:Gd("hsl","hue"),parse:Jg("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)||id.test(n)||Hs.test(n),parse:n=>Fa.test(n)?Fa.parse(n):Hs.test(n)?Hs.parse(n):id.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)}},s4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i4(n){return isNaN(n)&&typeof n=="string"&&(n.match(qd)?.length||0)+(n.match(s4)?.length||0)>0}const Wg="number",Ig="color",l4="var",r4="var(",V1="${}",o4=/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 Xs(n){const s=n.toString(),l=[],r={color:[],number:[],var:[]},d=[];let f=0;const p=s.replace(o4,y=>(et.test(y)?(r.color.push(f),d.push(Ig),l.push(et.parse(y))):y.startsWith(r4)?(r.var.push(f),d.push(l4),l.push(y)):(r.number.push(f),d.push(Wg),l.push(parseFloat(y))),++f,V1)).split(V1);return{values:l,split:p,indexes:r,types:d}}function c4(n){return Xs(n).values}function e2({split:n,types:s}){const l=n.length;return r=>{let d="";for(let f=0;f<l;f++)if(d+=n[f],r[f]!==void 0){const h=s[f];h===Wg?d+=Pi(r[f]):h===Ig?d+=et.transform(r[f]):d+=r[f]}return d}}function u4(n){return e2(Xs(n))}const d4=n=>typeof n=="number"?0:et.test(n)?et.getAnimatableNone(n):n,f4=(n,s)=>typeof n=="number"?s?.trim().endsWith("/")?n:0:d4(n);function h4(n){const s=Xs(n);return e2(s)(s.values.map((r,d)=>f4(r,s.split[d])))}const pn={test:i4,parse:c4,createTransformer:u4,getAnimatableNone:h4};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 m4({hue:n,saturation:s,lightness:l,alpha:r}){n/=360,s/=100,l/=100;let d=0,f=0,h=0;if(!s)d=f=h=l;else{const p=l<.5?l*(1+s):l+s-l*s,y=2*l-p;d=Lu(y,p,n+1/3),f=Lu(y,p,n),h=Lu(y,p,n-1/3)}return{red:Math.round(d*255),green:Math.round(f*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,d=l*(s*s-r)+r;return d<0?0:Math.sqrt(d)},p4=[id,Fa,Hs],g4=n=>p4.find(s=>s.test(n));function O1(n){const s=g4(n);if(!s)return!1;let l=s.parse(n);return s===Hs&&(l=m4(l)),l}const _1=(n,s)=>{const l=O1(n),r=O1(s);if(!l||!r)return Fr(n,s);const d={...l};return f=>(d.red=Bu(l.red,r.red,f),d.green=Bu(l.green,r.green,f),d.blue=Bu(l.blue,r.blue,f),d.alpha=Ye(l.alpha,r.alpha,f),Fa.transform(d))},ld=new Set(["none","hidden"]);function y4(n,s){return ld.has(n)?l=>l<=0?n:s:l=>l>=1?s:n}function x4(n,s){return l=>Ye(n,s,l)}function Yd(n){return typeof n=="number"?x4:typeof n=="string"?Hd(n)?Fr:et.test(n)?_1:S4:Array.isArray(n)?t2:typeof n=="object"?et.test(n)?_1:v4:Fr}function t2(n,s){const l=[...n],r=l.length,d=n.map((f,h)=>Yd(f)(f,s[h]));return f=>{for(let h=0;h<r;h++)l[h]=d[h](f);return l}}function v4(n,s){const l={...n,...s},r={};for(const d in l)n[d]!==void 0&&s[d]!==void 0&&(r[d]=Yd(n[d])(n[d],s[d]));return d=>{for(const f in r)l[f]=r[f](d);return l}}function b4(n,s){const l=[],r={color:0,var:0,number:0};for(let d=0;d<s.values.length;d++){const f=s.types[d],h=n.indexes[f][r[f]],p=n.values[h]??0;l[d]=p,r[f]++}return l}const S4=(n,s)=>{const l=pn.createTransformer(s),r=Xs(n),d=Xs(s);return r.indexes.var.length===d.indexes.var.length&&r.indexes.color.length===d.indexes.color.length&&r.indexes.number.length>=d.indexes.number.length?ld.has(n)&&!d.values.length||ld.has(s)&&!r.values.length?y4(n,s):rl(t2(b4(r,d),d.values),l):Fr(n,s)};function n2(n,s,l){return typeof n=="number"&&typeof s=="number"&&typeof l=="number"?Ye(n,s,l):Yd(n)(n,s)}const j4=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()}},a2=(n,s,l=10)=>{let r="";const d=Math.max(Math.round(s/l),2);for(let f=0;f<d;f++)r+=Math.round(n(f/(d-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Pr=2e4;function Xd(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 w4(n,s=100,l){const r=l({...n,keyframes:[0,s]}),d=Math.min(Xd(r),Pr);return{type:"keyframes",ease:f=>r.next(d*f).value/s,duration:nn(d)}}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 rd(n,s){return n*Math.sqrt(1-s*s)}const T4=12;function N4(n,s,l){let r=l;for(let d=1;d<T4;d++)r=r-n(r)/s(r);return r}const Uu=.001;function A4({duration:n=Ke.duration,bounce:s=Ke.bounce,velocity:l=Ke.velocity,mass:r=Ke.mass}){let d,f,h=1-s;h=Tn(Ke.minDamping,Ke.maxDamping,h),n=Tn(Ke.minDuration,Ke.maxDuration,nn(n)),h<1?(d=g=>{const x=g*h,b=x*n,S=x-l,j=rd(g,h),T=Math.exp(-b);return Uu-S/j*T},f=g=>{const b=g*h*n,S=b*l+l,j=Math.pow(h,2)*Math.pow(g,2)*n,T=Math.exp(-b),E=rd(Math.pow(g,2),h);return(-d(g)+Uu>0?-1:1)*((S-j)*T)/E}):(d=g=>{const x=Math.exp(-g*n),b=(g-l)*n+1;return-Uu+x*b},f=g=>{const x=Math.exp(-g*n),b=(l-g)*(n*n);return x*b});const p=5/n,y=N4(d,f,p);if(n=Ut(n),isNaN(y))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:n};{const g=Math.pow(y,2)*r;return{stiffness:g,damping:h*2*Math.sqrt(r*g),duration:n}}}const C4=["duration","bounce"],M4=["stiffness","damping","mass"];function L1(n,s){return s.some(l=>n[l]!==void 0)}function E4(n){let s={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...n};if(!L1(n,M4)&&L1(n,C4))if(s.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),d=r*r,f=2*Tn(.05,1,1-(n.bounce||0))*Math.sqrt(d);s={...s,mass:Ke.mass,stiffness:d,damping:f}}else{const l=A4({...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:d}=l;const f=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],p={done:!1,value:f},{stiffness:y,damping:g,mass:x,duration:b,velocity:S,isResolvedFromDuration:j}=E4({...l,velocity:-nn(l.velocity||0)}),T=S||0,E=g/(2*Math.sqrt(y*x)),O=h-f,B=nn(Math.sqrt(y/x)),q=Math.abs(O)<5;r||(r=q?Ke.restSpeed.granular:Ke.restSpeed.default),d||(d=q?Ke.restDelta.granular:Ke.restDelta.default);let Y,X,Z,J,$,L;if(E<1)Z=rd(B,E),J=(T+E*B*O)/Z,Y=le=>{const F=Math.exp(-E*B*le);return h-F*(J*Math.sin(Z*le)+O*Math.cos(Z*le))},$=E*B*J+O*Z,L=E*B*O-J*Z,X=le=>Math.exp(-E*B*le)*($*Math.sin(Z*le)+L*Math.cos(Z*le));else if(E===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(E*E-1);Y=be=>{const ye=Math.exp(-E*B*be),k=Math.min(le*be,300);return h-ye*((T+E*B*O)*Math.sinh(k)+le*O*Math.cosh(k))/le};const F=(T+E*B*O)/le,ce=E*B*F-O*le,we=E*B*O-F*le;X=be=>{const ye=Math.exp(-E*B*be),k=Math.min(le*be,300);return ye*(ce*Math.sinh(k)+we*Math.cosh(k))}}const fe={calculatedDuration:j&&b||null,velocity:le=>Ut(X(le)),next:le=>{if(!j&&E<1){const ce=Math.exp(-E*B*le),we=Math.sin(Z*le),be=Math.cos(Z*le),ye=h-ce*(J*we+O*be),k=Ut(ce*($*we+L*be));return p.done=Math.abs(k)<=r&&Math.abs(h-ye)<=d,p.value=p.done?h:ye,p}const F=Y(le);if(j)p.done=le>=b;else{const ce=Ut(X(le));p.done=Math.abs(ce)<=r&&Math.abs(h-F)<=d}return p.value=p.done?h:F,p},toString:()=>{const le=Math.min(Xd(fe),Pr),F=a2(ce=>fe.next(le*ce).value,le,30);return le+"ms "+F},toTransition:()=>{}};return fe}$r.applyToOptions=n=>{const s=w4(n,100,$r);return n.ease=s.ease,n.duration=Ut(s.duration),n.type="keyframes",n};const z4=5;function s2(n,s,l){const r=Math.max(s-z4,0);return Lg(l-n(r),s-r)}function od({keyframes:n,velocity:s=0,power:l=.8,timeConstant:r=325,bounceDamping:d=10,bounceStiffness:f=500,modifyTarget:h,min:p,max:y,restDelta:g=.5,restSpeed:x}){const b=n[0],S={done:!1,value:b},j=L=>p!==void 0&&L<p||y!==void 0&&L>y,T=L=>p===void 0?y:y===void 0||Math.abs(p-L)<Math.abs(y-L)?p:y;let E=l*s;const O=b+E,B=h===void 0?O:h(O);B!==O&&(E=B-b);const q=L=>-E*Math.exp(-L/r),Y=L=>B+q(L),X=L=>{const fe=q(L),le=Y(L);S.done=Math.abs(fe)<=g,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:s2(Y,L,S.value),damping:d,stiffness:f,restDelta:g,restSpeed:x}))};return $(0),{calculatedDuration:null,next:L=>{let fe=!1;return!J&&Z===void 0&&(fe=!0,X(L),$(L)),Z!==void 0&&L>=Z?J.next(L-Z):(!fe&&X(L),S)}}}function k4(n,s,l){const r=[],d=l||ja.mix||n2,f=n.length-1;for(let h=0;h<f;h++){let p=d(n[h],n[h+1]);if(s){const y=Array.isArray(s)?s[h]||sn:s;p=rl(y,p)}r.push(p)}return r}function D4(n,s,{clamp:l=!0,ease:r,mixer:d}={}){const f=n.length;if(_d(f===s.length),f===1)return()=>s[0];if(f===2&&s[0]===s[1])return()=>s[1];const h=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),s=[...s].reverse());const p=k4(s,r,d),y=p.length,g=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 p[b](S)};return l?x=>g(Tn(n[0],n[f-1],x)):g}function R4(n,s){const l=n[n.length-1];for(let r=1;r<=s;r++){const d=tl(0,s,r);n.push(Ye(l,1,d))}}function V4(n){const s=[0];return R4(s,n.length-1),s}function O4(n,s){return n.map(l=>l*s)}function _4(n,s){return n.map(()=>s||Qg).splice(0,n.length-1)}function $i({duration:n=300,keyframes:s,times:l,ease:r="easeInOut"}){const d=X5(r)?r.map(k1):k1(r),f={done:!1,value:s[0]},h=O4(l&&l.length===s.length?l:V4(s),n),p=D4(h,s,{ease:Array.isArray(d)?d:_4(s,d)});return{calculatedDuration:n,next:y=>(f.value=p(y),f.done=y>=n,f)}}const L4=n=>n!==null;function io(n,{repeat:s,repeatType:l="loop"},r,d=1){const f=n.filter(L4),p=d<0||s&&l!=="loop"&&s%2===1?0:f.length-1;return!p||r===void 0?f[p]:r}const B4={decay:od,inertia:od,tween:$i,keyframes:$i,spring:$r};function i2(n){typeof n.type=="string"&&(n.type=B4[n.type])}class Zd{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 U4=n=>n/100;class Jr extends Zd{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;i2(s);const{type:l=$i,repeat:r=0,repeatDelay:d=0,repeatType:f,velocity:h=0}=s;let{keyframes:p}=s;const y=l||$i;y!==$i&&typeof p[0]!="number"&&(this.mixKeyframes=rl(U4,n2(p[0],p[1])),p=[0,100]);const g=y({...s,keyframes:p});f==="mirror"&&(this.mirroredGenerator=y({...s,keyframes:[...p].reverse(),velocity:-h})),g.calculatedDuration===null&&(g.calculatedDuration=Xd(g));const{calculatedDuration:x}=g;this.calculatedDuration=x,this.resolvedDuration=x+d,this.totalDuration=this.resolvedDuration*(r+1)-d,this.generator=g}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:d,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:x,repeat:b,repeatType:S,repeatDelay:j,type:T,onUpdate:E,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-d/this.speed,this.startTime)),l?this.currentTime=s:this.updateTime(s);const B=this.currentTime-g*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?B<0:B>d;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let Y=this.currentTime,X=r;if(b){const L=Math.min(this.currentTime,d)/p;let fe=Math.floor(L),le=L%1;!le&&L>=1&&(le=1),le===1&&fe--,fe=Math.min(fe,b+1),fe%2&&(S==="reverse"?(le=1-le,j&&(le-=j/p)):S==="mirror"&&(X=h)),Y=Tn(0,1,le)*p}let Z;q?(this.delayState.value=x[0],Z=this.delayState):Z=X.next(Y),f&&!q&&(Z.value=f(Z.value));let{done:J}=Z;!q&&y!==null&&(J=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&J);return $&&T!==od&&(Z.value=io(x,this.options,O,this.speed)),E&&E(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=Ut(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 s2(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=j4,startTime:l}=this.options;this.driver||(this.driver=s(d=>this.tick(d))),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 H4(n){for(let s=1;s<n.length;s++)n[s]??(n[s]=n[s-1])}const Pa=n=>n*180/Math.PI,cd=n=>{const s=Pa(Math.atan2(n[1],n[0]));return ud(s)},q4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:cd,rotateZ:cd,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},ud=n=>(n=n%360,n<0&&(n+=360),n),B1=cd,U1=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),H1=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),G4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:U1,scaleY:H1,scale:n=>(U1(n)+H1(n))/2,rotateX:n=>ud(Pa(Math.atan2(n[6],n[5]))),rotateY:n=>ud(Pa(Math.atan2(-n[2],n[0]))),rotateZ:B1,rotate:B1,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 dd(n){return n.includes("scale")?1:0}function fd(n,s){if(!n||n==="none")return dd(s);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,d;if(l)r=G4,d=l;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=q4,d=p}if(!d)return dd(s);const f=r[s],h=d[1].split(",").map(X4);return typeof f=="function"?f(h):h[f]}const Y4=(n,s)=>{const{transform:l="none"}=getComputedStyle(n);return fd(l,s)};function X4(n){return parseFloat(n.trim())}const Fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ps=new Set(Fs),q1=n=>n===Ks||n===se,Z4=new Set(["x","y","z"]),Q4=Fs.filter(n=>!Z4.has(n));function K4(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 d=n.max-n.min;return r==="border-box"?d:d-parseFloat(s)-parseFloat(l)},height:({y:n},{paddingTop:s="0",paddingBottom:l="0",boxSizing:r})=>{const d=n.max-n.min;return r==="border-box"?d:d-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})=>fd(s,"x"),y:(n,{transform:s})=>fd(s,"y")};Sa.translateX=Sa.x;Sa.translateY=Sa.y;const $a=new Set;let hd=!1,md=!1,pd=!1;function l2(){if(md){const n=Array.from($a).filter(r=>r.needsMeasurement),s=new Set(n.map(r=>r.element)),l=new Map;s.forEach(r=>{const d=K4(r);d.length&&(l.set(r,d),r.render())}),n.forEach(r=>r.measureInitialState()),s.forEach(r=>{r.render();const d=l.get(r);d&&d.forEach(([f,h])=>{r.getValue(f)?.set(h)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}md=!1,hd=!1,$a.forEach(n=>n.complete(pd)),$a.clear()}function r2(){$a.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(md=!0)})}function F4(){pd=!0,r2(),l2(),pd=!1}class Qd{constructor(s,l,r,d,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=l,this.name=r,this.motionValue=d,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?($a.add(this),hd||(hd=!0,Ue.read(r2),Ue.resolveKeyframes(l2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:l,element:r,motionValue:d}=this;if(s[0]===null){const f=d?.get(),h=s[s.length-1];if(f!==void 0)s[0]=f;else if(r&&l){const p=r.readValue(l,h);p!=null&&(s[0]=p)}s[0]===void 0&&(s[0]=h),d&&f===void 0&&d.set(s[0])}H4(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 P4=n=>n.startsWith("--");function o2(n,s,l){P4(s)?n.style.setProperty(s,l):n.style[s]=l}const $4={};function c2(n,s){const l=_g(n);return()=>$4[s]??l()}const J4=c2(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),u2=c2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ki=([n,s,l,r])=>`cubic-bezier(${n}, ${s}, ${l}, ${r})`,G1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ki([0,.65,.55,1]),circOut:Ki([.55,0,1,.45]),backIn:Ki([.31,.01,.66,-.59]),backOut:Ki([.33,1.53,.69,.99])};function d2(n,s){if(n)return typeof n=="function"?u2()?a2(n,s):"ease-out":Kg(n)?Ki(n):Array.isArray(n)?n.map(l=>d2(l,s)||G1.easeOut):G1[n]}function W4(n,s,l,{delay:r=0,duration:d=300,repeat:f=0,repeatType:h="loop",ease:p="easeOut",times:y}={},g=void 0){const x={[s]:l};y&&(x.offset=y);const b=d2(p,d);Array.isArray(b)&&(x.easing=b);const S={delay:r,duration:d,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),n.animate(x,S)}function f2(n){return typeof n=="function"&&"applyToOptions"in n}function I4({type:n,...s}){return f2(n)&&u2()?n.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class h2 extends Zd{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:l,name:r,keyframes:d,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:p,onComplete:y}=s;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=s,_d(typeof s.type!="string");const g=I4(s);this.animation=W4(l,r,d,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const x=io(d,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(x),o2(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=Ut(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:d}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&J4()?(this.animation.timeline=s,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),sn):d(this)}}const m2={anticipate:Yg,backInOut:Gg,circInOut:Zg};function e8(n){return n in m2}function t8(n){typeof n.ease=="string"&&e8(n.ease)&&(n.ease=m2[n.ease])}const Hu=10;class n8 extends h2{constructor(s){t8(s),i2(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:d,element:f,...h}=this.options;if(!l)return;if(s!==void 0){l.set(s);return}const p=new Jr({...h,autoplay:!1}),y=Math.max(Hu,xt.now()-this.startTime),g=Tn(0,Hu,y-Hu),x=p.sample(y).value,{name:b}=this.options;f&&b&&o2(f,b,x),l.setWithVelocity(p.sample(Math.max(0,y-g)).value,x,g),p.stop()}}const Y1=(n,s)=>s==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(pn.test(n)||n==="0")&&!n.startsWith("url("));function a8(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 s8(n,s,l,r){const d=n[0];if(d===null)return!1;if(s==="display"||s==="visibility")return!0;const f=n[n.length-1],h=Y1(d,s),p=Y1(f,s);return!h||!p?!1:a8(n)||(l==="spring"||f2(l))&&r}function gd(n){n.duration=0,n.type="keyframes"}const p2=new Set(["opacity","clipPath","filter","transform"]),i8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function l8(n){for(let s=0;s<n.length;s++)if(typeof n[s]=="string"&&i8.test(n[s]))return!0;return!1}const r8=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),o8=_g(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function c8(n){const{motionValue:s,name:l,repeatDelay:r,repeatType:d,damping:f,type:h,keyframes:p}=n;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:x}=s.owner.getProps();return o8()&&l&&(p2.has(l)||r8.has(l)&&l8(p))&&(l!=="transform"||!x)&&!g&&!r&&d!=="mirror"&&f!==0&&h!=="inertia"}const u8=40;class d8 extends Zd{constructor({autoplay:s=!0,delay:l=0,type:r="keyframes",repeat:d=0,repeatDelay:f=0,repeatType:h="loop",keyframes:p,name:y,motionValue:g,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:d,repeatDelay:f,repeatType:h,name:y,motionValue:g,element:x,...b},j=x?.KeyframeResolver||Qd;this.keyframeResolver=new j(p,(T,E,O)=>this.onKeyframesResolved(T,E,S,!O),y,g,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,l,r,d){this.keyframeResolver=void 0;const{name:f,type:h,velocity:p,delay:y,isHandoff:g,onUpdate:x}=r;this.resolvedAt=xt.now();let b=!0;s8(s,f,h,p)||(b=!1,(ja.instantAnimations||!y)&&x?.(io(s,r,l)),s[0]=s[s.length-1],gd(r),r.repeat=0);const j={startTime:d?this.resolvedAt?this.resolvedAt-this.createdAt>u8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:s},T=b&&!g&&c8(j),E=j.motionValue?.owner?.current;let O;if(T)try{O=new n8({...j,element:E})}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(),F4()),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 g2(n,s,l,r=0,d=1){const f=Array.from(n).sort((g,x)=>g.sortNodePosition(x)).indexOf(s),h=n.size,p=(h-1)*r;return typeof l=="function"?l(f,h):d===1?f*r:p-f*r}const f8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function h8(n){const s=f8.exec(n);if(!s)return[,];const[,l,r,d]=s;return[`--${l??r}`,d]}function y2(n,s,l=1){const[r,d]=h8(n);if(!r)return;const f=window.getComputedStyle(s).getPropertyValue(r);if(f){const h=f.trim();return Rg(h)?parseFloat(h):h}return Hd(d)?y2(d,s,l+1):d}const m8={type:"spring",stiffness:500,damping:25,restSpeed:10},p8=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),g8={type:"keyframes",duration:.8},y8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x8=(n,{keyframes:s})=>s.length>2?g8:Ps.has(n)?n.startsWith("scale")?p8(s[1]):m8:y8;function x2(n,s){if(n?.inherit&&s){const{inherit:l,...r}=n;return{...s,...r}}return n}function Kd(n,s){const l=n?.[s]??n?.default??n;return l!==n?x2(l,n):l}const v8=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function b8(n){for(const s in n)if(!v8.has(s))return!0;return!1}const Fd=(n,s,l,r={},d,f)=>h=>{const p=Kd(r,n)||{},y=p.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Ut(y);const x={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:s.getVelocity(),...p,delay:-g,onUpdate:S=>{s.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:n,motionValue:s,element:f?void 0:d};b8(p)||Object.assign(x,x8(n,x)),x.duration&&(x.duration=Ut(x.duration)),x.repeatDelay&&(x.repeatDelay=Ut(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(gd(x),x.delay===0&&(b=!0)),(ja.instantAnimations||ja.skipAnimations||d?.shouldSkipAnimations)&&(b=!0,gd(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!f&&s.get()!==void 0){const S=io(x.keyframes,p);if(S!==void 0){Ue.update(()=>{x.onUpdate(S),x.onComplete()});return}}return p.isSync?new Jr(x):new d8(x)};function X1(n){const s=[{},{}];return n?.values.forEach((l,r)=>{s[0][r]=l.get(),s[1][r]=l.getVelocity()}),s}function Pd(n,s,l,r){if(typeof s=="function"){const[d,f]=X1(r);s=s(l!==void 0?l:n.custom,d,f)}if(typeof s=="string"&&(s=n.variants&&n.variants[s]),typeof s=="function"){const[d,f]=X1(r);s=s(l!==void 0?l:n.custom,d,f)}return s}function Ja(n,s,l){const r=n.getProps();return Pd(r,s,l!==void 0?l:r.custom,n)}const v2=new Set(["width","height","top","left","right","bottom",...Fs]),Z1=30,S8=n=>!isNaN(parseFloat(n));class j8{constructor(s,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const d=xt.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.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=S8(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 Ld);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>Z1)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Z1);return Lg(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 Zs(n,s){return new j8(n,s)}const yd=n=>Array.isArray(n);function w8(n,s,l){n.hasValue(s)?n.getValue(s).set(l):n.addValue(s,Zs(l))}function T8(n){return yd(n)?n[n.length-1]||0:n}function N8(n,s){const l=Ja(n,s);let{transitionEnd:r={},transition:d={},...f}=l||{};f={...f,...r};for(const h in f){const p=T8(f[h]);w8(n,h,p)}}const mt=n=>!!(n&&n.getVelocity);function A8(n){return!!(mt(n)&&n.add)}function xd(n,s){const l=n.getValue("willChange");if(A8(l))return l.add(s);if(!l&&ja.WillChange){const r=new ja.WillChange("auto");n.addValue("willChange",r),r.add(s)}}function $d(n){return n.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const C8="framerAppearId",b2="data-"+$d(C8);function S2(n){return n.props[b2]}function M8({protectedKeys:n,needsAnimating:s},l){const r=n.hasOwnProperty(l)&&s[l]!==!0;return s[l]=!1,r}function j2(n,s,{delay:l=0,transitionOverride:r,type:d}={}){let{transition:f,transitionEnd:h,...p}=s;const y=n.getDefaultTransition();f=f?x2(f,y):y;const g=f?.reduceMotion;r&&(f=r);const x=[],b=d&&n.animationState&&n.animationState.getState()[d];for(const S in p){const j=n.getValue(S,n.latestValues[S]??null),T=p[S];if(T===void 0||b&&M8(b,S))continue;const E={delay:l,...Kd(f||{},S)},O=j.get();if(O!==void 0&&!j.isAnimating()&&!Array.isArray(T)&&T===O&&!E.velocity){Ue.update(()=>j.set(T));continue}let B=!1;if(window.MotionHandoffAnimation){const X=S2(n);if(X){const Z=window.MotionHandoffAnimation(X,S,Ue);Z!==null&&(E.startTime=Z,B=!0)}}xd(n,S);const q=g??n.shouldReduceMotion;j.start(Fd(S,j,T,q&&v2.has(S)?{type:!1}:E,n,B));const Y=j.animation;Y&&x.push(Y)}if(h){const S=()=>Ue.update(()=>{h&&N8(n,h)});x.length?Promise.all(x).then(S):S()}return x}function vd(n,s,l={}){const r=Ja(n,s,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:d=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(d=l.transitionOverride);const f=r?()=>Promise.all(j2(n,r,l)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:x,staggerDirection:b}=d;return E8(n,s,y,g,x,b,l)}:()=>Promise.resolve(),{when:p}=d;if(p){const[y,g]=p==="beforeChildren"?[f,h]:[h,f];return y().then(()=>g())}else return Promise.all([f(),h(l.delay)])}function E8(n,s,l=0,r=0,d=0,f=1,h){const p=[];for(const y of n.variantChildren)y.notify("AnimationStart",s),p.push(vd(y,s,{...h,delay:l+(typeof r=="function"?0:r)+g2(n.variantChildren,y,r,d,f)}).then(()=>y.notify("AnimationComplete",s)));return Promise.all(p)}function z8(n,s,l={}){n.notify("AnimationStart",s);let r;if(Array.isArray(s)){const d=s.map(f=>vd(n,f,l));r=Promise.all(d)}else if(typeof s=="string")r=vd(n,s,l);else{const d=typeof s=="function"?Ja(n,s,l.custom):s;r=Promise.all(j2(n,d,l))}return r.then(()=>{n.notify("AnimationComplete",s)})}const k8={test:n=>n==="auto",parse:n=>n},w2=n=>s=>s.test(n),T2=[Ks,se,wn,ba,a4,n4,k8],Q1=n=>T2.find(w2(n));function D8(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Og(n):!0}const R8=new Set(["brightness","contrast","saturate","opacity"]);function V8(n){const[s,l]=n.slice(0,-1).split("(");if(s==="drop-shadow")return n;const[r]=l.match(qd)||[];if(!r)return n;const d=l.replace(r,"");let f=R8.has(s)?1:0;return r!==l&&(f*=100),s+"("+f+d+")"}const O8=/\b([a-z-]*)\(.*?\)/gu,bd={...pn,getAnimatableNone:n=>{const s=n.match(O8);return s?s.map(V8).join(" "):n}},Sd={...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))}},K1={...Ks,transform:Math.round},_8={rotate:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:kr,scaleX:kr,scaleY:kr,scaleZ:kr,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:R1,originY:R1,originZ:se},Jd={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,..._8,zIndex:K1,fillOpacity:nl,strokeOpacity:nl,numOctaves:K1},L8={...Jd,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:bd,WebkitFilter:bd,mask:Sd,WebkitMask:Sd},N2=n=>L8[n],B8=new Set([bd,Sd]);function A2(n,s){let l=N2(n);return B8.has(l)||(l=pn),l.getAnimatableNone?l.getAnimatableNone(s):void 0}const U8=new Set(["auto","none","0"]);function H8(n,s,l){let r=0,d;for(;r<n.length&&!d;){const f=n[r];typeof f=="string"&&!U8.has(f)&&Xs(f).values.length&&(d=n[r]),r++}if(d&&l)for(const f of s)n[f]=A2(l,d)}class q8 extends Qd{constructor(s,l,r,d,f){super(s,l,r,d,f,!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(),Hd(b))){const S=y2(b,l.current);S!==void 0&&(s[x]=S),x===s.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!v2.has(r)||s.length!==2)return;const[d,f]=s,h=Q1(d),p=Q1(f),y=D1(d),g=D1(f);if(y!==g&&Sa[r]){this.needsMeasurement=!0;return}if(h!==p)if(q1(h)&&q1(p))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 d=0;d<s.length;d++)(s[d]===null||D8(s[d]))&&r.push(d);r.length&&H8(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 d=l[l.length-1];d!==void 0&&s.getValue(r,d).jump(d,!1)}measureEndState(){const{element:s,name:l,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const d=s.getValue(l);d&&d.jump(this.measuredOrigin,!1);const f=r.length-1,h=r[f];r[f]=Sa[l](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,y])=>{s.getValue(p).set(y)}),this.resolveNoneKeyframes()}}function C2(n,s,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const d=l?.[n]??r.querySelectorAll(n);return d?Array.from(d):[]}return Array.from(n).filter(r=>r!=null)}const M2=(n,s)=>s&&typeof n=="number"?s.transform(n):n;function G8(n){return Vg(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Wd}=Fg(queueMicrotask,!1),mn={x:!1,y:!1};function E2(){return mn.x||mn.y}function Y8(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 z2(n,s){const l=C2(n),r=new AbortController,d={passive:!0,...s,signal:r.signal};return[l,d,()=>r.abort()]}function X8(n){return!(n.pointerType==="touch"||E2())}function Z8(n,s,l={}){const[r,d,f]=z2(n,l);return r.forEach(h=>{let p=!1,y=!1,g;const x=()=>{h.removeEventListener("pointerleave",T)},b=O=>{g&&(g(O),g=void 0),x()},S=O=>{p=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,b(O))},j=()=>{p=!0,window.addEventListener("pointerup",S,d),window.addEventListener("pointercancel",S,d)},T=O=>{if(O.pointerType!=="touch"){if(p){y=!0;return}b(O)}},E=O=>{if(!X8(O))return;y=!1;const B=s(h,O);typeof B=="function"&&(g=B,h.addEventListener("pointerleave",T,d))};h.addEventListener("pointerenter",E,d),h.addEventListener("pointerdown",j,d)}),f}const k2=(n,s)=>s?n===s?!0:k2(n,s.parentElement):!1,Id=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Q8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function K8(n){return Q8.has(n.tagName)||n.isContentEditable===!0}const F8=new Set(["INPUT","SELECT","TEXTAREA"]);function P8(n){return F8.has(n.tagName)||n.isContentEditable===!0}const Lr=new WeakSet;function F1(n){return s=>{s.key==="Enter"&&n(s)}}function qu(n,s){n.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const $8=(n,s)=>{const l=n.currentTarget;if(!l)return;const r=F1(()=>{if(Lr.has(l))return;qu(l,"down");const d=F1(()=>{qu(l,"up")}),f=()=>qu(l,"cancel");l.addEventListener("keyup",d,s),l.addEventListener("blur",f,s)});l.addEventListener("keydown",r,s),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),s)};function P1(n){return Id(n)&&!E2()}const $1=new WeakSet;function J8(n,s,l={}){const[r,d,f]=z2(n,l),h=p=>{const y=p.currentTarget;if(!P1(p)||$1.has(p))return;Lr.add(y),l.stopPropagation&&$1.add(p);const g=s(y,p),x=(j,T)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),Lr.has(y)&&Lr.delete(y),P1(j)&&typeof g=="function"&&g(j,{success:T})},b=j=>{x(j,y===window||y===document||l.useGlobalTarget||k2(y,j.target))},S=j=>{x(j,!1)};window.addEventListener("pointerup",b,d),window.addEventListener("pointercancel",S,d)};return r.forEach(p=>{(l.useGlobalTarget?window:p).addEventListener("pointerdown",h,d),G8(p)&&(p.addEventListener("focus",g=>$8(g,d)),!K8(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function ef(n){return Vg(n)&&"ownerSVGElement"in n}const Br=new WeakMap;let Ur;const D2=(n,s,l)=>(r,d)=>d&&d[0]?d[0][n+"Size"]:ef(r)&&"getBBox"in r?r.getBBox()[s]:r[l],W8=D2("inline","width","offsetWidth"),I8=D2("block","height","offsetHeight");function e6({target:n,borderBoxSize:s}){Br.get(n)?.forEach(l=>{l(n,{get width(){return W8(n,s)},get height(){return I8(n,s)}})})}function t6(n){n.forEach(e6)}function n6(){typeof ResizeObserver>"u"||(Ur=new ResizeObserver(t6))}function a6(n,s){Ur||n6();const l=C2(n);return l.forEach(r=>{let d=Br.get(r);d||(d=new Set,Br.set(r,d)),d.add(s),Ur?.observe(r)}),()=>{l.forEach(r=>{const d=Br.get(r);d?.delete(s),d?.size||Ur?.unobserve(r)})}}const Hr=new Set;let qs;function s6(){qs=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Hr.forEach(s=>s(n))},window.addEventListener("resize",qs)}function i6(n){return Hr.add(n),qs||s6(),()=>{Hr.delete(n),!Hr.size&&typeof qs=="function"&&(window.removeEventListener("resize",qs),qs=void 0)}}function J1(n,s){return typeof n=="function"?i6(n):a6(n,s)}function l6(n){return ef(n)&&n.tagName==="svg"}const r6=[...T2,et,pn],o6=n=>r6.find(w2(n)),W1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gs=()=>({x:W1(),y:W1()}),I1=()=>({min:0,max:0}),st=()=>({x:I1(),y:I1()}),c6=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 tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nf=["initial",...tf];function ro(n){return lo(n.animate)||nf.some(s=>al(n[s]))}function R2(n){return!!(ro(n)||n.variants)}function u6(n,s,l){for(const r in s){const d=s[r],f=l[r];if(mt(d))n.addValue(r,d);else if(mt(f))n.addValue(r,Zs(d,{owner:n}));else if(f!==d)if(n.hasValue(r)){const h=n.getValue(r);h.liveStyle===!0?h.jump(d):h.hasAnimated||h.set(d)}else{const h=n.getStaticValue(r);n.addValue(r,Zs(h!==void 0?h:d,{owner:n}))}}for(const r in l)s[r]===void 0&&n.removeValue(r);return s}const jd={current:null},V2={current:!1},d6=typeof window<"u";function f6(){if(V2.current=!0,!!d6)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),s=()=>jd.current=n.matches;n.addEventListener("change",s),s()}else jd.current=!1}const ep=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Wr={};function O2(n){Wr=n}function h6(){return Wr}class m6{scrapeMotionValuesFromProps(s,l,r){return{}}constructor({parent:s,props:l,presenceContext:r,reducedMotionConfig:d,skipAnimations:f,blockInitialAnimation:h,visualState:p},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=Qd,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:g,renderState:x}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},this.renderState=x,this.parent=s,this.props=l,this.presenceContext=r,this.depth=s?s.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=ro(l),this.isVariantNode=R2(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];g[j]!==void 0&&mt(T)&&T.set(g[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,c6.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:(V2.current||f6(),this.shouldReduceMotion=jd.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&&p2.has(s)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:y,ease:g,duration:x}=l.accelerate,b=new h2({element:this.current,name:s,keyframes:p,times:y,ease:g,duration:Ut(x)}),S=h(b);this.valueSubscriptions.set(s,()=>{S(),b.cancel()});return}const r=Ps.has(s);r&&this.onBindTransform&&this.onBindTransform();const d=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 f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,s,l)),this.valueSubscriptions.set(s,()=>{d(),f&&f(),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:d}=l;if(!this.features[s]&&d&&r(this.props)&&(this.features[s]=new d(this)),this.features[s]){const f=this.features[s];f.isMounted?f.update():(f.mount(),f.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<ep.length;r++){const d=ep[r];this.propEventSubscriptions[d]&&(this.propEventSubscriptions[d](),delete this.propEventSubscriptions[d]);const f="on"+d,h=s[f];h&&(this.propEventSubscriptions[d]=this.on(d,h))}this.prevMotionValues=u6(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=Zs(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"&&(Rg(r)||Og(r))?r=parseFloat(r):!o6(r)&&pn.test(l)&&(r=A2(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 f=Pd(this.props,l,this.presenceContext?.custom);f&&(r=f[s])}if(l&&r!==void 0)return r;const d=this.getBaseTargetFromProps(this.props,s);return d!==void 0&&!mt(d)?d:this.initialValues[s]!==void 0&&r===void 0?void 0:this.baseTarget[s]}on(s,l){return this.events[s]||(this.events[s]=new Ld),this.events[s].add(l)}notify(s,...l){this.events[s]&&this.events[s].notify(...l)}scheduleRenderMicrotask(){Wd.render(this.render)}}class _2 extends m6{constructor(){super(...arguments),this.KeyframeResolver=q8}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 L2({top:n,left:s,right:l,bottom:r}){return{x:{min:s,max:l},y:{min:n,max:r}}}function p6({x:n,y:s}){return{top:s.min,right:n.max,bottom:s.max,left:n.min}}function g6(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 wd({scale:n,scaleX:s,scaleY:l}){return!Gu(n)||!Gu(s)||!Gu(l)}function Ka(n){return wd(n)||B2(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function B2(n){return tp(n.x)||tp(n.y)}function tp(n){return n&&n!=="0%"}function Ir(n,s,l){const r=n-l,d=s*r;return l+d}function np(n,s,l,r,d){return d!==void 0&&(n=Ir(n,d,r)),Ir(n,l,r)+s}function Td(n,s=0,l=1,r,d){n.min=np(n.min,s,l,r,d),n.max=np(n.max,s,l,r,d)}function U2(n,{x:s,y:l}){Td(n.x,s.translate,s.scale,s.originPoint),Td(n.y,l.translate,l.scale,l.originPoint)}const ap=.999999999999,sp=1.0000000000001;function y6(n,s,l,r=!1){const d=l.length;if(!d)return;s.x=s.y=1;let f,h;for(let p=0;p<d;p++){f=l[p],h=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(jn(n.x,-f.scroll.offset.x),jn(n.y,-f.scroll.offset.y)),h&&(s.x*=h.x.scale,s.y*=h.y.scale,U2(n,h)),r&&Ka(f.latestValues)&&qr(n,f.latestValues,f.layout?.layoutBox))}s.x<sp&&s.x>ap&&(s.x=1),s.y<sp&&s.y>ap&&(s.y=1)}function jn(n,s){n.min+=s,n.max+=s}function ip(n,s,l,r,d=.5){const f=Ye(n.min,n.max,d);Td(n,s,l,f,r)}function lp(n,s){return typeof n=="string"?parseFloat(n)/100*(s.max-s.min):n}function qr(n,s,l){const r=l??n;ip(n.x,lp(s.x,r.x),s.scaleX,s.scale,s.originX),ip(n.y,lp(s.y,r.y),s.scaleY,s.scale,s.originY)}function H2(n,s){return L2(g6(n.getBoundingClientRect(),s))}function x6(n,s,l){const r=H2(n,l),{scroll:d}=s;return d&&(jn(r.x,d.offset.x),jn(r.y,d.offset.y)),r}const v6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},b6=Fs.length;function S6(n,s,l){let r="",d=!0;for(let f=0;f<b6;f++){const h=Fs[f],p=n[h];if(p===void 0)continue;let y=!0;if(typeof p=="number")y=p===(h.startsWith("scale")?1:0);else{const g=parseFloat(p);y=h.startsWith("scale")?g===1:g===0}if(!y||l){const g=M2(p,Jd[h]);if(!y){d=!1;const x=v6[h]||h;r+=`${x}(${g}) `}l&&(s[h]=g)}}return r=r.trim(),l?r=l(s,d?"":r):d&&(r="none"),r}function af(n,s,l){const{style:r,vars:d,transformOrigin:f}=n;let h=!1,p=!1;for(const y in s){const g=s[y];if(Ps.has(y)){h=!0;continue}else if($g(y)){d[y]=g;continue}else{const x=M2(g,Jd[y]);y.startsWith("origin")?(p=!0,f[y]=x):r[y]=x}}if(s.transform||(h||l?r.transform=S6(s,n.transform,l):r.transform&&(r.transform="none")),p){const{originX:y="50%",originY:g="50%",originZ:x=0}=f;r.transformOrigin=`${y} ${g} ${x}`}}function q2(n,{style:s,vars:l},r,d){const f=n.style;let h;for(h in s)f[h]=s[h];d?.applyProjectionStyles(f,r);for(h in l)f.setProperty(h,l[h])}function rp(n,s){return s.max===s.min?0:n/(s.max-s.min)*100}const Zi={correct:(n,s)=>{if(!s.target)return n;if(typeof n=="string")if(se.test(n))n=parseFloat(n);else return n;const l=rp(n,s.target.x),r=rp(n,s.target.y);return`${l}% ${r}%`}},j6={correct:(n,{treeScale:s,projectionDelta:l})=>{const r=n,d=pn.parse(n);if(d.length>5)return r;const f=pn.createTransformer(n),h=typeof d[0]!="number"?1:0,p=l.x.scale*s.x,y=l.y.scale*s.y;d[0+h]/=p,d[1+h]/=y;const g=Ye(p,y,.5);return typeof d[2+h]=="number"&&(d[2+h]/=g),typeof d[3+h]=="number"&&(d[3+h]/=g),f(d)}},Nd={borderRadius:{...Zi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zi,borderTopRightRadius:Zi,borderBottomLeftRadius:Zi,borderBottomRightRadius:Zi,boxShadow:j6};function G2(n,{layout:s,layoutId:l}){return Ps.has(n)||n.startsWith("origin")||(s||l!==void 0)&&(!!Nd[n]||n==="opacity")}function sf(n,s,l){const r=n.style,d=s?.style,f={};if(!r)return f;for(const h in r)(mt(r[h])||d&&mt(d[h])||G2(h,n)||l?.getValue(h)?.liveStyle!==void 0)&&(f[h]=r[h]);return f}function w6(n){return window.getComputedStyle(n)}class T6 extends _2{constructor(){super(...arguments),this.type="html",this.renderInstance=q2}readValueFromInstance(s,l){if(Ps.has(l))return this.projection?.isProjecting?dd(l):Y4(s,l);{const r=w6(s),d=($g(l)?r.getPropertyValue(l):r[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(s,{transformPagePoint:l}){return H2(s,l)}build(s,l,r){af(s,l,r.transformTemplate)}scrapeMotionValuesFromProps(s,l,r){return sf(s,l,r)}}const N6={offset:"stroke-dashoffset",array:"stroke-dasharray"},A6={offset:"strokeDashoffset",array:"strokeDasharray"};function C6(n,s,l=1,r=0,d=!0){n.pathLength=1;const f=d?N6:A6;n[f.offset]=`${-r}`,n[f.array]=`${s} ${l}`}const M6=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Y2(n,{attrX:s,attrY:l,attrScale:r,pathLength:d,pathSpacing:f=1,pathOffset:h=0,...p},y,g,x){if(af(n,p,g),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 M6)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),d!==void 0&&C6(b,d,f,h,!1)}const X2=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"]),Z2=n=>typeof n=="string"&&n.toLowerCase()==="svg";function E6(n,s,l,r){q2(n,s,void 0,r);for(const d in s.attrs)n.setAttribute(X2.has(d)?d:$d(d),s.attrs[d])}function Q2(n,s,l){const r=sf(n,s,l);for(const d in n)if(mt(n[d])||mt(s[d])){const f=Fs.indexOf(d)!==-1?"attr"+d.charAt(0).toUpperCase()+d.substring(1):d;r[f]=n[d]}return r}class z6 extends _2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(s,l){return s[l]}readValueFromInstance(s,l){if(Ps.has(l)){const r=N2(l);return r&&r.default||0}return l=X2.has(l)?l:$d(l),s.getAttribute(l)}scrapeMotionValuesFromProps(s,l,r){return Q2(s,l,r)}build(s,l,r){Y2(s,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(s,l,r,d){E6(s,l,r,d)}mount(s){this.isSVGTag=Z2(s.tagName),super.mount(s)}}const k6=nf.length;function K2(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?K2(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const s={};for(let l=0;l<k6;l++){const r=nf[l],d=n.props[r];(al(d)||d===!1)&&(s[r]=d)}return s}function F2(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 D6=[...tf].reverse(),R6=tf.length;function V6(n){return s=>Promise.all(s.map(({animation:l,options:r})=>z8(n,l,r)))}function O6(n){let s=V6(n),l=op(),r=!0,d=!1;const f=g=>(x,b)=>{const S=Ja(n,b,g==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:T,...E}=S;x={...x,...E,...T}}return x};function h(g){s=g(n)}function p(g){const{props:x}=n,b=K2(n.parent)||{},S=[],j=new Set;let T={},E=1/0;for(let B=0;B<R6;B++){const q=D6[B],Y=l[q],X=x[q]!==void 0?x[q]:b[q],Z=al(X),J=q===g?Y.isActive:null;J===!1&&(E=B);let $=X===b[q]&&X!==x[q]&&Z;if($&&(r||d)&&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=_6(Y.prevProp,X);let fe=L||q===g&&Y.isActive&&!$&&Z||B>E&&Z,le=!1;const F=Array.isArray(X)?X:[X];let ce=F.reduce(f(q),{});J===!1&&(ce={});const{prevResolvedValues:we={}}=Y,be={...we,...ce},ye=W=>{fe=!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=ce[W],Q=we[W];if(T.hasOwnProperty(W))continue;let N=!1;yd(P)&&yd(Q)?N=!F2(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=ce,Y.isActive&&(T={...T,...ce}),(r||d)&&n.blockInitialAnimation&&(fe=!1);const k=$&&L;fe&&(!k||le)&&S.push(...F.map(W=>{const P={type:q};if(typeof W=="string"&&(r||d)&&!k&&n.manuallyAnimateOnMount&&n.parent){const{parent:Q}=n,N=Ja(Q,W);if(Q.enteringChildren&&N){const{delayChildren:H}=N.transition||{};P.delay=g2(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,d=!1,O?s(S):Promise.resolve()}function y(g,x){if(l[g].isActive===x)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(g,x)),l[g].isActive=x;const b=p(g);for(const S in l)l[S].protectedKeys={};return b}return{animateChanges:p,setActive:y,setAnimateFunction:h,getState:()=>l,reset:()=>{l=op(),d=!0}}}function _6(n,s){return typeof s=="string"?s!==n:Array.isArray(s)?!F2(s,n):!1}function Qa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function op(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}function Ad(n,s){n.min=s.min,n.max=s.max}function hn(n,s){Ad(n.x,s.x),Ad(n.y,s.y)}function cp(n,s){n.translate=s.translate,n.scale=s.scale,n.originPoint=s.originPoint,n.origin=s.origin}const P2=1e-4,L6=1-P2,B6=1+P2,$2=.01,U6=0-$2,H6=0+$2;function vt(n){return n.max-n.min}function q6(n,s,l){return Math.abs(n-s)<=l}function up(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>=L6&&n.scale<=B6||isNaN(n.scale))&&(n.scale=1),(n.translate>=U6&&n.translate<=H6||isNaN(n.translate))&&(n.translate=0)}function Ji(n,s,l,r){up(n.x,s.x,l.x,r?r.originX:void 0),up(n.y,s.y,l.y,r?r.originY:void 0)}function dp(n,s,l,r=0){const d=r?Ye(l.min,l.max,r):l.min;n.min=d+s.min,n.max=n.min+vt(s)}function G6(n,s,l,r){dp(n.x,s.x,l.x,r?.x),dp(n.y,s.y,l.y,r?.y)}function fp(n,s,l,r=0){const d=r?Ye(l.min,l.max,r):l.min;n.min=s.min-d,n.max=n.min+vt(s)}function eo(n,s,l,r){fp(n.x,s.x,l.x,r?.x),fp(n.y,s.y,l.y,r?.y)}function hp(n,s,l,r,d){return n-=s,n=Ir(n,1/l,r),d!==void 0&&(n=Ir(n,1/d,r)),n}function Y6(n,s=0,l=1,r=.5,d,f=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 p=Ye(f.min,f.max,r);n===f&&(p-=s),n.min=hp(n.min,s,l,p,d),n.max=hp(n.max,s,l,p,d)}function mp(n,s,[l,r,d],f,h){Y6(n,s[l],s[r],s[d],s.scale,f,h)}const X6=["x","scaleX","originX"],Z6=["y","scaleY","originY"];function pp(n,s,l,r){mp(n.x,s,X6,l?l.x:void 0,r?r.x:void 0),mp(n.y,s,Z6,l?l.y:void 0,r?r.y:void 0)}function gp(n){return n.translate===0&&n.scale===1}function J2(n){return gp(n.x)&&gp(n.y)}function yp(n,s){return n.min===s.min&&n.max===s.max}function Q6(n,s){return yp(n.x,s.x)&&yp(n.y,s.y)}function xp(n,s){return Math.round(n.min)===Math.round(s.min)&&Math.round(n.max)===Math.round(s.max)}function W2(n,s){return xp(n.x,s.x)&&xp(n.y,s.y)}function vp(n){return vt(n.x)/vt(n.y)}function bp(n,s){return n.translate===s.translate&&n.scale===s.scale&&n.originPoint===s.originPoint}function Sn(n){return[n("x"),n("y")]}function K6(n,s,l){let r="";const d=n.x.translate/s.x,f=n.y.translate/s.y,h=l?.z||0;if((d||f||h)&&(r=`translate3d(${d}px, ${f}px, ${h}px) `),(s.x!==1||s.y!==1)&&(r+=`scale(${1/s.x}, ${1/s.y}) `),l){const{transformPerspective:g,rotate:x,rotateX:b,rotateY:S,skewX:j,skewY:T}=l;g&&(r=`perspective(${g}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 p=n.x.scale*s.x,y=n.y.scale*s.y;return(p!==1||y!==1)&&(r+=`scale(${p}, ${y})`),r||"none"}const I2=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],F6=I2.length,Sp=n=>typeof n=="string"?parseFloat(n):n,jp=n=>typeof n=="number"||se.test(n);function P6(n,s,l,r,d,f){d?(n.opacity=Ye(0,l.opacity??1,$6(r)),n.opacityExit=Ye(s.opacity??1,0,J6(r))):f&&(n.opacity=Ye(s.opacity??1,l.opacity??1,r));for(let h=0;h<F6;h++){const p=I2[h];let y=wp(s,p),g=wp(l,p);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||jp(y)===jp(g)?(n[p]=Math.max(Ye(Sp(y),Sp(g),r),0),(wn.test(g)||wn.test(y))&&(n[p]+="%")):n[p]=g}(s.rotate||l.rotate)&&(n.rotate=Ye(s.rotate||0,l.rotate||0,r))}function wp(n,s){return n[s]!==void 0?n[s]:n.borderRadius}const $6=ey(0,.5,Xg),J6=ey(.5,.95,sn);function ey(n,s,l){return r=>r<n?0:r>s?1:l(tl(n,s,r))}function W6(n,s,l){const r=mt(n)?n:Zs(n);return r.start(Fd("",r,s,l)),r.animation}function sl(n,s,l,r={passive:!0}){return n.addEventListener(s,l,r),()=>n.removeEventListener(s,l)}const I6=(n,s)=>n.depth-s.depth;class e7{constructor(){this.children=[],this.isDirty=!1}add(s){Od(this.children,s),this.isDirty=!0}remove(s){Kr(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(I6),this.isDirty=!1,this.children.forEach(s)}}function t7(n,s){const l=xt.now(),r=({timestamp:d})=>{const f=d-l;f>=s&&(wa(r),n(f-s))};return Ue.setup(r,!0),()=>wa(r)}function Gr(n){return mt(n)?n.get():n}class n7{constructor(){this.members=[]}add(s){Od(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 d=r.instance;(!d||d.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:d}=r.options,{layoutDependency:f}=s.options;(d===void 0||d!==f)&&(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"],a7=1e3;let s7=0;function Xu(n,s,l,r){const{latestValues:d}=s;d[n]&&(l[n]=d[n],s.setStaticValue(n,0),r&&(r[n]=0))}function ty(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:s}=n.options;if(!s)return;const l=S2(s);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:d,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ue,!(d||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&ty(r)}function ny({attachResizeListener:n,defaultParent:s,measureScroll:l,checkIsScrollRoot:r,resetTransform:d}){return class{constructor(h={},p=s?.()){this.id=s7++,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(r7),this.nodes.forEach(h7),this.nodes.forEach(m7),this.nodes.forEach(o7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new e7)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Ld),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const y=this.eventHandlers.get(h);y&&y.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=ef(h)&&!l6(h),this.instance=h;const{layoutId:p,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||p)&&(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=t7(S,250),Yr.hasAnimatedSinceResize&&(Yr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ap)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||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||g.getDefaultTransition()||v7,{onLayoutAnimationStart:E,onLayoutAnimationComplete:O}=g.getProps(),B=!this.targetLayout||!W2(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={...Kd(T,"layout"),onPlay:E,onComplete:O};(g.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(x,q)}else b||Ap(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(p7),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&&ty(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:p,layout:y}=this.options;if(p===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(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(u7),this.nodes.forEach(Tp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Np);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(d7),this.nodes.forEach(f7),this.nodes.forEach(i7),this.nodes.forEach(l7)):this.nodes.forEach(Np),this.clearAllSnapshots();const p=xt.now();ht.delta=Tn(0,1e3/60,p-ht.timestamp),ht.timestamp=p,ht.isProcessing=!0,Ou.update.process(ht),Ou.preRender.process(ht),Ou.render.process(ht),ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(c7),this.sharedNodes.forEach(g7)}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:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&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(!d)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!J2(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,x=g!==this.prevTransformTemplateValue;h&&this.instance&&(p||Ka(this.latestValues)||x)&&(d(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let y=this.removeElementScroll(p);return h&&(y=this.removeTransform(y)),b7(y),{animationId:this.root.animationId,measuredBox:p,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return st();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(S7))){const{scroll:g}=this.root;g&&(jn(p.x,g.offset.x),jn(p.y,g.offset.y))}return p}removeElementScroll(h){const p=st();if(hn(p,h),this.scroll?.wasRoot)return p;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:x,options:b}=g;g!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&hn(p,h),jn(p.x,x.offset.x),jn(p.y,x.offset.y))}return p}applyTransform(h,p=!1,y){const g=y||st();hn(g,h);for(let x=0;x<this.path.length;x++){const b=this.path[x];!p&&b.options.layoutScroll&&b.scroll&&b!==b.root&&(jn(g.x,-b.scroll.offset.x),jn(g.y,-b.scroll.offset.y)),Ka(b.latestValues)&&qr(g,b.latestValues,b.layout?.layoutBox)}return Ka(this.latestValues)&&qr(g,this.latestValues,this.layout?.layoutBox),g}removeTransform(h){const p=st();hn(p,h);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!Ka(g.latestValues))continue;let x;g.instance&&(wd(g.latestValues)&&g.updateSnapshot(),x=st(),hn(x,g.measurePageBox())),pp(p,g.latestValues,g.snapshot?.layoutBox,x)}return Ka(this.latestValues)&&pp(p,this.latestValues),p}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 p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==p;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(),G6(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),U2(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||wd(this.parent.latestValues)||B2(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,p,y){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=st(),this.relativeTargetOrigin=st(),eo(this.relativeTargetOrigin,p,y,this.options.layoutAnchor||void 0),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),p=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ht.timestamp&&(y=!1),y)return;const{layout:g,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||!(g||x))return;hn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;y6(this.layoutCorrected,this.treeScale,this.path,p),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():(cp(this.prevProjectionDelta.x,this.projectionDelta.x),cp(this.prevProjectionDelta.y,this.projectionDelta.y)),Ji(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!bp(this.projectionDelta.x,this.prevProjectionDelta.x)||!bp(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 p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gs(),this.projectionDelta=Gs(),this.projectionDeltaWithTransform=Gs()}setAnimationOrigin(h,p=!1){const y=this.snapshot,g=y?y.latestValues:{},x={...this.latestValues},b=Gs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=st(),j=y?y.source:void 0,T=this.layout?this.layout.source:void 0,E=j!==T,O=this.getStack(),B=!O||O.members.length<=1,q=!!(E&&!B&&this.options.crossfade===!0&&!this.path.some(x7));this.animationProgress=0;let Y;this.mixTargetDelta=X=>{const Z=X/1e3;Cp(b.x,h.x,Z),Cp(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),y7(this.relativeTarget,this.relativeTargetOrigin,S,Z),Y&&Q6(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=st()),hn(Y,this.relativeTarget)),E&&(this.animationValues=x,P6(x,g,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=Zs(0)),this.motionValue.jump(0,!1),this.currentAnimation=W6(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),h.onUpdate&&h.onUpdate(p)},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(a7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:y,layout:g,latestValues:x}=h;if(!(!p||!y||!g)){if(this!==h&&this.layout&&g&&ay(this.options.animationType,this.layout.layoutBox,g.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(p,y),qr(p,x),Ji(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new n7),this.sharedNodes.get(h).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):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:p,preserveFollowOpacity:y}={}){const g=this.getStack();g&&g.promote(this,y),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:y}=h;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(p=!0),!p)return;const g={};y.z&&Xu("z",h,g,this.animationValues);for(let x=0;x<Yu.length;x++)Xu(`rotate${Yu[x]}`,h,g,this.animationValues),Xu(`skew${Yu[x]}`,h,g,this.animationValues);h.render();for(const x in g)h.setStaticValue(x,g[x]),this.animationValues&&(this.animationValues[x]=g[x]);h.scheduleRender()}applyProjectionStyles(h,p){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(p?.pointerEvents)||"",h.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Gr(p?.pointerEvents)||""),this.hasProjected&&!Ka(this.latestValues)&&(h.transform=y?y({},""):"none",this.hasProjected=!1);return}h.visibility="";const x=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=K6(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`,g.animationValues?h.opacity=g===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const T in Nd){if(x[T]===void 0)continue;const{correct:E,applyTo:O,isCSSVariable:B}=Nd[T],q=b==="none"?x[T]:E(x[T],g);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=g===this?Gr(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Tp),this.root.sharedNodes.clear()}}}function i7(n){n.updateLayout()}function l7(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:d}=n.options,f=s.source!==n.layout.source;if(d==="size")Sn(x=>{const b=f?s.measuredBox[x]:s.layoutBox[x],S=vt(b);b.min=l[x].min,b.max=b.min+S});else if(d==="x"||d==="y"){const x=d==="x"?"y":"x";Ad(f?s.measuredBox[x]:s.layoutBox[x],l[x])}else ay(d,s.layoutBox,l)&&Sn(x=>{const b=f?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 p=Gs();f?Ji(p,n.applyTransform(r,!0),s.measuredBox):Ji(p,l,s.layoutBox);const y=!J2(h);let g=!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 E=st();eo(E,l,S.layoutBox,j),W2(T,E)||(g=!0),x.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=T,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:p,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function r7(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 o7(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function c7(n){n.clearSnapshot()}function Tp(n){n.clearMeasurements()}function u7(n){n.isLayoutDirty=!0,n.updateLayout()}function Np(n){n.isLayoutDirty=!1}function d7(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function f7(n){const{visualElement:s}=n.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),n.resetTransform()}function Ap(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function h7(n){n.resolveTargetDelta()}function m7(n){n.calcProjection()}function p7(n){n.resetSkewAndRotation()}function g7(n){n.removeLeadSnapshot()}function Cp(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 Mp(n,s,l,r){n.min=Ye(s.min,l.min,r),n.max=Ye(s.max,l.max,r)}function y7(n,s,l,r){Mp(n.x,s.x,l.x,r),Mp(n.y,s.y,l.y,r)}function x7(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const v7={duration:.45,ease:[.4,0,.1,1]},Ep=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),zp=Ep("applewebkit/")&&!Ep("chrome/")?Math.round:sn;function kp(n){n.min=zp(n.min),n.max=zp(n.max)}function b7(n){kp(n.x),kp(n.y)}function ay(n,s,l){return n==="position"||n==="preserve-aspect"&&!q6(vp(s),vp(l),.2)}function S7(n){return n!==n.root&&n.scroll?.wasRoot}const j7=ny({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},sy=ny({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Zu.current){const n=new j7({});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"}),iy=M.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function w7(n=!0){const s=M.useContext(Vd);if(s===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:d}=s,f=M.useId();M.useEffect(()=>{if(n)return d(f)},[n]);const h=M.useCallback(()=>n&&r&&r(f),[f,r,n]);return!l&&r?[!1,h]:[!0]}const ly=M.createContext({strict:!1}),Dp={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 Rp=!1;function T7(){if(Rp)return;const n={};for(const s in Dp)n[s]={isEnabled:l=>Dp[s].some(r=>!!l[r])};O2(n),Rp=!0}function ry(){return T7(),h6()}function N7(n){const s=ry();for(const l in n)s[l]={...s[l],...n[l]};O2(s)}const A7=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")||A7.has(n)}let oy=n=>!to(n);function C7(n){typeof n=="function"&&(oy=s=>s.startsWith("on")?!to(s):n(s))}try{C7(require("@emotion/is-prop-valid").default)}catch{}function M7(n,s,l){const r={};for(const d in n)d==="values"&&typeof n.values=="object"||mt(n[d])||(oy(d)||l===!0&&to(d)||!s&&!to(d)||n.draggable&&d.startsWith("onDrag"))&&(r[d]=n[d]);return r}const oo=M.createContext({});function E7(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 z7(n){const{initial:s,animate:l}=E7(n,M.useContext(oo));return M.useMemo(()=>({initial:s,animate:l}),[Vp(s),Vp(l)])}function Vp(n){return Array.isArray(n)?n.join(" "):n}const lf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cy(n,s,l){for(const r in s)!mt(s[r])&&!G2(r,l)&&(n[r]=s[r])}function k7({transformTemplate:n},s){return M.useMemo(()=>{const l=lf();return af(l,s,n),Object.assign({},l.vars,l.style)},[s])}function D7(n,s){const l=n.style||{},r={};return cy(r,l,n),Object.assign(r,k7(n,s)),r}function R7(n,s){const l={},r=D7(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 uy=()=>({...lf(),attrs:{}});function V7(n,s,l,r){const d=M.useMemo(()=>{const f=uy();return Y2(f,s,Z2(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[s]);if(n.style){const f={};cy(f,n.style,n),d.style={...f,...d.style}}return d}const O7=["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 rf(n){return typeof n!="string"||n.includes("-")?!1:!!(O7.indexOf(n)>-1||/[A-Z]/u.test(n))}function _7(n,s,l,{latestValues:r},d,f=!1,h){const y=(h??rf(n)?V7:R7)(s,r,d,n),g=M7(s,typeof n=="string",f),x=n!==M.Fragment?{...g,...y,ref:l}:{},{children:b}=s,S=M.useMemo(()=>mt(b)?b.get():b,[b]);return M.createElement(n,{...x,children:S})}function L7({scrapeMotionValuesFromProps:n,createRenderState:s},l,r,d){return{latestValues:B7(l,r,d,n),renderState:s()}}function B7(n,s,l,r){const d={},f=r(n,{});for(const S in f)d[S]=Gr(f[S]);let{initial:h,animate:p}=n;const y=ro(n),g=R2(n);s&&g&&!y&&n.inherit!==!1&&(h===void 0&&(h=s.initial),p===void 0&&(p=s.animate));let x=l?l.initial===!1:!1;x=x||h===!1;const b=x?p: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=Pd(n,S[j]);if(T){const{transitionEnd:E,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&&(d[q]=Y)}for(const q in E)d[q]=E[q]}}}return d}const dy=n=>(s,l)=>{const r=M.useContext(oo),d=M.useContext(Vd),f=()=>L7(n,s,r,d);return l?f():O5(f)},U7=dy({scrapeMotionValuesFromProps:sf,createRenderState:lf}),H7=dy({scrapeMotionValuesFromProps:Q2,createRenderState:uy}),q7=Symbol.for("motionComponentSymbol");function G7(n,s,l){const r=M.useRef(l);M.useInsertionEffect(()=>{r.current=l});const d=M.useRef(null);return M.useCallback(f=>{f&&n.onMount?.(f);const h=r.current;if(typeof h=="function")if(f){const p=h(f);typeof p=="function"&&(d.current=p)}else d.current?(d.current(),d.current=null):h(f);else h&&(h.current=f);s&&(f?s.mount(f):s.unmount())},[s])}const fy=M.createContext({});function Us(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Y7(n,s,l,r,d,f){const{visualElement:h}=M.useContext(oo),p=M.useContext(ly),y=M.useContext(Vd),g=M.useContext(iy),x=g.reducedMotion,b=g.skipAnimations,S=M.useRef(null),j=M.useRef(!1);r=r||p.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:f}),j.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const T=S.current,E=M.useContext(fy);T&&!T.projection&&d&&(T.type==="html"||T.type==="svg")&&X7(S.current,l,d,E);const O=M.useRef(!1);M.useInsertionEffect(()=>{T&&O.current&&T.update(l,y)});const B=l[b2],q=M.useRef(!!B&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(B)&&window.MotionHasOptimisedAnimation?.(B));return L5(()=>{j.current=!0,T&&(O.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),T.scheduleRenderMicrotask(),q.current&&T.animationState&&T.animationState.animateChanges())}),M.useEffect(()=>{T&&(!q.current&&T.animationState&&T.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(B)}),q.current=!1),T.enteringChildren=void 0)}),T}function X7(n,s,l,r){const{layoutId:d,layout:f,drag:h,dragConstraints:p,layoutScroll:y,layoutRoot:g,layoutAnchor:x,layoutCrossfade:b}=s;n.projection=new l(n.latestValues,s["data-framer-portal-id"]?void 0:hy(n.parent)),n.projection.setOptions({layoutId:d,layout:f,alwaysMeasureLayout:!!h||p&&Us(p),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:b,layoutScroll:y,layoutRoot:g,layoutAnchor:x})}function hy(n){if(n)return n.options.allowProjection!==!1?n.projection:hy(n.parent)}function Qu(n,{forwardMotionProps:s=!1,type:l}={},r,d){r&&N7(r);const f=l?l==="svg":rf(n),h=f?H7:U7;function p(g,x){let b;const S={...M.useContext(iy),...g,layoutId:Z7(g)},{isStatic:j}=S,T=z7(g),E=h(g,j);if(!j&&typeof window<"u"){Q7();const O=K7(S);b=O.MeasureLayout,T.visualElement=Y7(n,E,S,d,O.ProjectionNode,f)}return u.jsxs(oo.Provider,{value:T,children:[b&&T.visualElement?u.jsx(b,{visualElement:T.visualElement,...S}):null,_7(n,g,G7(E,T.visualElement,x),E,j,s,f)]})}p.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=M.forwardRef(p);return y[q7]=n,y}function Z7({layoutId:n}){const s=M.useContext(Dg).id;return s&&n!==void 0?s+"-"+n:n}function Q7(n,s){M.useContext(ly).strict}function K7(n){const s=ry(),{drag:l,layout:r}=s;if(!l&&!r)return{};const d={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?d.MeasureLayout:void 0,ProjectionNode:d.ProjectionNode}}function F7(n,s){if(typeof Proxy>"u")return Qu;const l=new Map,r=(f,h)=>Qu(f,h,n,s),d=(f,h)=>r(f,h);return new Proxy(d,{get:(f,h)=>h==="create"?r:(l.has(h)||l.set(h,Qu(h,void 0,n,s)),l.get(h))})}const P7=(n,s)=>s.isSVG??rf(n)?new z6(s):new T6(s,{allowProjection:n!==M.Fragment});class $7 extends Na{constructor(s){super(s),s.animationState||(s.animationState=O6(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 J7=0;class W7 extends Na{constructor(){super(...arguments),this.id=J7++,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:f,custom:h}=this.node.getProps();if(typeof f=="string"){const p=Ja(this.node,f,h);if(p){const{transition:y,transitionEnd:g,...x}=p;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 d=this.node.animationState.setActive("exit",!s);l&&!s&&d.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 I7={animation:{Feature:$7},exit:{Feature:W7}};function ul(n){return{point:{x:n.pageX,y:n.pageY}}}const eS=n=>s=>Id(s)&&n(s,ul(s));function Wi(n,s,l,r){return sl(n,s,eS(l),r)}const my=({current:n})=>n?n.ownerDocument.defaultView:null,Op=(n,s)=>Math.abs(n-s);function tS(n,s){const l=Op(n.x,s.x),r=Op(n.y,s.y);return Math.sqrt(l**2+r**2)}const _p=new Set(["auto","scroll"]);class py{constructor(s,l,{transformPagePoint:r,contextWindow:d=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:p}={}){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=Dr(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Ku(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=tS(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!E)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=Dr(T,this.transformPagePoint),Ue.update(this.updatePoint,!0)},this.handlePointerUp=(j,T)=>{this.end();const{onEnd:E,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:Dr(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(j,q),O&&O(j,q)},!Id(s))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=d||window;const y=ul(s),g=Dr(y,this.transformPagePoint),{point:x}=g,{timestamp:b}=ht;this.history=[{...x,timestamp:b}];const{onSessionStart:S}=l;S&&S(s,Ku(g,this.history)),this.removeListeners=rl(Wi(this.contextWindow,"pointermove",this.handlePointerMove),Wi(this.contextWindow,"pointerup",this.handlePointerUp),Wi(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(s){let l=s.parentElement;for(;l;){const r=getComputedStyle(l);(_p.has(r.overflowX)||_p.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,d=r?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},f={x:d.x-l.x,y:d.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(s,d),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 Dr(n,s){return s?{point:s(n.point)}:n}function Lp(n,s){return{x:n.x-s.x,y:n.y-s.y}}function Ku({point:n},s){return{point:n,delta:Lp(n,gy(s)),offset:Lp(n,nS(s)),velocity:aS(s,.1)}}function nS(n){return n[0]}function gy(n){return n[n.length-1]}function aS(n,s){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const d=gy(n);for(;l>=0&&(r=n[l],!(d.timestamp-r.timestamp>Ut(s)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&d.timestamp-r.timestamp>Ut(s)*2&&(r=n[1]);const f=nn(d.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const h={x:(d.x-r.x)/f,y:(d.y-r.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function sS(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 Bp(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 iS(n,{top:s,left:l,bottom:r,right:d}){return{x:Bp(n.x,l,d),y:Bp(n.y,s,r)}}function Up(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 lS(n,s){return{x:Up(n.x,s.x),y:Up(n.y,s.y)}}function rS(n,s){let l=.5;const r=vt(n),d=vt(s);return d>r?l=tl(s.min,s.max-r,n.min):r>d&&(l=tl(n.min,n.max-d,s.min)),Tn(0,1,l)}function oS(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 Cd=.35;function cS(n=Cd){return n===!1?n=0:n===!0&&(n=Cd),{x:Hp(n,"left","right"),y:Hp(n,"top","bottom")}}function Hp(n,s,l){return{min:qp(n,s),max:qp(n,l)}}function qp(n,s){return typeof n=="number"?n:n[s]||0}const uS=new WeakMap;class dS{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:d}=this.visualElement;if(d&&d.isPresent===!1)return;const f=b=>{l&&this.snapToCursor(ul(b).point),this.stopAnimation()},h=(b,S)=>{const{drag:j,dragPropagation:T,onDragStart:E}=this.getProps();if(j&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Y8(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}),E&&Ue.update(()=>E(b,S),!1,!0),xd(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},p=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:T,onDirectionLock:E,onDrag:O}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:B}=S;if(T&&this.currentDirection===null){this.currentDirection=hS(B),this.currentDirection!==null&&E&&E(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},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new py(s,{onSessionStart:f,onStart:h,onMove:p,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:r,contextWindow:my(this.visualElement),element:this.visualElement.current})}stop(s,l){const r=s||this.latestPointerEvent,d=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!d||!r)return;const{velocity:h}=d;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&Ue.postRender(()=>p(r,d))}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:d}=this.getProps();if(!r||!Rr(s,d,this.currentDirection))return;const f=this.getAxisMotionValue(s);let h=this.originPoint[s]+r[s];this.constraints&&this.constraints[s]&&(h=sS(h,this.constraints[s],this.elastic[s])),f.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,d=this.constraints;s&&Us(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=iS(r.layoutBox,s):this.constraints=!1,this.elastic=cS(l),d!==this.constraints&&!Us(s)&&r&&this.constraints&&!this.hasMutatedConstraints&&Sn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=oS(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:l}=this.getProps();if(!s||!Us(s))return!1;const r=s.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const f=x6(r,d.root,this.visualElement.getTransformPagePoint());let h=lS(d.layout.layoutBox,f);if(l){const p=l(p6(h));this.hasMutatedConstraints=!!p,p&&(h=L2(p))}return h}startAnimation(s){const{drag:l,dragMomentum:r,dragElastic:d,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),y=this.constraints||{},g=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=d?200:1e6,j=d?40:1e7,T={type:"inertia",velocity:r?s[x]:0,bounceStiffness:S,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(x,T)});return Promise.all(g).then(p)}startAxisValueAnimation(s,l){const r=this.getAxisMotionValue(s);return xd(this.visualElement,s),r.start(Fd(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(),d=r[l];return d||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:d}=this.visualElement,f=this.getAxisMotionValue(l);if(d&&d.layout){const{min:h,max:p}=d.layout.layoutBox[l],y=f.get()||0;f.set(s[l]-Ye(h,p,.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 d={x:0,y:0};Sn(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const y=p.get();d[h]=rS({min:y,max:y},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Sn(h=>{if(!Rr(h,s,null))return;const p=this.getAxisMotionValue(h),{min:y,max:g}=this.constraints[h];p.set(Ye(y,g,d[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uS.set(this.visualElement,this);const s=this.visualElement.current,l=Wi(s,"pointerdown",g=>{const{drag:x,dragListener:b=!0}=this.getProps(),S=g.target,j=S!==s&&P8(S);x&&b&&!j&&this.start(g)});let r;const d=()=>{const{dragConstraints:g}=this.getProps();Us(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=fS(s,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",d);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ue.read(d);const p=sl(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:x})=>{this.isDragging&&x&&(Sn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=g[b].translate,S.set(S.get()+g[b].translate))}),this.visualElement.render())}));return()=>{p(),l(),h(),y&&y(),r&&r()}}getProps(){const s=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:d=!1,dragConstraints:f=!1,dragElastic:h=Cd,dragMomentum:p=!0}=s;return{...s,drag:l,dragDirectionLock:r,dragPropagation:d,dragConstraints:f,dragElastic:h,dragMomentum:p}}}function Gp(n){let s=!0;return()=>{if(s){s=!1;return}n()}}function fS(n,s,l){const r=J1(n,Gp(l)),d=J1(s,Gp(l));return()=>{r(),d()}}function Rr(n,s,l){return(s===!0||s===n)&&(l===null||l===n)}function hS(n,s=10){let l=null;return Math.abs(n.y)>s?l="y":Math.abs(n.x)>s&&(l="x"),l}class mS extends Na{constructor(s){super(s),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new dS(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 pS extends Na{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(s){this.session=new py(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:my(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:l,onPan:r,onPanEnd:d}=this.node.getProps();return{onSessionStart:Fu(s),onStart:Fu(l),onMove:Fu(r),onEnd:(f,h)=>{delete this.session,d&&Ue.postRender(()=>d(f,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 gS extends M.Component{componentDidMount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r,layoutId:d}=this.props,{projection:f}=s;f&&(l.group&&l.group.add(f),r&&r.register&&d&&r.register(f),Pu&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Yr.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:l,visualElement:r,drag:d,isPresent:f}=this.props,{projection:h}=r;return h&&(h.isPresent=f,s.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Pu=!0,d||s.layoutDependency!==l||l===void 0||s.isPresent!==f?h.willUpdate():this.safeToRemove(),s.isPresent!==f&&(f?h.promote():h.relegate()||Ue.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:s,layoutAnchor:l}=this.props,{projection:r}=s;r&&(r.options.layoutAnchor=l,r.root.didUpdate(),Wd.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:d}=s;Pu=!0,d&&(d.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(d),r&&r.deregister&&r.deregister(d))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function yy(n){const[s,l]=w7(),r=M.useContext(Dg);return u.jsx(gS,{...n,layoutGroup:r,switchLayoutGroup:M.useContext(fy),isPresent:s,safeToRemove:l})}const yS={pan:{Feature:pS},drag:{Feature:mS,ProjectionNode:sy,MeasureLayout:yy}};function Yp(n,s,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const d="onHover"+l,f=r[d];f&&Ue.postRender(()=>f(s,ul(s)))}class xS extends Na{mount(){const{current:s}=this.node;s&&(this.unmount=Z8(s,(l,r)=>(Yp(this.node,r,"Start"),d=>Yp(this.node,d,"End"))))}unmount(){}}class vS 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 Xp(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 d="onTap"+(l==="End"?"":l),f=r[d];f&&Ue.postRender(()=>f(s,ul(s)))}class bS extends Na{mount(){const{current:s}=this.node;if(!s)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=J8(s,(d,f)=>(Xp(this.node,f,"Start"),(h,{success:p})=>Xp(this.node,h,p?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const Md=new WeakMap,$u=new WeakMap,SS=n=>{const s=Md.get(n.target);s&&s(n)},jS=n=>{n.forEach(SS)};function wS({root:n,...s}){const l=n||document;$u.has(l)||$u.set(l,{});const r=$u.get(l),d=JSON.stringify(s);return r[d]||(r[d]=new IntersectionObserver(jS,{root:n,...s})),r[d]}function TS(n,s,l){const r=wS(s);return Md.set(n,l),r.observe(n),()=>{Md.delete(n),r.unobserve(n)}}const NS={some:0,all:1};class AS 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:d="some",once:f}=s,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof d=="number"?d:NS[d]},p=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),S=g?x:b;S&&S(y)};this.stopObserver=TS(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:l}=this.node;["amount","margin","root"].some(CS(s,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function CS({viewport:n={}},{viewport:s={}}={}){return l=>n[l]!==s[l]}const MS={inView:{Feature:AS},tap:{Feature:bS},focus:{Feature:vS},hover:{Feature:xS}},ES={layout:{ProjectionNode:sy,MeasureLayout:yy}},zS={...I7,...MS,...yS,...ES},Ju=F7(zS,P7),He=({label:n,children:s,variant:l="primary",size:r="medium",icon:d,onClick:f,removable:h=!1,className:p,maxWidth:y,appearance:g,onRemove:x,isLoading:b=!1})=>{const S=kS(l),j=g??(l==="outline"?"outline":"solid"),T=n??s,E=!!f,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(),f?.()},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:E?1.04:1,backgroundColor:E&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:q,style:{maxWidth:y},className:oe("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],E&&"cursor-pointer",p),children:[b?u.jsx(Ju.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:u.jsx(cg,{className:"size-3.5"})}):d&&u.jsx("span",{className:"flex-shrink-0",children:d}),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 kS(n){return n==="danger"?"error":n==="default"||n==="outline"?"primary":n}const DS=yg("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 Mt({className:n,variant:s,...l}){return u.jsx("div",{className:oe(DS({variant:s,className:n})),...l})}function Ht({className:n,...s}){return u.jsx("div",{className:oe("rounded-lg border border-border bg-card text-card-foreground",n),...s})}function qt({className:n,...s}){return u.jsx("div",{className:oe("grid gap-1.5 p-4",n),...s})}function Gt({className:n,...s}){return u.jsx("h3",{className:oe("text-sm font-semibold tracking-tight",n),...s})}function ln({className:n,...s}){return u.jsx("p",{className:oe("text-sm text-muted-foreground",n),...s})}function Yt({className:n,...s}){return u.jsx("div",{className:oe("p-4 pt-0",n),...s})}function xy({className:n}){return u.jsx("svg",{className:oe("size-3.5",n),viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:u.jsx("path",{d:"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"})})}function vy({className:n}){return u.jsx("svg",{className:oe("size-3.5",n),viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":!0,children:u.jsx("path",{d:"M11.248 18.25q-.825 0-1.568-.314a4.3 4.3 0 0 1-1.32-.874 4 4 0 0 1-1.304.214 4 4 0 0 1-2.046-.544 4.27 4.27 0 0 1-1.518-1.485 4 4 0 0 1-.56-2.095q0-.48.131-1.04A4.4 4.4 0 0 1 2.04 10.71a4.07 4.07 0 0 1 .017-3.4 4.2 4.2 0 0 1 1.056-1.418 3.8 3.8 0 0 1 1.6-.842 3.9 3.9 0 0 1 .76-1.683q.593-.759 1.451-1.188a4.04 4.04 0 0 1 1.832-.429q.825 0 1.567.313.742.314 1.32.875a4 4 0 0 1 1.304-.215q1.106 0 2.046.545a4.14 4.14 0 0 1 1.501 1.485q.578.941.578 2.095 0 .48-.132 1.04.66.61 1.023 1.419.363.792.363 1.666 0 .892-.38 1.717a4.3 4.3 0 0 1-1.072 1.435 3.8 3.8 0 0 1-1.584.825 3.8 3.8 0 0 1-.775 1.683 4.06 4.06 0 0 1-1.436 1.188 4.04 4.04 0 0 1-1.832.429m-4.076-2.062q.825 0 1.435-.347l3.103-1.782a.36.36 0 0 0 .164-.313v-1.42L7.881 14.62a.67.67 0 0 1-.726 0l-3.118-1.798a.5.5 0 0 1-.017.115v.198q0 .841.396 1.551.413.693 1.139 1.089a3.2 3.2 0 0 0 1.617.412m.165-2.69a.4.4 0 0 0 .181.05q.083 0 .165-.05l1.238-.71-3.977-2.31a.7.7 0 0 1-.363-.643v-3.58q-.825.362-1.32 1.122a2.9 2.9 0 0 0-.495 1.65q0 .809.413 1.55.412.743 1.072 1.123zm3.91 3.663q.875 0 1.585-.396a2.96 2.96 0 0 0 1.534-2.64v-3.564a.32.32 0 0 0-.165-.297l-1.254-.726v4.604a.7.7 0 0 1-.363.643l-3.119 1.799a3 3 0 0 0 1.783.577m.627-6.039V8.878L10.01 7.822 8.129 8.878v2.244l1.881 1.056zM7.057 5.859a.7.7 0 0 1 .363-.644l3.119-1.798a3 3 0 0 0-1.782-.578q-.874 0-1.584.396A2.96 2.96 0 0 0 6.05 4.324a3.07 3.07 0 0 0-.396 1.551v3.547q0 .199.165.314l1.237.726zm8.383 7.887q.825-.364 1.303-1.123.495-.758.495-1.65a3.15 3.15 0 0 0-.412-1.55q-.413-.743-1.073-1.123l-3.086-1.782q-.099-.065-.181-.049a.3.3 0 0 0-.165.05l-1.238.692 3.993 2.327a.6.6 0 0 1 .264.264.64.64 0 0 1 .1.363zm-3.317-8.382a.63.63 0 0 1 .726 0l3.135 1.831v-.297q0-.792-.396-1.501a2.86 2.86 0 0 0-1.105-1.155q-.71-.43-1.65-.43-.825 0-1.436.347L8.294 5.941a.36.36 0 0 0-.165.314v1.418z"})})}function RS({className:n}){return u.jsx("svg",{className:oe("size-3.5",n),viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:u.jsx("path",{d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"})})}function VS({className:n}){return u.jsx(jb,{className:oe("size-3.5",n),"aria-hidden":!0})}const OS={"claude-code":{label:"Claude Code",variant:"warning",icon:u.jsx(xy,{})},codex:{label:"OpenAI Codex CLI",variant:"secondary",icon:u.jsx(vy,{})},gemini:{label:"Gemini CLI",variant:"primary",icon:u.jsx(RS,{})},unknown:{label:"Unknown agent",variant:"secondary",icon:u.jsx(VS,{})}},_S=[{id:"overview",label:"Overview",icon:u.jsx(og,{className:"size-3.5"})},{id:"memory",label:"Memory",icon:u.jsx(sg,{className:"size-3.5"})},{id:"tools",label:"Skills & MCPs",icon:u.jsx(dg,{className:"size-3.5"})},{id:"activity",label:"Activity",icon:u.jsx(Ys,{className:"size-3.5"})}];function LS(){const[n,s]=M.useState(null),[l,r]=M.useState(null),[d,f]=M.useState("overview");return M.useEffect(()=>{let h=!0;return L3().then(p=>{h&&s(p)}).catch(p=>{h&&r(p instanceof Error?p.message:String(p))}),()=>{h=!1}},[]),l?u.jsx("div",{className:"h-full overflow-auto bg-card/85 p-4",children:u.jsxs(Mt,{variant:"muted",className:"border-destructive/40 text-destructive",children:["Failed to load agent info: ",l]})}):n?u.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-card/85",children:[u.jsx("div",{className:"flex shrink-0 items-center gap-1 border-b border-border bg-card/90 px-3",children:_S.map(h=>u.jsxs("button",{type:"button",onClick:()=>f(h.id),className:oe("relative flex items-center gap-1.5 px-2.5 py-2 text-xs font-medium transition-colors",d===h.id?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[h.icon,h.label,d===h.id?u.jsx("span",{className:"absolute inset-x-1 -bottom-px h-0.5 bg-primary"}):null]},h.id))}),u.jsxs("div",{className:"min-h-0 flex-1 overflow-auto",children:[d==="overview"?u.jsx(BS,{agent:n}):null,d==="memory"?u.jsx(US,{agent:n}):null,d==="tools"?u.jsx(HS,{agent:n}):null,d==="activity"?u.jsx(qS,{agent:n}):null]})]}):u.jsx("div",{className:"h-full overflow-auto bg-card/85 p-4",children:u.jsx(Mt,{variant:"muted",children:"Loading agent info…"})})}function BS({agent:n}){const s=OS[n.detected.name];return u.jsxs(u.Fragment,{children:[u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(qt,{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 text-muted-foreground"}),u.jsx(Gt,{children:"Active Agent"})]}),u.jsx(ln,{className:"text-xs",children:"Detected from environment variables and parent process of this MCP server."})]}),u.jsxs(Yt,{className:"space-y-2 p-3",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(He,{variant:s.variant,appearance:"subtle",size:"medium",icon:s.icon,children:s.label}),n.detected.parentProcess?u.jsxs("span",{className:"truncate 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(l=>u.jsxs("li",{children:["• ",l]},l))}):u.jsx("p",{className:"text-xs text-muted-foreground",children:"No detection signals captured."}),u.jsxs("div",{className:"pt-1 text-[11px] text-muted-foreground",children:["cwd: ",u.jsx("span",{className:"font-mono",children:n.project.cwd})]})]})]}),u.jsx(YS,{})]})}function US({agent:n}){return u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(sg,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"Project Memory"})]}),u.jsx(He,{variant:"outline",size:"small",children:n.project.memoryFiles.length+(n.project.claudeMdPath?1:0)})]}),u.jsx(ln,{className:"truncate text-xs",children:n.project.memoryDir??"No memory directory found for this project."})]}),u.jsxs(Yt,{className:"space-y-2 p-3",children:[n.project.claudeMdPath?u.jsx(Zp,{title:"CLAUDE.md",preview:n.project.claudeMdPreview,defaultOpen:!0}):null,n.project.memoryFiles.length?n.project.memoryFiles.map(s=>u.jsx(Zp,{title:s.name,subtitle:`${s.size} B`,preview:s.preview,defaultOpen:s.name==="MEMORY.md"},s.path)):n.project.claudeMdPath?null:u.jsx("p",{className:"text-xs text-muted-foreground",children:"No memory files persisted yet for this project."})]})]})}function HS({agent:n}){return u.jsxs("div",{className:"grid grid-cols-1 divide-y divide-border xl:grid-cols-2 xl:divide-x xl:divide-y-0",children:[u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(E3,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"Skills"})]}),u.jsx(He,{variant:"outline",size:"small",children:n.skills.length})]}),u.jsx(ln,{className:"text-xs",children:"User, project, and plugin skills discovered for the active agent."})]}),u.jsx(Yt,{className:"p-0",children:n.skills.length?u.jsx("ul",{className:"divide-y divide-border",children:n.skills.map(s=>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:s.name}),u.jsx(He,{variant:"outline",size:"small",children:s.scope})]}),s.description?u.jsx("p",{className:"mt-1 text-[11px] text-muted-foreground",children:s.description}):null]},`${s.scope}:${s.name}`))}):u.jsx("p",{className:"px-3 py-4 text-xs text-muted-foreground",children:"No skills found."})})]}),u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(dg,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"MCP Servers"})]}),u.jsx(He,{variant:"outline",size:"small",children:n.mcpServers.length})]}),u.jsxs(ln,{className:"text-xs",children:["From ",u.jsx("code",{className:"font-mono",children:"~/.claude.json"})," (user + project scopes)."]})]}),u.jsx(Yt,{className:"p-0",children:n.mcpServers.length?u.jsx("ul",{className:"divide-y divide-border",children:n.mcpServers.map(s=>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:s.name}),u.jsx(He,{variant:"outline",size:"small",children:s.scope})]}),u.jsx("div",{className:"mt-1 truncate font-mono text-[11px] text-muted-foreground",children:s.command??s.url??s.type??"—"})]},`${s.scope}:${s.name}`))}):u.jsx("p",{className:"px-3 py-4 text-xs text-muted-foreground",children:"No MCP servers configured."})})]})]})}function qS({agent:n}){return u.jsxs(u.Fragment,{children:[u.jsx(QS,{}),u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Hb,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"Recent Projects"})]}),u.jsx(He,{variant:"outline",size:"small",children:n.projects.length})]}),u.jsx(ln,{className:"text-xs",children:"Most recently active projects known to the agent."})]}),u.jsx(Yt,{className:"p-0",children:n.projects.length?u.jsx("ul",{className:"divide-y divide-border",children:n.projects.map(s=>u.jsxs("li",{className:oe("flex items-start justify-between gap-3 px-3 py-2",s.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:s.path}),s.current?u.jsx(He,{variant:"success",appearance:"subtle",size:"small",children:"current"}):null]}),s.lastSessionFirstPrompt?u.jsx("p",{className:"mt-0.5 truncate text-[11px] text-muted-foreground",children:s.lastSessionFirstPrompt}):null]}),u.jsxs("div",{className:"shrink-0 text-right font-mono text-[10px] text-muted-foreground",children:[s.mcpServerCount?u.jsxs("div",{children:[s.mcpServerCount," mcp"]}):null,s.lastSessionModified?u.jsx("div",{children:GS(s.lastSessionModified)}):null]})]},s.path))}):u.jsx("p",{className:"px-3 py-4 text-xs text-muted-foreground",children:"No known projects."})})]})]})}function Zp({title:n,subtitle:s,preview:l,defaultOpen:r=!1}){const[d,f]=M.useState(r);return u.jsxs("div",{className:"rounded-md border border-border bg-background/40",children:[u.jsxs("button",{type:"button",onClick:()=>f(!d),className:"flex w-full items-center gap-2 px-2.5 py-1.5 text-left text-xs font-semibold",children:[u.jsx(zd,{className:oe("size-3.5 text-muted-foreground transition-transform",d&&"rotate-90")}),u.jsx("span",{children:n}),s?u.jsx("span",{className:"font-mono text-[10px] font-normal text-muted-foreground",children:s}):null]}),d&&l?u.jsx("pre",{className:"max-h-64 overflow-auto whitespace-pre-wrap border-t border-border px-2.5 py-2 font-mono text-[11px] leading-relaxed text-muted-foreground",children:l}):null]})}function GS(n){const s=Date.parse(n);return Number.isNaN(s)?n:new Date(s).toLocaleString()}function YS(){const[n,s]=M.useState(null),[l,r]=M.useState(null);return M.useEffect(()=>{let d=!0;const f=()=>{B3().then(p=>{d&&(s(p),r(null))}).catch(p=>{d&&r(p instanceof Error?p.message:String(p))})};f();const h=window.setInterval(f,1e4);return()=>{d=!1,window.clearInterval(h)}},[]),u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(og,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"Token & Cost Usage"})]}),u.jsxs(ln,{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(Yt,{className:"p-3",children:[l?u.jsx("p",{className:"text-xs text-destructive",children:l}):null,u.jsxs("div",{className:"grid grid-cols-1 gap-3 xl:grid-cols-2",children:[n?.claude?u.jsx(XS,{usage:n.claude}):null,n?.codex?u.jsx(ZS,{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 XS({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",children:[u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b border-border px-3 py-1.5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(xy,{className:"size-3.5 text-amber-700"}),u.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide 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:"grid grid-cols-2 gap-x-3 gap-y-1.5 px-3 py-2 text-[11px] sm:grid-cols-4",children:[u.jsx(va,{label:"Input",value:Qi(n.inputTokens)}),u.jsx(va,{label:"Output",value:Qi(n.outputTokens)}),u.jsx(va,{label:"Cache read",value:Qi(n.cacheReadInputTokens)}),u.jsx(va,{label:"Cache create",value:Qi(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:Qp(n.durationMs)}),u.jsx(va,{label:"API",value:Qp(n.apiDurationMs)})]}),u.jsxs("div",{className:"border-t border-border px-3 py-2",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:"space-y-2 border-t border-border px-3 py-2",children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide 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:"space-y-1 border-t border-border px-3 py-2",children:[u.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide 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:[Qi(r.inputTokens+r.outputTokens)," tok ·"," ",u.jsxs("span",{className:"text-emerald-700",children:["$",r.costUSD.toFixed(4)]})]})]},r.model))]}):null]})}function ZS({usage:n}){return u.jsxs("div",{className:"rounded-md border border-border",children:[u.jsxs("div",{className:"flex items-center justify-between border-b border-border px-3 py-1.5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(vy,{className:"size-3.5 text-foreground"}),u.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide 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:"space-y-2 px-3 py-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,d=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:oe("h-full",d),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 tracking-wide text-muted-foreground",children:n}),u.jsx("div",{className:"font-mono text-xs font-semibold",children:s})]})}function Qi(n){return n>=1e6?`${(n/1e6).toFixed(2)}M`:n>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}function Qp(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 Kp=100;function QS(){const[n,s]=M.useState([]),[l,r]=M.useState(!1),d=M.useRef(new Set);M.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",p=>{try{const y=JSON.parse(p.data);s(g=>{if(d.current.has(y.id))return g;d.current.add(y.id);const x=[...g,y];return x.length>Kp&&x.splice(0,x.length-Kp),x})}catch{}}),()=>{h.close()}},[]);const f=[...n].reverse();return u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ys,{className:"size-4 text-muted-foreground"}),u.jsx(Gt,{children:"Live MCP Tool Calls"}),u.jsx(He,{variant:"outline",size:"small",children:n.length})]}),u.jsx(He,{variant:l?"success":"secondary",appearance:"subtle",size:"small",icon:u.jsx("span",{className:oe("inline-block size-1.5 rounded-full",l?"animate-pulse bg-emerald-500":"bg-muted-foreground/60")}),children:l?"live":"reconnecting…"})]}),u.jsx(ln,{className:"text-xs",children:"Streamed from this NoMoreIDE MCP server. Newest at the top."})]}),u.jsx(Yt,{className:"p-0",children:f.length?u.jsx("ul",{className:"max-h-96 divide-y divide-border overflow-auto",children:f.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(He,{variant:h.status==="ok"?"success":"danger",appearance:"subtle",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:"px-3 py-4 text-xs text-muted-foreground",children:"No tool calls yet. Invoke a NoMoreIDE MCP tool from your agent and it will appear here."})})]})}const KS=[{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%)"}],FS=({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:KS.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))})}),PS=[{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"}],$S={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"},JS={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:d=!1,children:f,prefix:h,suffix:p,shadow:y=!1,loading:g=!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",PS[+d][n],x||g?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":$S[s],JS[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:[g?u.jsx(FS,{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:f}),!g&&p]}),WS=({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"})}),IS=()=>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,e9=0;const tt={toasts:[],listeners:new Set,add(n,s,l,r,d,f){const h=e9++,p={id:h,text:n,preserve:l,action:r,onAction:d,onUndoAction:f,type:s};if(!p.preserve){p.remaining=3e3,p.start=Date.now();const y=()=>{this.toasts=this.toasts.filter(g=>g.id!==h),this.notify()};p.timeout=setTimeout(y,p.remaining),p.pause=()=>{p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0,p.remaining-=Date.now()-p.start)},p.resume=()=>{p.timeout||(p.start=Date.now(),p.timeout=setTimeout(y,p.remaining))}}this.toasts.push(p),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())}},t9=()=>{const[n,s]=M.useState([]),[l,r]=M.useState([]),[d,f]=M.useState(!1),h=T=>E=>{E&&T.measuredHeight==null&&(T.measuredHeight=E.getBoundingClientRect().height,tt.notify())};M.useEffect(()=>(s([...tt.toasts]),tt.subscribe(()=>{s([...tt.toasts])})),[]),M.useEffect(()=>{const T=n.filter(E=>!l.includes(E.id)).map(E=>E.id);T.length>0&&requestAnimationFrame(()=>{r(E=>[...E,...T])})},[l,n]);const y=Math.max(0,n.length-3),g=(T,E)=>{if(T===E-1)return"none";const O=E-1-T;let B=n[E-1]?.measuredHeight||63;for(let X=E-1;X>T;X--)d?B+=(n[X-1]?.measuredHeight||63)+10:B+=20;const q=-O,Y=d?1:1-.05*O;return`translate3d(0, calc(100% - ${B}px), ${q}px) scale(${Y})`},x=()=>{f(!0),tt.toasts.forEach(T=>T.pause?.())},b=()=>{f(!1),tt.toasts.forEach(T=>T.resume?.())},j=n.slice(y).reduce((T,E)=>T+(E.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,E)=>{const O=E>=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",E<y&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(T.id)?g(E,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(IS,{})}),u.jsx(Vr,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>tt.remove(T.id),children:u.jsx(WS,{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=ng.createRoot(n),Wu.render(u.jsx(t9,{}))},Aa=()=>({message:M.useCallback(({text:n,preserve:s,action:l,onAction:r,onUndoAction:d})=>{Or(),tt.add(n,"message",s,l,r,d)},[]),success:M.useCallback(n=>{Or(),tt.add(n,"success")},[]),warning:M.useCallback(n=>{Or(),tt.add(n,"warning")},[]),error:M.useCallback(n=>{Or(),tt.add(n,"error")},[])});var by=tg();function gt({className:n,type:s,...l}){return u.jsx("input",{type:s,className:oe("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 tn({className:n,...s}){return u.jsx("label",{className:oe("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>',n9={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"}},a9={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"},s9={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"}},i9={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"},l9={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"},r9={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"},o9={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"},c9={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"},u9={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/"},Fp={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"}},d9={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"},f9={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 h9(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 of({command:n,compact:s}){const l=h9(n),r=m9[l.kind];return u.jsx("span",{"aria-label":`${l.label} process`,className:oe("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(mg,{className:s?"size-3.5":"size-4"})})}const m9={bun:a9,cargo:Fp,deno:s9,dotnet:n9,docker:i9,generic:null,go:l9,node:r9,npm:o9,pnpm:c9,python:u9,rust:Fp,vite:d9,yarn:f9};function Sy({active:n,baseUrl:s,onRefresh:l,restartAction:r,targetLabel:d}){return n?u.jsxs(u.Fragment,{children:[u.jsx(Iu,{intent:"restart",icon:u.jsx(v3,{}),label:"Restart",action:r,targetLabel:d,url:`${s}/restart`,onRefresh:l}),u.jsx(Iu,{intent:"stop",icon:u.jsx(hg,{}),label:"Stop",targetLabel:d,url:`${s}/stop`,onRefresh:l})]}):u.jsx(Iu,{intent:"start",icon:u.jsx(ug,{}),label:"Start",targetLabel:d,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:d,url:f,onRefresh:h}){const[p,y]=M.useState(!1),[g,x]=M.useState(null),{error:b,success:S}=Aa();async function j(T={}){y(!0);try{n?await n():await an(f,T),S(`${r} requested for ${d}.`),await h(),x(null)}catch(E){E instanceof pg?x(E.conflict):b(il(r,d,E))}finally{y(!1)}}return u.jsxs(u.Fragment,{children:[u.jsxs(ge,{className:g9[s],variant:"outline",size:"sm",disabled:p,onClick:()=>j(),children:[l,r]}),g?u.jsx(p9,{busy:p,conflict:g,onCancel:()=>x(null),onKillAndStart:()=>j({strategy:"killHolder"}),targetLabel:d}):null]})}function p9({busy:n,conflict:s,onCancel:l,onKillAndStart:r,targetLabel:d}){const f=s.holder,h=`http://localhost:${s.port}/`;return u.jsx(ll,{icon:u.jsx(V3,{}),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:d})," 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:f?`pid ${f.pid}${f.pgid?` (pgid ${f.pgid})`:""}
|
|
10
|
-
${f.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(rg,{}),"Open in browser"]}),u.jsx(ge,{className:"border-red-600 bg-red-600 text-white hover:bg-red-700",disabled:n||!f,onClick:r,size:"sm",type:"button",children:"Stop holder & start"})]})]})})}const g9={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:d="md"}){return M.useEffect(()=>{function f(h){h.key==="Escape"&&l()}return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[l]),by.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 ${d==="lg"?"max-w-3xl":"max-w-lg"}`,onMouseDown:f=>f.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 y9=[{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 x9({cwd:n,onRefresh:s,onSaved:l}){const{error:r,success:d}=Aa(),[f,h]=M.useState("local"),[p,y]=M.useState(""),[g,x]=M.useState(""),[b,S]=M.useState(n),[j,T]=M.useState(""),[E,O]=M.useState(""),[B,q]=M.useState(""),[Y,X]=M.useState(""),[Z,J]=M.useState(""),[$,L]=M.useState(null),[fe,le]=M.useState(!1);M.useEffect(()=>{L(null)},[g,b,j,f]);function F(){y(""),x(""),S(n),T(""),O(""),q(""),X(""),J(""),L(null)}async function ce(P){P.preventDefault();try{const Q={name:p,kind:f,cwd:b,port:j,description:E};(f==="local"||f==="ssh")&&(Q.command=g),f==="docker-compose"&&(Q.composeFile=B,Q.composeService=Y),f==="ssh"&&(Q.host=Z),await an("/api/services",Q),F(),d(`${p} added.`),await s(),l?.()}catch(Q){r(il("Add service",p||"service",Q))}}async function we(){if(!g.trim()){r("Test command failed for service: command is required.");return}le(!0);try{L(await q3({command:g,cwd:b,port:j}))}catch(P){r(il("Test command",p||"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===f),k=f==="local"&&g.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:ce,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:f===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(tn,{children:["Name",u.jsx(gt,{className:"h-8 text-sm",name:"name",onChange:P=>y(P.target.value),placeholder:"backend",required:!0,value:p})]}),u.jsxs(tn,{children:["Description",u.jsx(gt,{className:"h-8 text-sm",name:"description",onChange:P=>O(P.target.value),placeholder:"API server",value:E})]})]}),u.jsxs("fieldset",{className:K,children:[u.jsx("legend",{className:W,children:"Step 4 · Networking (optional)"}),u.jsxs(tn,{children:["Port",u.jsx(gt,{className:"h-8 text-sm",inputMode:"numeric",name:"port",onChange:P=>T(P.target.value),placeholder:"3001",value:j})]})]})]}),f==="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:y9.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(of,{command:P.badgeCommand??P.command,compact:!0}),u.jsx("span",{className:"truncate",children:P.label})]},P.label))}),u.jsxs(tn,{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:g})]}),u.jsxs(tn,{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,f==="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(tn,{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(tn,{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(tn,{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,f==="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(tn,{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(tn,{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:g})]}),u.jsxs(tn,{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(Mt,{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(v9,{result:$}):null,u.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[f==="local"?u.jsxs(ge,{disabled:fe||!k,onClick:we,type:"button",variant:"outline",children:[u.jsx(mg,{}),fe?"Testing...":"Test Command"]}):null,u.jsx(ge,{type:"submit",children:"Add Service"})]})]})}function v9({result:n}){const s=[...n.stdout,...n.stderr].slice(0,4);return u.jsxs(Mt,{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 jy({initialName:n="",initialServices:s=[],onSaved:l,onRefresh:r,originalName:d,services:f,submitLabel:h="Save Group"}){const{error:p,success:y}=Aa();async function g(x){x.preventDefault();const b=x.currentTarget,S=new FormData(b),j=String(S.get("name")??""),T=S.getAll("services").map(E=>String(E)).filter(Boolean);try{await an("/api/bundles",{name:j,originalName:d,services:T.join(",")}),b.reset(),y(`${j} group saved.`),await r(),l?.()}catch(E){p(il("Save group",j||"group",E))}}return u.jsxs("form",{className:"grid gap-2.5",onSubmit:g,children:[u.jsxs(tn,{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"}),f.length?f.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(of,{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(Mt,{variant:"muted",children:"All services are already grouped, or none registered."})]}),u.jsx(ge,{className:"h-8",disabled:!f.length,type:"submit",children:h})]})}function cf({label:n}){return u.jsx(Mt,{variant:"muted",className:"m-4 text-center",children:n})}const b9=900*1e3,Fi=12,ed=200;function S9({events:n}){const[s,l]=M.useState(null),[r,d]=M.useState(null),{rows:f,windowStart:h,windowEnd:p}=M.useMemo(()=>j9(n),[n]),y=s?f.find(g=>g.service===s)??null:null;return u.jsxs(u.Fragment,{children:[u.jsxs(Ht,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs(Gt,{className:"flex items-center gap-2",children:[u.jsx(Ys,{className:"size-3.5"}),"Runtime Monitor"]}),u.jsx(ln,{className:"text-xs",children:n.length===0?"No events yet":`${n.length} event${n.length===1?"":"s"} · last 15 min`})]}),u.jsx(Yt,{className:"p-0",children:f.length===0?u.jsx(cf,{label:"No runtime timeline events yet."}):u.jsxs("div",{className:"divide-y divide-border",children:[f.map(g=>u.jsx(T9,{onClick:()=>l(g.service),row:g,windowEnd:p,windowStart:h},g.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(Ys,{}),onClose:()=>l(null),title:y.service,children:u.jsx(A9,{onSelect:d,row:y})}):null,r?u.jsx(ll,{icon:u.jsx(Ys,{}),onClose:()=>d(null),title:r.title,children:u.jsx(C9,{event:r})}):null]})}function j9(n){const s=Date.now(),l=s,r=s-b9;let d=n.filter(y=>{if(y.kind==="service.http")return!1;const g=new Date(y.timestamp).getTime();return!Number.isNaN(g)&&g>=r});d.length===0&&n.length>0?d=n.slice(-ed):d.length>ed&&(d=d.slice(-ed));const f=new Map;for(const y of d){const g=y.service||"·system",x=f.get(g)??[];x.push(y),f.set(g,x)}const h=Math.max(l-r,1);return{rows:Array.from(f.entries()).map(([y,g])=>{const x=[...g].sort((q,Y)=>q.timestamp.localeCompare(Y.timestamp)),b=new Array(Fi).fill(0),S=new Array(Fi).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(Fi-1,Math.floor((X-r)/h*Fi));b[Z]+=1;const J=S[Z];S[Z]=w9(J,q.severity)}const j=x.filter(q=>q.severity==="error").length,T=x.filter(q=>q.severity==="warning").length,E=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:E,buckets:b,bucketSeverity:S,lastNotable:O,worstSeverity:B}}).sort((y,g)=>{const x=S=>S.errors*1e3+S.warnings,b=x(g)-x(y);return b!==0?b:y.service.localeCompare(g.service)}),windowStart:r,windowEnd:l}}function w9(n,s){return n==="error"||s==="error"?"error":n==="warning"||s==="warning"?"warning":"info"}function T9({onClick:n,row:s,windowEnd:l,windowStart:r}){const d=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:oe("size-2 shrink-0 rounded-full",wy(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(zd,{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(${Fi}, minmax(0, 1fr))`},children:s.buckets.map((f,h)=>u.jsx(N9,{count:f,max:d,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 N9({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:oe("rounded-sm",M9(l)),style:{opacity:r},title:`${n} event${n===1?"":"s"}`})}function A9({onSelect:n,row:s}){const l=[...s.events].sort((r,d)=>d.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:oe("size-2 shrink-0 rounded-full",wy(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 C9({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:oe("rounded px-1.5 py-0.5 font-mono text-[10px] uppercase text-white",E9(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 wy(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-400"}function M9(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-500"}function E9(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 Pp({onChange:n,value:s}){return u.jsxs("label",{className:"relative block",children:[u.jsx(w3,{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 $p({className:n,containerRef:s,emptyText:l,logs:r,query:d}){return u.jsx("div",{className:oe("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",n),ref:s,role:"log",children:r.length?r.map((f,h)=>u.jsxs("div",{className:oe("grid min-w-max grid-cols-[168px_minmax(420px,1fr)] gap-2 border-b border-border/45 px-3 py-0.5",f.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:f.timestamp}),u.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[f.stream==="stderr"?u.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,k9(f.text,d)]})]},`${f.timestamp}-${f.stream}-${h}`)):u.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function z9(n){return`${n.timestamp} ${n.stream} ${n.text}`}function k9(n,s){const l=s.trim();if(!l)return n;const r=n.toLowerCase(),d=l.toLowerCase(),f=[];let h=0,p=r.indexOf(d);for(;p!==-1;){p>h&&f.push(n.slice(h,p));const y=p+l.length;f.push(u.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:n.slice(p,y)},`${p}-${y}`)),h=y,p=r.indexOf(d,h)}return h<n.length&&f.push(n.slice(h)),f}function D9({ports:n}){const s=n.filter(r=>r.state==="occupied").length,l=n.filter(r=>r.state==="managed").length;return u.jsxs(Ht,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[u.jsxs(qt,{className:"border-b border-border px-3 py-2",children:[u.jsxs(Gt,{className:"flex items-center gap-2",children:[u.jsx(n3,{className:"size-3.5"}),"Ports"]}),u.jsxs(ln,{className:"text-xs",children:[l," managed, ",s," occupied by other"]})]}),u.jsx(Yt,{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(Ty,{port:r})]},r.port))}):u.jsx(cf,{label:"No configured ports yet."})})]})}function Ty({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(He,{className:oe(n&&"max-w-36 truncate"),variant:r,children:l})}function R9({context:n}){const[s,l]=M.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(ig,{className:"size-3.5"}):u.jsx(lg,{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 V9({health:n}){if(!n)return null;const s=n.processTree,l=n.status==="healthy"||n.status==="unknown"?void 0:B9(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:oe("inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2.5 font-medium",O9(n.status)),children:[u.jsx("span",{className:"inline-flex shrink-0",children:u.jsx(Ys,{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(Nb,{className:"size-3"}),s.processCount," ",s.processCount===1?"process":"processes"]}),u.jsxs("span",{children:[L9(s.cpuPercent)," CPU"]}),u.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[u.jsx(e3,{className:"size-3"}),_9(s.rssMb)," RAM"]})]}):null]})}function O9(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 _9(n){return Number.isInteger(n)?`${n} MB`:`${n.toFixed(1)} MB`}function L9(n){return`${n.toFixed(1)}%`}function B9(n){return n.replace(/^Recent error log:\s*/i,"Recent stderr: ").replace(/:\s*\d+(?:\.\d+)? MB RSS\.?$/i,"").replace(/\s+RSS\.?$/i,"")}function U9({serviceName:n,status:s,health:l,timeline:r,onRefresh:d}){const[f,h]=M.useState("processes"),p=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(td,{active:f==="processes",onClick:()=>h("processes"),children:["Processes ",p.length?u.jsx(He,{variant:"secondary",size:"small",children:p.length}):null]}),u.jsxs(td,{active:f==="http",onClick:()=>h("http"),children:["HTTP",s?.inspector?.enabled?u.jsx(He,{variant:"success",size:"small",children:"on"}):null]}),u.jsx(td,{active:f==="logs",onClick:()=>h("logs"),children:"Logs"})]}),f==="processes"?u.jsx(H9,{rows:p}):null,f==="http"?u.jsx(q9,{serviceName:n,status:s,timeline:r,onRefresh:d}):null,f==="logs"?u.jsx(X9,{serviceName:n}):null]})}function td({active:n,onClick:s,children:l}){return u.jsx("button",{className:oe("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 H9({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,d)=>d.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 d=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:oe("py-1 truncate max-w-[60ch]",d&&"pl-4"),children:r.command})]},r.pid)})})]})})}function q9({serviceName:n,status:s,timeline:l,onRefresh:r}){const{error:d,success:f}=Aa(),[h,p]=M.useState(!1),y=s?.inspector,g=s?.state==="running",x=M.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){p(!0);try{await an(`/api/services/${encodeURIComponent(n)}/inspector`,{enabled:j?"true":"false"}),await r(),f(j?`HTTP inspector started for ${n}.`:`HTTP inspector stopped for ${n}.`)}catch(T){d(T instanceof Error?T.message:String(T))}finally{p(!1)}}if(!g)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(ug,{})," 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),f("Copied inspect URL.")},size:"sm",type:"button",variant:"outline",children:[u.jsx(lg,{})," 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(hg,{})," 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:oe("py-1 pr-3 text-right",G9(j.status)),children:j.status}),u.jsx("td",{className:"py-1 pr-3 text-right text-muted-foreground",children:Y9(j.resBytes)}),u.jsx("td",{className:"py-1 pr-3 text-right",children:j.durationMs.toFixed(1)})]},j.id))})]})})]})}function G9(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 Y9(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`}function X9({serviceName:n}){const[s,l]=M.useState(),[r,d]=M.useState();return M.useEffect(()=>{let f=!1;const h=async()=>{try{const y=await ad(n);f||l(y)}catch(y){f||d(y instanceof Error?y.message:String(y))}};h();const p=window.setInterval(h,2e3);return()=>{f=!0,window.clearInterval(p)}},[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(f=>`${new Date(f.timestamp).toLocaleTimeString()} [${f.stream}] ${f.text}`).join(`
|
|
12
|
-
`)}):u.jsx("div",{className:"text-muted-foreground",children:"Loading…"})}function Z9({allServices:n,group:s,onRefresh:l,ports:r,services:d,health:f,statuses:h,timeline:p}){const[y,g]=M.useState(!1),[x,b]=M.useState(!1),S=d.some(j=>Ay(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(Qs,{className:oe("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(He,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),u.jsx("span",{className:"text-sm font-medium",children:s.name}),u.jsx(He,{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:()=>g(j=>!j),size:"sm",type:"button",variant:"outline",children:[u.jsx(f3,{}),"Edit"]}),u.jsx(Sy,{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(jy,{initialName:s.name,initialServices:s.services,onRefresh:l,onSaved:()=>g(!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:d.length?d.map(j=>u.jsx(Ny,{service:j,status:h[j.name],health:f[j.name],ports:r,onRefresh:l,timeline:p},j.name)):u.jsx(Mt,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function Ny({service:n,status:s,health:l,ports:r,onRefresh:d,timeline:f=[]}){const[h,p]=M.useState(!1),[y,g]=M.useState(!1),x=s?.state??"stopped",b=Ay(x),S=s?.url??(n.port?K9(n.port):void 0),j=n.port?r.find(O=>O.port===n.port):void 0,T=F9(s?.url),E=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:()=>g(O=>!O),type:"button",children:u.jsx(Qs,{className:oe("size-3.5 transition-transform",y?"":"-rotate-90")})}),u.jsx(of,{command:n.command??""}),u.jsx("span",{className:"text-sm font-medium",children:n.name}),u.jsx(P9,{state:x}),n.kind&&n.kind!=="local"?u.jsx(He,{variant:"outline",children:n.kind}):null,n.port?u.jsxs(He,{variant:"outline",children:[":",n.port]}):null,j?u.jsx(Ty,{port:j,compact:!0}):null,E&&E.port!==n.port?u.jsxs(He,{variant:"success",children:["actual :",E.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(V9,{health:l})]}),u.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[u.jsx(Q9,{service:n,onRefresh:d}),S?u.jsxs(ge,{onClick:()=>window.open(S,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:S,children:[u.jsx(rg,{}),"Open"]}):null,l?.agentContext?u.jsxs(ge,{onClick:()=>p(!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(Sy,{active:b,baseUrl:`/api/services/${encodeURIComponent(n.name)}`,targetLabel:n.name,onRefresh:d})]}),h&&l?.agentContext?u.jsx(ll,{icon:u.jsx(Ii,{}),onClose:()=>p(!1),title:`Agent context — ${n.name}`,children:u.jsx("div",{className:"p-4",children:u.jsx(R9,{context:l.agentContext})})}):null]}),y?u.jsx(U9,{serviceName:n.name,status:s,health:l,timeline:f,onRefresh:d}):null]})}function Ay(n){return n==="running"||n==="starting"}function Q9({service:n,onRefresh:s}){const[l,r]=M.useState(n.port?String(n.port):""),[d,f]=M.useState(!1),{error:h,success:p}=Aa(),y=l.trim()!==(n.port?String(n.port):"");M.useEffect(()=>{r(n.port?String(n.port):"")},[n.port]);async function g(x){x.preventDefault(),f(!0);try{await an("/api/services",{name:n.name,command:n.command??"",cwd:n.cwd??"",port:l,description:n.description}),p(`Port saved for ${n.name}.`),await s()}catch(b){h(il("Save port",n.name,b))}finally{f(!1)}}return u.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:g,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:d||!y,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:u.jsx(S3,{})})]})}function K9(n){return`http://127.0.0.1:${n}`}function F9(n){if(n)try{const s=new URL(n);return s.port?Number(s.port):void 0}catch{return}}function P9({state:n}){return u.jsx(He,{variant:n==="running"?"success":n==="exited"?"danger":n==="starting"?"warning":"outline",className:oe(n==="running"&&"font-mono"),children:n})}function $9({data:n,onRefresh:s}){const l=n.config.services[0]?.name??"",[r,d]=M.useState(l),[f,h]=M.useState(n.logs),[p,y]=M.useState(""),[g,x]=M.useState(null),[b,S]=M.useState(!1),j=M.useRef(null),T=M.useRef(!0),E=M.useRef({}),{error:O,message:B,success:q}=Aa(),Y=M.useMemo(()=>new Set(n.config.bundles.flatMap(F=>F.services)),[n.config.bundles]),X=M.useMemo(()=>{const F=new Map;for(const ce of n.config.bundles)for(const we of ce.services)F.has(we)||F.set(we,ce.name);return F},[n.config.bundles]),Z=M.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=p.trim().toLowerCase(),fe=M.useMemo(()=>L?f.filter(F=>z9(F).toLowerCase().includes(L)):f,[f,L]);M.useEffect(()=>{!r&&l&&d(l)},[l,r]),M.useEffect(()=>{if(!r){h([]);return}let F=!0;return ad(r).then(ce=>{F&&h(ce)}).catch(()=>{F&&h([])}),()=>{F=!1}},[r,n.runtime.services]),M.useEffect(()=>{if(!b||!r)return;let F=!0;const ce=async()=>{try{const be=await ad(r);F&&h(be)}catch{F&&h([])}};ce();const we=window.setInterval(ce,1e3);return()=>{F=!1,window.clearInterval(we)}},[r,b]),M.useEffect(()=>{const F=j.current;if(!F)return;function ce(){if(!F)return;const we=F.scrollHeight-F.scrollTop-F.clientHeight;T.current=we<40}return ce(),F.addEventListener("scroll",ce,{passive:!0}),()=>F.removeEventListener("scroll",ce)},[r]),M.useEffect(()=>{if(!b||!T.current)return;const F=j.current;F&&(F.scrollTop=F.scrollHeight)},[b,fe]),M.useEffect(()=>{T.current=!0;const F=j.current;F&&(F.scrollTop=F.scrollHeight)},[r]),M.useEffect(()=>{const F=Object.fromEntries(n.config.services.map(we=>[we.name,n.runtime.services[we.name]?.state??"stopped"])),ce=E.current;if(Object.keys(ce).length){const we=new Map,be=new Map;for(const ye of n.config.services){const k=F[ye.name],K=ce[ye.name];if(!K||K===k)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(k,(Q.get(k)??0)+1),we.set(P,Q),k==="exited"){const N=be.get(P)??[];N.push(W?.exitCode),be.set(P,N)}continue}if(k==="running")q(`${ye.name} is running.`);else if(k==="stopped")B({text:`${ye.name} stopped.`});else if(k==="starting")B({text:`${ye.name} is starting.`});else if(k==="exited"){const Q=W?.exitCode===void 0||W.exitCode===null?"":` with code ${W.exitCode}`;O(`${ye.name} exited${Q}.`)}}for(const[ye,k]of we)J9({exitCodes:be.get(ye)??[],groupName:ye,showErrorToast:O,showMessageToast:B,showSuccessToast:q,transitions:k})}E.current=F},[n.config.services,n.runtime.services,X,O,B,q]);const le=r?L?`No log lines match "${p.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(Ht,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[u.jsx(qt,{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(Gt,{children:"Streaming Logs"}),u.jsx(ln,{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(Pp,{value:p,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=>d(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(j1,{}),"Streaming"]})]})]})}),u.jsx(Yt,{className:"min-h-0 flex-1 p-0",children:u.jsx($p,{containerRef:j,emptyText:le,logs:fe,query:p})})]})}):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(Ht,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[u.jsx(qt,{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(Gt,{children:"Services"}),u.jsx(ln,{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(S1,{}),"Create Group"]})]})]})}),u.jsx(Yt,{className:"p-0",children:$?u.jsxs("div",{className:"divide-y divide-border",children:[n.config.bundles.map(F=>u.jsx(Z9,{group:F,onRefresh:s,ports:n.ports,allServices:n.config.services,health:J,services:n.config.services.filter(ce=>F.services.includes(ce.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:ce})=>{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:ce}),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(Ny,{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(cf,{label:"No services registered yet."})})]}),u.jsxs(Ht,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[u.jsx(qt,{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(Gt,{children:"Recent Logs"}),u.jsx(ln,{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(Pp,{value:p,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=>d(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(j1,{}),"Stream"]})]})]})}),u.jsx(Yt,{className:"min-w-0 p-0",children:u.jsx($p,{className:"max-h-[320px]",containerRef:j,emptyText:le,logs:fe,query:p})})]})]}),u.jsxs("div",{className:"min-h-0 overflow-auto border-l border-border",children:[u.jsx(D9,{ports:n.ports}),u.jsx(S9,{events:n.timeline??[]})]})]}),g?u.jsx(ll,{icon:g==="service"?u.jsx(Zr,{}):u.jsx(S1,{}),onClose:()=>x(null),size:g==="service"?"lg":"md",title:g==="service"?"Add Service":"Create Group",children:g==="service"?u.jsx(x9,{cwd:n.cwd,onRefresh:s,onSaved:()=>x(null)}):u.jsx(jy,{services:Z,onRefresh:s,onSaved:()=>x(null)})}):null]})}function J9({exitCodes:n,groupName:s,showErrorToast:l,showMessageToast:r,showSuccessToast:d,transitions:f}){if(f.size===1){const[y]=f.keys();if(y==="running")d(`${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 g=n.filter(b=>b!=null),x=g.length?` with code ${g.join(", ")}`:"";l(`${s} group exited${x}.`)}return}const h=[...f.entries()].map(([y,g])=>`${g} ${y}`).join(", "),p=`${s} group updated: ${h}.`;f.has("exited")?l(p):r({text:p})}function W9({activeHunkIndex:n=0,diff:s}){const l=ej(s),r=M.useRef([]);return M.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((d,f)=>u.jsxs("div",{className:oe("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",d.kind==="add"&&"bg-emerald-50 text-emerald-800",d.kind==="delete"&&"bg-red-50 text-red-800",Jp(l,f)&&d.hunkIndex===n&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:d.hunkIndex!==null&&Jp(l,f)?h=>{r.current[d.hunkIndex??0]=h}:void 0,children:[u.jsx(Wp,{value:d.oldLine}),u.jsx(Wp,{value:d.newLine}),u.jsx("span",{className:"whitespace-pre px-2",children:d.content||" "})]},`${f}-${d.content}`))})})}function I9(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 ej(n){const s=tj(n);return s.some(l=>l.kind==="hunk")?s.filter(l=>l.kind!=="meta"&&l.kind!=="hunk"):s}function tj(n){let s=null,l=null,r=null;return n.split(`
|
|
14
|
-
`).map(d=>{if(nj(d))return s=null,l=null,r=null,{content:d,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(d.startsWith("@@")){const h=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(d);return h&&(s=Number(h[1]),l=Number(h[2])),r=(r??-1)+1,{content:d,hunkIndex:r,kind:"hunk",oldLine:null,newLine:null}}if(s===null||l===null)return{content:d,hunkIndex:null,kind:"meta",oldLine:null,newLine:null};if(d.startsWith("\\ No newline"))return{content:d,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(d.startsWith("+")&&!d.startsWith("+++")){const h={content:d,hunkIndex:r,kind:"add",oldLine:null,newLine:l};return l+=1,h}if(d.startsWith("-")&&!d.startsWith("---")){const h={content:d,hunkIndex:r,kind:"delete",oldLine:s,newLine:null};return s+=1,h}const f={content:d,hunkIndex:r,kind:"context",oldLine:s,newLine:l};return s+=1,l+=1,f})}function Jp(n,s){const l=n[s]?.hunkIndex;if(l===null)return!1;const r=n.findIndex(d=>d.hunkIndex===l&&(d.kind==="add"||d.kind==="delete"));return r!==-1?r===s:n.findIndex(d=>d.hunkIndex===l)===s}function nj(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 Wp({value:n}){return u.jsx("span",{className:oe("select-none border-r border-border/70 px-2 text-right text-muted-foreground",n===null&&"text-transparent"),children:n??"-"})}const aj=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),sj=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),ij=new Set(["conf","config","ini","toml","yaml","yml"]),lj=new Set(["csv","json","sql","xml"]),rj=new Set(["md","mdx","rst","txt"]),oj=new Set(["gif","jpeg","jpg","png","svg","webp"]),cj=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),uj=new Set(["css","less","sass","scss"]);function dj(n){const s=n.split("/").pop()?.toLowerCase()??n.toLowerCase(),l=s.includes(".")?s.split(".").pop()??"":"";return cj.has(s)||s.endsWith(".lock")?"lock":fj(s)?"test":sj.has(s)||ij.has(l)?"config":uj.has(l)?"style":oj.has(l)?"image":rj.has(l)?"document":lj.has(l)?"data":aj.has(l)?"code":"generic"}function fj(n){return n.includes(".test.")||n.includes(".spec.")||n.endsWith("_test.go")}function hj({branch:n,error:s,files:l,selectedFile:r,onSelectFile:d}){const f=M.useMemo(()=>xj(l).filter(y=>y.files.length),[l]),[h,p]=M.useState({staged:!1,unstaged:!1,untracked:!1});return u.jsxs(Ht,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[u.jsx(qt,{className:"border-b border-border px-2.5 py-1.5",children:u.jsxs(Gt,{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(He,{variant:"outline",children:n}):null,u.jsx(He,{variant:"secondary",children:l.length})]})]})}),u.jsx(Yt,{className:"min-h-0 flex-1 overflow-auto p-0",children:f.length?f.map(y=>u.jsx(mj,{collapsed:h[y.id],group:y,onSelectFile:d,onToggle:()=>p(g=>({...g,[y.id]:!g[y.id]})),selectedFile:r},y.id)):u.jsx(Mt,{variant:"muted",className:"m-3 text-center",children:s??"No changed files."})})]})}function mj({collapsed:n,group:s,onSelectFile:l,onToggle:r,selectedFile:d}){const f=n?zd:Qs;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(f,{className:"size-3.5"}),u.jsx("span",{className:"truncate",children:s.label})]}),u.jsx(He,{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(pj,{active:d===h.path,file:h,group:s.id,onClick:()=>l(h.path)},h.path))})]})}function pj({active:n,file:s,group:l,onClick:r}){const d=s.path.split("/").pop()||s.path,f=s.path.split("/").slice(0,-1).join("/");return u.jsxs(ge,{className:oe("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(yj,{path:s.path}),u.jsx("span",{className:"truncate text-[13px] font-medium",children:d})]}),f?u.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:f}):null]}),u.jsx("span",{className:oe("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:gj(s,l)})]})}function gj(n,s){return s==="untracked"?"?":s==="staged"?n.index.trim():n.workingTree.trim()}function yj({path:n}){const s=dj(n),l=vj[s];return u.jsx(l,{"aria-label":`${s} file`,className:oe("size-3.5 shrink-0",bj[s])})}function xj(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 vj={code:Db,config:C3,data:Cb,document:Vb,generic:_b,image:Pb,lock:Wb,style:s3,test:Bb},bj={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 Sj({activeHunkIndex:n,filePaths:s,hunkCount:l,pendingNextFilePath:r,selectedFile:d}){if(l>0&&n<l-1)return{kind:"hunk",activeHunkIndex:n+1};const f=s.findIndex(p=>p===d),h=s[f+1];return h?r===h?{kind:"file",filePath:h}:{kind:"confirm-next-file",filePath:h}:{kind:"none"}}function jj({data:n}){const[s,l]=M.useState(n.git.status?.files[0]?.path??""),[r,d]=M.useState(""),[f,h]=M.useState(null),[p,y]=M.useState(0),[g,x]=M.useState(null),b=n.git.status?.files??[],S=M.useMemo(()=>b.map(Z=>Z.path),[b]),j=M.useMemo(()=>I9(r),[r]);M.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]),M.useEffect(()=>{if(!s){d("");return}let Z=!0;return h(null),U3(s).then(J=>{Z&&(d(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 E(){const Z=Sj({activeHunkIndex:p,filePaths:S,hunkCount:j.hunks,pendingNextFilePath:g,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),p>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&&p<j.hunks-1||b[B+1]),Y=!!(p>0||b[B-1]),X=g?`End of file. Click Next again to open ${g}.`: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(hj,{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(mb,{}),"Previous"]}),u.jsxs(ge,{disabled:!s||!q,onClick:E,size:"sm",type:"button",variant:"outline",children:[u.jsx(fb,{}),"Next"]})]})]}),u.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:f?u.jsx("div",{className:"p-4",children:u.jsx(Mt,{variant:"destructive",children:f})}):s?u.jsx(W9,{activeHunkIndex:p,diff:r||"No unstaged diff for this file."}):u.jsx("div",{className:"p-4",children:u.jsx(Mt,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function wj({initialPath:n,onSelect:s,selectedPath:l}){const[r,d]=M.useState(n),[f,h]=M.useState(null),[p,y]=M.useState(null),[g,x]=M.useState(!1),b=Tj(f);return M.useEffect(()=>{d(n)},[n]),M.useEffect(()=>{let S=!0;return x(!0),y(null),H3(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:()=>f&&d(f.parent),size:"icon",type:"button",variant:"ghost",children:u.jsx(Qs,{className:"rotate-90"})}):null,u.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f?.path??r}),g?u.jsx(cg,{className:"size-4 animate-spin text-muted-foreground"}):null]}),u.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[p?u.jsx(Mt,{variant:"destructive",className:"m-1",children:p}):null,!p&&f?.entries.length===0?u.jsx(Mt,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,f?.entries.map(S=>u.jsxs(ge,{className:oe("h-8 w-full justify-start rounded-sm px-2 text-left",l===S.path&&"bg-muted"),onClick:()=>d(S.path),title:S.path,type:"button",variant:"ghost",children:[u.jsx(kd,{className:"text-accent"}),u.jsx("span",{className:"truncate",children:S.name})]},S.path))]})]})}function Tj(n){return!!(n&&n.parent!==n.path)}function Ip(n){return n.split(/[\\/]/).filter(Boolean).pop()??"project"}function Nj({data:n,onRefresh:s}){const[l,r]=M.useState(!1),[d,f]=M.useState(n.git.cwd),[h,p]=M.useState(null),[y,g]=M.useState(!1),[x,b]=M.useState("add"),[S,j]=M.useState(n.git.cwd),T=M.useRef(null),E=n.git.selectedRepository,O=E?.name??Ip(n.git.cwd),{error:B,success:q}=Aa();M.useEffect(()=>{f(n.git.cwd),j(n.git.cwd)},[n.git.cwd]),M.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(!Aj($)){const L="Please add an absolute path. Paths beginning with ~ are not expanded here.";return p(L),B(L),!1}try{const L=Ip($);return await an("/api/git/repositories",{name:L,path:$}),p(null),await s(),q(`Added Git project ${L}.`),!0}catch(L){const fe=L instanceof Error?L.message:String(L);return p(fe),B(fe),!1}}async function Z(J){J.preventDefault(),await X(d)&&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(kd,{className:"text-muted-foreground"}),u.jsx("span",{className:"truncate",children:O}),u.jsx(Qs,{className:oe("ml-auto transition-transform",l&&"rotate-180")})]}),u.jsx(ge,{"aria-label":"Add Git project",onClick:()=>{b("add"),p(null),j(n.git.cwd),g(!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(Eb,{className:"size-3.5 text-muted-foreground"}),u.jsx("div",{className:"text-xs font-semibold",children:"Git Projects"}),u.jsx(He,{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===E?.name;return u.jsxs("button",{className:oe("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(ig,{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=>{f(J.target.value),p(null)},placeholder:"/absolute/path",value:d}),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"),p(null),j(d||n.git.cwd),g(!0)},size:"sm",type:"button",variant:"outline",children:u.jsx(Gb,{className:"size-3"})})]}),h?u.jsx("div",{className:"mt-1.5 truncate text-[10px] text-destructive",children:h}):null]})]}):null,y?u.jsx(Cj,{confirmLabel:x==="add"?"Add Git project":"Use this folder",errorMessage:x==="add"?h:null,initialPath:x==="add"?n.git.cwd:d||n.git.cwd,selectedPath:S,title:x==="add"?"Add Git Project":"Choose Git Project Folder",onCancel:()=>g(!1),onSelect:j,onUse:async()=>{x==="add"?await X(S)&&(g(!1),r(!1)):(f(S),p(null),g(!1))}}):null]})}function Aj(n){return n.startsWith("/")}function Cj({confirmLabel:n="Use this folder",errorMessage:s,initialPath:l,onCancel:r,onSelect:d,onUse:f,selectedPath:h,title:p="Choose Git Project Folder"}){return by.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(kd,{className:"size-4"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("div",{className:"text-sm font-semibold",children:p}),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(wj,{initialPath:l,onSelect:d,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:()=>{f()},type:"button",children:n})]})]})}),document.body)}function Mj({branches:n,currentBranch:s,disabled:l,onRefresh:r}){const[d,f]=M.useState(!1),[h,p]=M.useState(""),[y,g]=M.useState(null),[x,b]=M.useState(null),[S,j]=M.useState(null),T=n.filter(X=>!X.remote),E=n.filter(X=>X.remote);async function O(X,Z){g(X),j(null),b(null);try{await Z(),await r()}catch(J){j(J instanceof Error?J.message:String(J))}finally{g(null)}}async function B(X){await O(`switch:${X}`,async()=>{await an("/api/git/branches/switch",{name:X}),f(!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}),p(""),f(!1)})}return u.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[d?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(fg,{className:oe(y==="fetch"&&"animate-spin")})}),u.jsx(ge,{"aria-label":"Close branch dialog",onClick:()=>f(!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(eg,{branches:T,busy:y!==null,disabled:l,label:"Local",onSwitch:B}),u.jsx(eg,{branches:E,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=>{p(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(Kb,{}),"Create"]})]}),S||x?u.jsx(Mt,{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:()=>f(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(Qs,{className:oe("size-4 transition-transform",d&&"rotate-180")})]})]})}function eg({branches:n,busy:s,disabled:l,label:r,onSwitch:d}){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(f=>u.jsxs("button",{className:oe("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",f.current&&"bg-muted/70"),disabled:l||s||f.current,onClick:()=>{d(f.name)},type:"button",children:[u.jsxs("span",{className:"min-w-0",children:[u.jsx("span",{className:"block truncate font-medium",children:f.name}),f.upstream?u.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",f.upstream]}):null]}),u.jsx(He,{variant:f.current?"success":f.remote?"outline":"secondary",children:f.current?"current":f.remote?"remote":"local"})]},`${f.remote?"remote":"local"}:${f.name}`)):u.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",r.toLowerCase()," branches."]})]})}function Ej({className:n}){return u.jsxs("div",{className:oe("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.18"]})]}),u.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]})}function zj(){const[n,s]=M.useState(()=>window.location.pathname.startsWith("/agent")?"agent":window.location.pathname.startsWith("/git")?"git":"services"),[l,r]=M.useState(null),[d,f]=M.useState(null),[h,p]=M.useState(!0),{error:y,success:g}=Aa(),[x,b]=M.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=M.useCallback(async(T={})=>{T.silent||p(!0),f(null);try{r(await _3()),T.notify&&g("Dashboard refreshed.")}catch(E){const O=E instanceof Error?E.message:String(E);f(O),y(O)}finally{p(!1)}},[y,g]);M.useEffect(()=>{S()},[S]),M.useEffect(()=>{function T(){document.visibilityState==="visible"&&S({silent:!0})}const E=window.setInterval(T,5e3);return window.addEventListener("focus",T),document.addEventListener("visibilitychange",T),()=>{window.clearInterval(E),window.removeEventListener("focus",T),document.removeEventListener("visibilitychange",T)}},[n,S]),M.useEffect(()=>{const T=n==="git"?"/git":n==="agent"?"/agent":"/";window.location.pathname!==T&&window.history.pushState(null,"",T)},[n]),M.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",x?"collapsed":"expanded")},[x]);const j=M.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:oe("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:oe("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:O3})}),u.jsx(Ej,{className:oe(x&&"hidden")}),u.jsx(ge,{"aria-label":x?"Expand navigation":"Collapse navigation",className:oe("ml-auto",x&&"hidden"),size:"icon",variant:"ghost",onClick:()=>b(T=>!T),children:u.jsx(l3,{})})]}),u.jsx("div",{className:oe("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(o3,{})})}),u.jsxs("nav",{className:"mt-5 grid gap-1",children:[u.jsx(nd,{active:n==="services",badge:j,collapsed:x,icon:u.jsx(N3,{}),label:"Services",onClick:()=>s("services")}),u.jsx(nd,{active:n==="git",collapsed:x,icon:u.jsx(Xr,{}),label:"Git Review",onClick:()=>s("git")}),u.jsx(nd,{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:oe("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(u3,{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:[d?u.jsx(He,{variant:"danger",children:d}):null,l&&n==="git"?u.jsx(Nj,{data:l,onRefresh:S}):null,u.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[u.jsx(fg,{className:oe(h&&"animate-spin")}),"Refresh"]})]})]}),h&&!l?u.jsx(Mt,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,u.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&n==="services"?u.jsx($9,{data:l,onRefresh:S}):null,l&&n==="git"?u.jsx(jj,{data:l}):null,n==="agent"?u.jsx(LS,{}):null]})]})]}),l&&n==="git"?u.jsx(Mj,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function nd({active:n,badge:s,collapsed:l,icon:r,label:d,onClick:f}){return u.jsxs(ge,{"aria-label":d,title:l?d:void 0,className:oe("w-full",l?"relative justify-center px-0":"justify-start"),variant:n?"default":"ghost",onClick:f,type:"button",children:[u.jsx("span",{className:oe(l&&"[&_svg]:size-4"),children:r}),u.jsx("span",{className:oe("min-w-0 flex-1 text-left",l&&"hidden"),children:d}),s!==void 0?u.jsx(He,{appearance:s>0?"solid":"outline",className:oe("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]})}ng.createRoot(document.getElementById("root")).render(u.jsx(M.StrictMode,{children:u.jsx(zj,{})}));
|