fluxy-bot 0.3.6 → 0.3.8
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-fluxy/assets/{fluxy-CbfHHY-P.js → fluxy-CFzEEEkd.js} +1 -1
- package/dist-fluxy/assets/globals-BcC_NUiS.js +17 -0
- package/dist-fluxy/assets/globals-DAbB5zRE.css +1 -0
- package/dist-fluxy/assets/onboard-Ccsu5HQz.js +1 -0
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/supervisor/chat/OnboardWizard.tsx +2 -1
- package/dist-fluxy/assets/globals-Bu5tVsgN.js +0 -17
- package/dist-fluxy/assets/globals-DYOj4b0m.css +0 -1
- package/dist-fluxy/assets/onboard-Bzu8G4yQ.js +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();function Fy(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ac={exports:{}},Bl={};var xp;function k1(){if(xp)return Bl;xp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return Bl.Fragment=l,Bl.jsx=u,Bl.jsxs=u,Bl}var bp;function J1(){return bp||(bp=1,ac.exports=k1()),ac.exports}var S=J1(),ic={exports:{}},ot={};var Sp;function F1(){if(Sp)return ot;Sp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,G={};function Y(E,L,K){this.props=E,this.context=L,this.refs=G,this.updater=K||z}Y.prototype.isReactComponent={},Y.prototype.setState=function(E,L){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,L,"setState")},Y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=Y.prototype;function X(E,L,K){this.props=E,this.context=L,this.refs=G,this.updater=K||z}var Z=X.prototype=new Q;Z.constructor=X,q(Z,Y.prototype),Z.isPureReactComponent=!0;var k=Array.isArray;function it(){}var $={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function st(E,L,K){var F=K.ref;return{$$typeof:i,type:E,key:L,ref:F!==void 0?F:null,props:K}}function Tt(E,L){return st(E.type,L,E.props)}function pt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function zt(E){var L={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return L[K]})}var Zt=/\/+/g;function Rt(E,L){return typeof E=="object"&&E!==null&&E.key!=null?zt(""+E.key):L.toString(36)}function ne(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(it,it):(E.status="pending",E.then(function(L){E.status==="pending"&&(E.status="fulfilled",E.value=L)},function(L){E.status==="pending"&&(E.status="rejected",E.reason=L)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function j(E,L,K,F,lt){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var yt=!1;if(E===null)yt=!0;else switch(rt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(E.$$typeof){case i:case l:yt=!0;break;case v:return yt=E._init,j(yt(E._payload),L,K,F,lt)}}if(yt)return lt=lt(E),yt=F===""?"."+Rt(E,0):F,k(lt)?(K="",yt!=null&&(K=yt.replace(Zt,"$&/")+"/"),j(lt,L,K,"",function(pe){return pe})):lt!=null&&(pt(lt)&&(lt=Tt(lt,K+(lt.key==null||E&&E.key===lt.key?"":(""+lt.key).replace(Zt,"$&/")+"/")+yt)),L.push(lt)),1;yt=0;var Vt=F===""?".":F+":";if(k(E))for(var Bt=0;Bt<E.length;Bt++)F=E[Bt],rt=Vt+Rt(F,Bt),yt+=j(F,L,K,rt,lt);else if(Bt=N(E),typeof Bt=="function")for(E=Bt.call(E),Bt=0;!(F=E.next()).done;)F=F.value,rt=Vt+Rt(F,Bt++),yt+=j(F,L,K,rt,lt);else if(rt==="object"){if(typeof E.then=="function")return j(ne(E),L,K,F,lt);throw L=String(E),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return yt}function H(E,L,K){if(E==null)return E;var F=[],lt=0;return j(E,F,"","",function(rt){return L.call(K,rt,lt++)}),F}function P(E){if(E._status===-1){var L=E._result;L=L(),L.then(function(K){(E._status===0||E._status===-1)&&(E._status=1,E._result=K)},function(K){(E._status===0||E._status===-1)&&(E._status=2,E._result=K)}),E._status===-1&&(E._status=0,E._result=L)}if(E._status===1)return E._result.default;throw E._result}var ut=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=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(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,L,K){H(E,function(){L.apply(this,arguments)},K)},count:function(E){var L=0;return H(E,function(){L++}),L},toArray:function(E){return H(E,function(L){return L})||[]},only:function(E){if(!pt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=x,ot.Children=ht,ot.Component=Y,ot.Fragment=u,ot.Profiler=c,ot.PureComponent=X,ot.StrictMode=o,ot.Suspense=g,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return $.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,L,K){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var F=q({},E.props),lt=E.key;if(L!=null)for(rt in L.key!==void 0&&(lt=""+L.key),L)!J.call(L,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&L.ref===void 0||(F[rt]=L[rt]);var rt=arguments.length-2;if(rt===1)F.children=K;else if(1<rt){for(var yt=Array(rt),Vt=0;Vt<rt;Vt++)yt[Vt]=arguments[Vt+2];F.children=yt}return st(E.type,lt,F)},ot.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,L,K){var F,lt={},rt=null;if(L!=null)for(F in L.key!==void 0&&(rt=""+L.key),L)J.call(L,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(lt[F]=L[F]);var yt=arguments.length-2;if(yt===1)lt.children=K;else if(1<yt){for(var Vt=Array(yt),Bt=0;Bt<yt;Bt++)Vt[Bt]=arguments[Bt+2];lt.children=Vt}if(E&&E.defaultProps)for(F in yt=E.defaultProps,yt)lt[F]===void 0&&(lt[F]=yt[F]);return st(E,rt,lt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:p,render:E}},ot.isValidElement=pt,ot.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:P}},ot.memo=function(E,L){return{$$typeof:m,type:E,compare:L===void 0?null:L}},ot.startTransition=function(E){var L=$.T,K={};$.T=K;try{var F=E(),lt=$.S;lt!==null&<(K,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(it,ut)}catch(rt){ut(rt)}finally{L!==null&&K.types!==null&&(L.types=K.types),$.T=L}},ot.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ot.use=function(E){return $.H.use(E)},ot.useActionState=function(E,L,K){return $.H.useActionState(E,L,K)},ot.useCallback=function(E,L){return $.H.useCallback(E,L)},ot.useContext=function(E){return $.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,L){return $.H.useDeferredValue(E,L)},ot.useEffect=function(E,L){return $.H.useEffect(E,L)},ot.useEffectEvent=function(E){return $.H.useEffectEvent(E)},ot.useId=function(){return $.H.useId()},ot.useImperativeHandle=function(E,L,K){return $.H.useImperativeHandle(E,L,K)},ot.useInsertionEffect=function(E,L){return $.H.useInsertionEffect(E,L)},ot.useLayoutEffect=function(E,L){return $.H.useLayoutEffect(E,L)},ot.useMemo=function(E,L){return $.H.useMemo(E,L)},ot.useOptimistic=function(E,L){return $.H.useOptimistic(E,L)},ot.useReducer=function(E,L,K){return $.H.useReducer(E,L,K)},ot.useRef=function(E){return $.H.useRef(E)},ot.useState=function(E){return $.H.useState(E)},ot.useSyncExternalStore=function(E,L,K){return $.H.useSyncExternalStore(E,L,K)},ot.useTransition=function(){return $.H.useTransition()},ot.version="19.2.4",ot}var Tp;function Pc(){return Tp||(Tp=1,ic.exports=F1()),ic.exports}var U=Pc();const vA=Fy(U);var lc={exports:{}},Ll={},sc={exports:{}},uc={};var Ap;function P1(){return Ap||(Ap=1,(function(i){function l(j,H){var P=j.length;j.push(H);t:for(;0<P;){var ut=P-1>>>1,ht=j[ut];if(0<c(ht,H))j[ut]=H,j[P]=ht,P=ut;else break t}}function u(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var H=j[0],P=j.pop();if(P!==H){j[0]=P;t:for(var ut=0,ht=j.length,E=ht>>>1;ut<E;){var L=2*(ut+1)-1,K=j[L],F=L+1,lt=j[F];if(0>c(K,P))F<ht&&0>c(lt,K)?(j[ut]=lt,j[F]=P,ut=F):(j[ut]=K,j[L]=P,ut=L);else if(F<ht&&0>c(lt,P))j[ut]=lt,j[F]=P,ut=F;else break t}}return H}function c(j,H){var P=j.sortIndex-H.sortIndex;return P!==0?P:j.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var g=[],m=[],v=1,x=null,T=3,N=!1,z=!1,q=!1,G=!1,Y=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Z(j){for(var H=u(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=j)o(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=u(m)}}function k(j){if(q=!1,Z(j),!z)if(u(g)!==null)z=!0,it||(it=!0,zt());else{var H=u(m);H!==null&&ne(k,H.startTime-j)}}var it=!1,$=-1,J=5,st=-1;function Tt(){return G?!0:!(i.unstable_now()-st<J)}function pt(){if(G=!1,it){var j=i.unstable_now();st=j;var H=!0;try{t:{z=!1,q&&(q=!1,Q($),$=-1),N=!0;var P=T;try{e:{for(Z(j),x=u(g);x!==null&&!(x.expirationTime>j&&Tt());){var ut=x.callback;if(typeof ut=="function"){x.callback=null,T=x.priorityLevel;var ht=ut(x.expirationTime<=j);if(j=i.unstable_now(),typeof ht=="function"){x.callback=ht,Z(j),H=!0;break e}x===u(g)&&o(g),Z(j)}else o(g);x=u(g)}if(x!==null)H=!0;else{var E=u(m);E!==null&&ne(k,E.startTime-j),H=!1}}break t}finally{x=null,T=P,N=!1}H=void 0}}finally{H?zt():it=!1}}}var zt;if(typeof X=="function")zt=function(){X(pt)};else if(typeof MessageChannel<"u"){var Zt=new MessageChannel,Rt=Zt.port2;Zt.port1.onmessage=pt,zt=function(){Rt.postMessage(null)}}else zt=function(){Y(pt,0)};function ne(j,H){$=Y(function(){j(i.unstable_now())},H)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(j){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var P=T;T=H;try{return j()}finally{T=P}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(j,H){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=T;T=j;try{return H()}finally{T=P}},i.unstable_scheduleCallback=function(j,H,P){var ut=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ut+P:ut):P=ut,j){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=P+ht,j={id:v++,callback:H,priorityLevel:j,startTime:P,expirationTime:ht,sortIndex:-1},P>ut?(j.sortIndex=P,l(m,j),u(g)===null&&j===u(m)&&(q?(Q($),$=-1):q=!0,ne(k,P-ut))):(j.sortIndex=ht,l(g,j),z||N||(z=!0,it||(it=!0,zt()))),j},i.unstable_shouldYield=Tt,i.unstable_wrapCallback=function(j){var H=T;return function(){var P=T;T=H;try{return j.apply(this,arguments)}finally{T=P}}}})(uc)),uc}var Ep;function W1(){return Ep||(Ep=1,sc.exports=P1()),sc.exports}var oc={exports:{}},ce={};var Cp;function $1(){if(Cp)return ce;Cp=1;var i=Pc();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:m,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ce.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,v)},ce.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},ce.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},ce.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ce.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:N}):v==="script"&&o.d.X(g,{crossOrigin:x,integrity:T,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ce.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},ce.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ce.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},ce.requestFormReset=function(g){o.d.r(g)},ce.unstable_batchedUpdates=function(g,m){return g(m)},ce.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},ce.useFormStatus=function(){return h.H.useHostTransitionStatus()},ce.version="19.2.4",ce}var Mp;function I1(){if(Mp)return oc.exports;Mp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),oc.exports=$1(),oc.exports}var Dp;function tx(){if(Dp)return Ll;Dp=1;var i=W1(),l=Pc(),u=I1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),Tt=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function zt(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Symbol.for("react.client.reference");function Rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Zt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case Y:return"Profiler";case G:return"StrictMode";case k:return"Suspense";case it:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case Z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:Rt(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return Rt(t(e))}catch{}}return null}var ne=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function E(t){return{current:t}}function L(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function K(t,e){ht++,ut[ht]=t.current,t.current=e}var F=E(null),lt=E(null),rt=E(null),yt=E(null);function Vt(t,e){switch(K(rt,e),K(lt,t),K(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Gm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Gm(e),t=Xm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(F),K(F,t)}function Bt(){L(F),L(lt),L(rt)}function pe(t){t.memoizedState!==null&&K(yt,t);var e=F.current,n=Xm(e,t.type);e!==n&&(K(lt,t),K(F,n))}function zn(t){lt.current===t&&(L(F),L(lt)),yt.current===t&&(L(yt),Rl._currentValue=P)}var Ua,Gi;function ye(t){if(Ua===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ua=e&&e[1]||"",Gi=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Ua+t+Gi}var Ba=!1;function Xe(t,e){if(!t||Ba)return"";Ba=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(O){var w=O}Reflect.construct(t,[],B)}else{try{B.call()}catch(O){w=O}t.call(B.prototype)}}else{try{throw Error()}catch(O){w=O}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(O){if(O&&w&&typeof O.stack=="string")return[O.stack,w.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var b=f.split(`
|
|
4
|
-
`),D=y.split(`
|
|
5
|
-
`);for(s=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(a===b.length||s===D.length)for(a=b.length-1,s=D.length-1;1<=a&&0<=s&&b[a]!==D[s];)s--;for(;1<=a&&0<=s;a--,s--)if(b[a]!==D[s]){if(a!==1||s!==1)do if(a--,s--,0>s||b[a]!==D[s]){var R=`
|
|
6
|
-
`+b[a].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=a&&0<=s);break}}}finally{Ba=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ye(n):""}function Yu(t,e){switch(t.tag){case 26:case 27:case 5:return ye(t.type);case 16:return ye("Lazy");case 13:return t.child!==e&&e!==null?ye("Suspense Fallback"):ye("Suspense");case 19:return ye("SuspenseList");case 0:case 15:return Xe(t.type,!1);case 11:return Xe(t.type.render,!1);case 1:return Xe(t.type,!0);case 31:return ye("Activity");default:return""}}function La(t){try{var e="",n=null;do e+=Yu(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Xi=Object.prototype.hasOwnProperty,Ki=i.unstable_scheduleCallback,Ha=i.unstable_cancelCallback,Rn=i.unstable_shouldYield,qu=i.unstable_requestPaint,ae=i.unstable_now,Gu=i.unstable_getCurrentPriorityLevel,Qi=i.unstable_ImmediatePriority,fa=i.unstable_UserBlockingPriority,fn=i.unstable_NormalPriority,es=i.unstable_LowPriority,Zi=i.unstable_IdlePriority,ns=i.log,$e=i.unstable_setDisableYieldValue,Vn=null,Ht=null;function Ke(t){if(typeof ns=="function"&&$e(t),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(Vn,t)}catch{}}var ie=Math.clz32?Math.clz32:Ku,hn=Math.log,Xu=Math.LN2;function Ku(t){return t>>>=0,t===0?32:31-(hn(t)/Xu|0)|0}var Ya=256,qa=262144,Ga=4194304;function Ie(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xa(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?s=Ie(a):(f&=y,f!==0?s=Ie(f):n||(n=y&~t,n!==0&&(s=Ie(n))))):(y=a&~r,y!==0?s=Ie(y):f!==0?s=Ie(f):n||(n=a&~t,n!==0&&(s=Ie(n)))),s===0?0:e!==0&&e!==s&&(e&r)===0&&(r=s&-s,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:s}function ha(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Qu(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 as(){var t=Ga;return Ga<<=1,(Ga&62914560)===0&&(Ga=4194304),t}function Ka(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _n(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Zu(t,e,n,a,s,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,b=t.expirationTimes,D=t.hiddenUpdates;for(n=f&~n;0<n;){var R=31-ie(n),B=1<<R;y[R]=0,b[R]=-1;var w=D[R];if(w!==null)for(D[R]=null,R=0;R<w.length;R++){var O=w[R];O!==null&&(O.lane&=-536870913)}n&=~B}a!==0&&Un(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function Un(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ie(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function tn(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ie(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function is(t,e){var n=e&-e;return n=(n&42)!==0?1:da(n),(n&(t.suspendedLanes|e))!==0?0:n}function da(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ki(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function en(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:hp(t.type))}function ku(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var _=Math.random().toString(36).slice(2),et="__reactFiber$"+_,Mt="__reactProps$"+_,Ae="__reactContainer$"+_,Qa="__reactEvents$"+_,Za="__reactListeners$"+_,Bg="__reactHandles$"+_,Of="__reactResources$"+_,Ji="__reactMarker$"+_;function Ju(t){delete t[et],delete t[Mt],delete t[Qa],delete t[Za],delete t[Bg]}function ka(t){var e=t[et];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ae]||n[et]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Pm(t);t!==null;){if(n=t[et])return n;t=Pm(t)}return e}t=n,n=t.parentNode}return null}function Ja(t){if(t=t[et]||t[Ae]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fa(t){var e=t[Of];return e||(e=t[Of]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[Ji]=!0}var Nf=new Set,jf={};function ma(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(jf[t]=e,t=0;t<e.length;t++)Nf.add(e[t])}var Lg=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]*$"),zf={},Rf={};function Hg(t){return Xi.call(Rf,t)?!0:Xi.call(zf,t)?!1:Lg.test(t)?Rf[t]=!0:(zf[t]=!0,!1)}function ls(t,e,n){if(Hg(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ss(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function dn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Vf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yg(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fu(t){if(!t._valueTracker){var e=Vf(t)?"checked":"value";t._valueTracker=Yg(t,e,""+t[e])}}function _f(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Vf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function us(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var qg=/[\n"\\]/g;function ze(t){return t.replace(qg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pu(t,e,n,a,s,r,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Wu(t,f,je(e)):n!=null?Wu(t,f,je(n)):a!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+je(y):t.removeAttribute("name")}function Uf(t,e,n,a,s,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Fu(t);return}n=n!=null?""+je(n):"",e=e!=null?""+je(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Fu(t)}function Wu(t,e,n){e==="number"&&us(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&a&&(t[n].defaultSelected=!0)}else{for(n=""+je(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,a&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Bf(t,e,n){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+je(n):""}function Lf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(ne(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=je(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Fu(t)}function $a(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gg=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 Hf(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Gg.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Yf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Hf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Hf(t,r,e[r])}function $u(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Xg=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"]]),Kg=/^[\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 os(t){return Kg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function mn(){}var Iu=null;function to(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ia=null,ti=null;function qf(t){var e=Ja(t);if(e&&(t=e.stateNode)){var n=t[Mt]||null;t:switch(t=e.stateNode,e.type){case"input":if(Pu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[Mt]||null;if(!s)throw Error(o(90));Pu(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&_f(a)}break t;case"textarea":Bf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var eo=!1;function Gf(t,e,n){if(eo)return t(e,n);eo=!0;try{var a=t(e);return a}finally{if(eo=!1,(Ia!==null||ti!==null)&&(Fs(),Ia&&(e=Ia,t=ti,ti=Ia=null,qf(e),t)))for(e=0;e<t.length;e++)qf(t[e])}}function Pi(t,e){var n=t.stateNode;if(n===null)return null;var a=n[Mt]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),no=!1;if(pn)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){no=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{no=!1}var Bn=null,ao=null,rs=null;function Xf(){if(rs)return rs;var t,e=ao,n=e.length,a,s="value"in Bn?Bn.value:Bn.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===s[r-a];a++);return rs=s.slice(t,1<a?1-a:void 0)}function cs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function fs(){return!0}function Kf(){return!1}function ge(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?fs:Kf,this.isPropagationStopped=Kf,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),e}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hs=ge(pa),$i=x({},pa,{view:0,detail:0}),Qg=ge($i),io,lo,Ii,ds=x({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ii&&(Ii&&t.type==="mousemove"?(io=t.screenX-Ii.screenX,lo=t.screenY-Ii.screenY):lo=io=0,Ii=t),io)},movementY:function(t){return"movementY"in t?t.movementY:lo}}),Qf=ge(ds),Zg=x({},ds,{dataTransfer:0}),kg=ge(Zg),Jg=x({},$i,{relatedTarget:0}),so=ge(Jg),Fg=x({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),Pg=ge(Fg),Wg=x({},pa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$g=ge(Wg),Ig=x({},pa,{data:0}),Zf=ge(Ig),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ev={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function av(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nv[t])?!!e[t]:!1}function uo(){return av}var iv=x({},$i,{key:function(t){if(t.key){var e=tv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ev[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uo,charCode:function(t){return t.type==="keypress"?cs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lv=ge(iv),sv=x({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=ge(sv),uv=x({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uo}),ov=ge(uv),rv=x({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=ge(rv),fv=x({},ds,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hv=ge(fv),dv=x({},pa,{newState:0,oldState:0}),mv=ge(dv),pv=[9,13,27,32],oo=pn&&"CompositionEvent"in window,tl=null;pn&&"documentMode"in document&&(tl=document.documentMode);var yv=pn&&"TextEvent"in window&&!tl,Jf=pn&&(!oo||tl&&8<tl&&11>=tl),Ff=" ",Pf=!1;function Wf(t,e){switch(t){case"keyup":return pv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $f(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ei=!1;function gv(t,e){switch(t){case"compositionend":return $f(e);case"keypress":return e.which!==32?null:(Pf=!0,Ff);case"textInput":return t=e.data,t===Ff&&Pf?null:t;default:return null}}function vv(t,e){if(ei)return t==="compositionend"||!oo&&Wf(t,e)?(t=Xf(),rs=ao=Bn=null,ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Jf&&e.locale!=="ko"?null:e.data;default:return null}}var xv={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 If(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xv[t.type]:e==="textarea"}function th(t,e,n,a){Ia?ti?ti.push(a):ti=[a]:Ia=a,e=nu(e,"onChange"),0<e.length&&(n=new hs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var el=null,nl=null;function bv(t){Um(t,0)}function ms(t){var e=Fi(t);if(_f(e))return t}function eh(t,e){if(t==="change")return e}var nh=!1;if(pn){var ro;if(pn){var co="oninput"in document;if(!co){var ah=document.createElement("div");ah.setAttribute("oninput","return;"),co=typeof ah.oninput=="function"}ro=co}else ro=!1;nh=ro&&(!document.documentMode||9<document.documentMode)}function ih(){el&&(el.detachEvent("onpropertychange",lh),nl=el=null)}function lh(t){if(t.propertyName==="value"&&ms(nl)){var e=[];th(e,nl,t,to(t)),Gf(bv,e)}}function Sv(t,e,n){t==="focusin"?(ih(),el=e,nl=n,el.attachEvent("onpropertychange",lh)):t==="focusout"&&ih()}function Tv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ms(nl)}function Av(t,e){if(t==="click")return ms(e)}function Ev(t,e){if(t==="input"||t==="change")return ms(e)}function Cv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:Cv;function al(t,e){if(Ee(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!Xi.call(e,s)||!Ee(t[s],e[s]))return!1}return!0}function sh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function uh(t,e){var n=sh(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=sh(n)}}function oh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?oh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=us(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=us(t.document)}return e}function fo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Mv=pn&&"documentMode"in document&&11>=document.documentMode,ni=null,ho=null,il=null,mo=!1;function ch(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mo||ni==null||ni!==us(a)||(a=ni,"selectionStart"in a&&fo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),il&&al(il,a)||(il=a,a=nu(ho,"onSelect"),0<a.length&&(e=new hs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ni)))}function ya(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ai={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionrun:ya("Transition","TransitionRun"),transitionstart:ya("Transition","TransitionStart"),transitioncancel:ya("Transition","TransitionCancel"),transitionend:ya("Transition","TransitionEnd")},po={},fh={};pn&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function ga(t){if(po[t])return po[t];if(!ai[t])return t;var e=ai[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in fh)return po[t]=e[n];return t}var hh=ga("animationend"),dh=ga("animationiteration"),mh=ga("animationstart"),Dv=ga("transitionrun"),wv=ga("transitionstart"),Ov=ga("transitioncancel"),ph=ga("transitionend"),yh=new Map,yo="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(" ");yo.push("scrollEnd");function Qe(t,e){yh.set(t,e),ma(e,[t])}var ps=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Re=[],ii=0,go=0;function ys(){for(var t=ii,e=go=ii=0;e<t;){var n=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var s=Re[e];Re[e++]=null;var r=Re[e];if(Re[e++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}r!==0&&gh(n,s,r)}}function gs(t,e,n,a){Re[ii++]=t,Re[ii++]=e,Re[ii++]=n,Re[ii++]=a,go|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function vo(t,e,n,a){return gs(t,e,n,a),vs(t)}function va(t,e){return gs(t,null,null,e),vs(t)}function gh(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-ie(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function vs(t){if(50<Ml)throw Ml=0,Dr=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var li={};function Nv(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(t,e,n,a){return new Nv(t,e,n,a)}function xo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function yn(t,e){var n=t.alternate;return n===null?(n=Ce(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function vh(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function xs(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")xo(t)&&(f=1);else if(typeof t=="string")f=_1(t,n,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=Ce(31,n,e,s),t.elementType=st,t.lanes=r,t;case q:return xa(n.children,s,r,e);case G:f=8,s|=24;break;case Y:return t=Ce(12,n,e,s|2),t.elementType=Y,t.lanes=r,t;case k:return t=Ce(13,n,e,s),t.elementType=k,t.lanes=r,t;case it:return t=Ce(19,n,e,s),t.elementType=it,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Q:f=9;break t;case Z:f=11;break t;case $:f=14;break t;case J:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Ce(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function xa(t,e,n,a){return t=Ce(7,t,a,e),t.lanes=n,t}function bo(t,e,n){return t=Ce(6,t,null,e),t.lanes=n,t}function xh(t){var e=Ce(18,null,null,0);return e.stateNode=t,e}function So(t,e,n){return e=Ce(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var bh=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=bh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:La(e)},bh.set(t,e),e)}return{value:t,source:e,stack:La(e)}}var si=[],ui=0,bs=null,ll=0,_e=[],Ue=0,Ln=null,nn=1,an="";function gn(t,e){si[ui++]=ll,si[ui++]=bs,bs=t,ll=e}function Sh(t,e,n){_e[Ue++]=nn,_e[Ue++]=an,_e[Ue++]=Ln,Ln=t;var a=nn;t=an;var s=32-ie(a)-1;a&=~(1<<s),n+=1;var r=32-ie(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,nn=1<<32-ie(e)+s|n<<s|a,an=r+t}else nn=1<<r|n<<s|a,an=t}function To(t){t.return!==null&&(gn(t,1),Sh(t,1,0))}function Ao(t){for(;t===bs;)bs=si[--ui],si[ui]=null,ll=si[--ui],si[ui]=null;for(;t===Ln;)Ln=_e[--Ue],_e[Ue]=null,an=_e[--Ue],_e[Ue]=null,nn=_e[--Ue],_e[Ue]=null}function Th(t,e){_e[Ue++]=nn,_e[Ue++]=an,_e[Ue++]=Ln,nn=e.id,an=e.overflow,Ln=t}var le=null,_t=null,xt=!1,Hn=null,Be=!1,Eo=Error(o(519));function Yn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sl(Ve(e,t)),Eo}function Ah(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[et]=t,e[Mt]=a,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<wl.length;n++)mt(wl[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),Uf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Lf(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Ym(e.textContent,n)?(a.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),a.onScroll!=null&&mt("scroll",e),a.onScrollEnd!=null&&mt("scrollend",e),a.onClick!=null&&(e.onclick=mn),e=!0):e=!1,e||Yn(t,!0)}function Eh(t){for(le=t.return;le;)switch(le.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:le=le.return}}function oi(t){if(t!==le)return!1;if(!xt)return Eh(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Gr(t.type,t.memoizedProps)),n=!n),n&&_t&&Yn(t),Eh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=Fm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=Fm(t)}else e===27?(e=_t,ta(t.type)?(t=kr,kr=null,_t=t):_t=e):_t=le?He(t.stateNode.nextSibling):null;return!0}function ba(){_t=le=null,xt=!1}function Co(){var t=Hn;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),Hn=null),t}function sl(t){Hn===null?Hn=[t]:Hn.push(t)}var Mo=E(null),Sa=null,vn=null;function qn(t,e,n){K(Mo,e._currentValue),e._currentValue=n}function xn(t){t._currentValue=Mo.current,L(Mo)}function Do(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function wo(t,e,n,a){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var r=s.dependencies;if(r!==null){var f=s.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=s;for(var b=0;b<e.length;b++)if(y.context===e[b]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),Do(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),Do(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function ri(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;Ee(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===yt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Rl):t=[Rl])}s=s.return}t!==null&&wo(e,t,n,a),e.flags|=262144}function Ss(t){for(t=t.firstContext;t!==null;){if(!Ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ta(t){Sa=t,vn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function se(t){return Ch(Sa,t)}function Ts(t,e){return Sa===null&&Ta(t),Ch(t,e)}function Ch(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},vn===null){if(t===null)throw Error(o(308));vn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else vn=vn.next=e;return n}var jv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},zv=i.unstable_scheduleCallback,Rv=i.unstable_NormalPriority,kt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oo(){return{controller:new jv,data:new Map,refCount:0}}function ul(t){t.refCount--,t.refCount===0&&zv(Rv,function(){t.controller.abort()})}var ol=null,No=0,ci=0,fi=null;function Vv(t,e){if(ol===null){var n=ol=[];No=0,ci=Rr(),fi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return No++,e.then(Mh,Mh),e}function Mh(){if(--No===0&&ol!==null){fi!==null&&(fi.status="fulfilled");var t=ol;ol=null,ci=0,fi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _v(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Dh=j.S;j.S=function(t,e){cm=ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vv(t,e),Dh!==null&&Dh(t,e)};var Aa=E(null);function jo(){var t=Aa.current;return t!==null?t:Nt.pooledCache}function As(t,e){e===null?K(Aa,Aa.current):K(Aa,e.pool)}function wh(){var t=jo();return t===null?null:{parent:kt._currentValue,pool:t}}var hi=Error(o(460)),zo=Error(o(474)),Es=Error(o(542)),Cs={then:function(){}};function Oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Nh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(mn,mn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,zh(t),t;default:if(typeof e.status=="string")e.then(mn,mn);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,zh(t),t}throw Ca=e,hi}}function Ea(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ca=n,hi):n}}var Ca=null;function jh(){if(Ca===null)throw Error(o(459));var t=Ca;return Ca=null,t}function zh(t){if(t===hi||t===Es)throw Error(o(483))}var di=null,rl=0;function Ms(t){var e=rl;return rl+=1,di===null&&(di=[]),Nh(di,t,e)}function cl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ds(t,e){throw e.$$typeof===T?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Rh(t){function e(C,A){if(t){var M=C.deletions;M===null?(C.deletions=[A],C.flags|=16):M.push(A)}}function n(C,A){if(!t)return null;for(;A!==null;)e(C,A),A=A.sibling;return null}function a(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 s(C,A){return C=yn(C,A),C.index=0,C.sibling=null,C}function r(C,A,M){return C.index=M,t?(M=C.alternate,M!==null?(M=M.index,M<A?(C.flags|=67108866,A):M):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,A,M,V){return A===null||A.tag!==6?(A=bo(M,C.mode,V),A.return=C,A):(A=s(A,M),A.return=C,A)}function b(C,A,M,V){var nt=M.type;return nt===q?R(C,A,M.props.children,V,M.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&Ea(nt)===A.type)?(A=s(A,M.props),cl(A,M),A.return=C,A):(A=xs(M.type,M.key,M.props,null,C.mode,V),cl(A,M),A.return=C,A)}function D(C,A,M,V){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=So(M,C.mode,V),A.return=C,A):(A=s(A,M.children||[]),A.return=C,A)}function R(C,A,M,V,nt){return A===null||A.tag!==7?(A=xa(M,C.mode,V,nt),A.return=C,A):(A=s(A,M),A.return=C,A)}function B(C,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=bo(""+A,C.mode,M),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return M=xs(A.type,A.key,A.props,null,C.mode,M),cl(M,A),M.return=C,M;case z:return A=So(A,C.mode,M),A.return=C,A;case J:return A=Ea(A),B(C,A,M)}if(ne(A)||zt(A))return A=xa(A,C.mode,M,null),A.return=C,A;if(typeof A.then=="function")return B(C,Ms(A),M);if(A.$$typeof===X)return B(C,Ts(C,A),M);Ds(C,A)}return null}function w(C,A,M,V){var nt=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return nt!==null?null:y(C,A,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===nt?b(C,A,M,V):null;case z:return M.key===nt?D(C,A,M,V):null;case J:return M=Ea(M),w(C,A,M,V)}if(ne(M)||zt(M))return nt!==null?null:R(C,A,M,V,null);if(typeof M.then=="function")return w(C,A,Ms(M),V);if(M.$$typeof===X)return w(C,A,Ts(C,M),V);Ds(C,M)}return null}function O(C,A,M,V,nt){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return C=C.get(M)||null,y(A,C,""+V,nt);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return C=C.get(V.key===null?M:V.key)||null,b(A,C,V,nt);case z:return C=C.get(V.key===null?M:V.key)||null,D(A,C,V,nt);case J:return V=Ea(V),O(C,A,M,V,nt)}if(ne(V)||zt(V))return C=C.get(M)||null,R(A,C,V,nt,null);if(typeof V.then=="function")return O(C,A,M,Ms(V),nt);if(V.$$typeof===X)return O(C,A,M,Ts(A,V),nt);Ds(A,V)}return null}function W(C,A,M,V){for(var nt=null,bt=null,tt=A,ft=A=0,vt=null;tt!==null&&ft<M.length;ft++){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var St=w(C,tt,M[ft],V);if(St===null){tt===null&&(tt=vt);break}t&&tt&&St.alternate===null&&e(C,tt),A=r(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St,tt=vt}if(ft===M.length)return n(C,tt),xt&&gn(C,ft),nt;if(tt===null){for(;ft<M.length;ft++)tt=B(C,M[ft],V),tt!==null&&(A=r(tt,A,ft),bt===null?nt=tt:bt.sibling=tt,bt=tt);return xt&&gn(C,ft),nt}for(tt=a(tt);ft<M.length;ft++)vt=O(tt,C,ft,M[ft],V),vt!==null&&(t&&vt.alternate!==null&&tt.delete(vt.key===null?ft:vt.key),A=r(vt,A,ft),bt===null?nt=vt:bt.sibling=vt,bt=vt);return t&&tt.forEach(function(la){return e(C,la)}),xt&&gn(C,ft),nt}function at(C,A,M,V){if(M==null)throw Error(o(151));for(var nt=null,bt=null,tt=A,ft=A=0,vt=null,St=M.next();tt!==null&&!St.done;ft++,St=M.next()){tt.index>ft?(vt=tt,tt=null):vt=tt.sibling;var la=w(C,tt,St.value,V);if(la===null){tt===null&&(tt=vt);break}t&&tt&&la.alternate===null&&e(C,tt),A=r(la,A,ft),bt===null?nt=la:bt.sibling=la,bt=la,tt=vt}if(St.done)return n(C,tt),xt&&gn(C,ft),nt;if(tt===null){for(;!St.done;ft++,St=M.next())St=B(C,St.value,V),St!==null&&(A=r(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return xt&&gn(C,ft),nt}for(tt=a(tt);!St.done;ft++,St=M.next())St=O(tt,C,ft,St.value,V),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ft:St.key),A=r(St,A,ft),bt===null?nt=St:bt.sibling=St,bt=St);return t&&tt.forEach(function(Z1){return e(C,Z1)}),xt&&gn(C,ft),nt}function Ot(C,A,M,V){if(typeof M=="object"&&M!==null&&M.type===q&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:t:{for(var nt=M.key;A!==null;){if(A.key===nt){if(nt=M.type,nt===q){if(A.tag===7){n(C,A.sibling),V=s(A,M.props.children),V.return=C,C=V;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===J&&Ea(nt)===A.type){n(C,A.sibling),V=s(A,M.props),cl(V,M),V.return=C,C=V;break t}n(C,A);break}else e(C,A);A=A.sibling}M.type===q?(V=xa(M.props.children,C.mode,V,M.key),V.return=C,C=V):(V=xs(M.type,M.key,M.props,null,C.mode,V),cl(V,M),V.return=C,C=V)}return f(C);case z:t:{for(nt=M.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){n(C,A.sibling),V=s(A,M.children||[]),V.return=C,C=V;break t}else{n(C,A);break}else e(C,A);A=A.sibling}V=So(M,C.mode,V),V.return=C,C=V}return f(C);case J:return M=Ea(M),Ot(C,A,M,V)}if(ne(M))return W(C,A,M,V);if(zt(M)){if(nt=zt(M),typeof nt!="function")throw Error(o(150));return M=nt.call(M),at(C,A,M,V)}if(typeof M.then=="function")return Ot(C,A,Ms(M),V);if(M.$$typeof===X)return Ot(C,A,Ts(C,M),V);Ds(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(n(C,A.sibling),V=s(A,M),V.return=C,C=V):(n(C,A),V=bo(M,C.mode,V),V.return=C,C=V),f(C)):n(C,A)}return function(C,A,M,V){try{rl=0;var nt=Ot(C,A,M,V);return di=null,nt}catch(tt){if(tt===hi||tt===Es)throw tt;var bt=Ce(29,tt,null,C.mode);return bt.lanes=V,bt.return=C,bt}}}var Ma=Rh(!0),Vh=Rh(!1),Gn=!1;function Ro(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Xn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(At&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=vs(t),gh(t,null,n),e}return gs(t,a,e,n),vs(t)}function fl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,tn(t,n)}}function _o(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Uo=!1;function hl(){if(Uo){var t=fi;if(t!==null)throw t}}function dl(t,e,n,a){Uo=!1;var s=t.updateQueue;Gn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var b=y,D=b.next;b.next=null,f===null?r=D:f.next=D,f=b;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=D:y.next=D,R.lastBaseUpdate=b))}if(r!==null){var B=s.baseState;f=0,R=D=b=null,y=r;do{var w=y.lane&-536870913,O=w!==y.lane;if(O?(gt&w)===w:(a&w)===w){w!==0&&w===ci&&(Uo=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,at=y;w=e;var Ot=n;switch(at.tag){case 1:if(W=at.payload,typeof W=="function"){B=W.call(Ot,B,w);break t}B=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=at.payload,w=typeof W=="function"?W.call(Ot,B,w):W,w==null)break t;B=x({},B,w);break t;case 2:Gn=!0}}w=y.callback,w!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[w]:O.push(w))}else O={lane:w,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(D=R=O,b=B):R=R.next=O,f|=w;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;O=y,y=O.next,O.next=null,s.lastBaseUpdate=O,s.shared.pending=null}}while(!0);R===null&&(b=B),s.baseState=b,s.firstBaseUpdate=D,s.lastBaseUpdate=R,r===null&&(s.shared.lanes=0),Fn|=f,t.lanes=f,t.memoizedState=B}}function _h(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Uh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)_h(n[t],e)}var mi=E(null),ws=E(0);function Bh(t,e){t=wn,K(ws,t),K(mi,e),wn=t|e.baseLanes}function Bo(){K(ws,wn),K(mi,mi.current)}function Lo(){wn=ws.current,L(mi),L(ws)}var Me=E(null),Le=null;function Qn(t){var e=t.alternate;K(Kt,Kt.current&1),K(Me,t),Le===null&&(e===null||mi.current!==null||e.memoizedState!==null)&&(Le=t)}function Ho(t){K(Kt,Kt.current),K(Me,t),Le===null&&(Le=t)}function Lh(t){t.tag===22?(K(Kt,Kt.current),K(Me,t),Le===null&&(Le=t)):Zn()}function Zn(){K(Kt,Kt.current),K(Me,Me.current)}function De(t){L(Me),Le===t&&(Le=null),L(Kt)}var Kt=E(0);function Os(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Qr(n)||Zr(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bn=0,ct=null,Dt=null,Jt=null,Ns=!1,pi=!1,Da=!1,js=0,ml=0,yi=null,Uv=0;function qt(){throw Error(o(321))}function Yo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ee(t[n],e[n]))return!1;return!0}function qo(t,e,n,a,s,r){return bn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Sd:nr,Da=!1,r=n(a,s),Da=!1,pi&&(r=Yh(e,n,a,s)),Hh(t),r}function Hh(t){j.H=gl;var e=Dt!==null&&Dt.next!==null;if(bn=0,Jt=Dt=ct=null,Ns=!1,ml=0,yi=null,e)throw Error(o(300));t===null||Ft||(t=t.dependencies,t!==null&&Ss(t)&&(Ft=!0))}function Yh(t,e,n,a){ct=t;var s=0;do{if(pi&&(yi=null),ml=0,pi=!1,25<=s)throw Error(o(301));if(s+=1,Jt=Dt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}j.H=Td,r=e(n,a)}while(pi);return r}function Bv(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?pl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Go(){var t=js!==0;return js=0,t}function Xo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Ko(t){if(Ns){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ns=!1}bn=0,Jt=Dt=ct=null,pi=!1,ml=js=0,yi=null}function he(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Qt(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Jt===null?ct.memoizedState:Jt.next;if(e!==null)Jt=e,Dt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function zs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(t){var e=ml;return ml+=1,yi===null&&(yi=[]),t=Nh(yi,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Sd:nr),t}function Rs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return pl(t);if(t.$$typeof===X)return se(t)}throw Error(o(438,String(t)))}function Qo(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=zs(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=Tt;return e.index++,n}function Sn(t,e){return typeof e=="function"?e(t):e}function Vs(t){var e=Qt();return Zo(e,Dt,t)}function Zo(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,b=null,D=e,R=!1;do{var B=D.lane&-536870913;if(B!==D.lane?(gt&B)===B:(bn&B)===B){var w=D.revertLane;if(w===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),B===ci&&(R=!0);else if((bn&w)===w){D=D.next,w===ci&&(R=!0);continue}else B={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},b===null?(y=b=B,f=r):b=b.next=B,ct.lanes|=w,Fn|=w;B=D.action,Da&&n(r,B),r=D.hasEagerState?D.eagerState:n(r,B)}else w={lane:B,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},b===null?(y=b=w,f=r):b=b.next=w,ct.lanes|=B,Fn|=B;D=D.next}while(D!==null&&D!==e);if(b===null?f=r:b.next=y,!Ee(r,t.memoizedState)&&(Ft=!0,R&&(n=fi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=b,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function ko(t){var e=Qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);Ee(r,e.memoizedState)||(Ft=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function qh(t,e,n){var a=ct,s=Qt(),r=xt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Ee((Dt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,Po(Kh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,gi(9,{destroy:void 0},Xh.bind(null,a,s,n,e),null),Nt===null)throw Error(o(349));r||(bn&127)!==0||Gh(a,e,n)}return n}function Gh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=zs(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Xh(t,e,n,a){e.value=n,e.getSnapshot=a,Qh(e)&&Zh(t)}function Kh(t,e,n){return n(function(){Qh(e)&&Zh(t)})}function Qh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ee(t,n)}catch{return!0}}function Zh(t){var e=va(t,2);e!==null&&Te(e,t,2)}function Jo(t){var e=he();if(typeof t=="function"){var n=t;if(t=n(),Da){Ke(!0);try{n()}finally{Ke(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t},e}function kh(t,e,n,a){return t.baseState=n,Zo(t,Dt,typeof a=="function"?a:Sn)}function Lv(t,e,n,a,s){if(Bs(t))throw Error(o(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};j.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Jh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Jh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=j.T,f={};j.T=f;try{var y=n(s,a),b=j.S;b!==null&&b(f,y),Fh(t,e,y)}catch(D){Fo(t,e,D)}finally{r!==null&&f.types!==null&&(r.types=f.types),j.T=r}}else try{r=n(s,a),Fh(t,e,r)}catch(D){Fo(t,e,D)}}function Fh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Ph(t,e,a)},function(a){return Fo(t,e,a)}):Ph(t,e,n)}function Ph(t,e,n){e.status="fulfilled",e.value=n,Wh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Jh(t,n)))}function Fo(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Wh(e),e=e.next;while(e!==a)}t.action=null}function Wh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function $h(t,e){return e}function Ih(t,e){if(xt){var n=Nt.formState;if(n!==null){t:{var a=ct;if(xt){if(_t){e:{for(var s=_t,r=Be;s.nodeType!==8;){if(!r){s=null;break e}if(s=He(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){_t=He(s.nextSibling),a=s.data==="F!";break t}}Yn(a)}a=!1}a&&(e=n[0])}}return n=he(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$h,lastRenderedState:e},n.queue=a,n=vd.bind(null,ct,a),a.dispatch=n,a=Jo(!1),r=er.bind(null,ct,!1,a.queue),a=he(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Lv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function td(t){var e=Qt();return ed(e,Dt,t)}function ed(t,e,n){if(e=Zo(t,e,$h)[0],t=Vs(Sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=pl(e)}catch(f){throw f===hi?Es:f}else a=e;e=Qt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,gi(9,{destroy:void 0},Hv.bind(null,s,n),null)),[a,r,t]}function Hv(t,e){t.action=e}function nd(t){var e=Qt(),n=Dt;if(n!==null)return ed(e,n,t);Qt(),e=e.memoizedState,n=Qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function gi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=zs(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function ad(){return Qt().memoizedState}function _s(t,e,n,a){var s=he();ct.flags|=t,s.memoizedState=gi(1|e,{destroy:void 0},n,a===void 0?null:a)}function Us(t,e,n,a){var s=Qt();a=a===void 0?null:a;var r=s.memoizedState.inst;Dt!==null&&a!==null&&Yo(a,Dt.memoizedState.deps)?s.memoizedState=gi(e,r,n,a):(ct.flags|=t,s.memoizedState=gi(1|e,r,n,a))}function id(t,e){_s(8390656,8,t,e)}function Po(t,e){Us(2048,8,t,e)}function Yv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=zs(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ld(t){var e=Qt().memoizedState;return Yv({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function sd(t,e){return Us(4,2,t,e)}function ud(t,e){return Us(4,4,t,e)}function od(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function rd(t,e,n){n=n!=null?n.concat([t]):null,Us(4,4,od.bind(null,e,t),n)}function Wo(){}function cd(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Yo(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function fd(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Yo(e,a[1]))return a[0];if(a=t(),Da){Ke(!0);try{t()}finally{Ke(!1)}}return n.memoizedState=[a,e],a}function $o(t,e,n){return n===void 0||(bn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=hm(),ct.lanes|=t,Fn|=t,n)}function hd(t,e,n,a){return Ee(n,e)?n:mi.current!==null?(t=$o(t,n,a),Ee(t,e)||(Ft=!0),t):(bn&42)===0||(bn&1073741824)!==0&&(gt&261930)===0?(Ft=!0,t.memoizedState=n):(t=hm(),ct.lanes|=t,Fn|=t,e)}function dd(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=j.T,y={};j.T=y,er(t,!1,e,n);try{var b=s(),D=j.S;if(D!==null&&D(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=_v(b,a);yl(t,e,R,Ne(t))}else yl(t,e,a,Ne(t))}catch(B){yl(t,e,{then:function(){},status:"rejected",reason:B},Ne())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),j.T=f}}function qv(){}function Io(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=md(t).queue;dd(t,s,e,P,n===null?qv:function(){return pd(t),n(a)})}function md(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:P},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function pd(t){var e=md(t);e.next===null&&(e=t.alternate.memoizedState),yl(t,e.next.queue,{},Ne())}function tr(){return se(Rl)}function yd(){return Qt().memoizedState}function gd(){return Qt().memoizedState}function Gv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ne();t=Xn(n);var a=Kn(e,t,n);a!==null&&(Te(a,e,n),fl(a,e,n)),e={cache:Oo()},t.payload=e;return}e=e.return}}function Xv(t,e,n){var a=Ne();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(t)?xd(e,n):(n=vo(t,e,n,a),n!==null&&(Te(n,t,a),bd(n,e,a)))}function vd(t,e,n){var a=Ne();yl(t,e,n,a)}function yl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(t))xd(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,n);if(s.hasEagerState=!0,s.eagerState=y,Ee(y,f))return gs(t,e,s,0),Nt===null&&ys(),!1}catch{}if(n=vo(t,e,s,a),n!==null)return Te(n,t,a),bd(n,e,a),!0}return!1}function er(t,e,n,a){if(a={lane:2,revertLane:Rr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(t)){if(e)throw Error(o(479))}else e=vo(t,n,a,2),e!==null&&Te(e,t,2)}function Bs(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function xd(t,e){pi=Ns=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function bd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,tn(t,n)}}var gl={readContext:se,use:Rs,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};gl.useEffectEvent=qt;var Sd={readContext:se,use:Rs,useCallback:function(t,e){return he().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:id,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,_s(4194308,4,od.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _s(4194308,4,t,e)},useInsertionEffect:function(t,e){_s(4,2,t,e)},useMemo:function(t,e){var n=he();e=e===void 0?null:e;var a=t();if(Da){Ke(!0);try{t()}finally{Ke(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=he();if(n!==void 0){var s=n(e);if(Da){Ke(!0);try{n(e)}finally{Ke(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Xv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=he();return t={current:t},e.memoizedState=t},useState:function(t){t=Jo(t);var e=t.queue,n=vd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Wo,useDeferredValue:function(t,e){var n=he();return $o(n,t,e)},useTransition:function(){var t=Jo(!1);return t=dd.bind(null,ct,t.queue,!0,!1),he().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=he();if(xt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Nt===null)throw Error(o(349));(gt&127)!==0||Gh(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,id(Kh.bind(null,a,r,t),[t]),a.flags|=2048,gi(9,{destroy:void 0},Xh.bind(null,a,r,n,e),null),n},useId:function(){var t=he(),e=Nt.identifierPrefix;if(xt){var n=an,a=nn;n=(a&~(1<<32-ie(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=js++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:tr,useFormState:Ih,useActionState:Ih,useOptimistic:function(t){var e=he();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=er.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Qo,useCacheRefresh:function(){return he().memoizedState=Gv.bind(null,ct)},useEffectEvent:function(t){var e=he(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},nr={readContext:se,use:Rs,useCallback:cd,useContext:se,useEffect:Po,useImperativeHandle:rd,useInsertionEffect:sd,useLayoutEffect:ud,useMemo:fd,useReducer:Vs,useRef:ad,useState:function(){return Vs(Sn)},useDebugValue:Wo,useDeferredValue:function(t,e){var n=Qt();return hd(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Vs(Sn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:pl(t),e]},useSyncExternalStore:qh,useId:yd,useHostTransitionStatus:tr,useFormState:td,useActionState:td,useOptimistic:function(t,e){var n=Qt();return kh(n,Dt,t,e)},useMemoCache:Qo,useCacheRefresh:gd};nr.useEffectEvent=ld;var Td={readContext:se,use:Rs,useCallback:cd,useContext:se,useEffect:Po,useImperativeHandle:rd,useInsertionEffect:sd,useLayoutEffect:ud,useMemo:fd,useReducer:ko,useRef:ad,useState:function(){return ko(Sn)},useDebugValue:Wo,useDeferredValue:function(t,e){var n=Qt();return Dt===null?$o(n,t,e):hd(n,Dt.memoizedState,t,e)},useTransition:function(){var t=ko(Sn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:pl(t),e]},useSyncExternalStore:qh,useId:yd,useHostTransitionStatus:tr,useFormState:nd,useActionState:nd,useOptimistic:function(t,e){var n=Qt();return Dt!==null?kh(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Qo,useCacheRefresh:gd};Td.useEffectEvent=ld;function ar(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ir={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ne(),s=Xn(a);s.payload=e,n!=null&&(s.callback=n),e=Kn(t,s,a),e!==null&&(Te(e,t,a),fl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ne(),s=Xn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Kn(t,s,a),e!==null&&(Te(e,t,a),fl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ne(),a=Xn(n);a.tag=2,e!=null&&(a.callback=e),e=Kn(t,a,n),e!==null&&(Te(e,t,n),fl(e,t,n))}};function Ad(t,e,n,a,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!al(n,a)||!al(s,r):!0}function Ed(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&ir.enqueueReplaceState(e,e.state,null)}function wa(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Cd(t){ps(t)}function Md(t){console.error(t)}function Dd(t){ps(t)}function Ls(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function wd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function lr(t,e,n){return n=Xn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ls(t,e)},n}function Od(t){return t=Xn(t),t.tag=3,t}function Nd(t,e,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;t.payload=function(){return s(r)},t.callback=function(){wd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){wd(e,n,a),typeof s!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Kv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&ri(e,n,s,!0),n=Me.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Ps():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Cs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Nr(t,a,s)),!1;case 22:return n.flags|=65536,a===Cs?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Nr(t,a,s)),!1}throw Error(o(435,n.tag))}return Nr(t,a,s),Ps(),!1}if(xt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Eo&&(t=Error(o(422),{cause:a}),sl(Ve(t,n)))):(a!==Eo&&(e=Error(o(423),{cause:a}),sl(Ve(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Ve(a,n),s=lr(t.stateNode,a,s),_o(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(o(520),{cause:a});if(r=Ve(r,n),Cl===null?Cl=[r]:Cl.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=Ve(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=lr(n.stateNode,a,t),_o(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Pn===null||!Pn.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Od(s),Nd(s,t,n,a),_o(n,s),!1}n=n.return}while(n!==null);return!1}var sr=Error(o(461)),Ft=!1;function ue(t,e,n,a){e.child=t===null?Vh(e,null,n,a):Ma(e,t.child,n,a)}function jd(t,e,n,a,s){n=n.render;var r=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return Ta(e),a=qo(t,e,n,f,r,s),y=Go(),t!==null&&!Ft?(Xo(t,e,s),Tn(t,e,s)):(xt&&y&&To(e),e.flags|=1,ue(t,e,a,s),e.child)}function zd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!xo(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Rd(t,e,r,a,s)):(t=xs(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!mr(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(f,a)&&t.ref===e.ref)return Tn(t,e,s)}return e.flags|=1,t=yn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Rd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(al(r,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=r,mr(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Tn(t,e,s)}return ur(t,e,n,a,s)}function Vd(t,e,n,a){var s=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,e.child=null;return _d(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&As(e,r!==null?r.cachePool:null),r!==null?Bh(e,r):Bo(),Lh(e);else return a=e.lanes=536870912,_d(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(As(e,r.cachePool),Bh(e,r),Zn(),e.memoizedState=null):(t!==null&&As(e,null),Bo(),Zn());return ue(t,e,s,n),e.child}function vl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function _d(t,e,n,a,s){var r=jo();return r=r===null?null:{parent:kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&As(e,null),Bo(),Lh(e),t!==null&&ri(t,e,a,!0),e.childLanes=s,null}function Hs(t,e){return e=qs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ud(t,e,n){return Ma(e,t.child,null,n),t=Hs(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function Qv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=Hs(e,a),e.lanes=536870912,vl(null,t);if(Ho(e),(t=_t)?(t=Jm(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ln!==null?{id:nn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=xh(t),n.return=e,e.child=n,le=e,_t=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return Hs(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(Ho(e),s)if(e.flags&256)e.flags&=-257,e=Ud(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Ft||ri(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(a=Nt,a!==null&&(f=is(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,va(t,f),Te(a,t,f),sr;Ps(),e=Ud(t,e,n)}else t=r.treeContext,_t=He(f.nextSibling),le=e,xt=!0,Hn=null,Be=!1,t!==null&&Th(e,t),e=Hs(e,a),e.flags|=4096;return e}return t=yn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ys(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ur(t,e,n,a,s){return Ta(e),n=qo(t,e,n,a,void 0,s),a=Go(),t!==null&&!Ft?(Xo(t,e,s),Tn(t,e,s)):(xt&&a&&To(e),e.flags|=1,ue(t,e,n,s),e.child)}function Bd(t,e,n,a,s,r){return Ta(e),e.updateQueue=null,n=Yh(e,a,n,s),Hh(t),a=Go(),t!==null&&!Ft?(Xo(t,e,r),Tn(t,e,r)):(xt&&a&&To(e),e.flags|=1,ue(t,e,n,r),e.child)}function Ld(t,e,n,a,s){if(Ta(e),e.stateNode===null){var r=li,f=n.contextType;typeof f=="object"&&f!==null&&(r=se(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ir,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},Ro(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?se(f):li,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(ar(e,n,f,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&ir.enqueueReplaceState(r,r.state,null),dl(e,a,r,s),hl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,b=wa(n,y);r.props=b;var D=r.context,R=n.contextType;f=li,typeof R=="object"&&R!==null&&(f=se(R));var B=n.getDerivedStateFromProps;R=typeof B=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||D!==f)&&Ed(e,r,a,f),Gn=!1;var w=e.memoizedState;r.state=w,dl(e,a,r,s),hl(),D=e.memoizedState,y||w!==D||Gn?(typeof B=="function"&&(ar(e,n,B,a),D=e.memoizedState),(b=Gn||Ad(e,n,b,a,w,D,f))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=D),r.props=a,r.state=D,r.context=f,a=b):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Vo(t,e),f=e.memoizedProps,R=wa(n,f),r.props=R,B=e.pendingProps,w=r.context,D=n.contextType,b=li,typeof D=="object"&&D!==null&&(b=se(D)),y=n.getDerivedStateFromProps,(D=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==B||w!==b)&&Ed(e,r,a,b),Gn=!1,w=e.memoizedState,r.state=w,dl(e,a,r,s),hl();var O=e.memoizedState;f!==B||w!==O||Gn||t!==null&&t.dependencies!==null&&Ss(t.dependencies)?(typeof y=="function"&&(ar(e,n,y,a),O=e.memoizedState),(R=Gn||Ad(e,n,R,a,w,O,b)||t!==null&&t.dependencies!==null&&Ss(t.dependencies))?(D||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,b)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=b,a=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,Ys(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=Ma(e,t.child,null,s),e.child=Ma(e,null,n,s)):ue(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Tn(t,e,s),t}function Hd(t,e,n,a){return ba(),e.flags|=256,ue(t,e,n,a),e.child}var or={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rr(t){return{baseLanes:t,cachePool:wh()}}function cr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function Yd(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?Qn(e):Zn(),(t=_t)?(t=Jm(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ln!==null?{id:nn,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=xh(t),n.return=e,e.child=n,le=e,_t=null)):t=null,t===null)throw Yn(e);return Zr(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(Zn(),s=e.mode,y=qs({mode:"hidden",children:y},s),a=xa(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=rr(n),a.childLanes=cr(t,f,n),e.memoizedState=or,vl(null,a)):(Qn(e),fr(e,y))}var b=t.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(r)e.flags&256?(Qn(e),e.flags&=-257,e=hr(t,e,n)):e.memoizedState!==null?(Zn(),e.child=t.child,e.flags|=128,e=null):(Zn(),y=a.fallback,s=e.mode,a=qs({mode:"visible",children:a.children},s),y=xa(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,Ma(e,t.child,null,n),a=e.child,a.memoizedState=rr(n),a.childLanes=cr(t,f,n),e.memoizedState=or,e=vl(null,a));else if(Qn(e),Zr(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var D=f.dgst;f=D,a=Error(o(419)),a.stack="",a.digest=f,sl({value:a,source:null,stack:null}),e=hr(t,e,n)}else if(Ft||ri(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=Nt,f!==null&&(a=is(f,n),a!==0&&a!==b.retryLane))throw b.retryLane=a,va(t,a),Te(f,t,a),sr;Qr(y)||Ps(),e=hr(t,e,n)}else Qr(y)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,_t=He(y.nextSibling),le=e,xt=!0,Hn=null,Be=!1,t!==null&&Th(e,t),e=fr(e,a.children),e.flags|=4096);return e}return s?(Zn(),y=a.fallback,s=e.mode,b=t.child,D=b.sibling,a=yn(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,D!==null?y=yn(D,y):(y=xa(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,vl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=rr(n):(s=y.cachePool,s!==null?(b=kt._currentValue,s=s.parent!==b?{parent:b,pool:b}:s):s=wh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=cr(t,f,n),e.memoizedState=or,vl(t.child,a)):(Qn(e),n=t.child,t=n.sibling,n=yn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function fr(t,e){return e=qs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function qs(t,e){return t=Ce(22,t,null,e),t.lanes=0,t}function hr(t,e,n){return Ma(e,t.child,null,n),t=fr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function qd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Do(t.return,e,n)}function dr(t,e,n,a,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function Gd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Kt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,K(Kt,f),ue(t,e,a,n),a=xt?ll:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qd(t,n,e);else if(t.tag===19)qd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&Os(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),dr(e,!1,s,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Os(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}dr(e,!0,n,null,r,a);break;case"together":dr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Tn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Fn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ri(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=yn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=yn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function mr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ss(t)))}function Zv(t,e,n){switch(e.tag){case 3:Vt(e,e.stateNode.containerInfo),qn(e,kt,t.memoizedState.cache),ba();break;case 27:case 5:pe(e);break;case 4:Vt(e,e.stateNode.containerInfo);break;case 10:qn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ho(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Qn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Yd(t,e,n):(Qn(e),t=Tn(t,e,n),t!==null?t.sibling:null);Qn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(ri(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Gd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(Kt,Kt.current),a)break;return null;case 22:return e.lanes=0,Vd(t,e,n,e.pendingProps);case 24:qn(e,kt,t.memoizedState.cache)}return Tn(t,e,n)}function Xd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!mr(t,n)&&(e.flags&128)===0)return Ft=!1,Zv(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Sh(e,ll,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ea(e.elementType),e.type=t,typeof t=="function")xo(t)?(a=wa(t,a),e.tag=1,e=Ld(null,e,t,a,n)):(e.tag=0,e=ur(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===Z){e.tag=11,e=jd(null,e,t,a,n);break t}else if(s===$){e.tag=14,e=zd(null,e,t,a,n);break t}}throw e=Rt(t)||t,Error(o(306,e,""))}}return e;case 0:return ur(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=wa(a,e.pendingProps),Ld(t,e,a,s,n);case 3:t:{if(Vt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,Vo(t,e),dl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,qn(e,kt,a),a!==r.cache&&wo(e,[kt],n,!0),hl(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Hd(t,e,a,n);break t}else if(a!==s){s=Ve(Error(o(424)),e),sl(s),e=Hd(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,_t=He(t.firstChild),le=e,xt=!0,Hn=null,Be=!0,n=Vh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ba(),a===s){e=Tn(t,e,n);break t}ue(t,e,a,n)}e=e.child}return e;case 26:return Ys(t,e),t===null?(n=tp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=au(rt.current).createElement(n),a[et]=e,a[Mt]=t,oe(a,n,t),te(a),e.stateNode=a):e.memoizedState=tp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pe(e),t===null&&xt&&(a=e.stateNode=Wm(e.type,e.pendingProps,rt.current),le=e,Be=!0,s=_t,ta(e.type)?(kr=s,_t=He(a.firstChild)):_t=s),ue(t,e,e.pendingProps.children,n),Ys(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=_t)&&(a=T1(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,le=e,_t=He(a.firstChild),Be=!1,s=!0):s=!1),s||Yn(e)),pe(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Gr(s,r)?a=null:f!==null&&Gr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=qo(t,e,Bv,null,null,n),Rl._currentValue=s),Ys(t,e),ue(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=_t)&&(n=A1(n,e.pendingProps,Be),n!==null?(e.stateNode=n,le=e,_t=null,t=!0):t=!1),t||Yn(e)),null;case 13:return Yd(t,e,n);case 4:return Vt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ma(e,null,a,n):ue(t,e,a,n),e.child;case 11:return jd(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,qn(e,e.type,a.value),ue(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,Ta(e),s=se(s),a=a(s),e.flags|=1,ue(t,e,a,n),e.child;case 14:return zd(t,e,e.type,e.pendingProps,n);case 15:return Rd(t,e,e.type,e.pendingProps,n);case 19:return Gd(t,e,n);case 31:return Qv(t,e,n);case 22:return Vd(t,e,n,e.pendingProps);case 24:return Ta(e),a=se(kt),t===null?(s=jo(),s===null&&(s=Nt,r=Oo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},Ro(e),qn(e,kt,s)):((t.lanes&n)!==0&&(Vo(t,e),dl(e,null,null,n),hl()),s=t.memoizedState,r=e.memoizedState,s.parent!==a?(s={parent:a,cache:a},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),qn(e,kt,a)):(a=r.cache,qn(e,kt,a),a!==s.cache&&wo(e,[kt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function An(t){t.flags|=4}function pr(t,e,n,a,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(ym())t.flags|=8192;else throw Ca=Cs,zo}else t.flags&=-16777217}function Kd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!lp(e))if(ym())t.flags|=8192;else throw Ca=Cs,zo}function Gs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?as():536870912,t.lanes|=e,Si|=e)}function xl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function kv(t,e,n){var a=e.pendingProps;switch(Ao(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),xn(kt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(oi(e)?An(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Co())),Ut(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(An(e),r!==null?(Ut(e),Kd(e,r)):(Ut(e),pr(e,s,null,a,n))):r?r!==t.memoizedState?(An(e),Ut(e),Kd(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&An(e),Ut(e),pr(e,s,t,a,n)),null;case 27:if(zn(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&An(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}t=F.current,oi(e)?Ah(e):(t=Wm(s,a,n),e.stateNode=t,An(e))}return Ut(e),null;case 5:if(zn(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&An(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}if(r=F.current,oi(e))Ah(e);else{var f=au(rt.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[et]=e,r[Mt]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(oe(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&An(e)}}return Ut(e),pr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&An(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,oi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=le,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[et]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Ym(t.nodeValue,n)),t||Yn(e,!0)}else t=au(t).createTextNode(a),t[et]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=oi(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[et]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=Co(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ut(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=oi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[et]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),s=!1}else s=Co(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Gs(e,e.updateQueue),Ut(e),null);case 4:return Bt(),t===null&&Br(e.stateNode.containerInfo),Ut(e),null;case 10:return xn(e.type),Ut(e),null;case 19:if(L(Kt),a=e.memoizedState,a===null)return Ut(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)xl(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Os(t),r!==null){for(e.flags|=128,xl(a,!1),t=r.updateQueue,e.updateQueue=t,Gs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)vh(n,t),n=n.sibling;return K(Kt,Kt.current&1|2),xt&&gn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ae()>ks&&(e.flags|=128,s=!0,xl(a,!1),e.lanes=4194304)}else{if(!s)if(t=Os(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Gs(e,t),xl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return Ut(e),null}else 2*ae()-a.renderingStartTime>ks&&n!==536870912&&(e.flags|=128,s=!0,xl(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ae(),t.sibling=null,n=Kt.current,K(Kt,s?n&1|2:n&1),xt&&gn(e,a.treeForkCount),t):(Ut(e),null);case 22:case 23:return De(e),Lo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Gs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&L(Aa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),xn(kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Jv(t,e){switch(Ao(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xn(kt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return zn(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(o(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return L(Kt),null;case 4:return Bt(),null;case 10:return xn(e.type),null;case 22:case 23:return De(e),Lo(),t!==null&&L(Aa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return xn(kt),null;case 25:return null;default:return null}}function Qd(t,e){switch(Ao(e),e.tag){case 3:xn(kt),Bt();break;case 26:case 27:case 5:zn(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:L(Kt);break;case 10:xn(e.type);break;case 22:case 23:De(e),Lo(),t!==null&&L(Aa);break;case 24:xn(kt)}}function bl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(y){Ct(e,e.return,y)}}function kn(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,s=e;var b=n,D=y;try{D()}catch(R){Ct(s,b,R)}}}a=a.next}while(a!==r)}}catch(R){Ct(e,e.return,R)}}function Zd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Uh(e,n)}catch(a){Ct(t,t.return,a)}}}function kd(t,e,n){n.props=wa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Ct(t,e,a)}}function Sl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Ct(t,e,s)}}function ln(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ct(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ct(t,e,s)}else n.current=null}function Jd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ct(t,t.return,s)}}function yr(t,e,n){try{var a=t.stateNode;y1(a,t.type,n,e),a[Mt]=e}catch(s){Ct(t,t.return,s)}}function Fd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ta(t.type)||t.tag===4}function gr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ta(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vr(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=mn));else if(a!==4&&(a===27&&ta(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(vr(t,e,n),t=t.sibling;t!==null;)vr(t,e,n),t=t.sibling}function Xs(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ta(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Xs(t,e,n),t=t.sibling;t!==null;)Xs(t,e,n),t=t.sibling}function Pd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);oe(e,a,n),e[et]=t,e[Mt]=n}catch(r){Ct(t,t.return,r)}}var En=!1,Pt=!1,xr=!1,Wd=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Fv(t,e){if(t=t.containerInfo,Yr=cu,t=rh(t),fo(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,y=-1,b=-1,D=0,R=0,B=t,w=null;e:for(;;){for(var O;B!==n||s!==0&&B.nodeType!==3||(y=f+s),B!==r||a!==0&&B.nodeType!==3||(b=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(O=B.firstChild)!==null;)w=B,B=O;for(;;){if(B===t)break e;if(w===n&&++D===s&&(y=f),w===r&&++R===a&&(b=f),(O=B.nextSibling)!==null)break;B=w,w=B.parentNode}B=O}n=y===-1||b===-1?null:{start:y,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(qr={focusedElem:t,selectionRange:n},cu=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var W=wa(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Kr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Kr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ee=t;break}ee=e.return}}function $d(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Mn(t,n),a&4&&bl(5,n);break;case 1:if(Mn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=wa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}a&64&&Zd(n),a&512&&Sl(n,n.return);break;case 3:if(Mn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Uh(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&a&4&&Pd(n);case 26:case 5:Mn(t,n),e===null&&a&4&&Jd(n),a&512&&Sl(n,n.return);break;case 12:Mn(t,n);break;case 31:Mn(t,n),a&4&&em(t,n);break;case 13:Mn(t,n),a&4&&nm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=i1.bind(null,n),E1(t,n))));break;case 22:if(a=n.memoizedState!==null||En,!a){e=e!==null&&e.memoizedState!==null||Pt,s=En;var r=Pt;En=a,(Pt=e)&&!r?Dn(t,n,(n.subtreeFlags&8772)!==0):Mn(t,n),En=s,Pt=r}break;case 30:break;default:Mn(t,n)}}function Id(t){var e=t.alternate;e!==null&&(t.alternate=null,Id(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ju(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Lt=null,ve=!1;function Cn(t,e,n){for(n=n.child;n!==null;)tm(t,e,n),n=n.sibling}function tm(t,e,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Vn,n)}catch{}switch(n.tag){case 26:Pt||ln(n,e),Cn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||ln(n,e);var a=Lt,s=ve;ta(n.type)&&(Lt=n.stateNode,ve=!1),Cn(t,e,n),Nl(n.stateNode),Lt=a,ve=s;break;case 5:Pt||ln(n,e);case 6:if(a=Lt,s=ve,Lt=null,Cn(t,e,n),Lt=a,ve=s,Lt!==null)if(ve)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(r){Ct(n,e,r)}else try{Lt.removeChild(n.stateNode)}catch(r){Ct(n,e,r)}break;case 18:Lt!==null&&(ve?(t=Lt,Zm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Oi(t)):Zm(Lt,n.stateNode));break;case 4:a=Lt,s=ve,Lt=n.stateNode.containerInfo,ve=!0,Cn(t,e,n),Lt=a,ve=s;break;case 0:case 11:case 14:case 15:kn(2,n,e),Pt||kn(4,n,e),Cn(t,e,n);break;case 1:Pt||(ln(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&kd(n,e,a)),Cn(t,e,n);break;case 21:Cn(t,e,n);break;case 22:Pt=(a=Pt)||n.memoizedState!==null,Cn(t,e,n),Pt=a;break;default:Cn(t,e,n)}}function em(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Oi(t)}catch(n){Ct(e,e.return,n)}}}function nm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Oi(t)}catch(n){Ct(e,e.return,n)}}function Pv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Wd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Wd),e;default:throw Error(o(435,t.tag))}}function Ks(t,e){var n=Pv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=l1.bind(null,t,a);a.then(s,s)}})}function xe(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(ta(y.type)){Lt=y.stateNode,ve=!1;break t}break;case 5:Lt=y.stateNode,ve=!1;break t;case 3:case 4:Lt=y.stateNode.containerInfo,ve=!0;break t}y=y.return}if(Lt===null)throw Error(o(160));tm(r,f,s),Lt=null,ve=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)am(e,t),e=e.sibling}var Ze=null;function am(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),be(t),a&4&&(kn(3,t,t.return),bl(3,t),kn(5,t,t.return));break;case 1:xe(e,t),be(t),a&512&&(Pt||n===null||ln(n,n.return)),a&64&&En&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Ze;if(xe(e,t),be(t),a&512&&(Pt||n===null||ln(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(a){case"title":r=s.getElementsByTagName("title")[0],(!r||r[Ji]||r[et]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),oe(r,a,n),r[et]=t,te(r),a=r;break t;case"link":var f=ap("link","href",s).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break e}}r=s.createElement(a),oe(r,a,n),s.head.appendChild(r);break;case"meta":if(f=ap("meta","content",s).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break e}}r=s.createElement(a),oe(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[et]=t,te(r),a=r}t.stateNode=a}else ip(s,t.type,t.stateNode);else t.stateNode=np(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?ip(s,t.type,t.stateNode):np(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&yr(t,t.memoizedProps,n.memoizedProps)}break;case 27:xe(e,t),be(t),a&512&&(Pt||n===null||ln(n,n.return)),n!==null&&a&4&&yr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(xe(e,t),be(t),a&512&&(Pt||n===null||ln(n,n.return)),t.flags&32){s=t.stateNode;try{$a(s,"")}catch(W){Ct(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,yr(t,s,n!==null?n.memoizedProps:s)),a&1024&&(xr=!0);break;case 6:if(xe(e,t),be(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Ct(t,t.return,W)}}break;case 3:if(su=null,s=Ze,Ze=iu(e.containerInfo),xe(e,t),Ze=s,be(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Oi(e.containerInfo)}catch(W){Ct(t,t.return,W)}xr&&(xr=!1,im(t));break;case 4:a=Ze,Ze=iu(t.stateNode.containerInfo),xe(e,t),be(t),Ze=a;break;case 12:xe(e,t),be(t);break;case 31:xe(e,t),be(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ks(t,a)));break;case 13:xe(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zs=ae()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ks(t,a)));break;case 22:s=t.memoizedState!==null;var b=n!==null&&n.memoizedState!==null,D=En,R=Pt;if(En=D||s,Pt=R||b,xe(e,t),Pt=R,En=D,be(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||b||En||Pt||Oa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){b=n=e;try{if(r=b.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=b.stateNode;var B=b.memoizedProps.style,w=B!=null&&B.hasOwnProperty("display")?B.display:null;y.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(W){Ct(b,b.return,W)}}}else if(e.tag===6){if(n===null){b=e;try{b.stateNode.nodeValue=s?"":b.memoizedProps}catch(W){Ct(b,b.return,W)}}}else if(e.tag===18){if(n===null){b=e;try{var O=b.stateNode;s?km(O,!0):km(b.stateNode,!1)}catch(W){Ct(b,b.return,W)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ks(t,n))));break;case 19:xe(e,t),be(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ks(t,a)));break;case 30:break;case 21:break;default:xe(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Fd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=gr(t);Xs(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&($a(f,""),n.flags&=-33);var y=gr(t);Xs(t,y,f);break;case 3:case 4:var b=n.stateNode.containerInfo,D=gr(t);vr(t,D,b);break;default:throw Error(o(161))}}catch(R){Ct(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function im(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;im(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)$d(t,e.alternate,e),e=e.sibling}function Oa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:kn(4,e,e.return),Oa(e);break;case 1:ln(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&kd(e,e.return,n),Oa(e);break;case 27:Nl(e.stateNode);case 26:case 5:ln(e,e.return),Oa(e);break;case 22:e.memoizedState===null&&Oa(e);break;case 30:Oa(e);break;default:Oa(e)}t=t.sibling}}function Dn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:Dn(s,r,n),bl(4,r);break;case 1:if(Dn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){Ct(a,a.return,D)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var b=s.shared.hiddenCallbacks;if(b!==null)for(s.shared.hiddenCallbacks=null,s=0;s<b.length;s++)_h(b[s],y)}catch(D){Ct(a,a.return,D)}}n&&f&64&&Zd(r),Sl(r,r.return);break;case 27:Pd(r);case 26:case 5:Dn(s,r,n),n&&a===null&&f&4&&Jd(r),Sl(r,r.return);break;case 12:Dn(s,r,n);break;case 31:Dn(s,r,n),n&&f&4&&em(s,r);break;case 13:Dn(s,r,n),n&&f&4&&nm(s,r);break;case 22:r.memoizedState===null&&Dn(s,r,n),Sl(r,r.return);break;case 30:break;default:Dn(s,r,n)}e=e.sibling}}function br(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ul(n))}function Sr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ul(t))}function ke(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lm(t,e,n,a),e=e.sibling}function lm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:ke(t,e,n,a),s&2048&&bl(9,e);break;case 1:ke(t,e,n,a);break;case 3:ke(t,e,n,a),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ul(t)));break;case 12:if(s&2048){ke(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Ct(e,e.return,b)}}else ke(t,e,n,a);break;case 31:ke(t,e,n,a);break;case 13:ke(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?ke(t,e,n,a):Tl(t,e):r._visibility&2?ke(t,e,n,a):(r._visibility|=2,vi(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&br(f,e);break;case 24:ke(t,e,n,a),s&2048&&Sr(e.alternate,e);break;default:ke(t,e,n,a)}}function vi(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=n,b=a,D=f.flags;switch(f.tag){case 0:case 11:case 15:vi(r,f,y,b,s),bl(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?vi(r,f,y,b,s):Tl(r,f):(R._visibility|=2,vi(r,f,y,b,s)),s&&D&2048&&br(f.alternate,f);break;case 24:vi(r,f,y,b,s),s&&D&2048&&Sr(f.alternate,f);break;default:vi(r,f,y,b,s)}e=e.sibling}}function Tl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,s=a.flags;switch(a.tag){case 22:Tl(n,a),s&2048&&br(a.alternate,a);break;case 24:Tl(n,a),s&2048&&Sr(a.alternate,a);break;default:Tl(n,a)}e=e.sibling}}var Al=8192;function xi(t,e,n){if(t.subtreeFlags&Al)for(t=t.child;t!==null;)sm(t,e,n),t=t.sibling}function sm(t,e,n){switch(t.tag){case 26:xi(t,e,n),t.flags&Al&&t.memoizedState!==null&&U1(n,Ze,t.memoizedState,t.memoizedProps);break;case 5:xi(t,e,n);break;case 3:case 4:var a=Ze;Ze=iu(t.stateNode.containerInfo),xi(t,e,n),Ze=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Al,Al=16777216,xi(t,e,n),Al=a):xi(t,e,n));break;default:xi(t,e,n)}}function um(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function El(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ee=a,rm(a,t)}um(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)om(t),t=t.sibling}function om(t){switch(t.tag){case 0:case 11:case 15:El(t),t.flags&2048&&kn(9,t,t.return);break;case 3:El(t);break;case 12:El(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Qs(t)):El(t);break;default:El(t)}}function Qs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ee=a,rm(a,t)}um(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:kn(8,e,e.return),Qs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Qs(e));break;default:Qs(e)}t=t.sibling}}function rm(t,e){for(;ee!==null;){var n=ee;switch(n.tag){case 0:case 11:case 15:kn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ul(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ee=a;else t:for(n=t;ee!==null;){a=ee;var s=a.sibling,r=a.return;if(Id(a),a===n){ee=null;break t}if(s!==null){s.return=r,ee=s;break t}ee=r}}}var Wv={getCacheForType:function(t){var e=se(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return se(kt).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,At=0,Nt=null,dt=null,gt=0,Et=0,we=null,Jn=!1,bi=!1,Tr=!1,wn=0,Gt=0,Fn=0,Na=0,Ar=0,Oe=0,Si=0,Cl=null,Se=null,Er=!1,Zs=0,cm=0,ks=1/0,Js=null,Pn=null,$t=0,Wn=null,Ti=null,On=0,Cr=0,Mr=null,fm=null,Ml=0,Dr=null;function Ne(){return(At&2)!==0&>!==0?gt&-gt:j.T!==null?Rr():en()}function hm(){if(Oe===0)if((gt&536870912)===0||xt){var t=qa;qa<<=1,(qa&3932160)===0&&(qa=262144),Oe=t}else Oe=536870912;return t=Me.current,t!==null&&(t.flags|=32),Oe}function Te(t,e,n){(t===Nt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(Ai(t,0),$n(t,gt,Oe,!1)),_n(t,n),((At&2)===0||t!==Nt)&&(t===Nt&&((At&2)===0&&(Na|=n),Gt===4&&$n(t,gt,Oe,!1)),sn(t))}function dm(t,e,n){if((At&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ha(t,e),s=a?e1(t,e):Or(t,e,!0),r=a;do{if(s===0){bi&&!a&&$n(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Iv(n)){s=Or(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;s=Cl;var b=y.current.memoizedState.isDehydrated;if(b&&(Ai(y,f).flags|=256),f=Or(y,f,!1),f!==2){if(Tr&&!b){y.errorRecoveryDisabledLanes|=r,Na|=r,s=4;break t}r=Se,Se=s,r!==null&&(Se===null?Se=r:Se.push.apply(Se,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Ai(t,0),$n(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:$n(a,e,Oe,!Jn);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=Zs+300-ae(),10<s)){if($n(a,e,Oe,!Jn),Xa(a,0,!0)!==0)break t;On=e,a.timeoutHandle=Km(mm.bind(null,a,n,Se,Js,Er,e,Oe,Na,Si,Jn,r,"Throttled",-0,0),s);break t}mm(a,n,Se,Js,Er,e,Oe,Na,Si,Jn,r,null,-0,0)}}break}while(!0);sn(t)}function mm(t,e,n,a,s,r,f,y,b,D,R,B,w,O){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},sm(e,r,B);var W=(r&62914560)===r?Zs-ae():(r&4194048)===r?cm-ae():0;if(W=B1(B,W),W!==null){On=r,t.cancelPendingCommit=W(Tm.bind(null,t,e,r,n,a,s,f,y,b,R,B,null,w,O)),$n(t,r,f,!D);return}}Tm(t,e,r,n,a,s,f,y,b)}function Iv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],r=s.getSnapshot;s=s.value;try{if(!Ee(r(),s))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function $n(t,e,n,a){e&=~Ar,e&=~Na,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ie(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&Un(t,n,e)}function Fs(){return(At&6)===0?(Dl(0),!1):!0}function wr(){if(dt!==null){if(Et===0)var t=dt.return;else t=dt,vn=Sa=null,Ko(t),di=null,rl=0,t=dt;for(;t!==null;)Qd(t.alternate,t),t=t.return;dt=null}}function Ai(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,x1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),On=0,wr(),Nt=t,dt=n=yn(t.current,null),gt=e,Et=0,we=null,Jn=!1,bi=ha(t,e),Tr=!1,Si=Oe=Ar=Na=Fn=Gt=0,Se=Cl=null,Er=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-ie(a),r=1<<s;e|=t[s],a&=~r}return wn=e,ys(),n}function pm(t,e){ct=null,j.H=gl,e===hi||e===Es?(e=jh(),Et=3):e===zo?(e=jh(),Et=4):Et=e===sr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,we=e,dt===null&&(Gt=1,Ls(t,Ve(e,t.current)))}function ym(){var t=Me.current;return t===null?!0:(gt&4194048)===gt?Le===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Le:!1}function gm(){var t=j.H;return j.H=gl,t===null?gl:t}function vm(){var t=j.A;return j.A=Wv,t}function Ps(){Gt=4,Jn||(gt&4194048)!==gt&&Me.current!==null||(bi=!0),(Fn&134217727)===0&&(Na&134217727)===0||Nt===null||$n(Nt,gt,Oe,!1)}function Or(t,e,n){var a=At;At|=2;var s=gm(),r=vm();(Nt!==t||gt!==e)&&(Js=null,Ai(t,e)),e=!1;var f=Gt;t:do try{if(Et!==0&&dt!==null){var y=dt,b=we;switch(Et){case 8:wr(),f=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var D=Et;if(Et=0,we=null,Ei(t,y,b,D),n&&bi){f=0;break t}break;default:D=Et,Et=0,we=null,Ei(t,y,b,D)}}t1(),f=Gt;break}catch(R){pm(t,R)}while(!0);return e&&t.shellSuspendCounter++,vn=Sa=null,At=a,j.H=s,j.A=r,dt===null&&(Nt=null,gt=0,ys()),f}function t1(){for(;dt!==null;)xm(dt)}function e1(t,e){var n=At;At|=2;var a=gm(),s=vm();Nt!==t||gt!==e?(Js=null,ks=ae()+500,Ai(t,e)):bi=ha(t,e);t:do try{if(Et!==0&&dt!==null){e=dt;var r=we;e:switch(Et){case 1:Et=0,we=null,Ei(t,e,r,1);break;case 2:case 9:if(Oh(r)){Et=0,we=null,bm(e);break}e=function(){Et!==2&&Et!==9||Nt!==t||(Et=7),sn(t)},r.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Oh(r)?(Et=0,we=null,bm(e)):(Et=0,we=null,Ei(t,e,r,7));break;case 5:var f=null;switch(dt.tag){case 26:f=dt.memoizedState;case 5:case 27:var y=dt;if(f?lp(f):y.stateNode.complete){Et=0,we=null;var b=y.sibling;if(b!==null)dt=b;else{var D=y.return;D!==null?(dt=D,Ws(D)):dt=null}break e}}Et=0,we=null,Ei(t,e,r,5);break;case 6:Et=0,we=null,Ei(t,e,r,6);break;case 8:wr(),Gt=6;break t;default:throw Error(o(462))}}n1();break}catch(R){pm(t,R)}while(!0);return vn=Sa=null,j.H=a,j.A=s,At=n,dt!==null?0:(Nt=null,gt=0,ys(),Gt)}function n1(){for(;dt!==null&&!Rn();)xm(dt)}function xm(t){var e=Xd(t.alternate,t,wn);t.memoizedProps=t.pendingProps,e===null?Ws(t):dt=e}function bm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Bd(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=Bd(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Ko(e);default:Qd(n,e),e=dt=vh(e,wn),e=Xd(n,e,wn)}t.memoizedProps=t.pendingProps,e===null?Ws(t):dt=e}function Ei(t,e,n,a){vn=Sa=null,Ko(e),di=null,rl=0;var s=e.return;try{if(Kv(t,s,e,n,gt)){Gt=1,Ls(t,Ve(n,t.current)),dt=null;return}}catch(r){if(s!==null)throw dt=s,r;Gt=1,Ls(t,Ve(n,t.current)),dt=null;return}e.flags&32768?(xt||a===1?t=!0:bi||(gt&536870912)!==0?t=!1:(Jn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Me.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sm(e,t)):Ws(e)}function Ws(t){var e=t;do{if((e.flags&32768)!==0){Sm(e,Jn);return}t=e.return;var n=kv(e.alternate,e,wn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Sm(t,e){do{var n=Jv(t.alternate,t);if(n!==null){n.flags&=32767,dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=n}while(t!==null);Gt=6,dt=null}function Tm(t,e,n,a,s,r,f,y,b){t.cancelPendingCommit=null;do $s();while($t!==0);if((At&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=go,Zu(t,n,r,f,y,b),t===Nt&&(dt=Nt=null,gt=0),Ti=e,Wn=t,On=n,Cr=r,Mr=s,fm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s1(fn,function(){return Dm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,s=H.p,H.p=2,f=At,At|=4;try{Fv(t,e,n)}finally{At=f,H.p=s,j.T=a}}$t=1,Am(),Em(),Cm()}}function Am(){if($t===1){$t=0;var t=Wn,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{am(e,t);var r=qr,f=rh(t.containerInfo),y=r.focusedElem,b=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&oh(y.ownerDocument.documentElement,y)){if(b!==null&&fo(y)){var D=b.start,R=b.end;if(R===void 0&&(R=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(R,y.value.length);else{var B=y.ownerDocument||document,w=B&&B.defaultView||window;if(w.getSelection){var O=w.getSelection(),W=y.textContent.length,at=Math.min(b.start,W),Ot=b.end===void 0?at:Math.min(b.end,W);!O.extend&&at>Ot&&(f=Ot,Ot=at,at=f);var C=uh(y,at),A=uh(y,Ot);if(C&&A&&(O.rangeCount!==1||O.anchorNode!==C.node||O.anchorOffset!==C.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var M=B.createRange();M.setStart(C.node,C.offset),O.removeAllRanges(),at>Ot?(O.addRange(M),O.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),O.addRange(M))}}}}for(B=[],O=y;O=O.parentNode;)O.nodeType===1&&B.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<B.length;y++){var V=B[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}cu=!!Yr,qr=Yr=null}finally{At=s,H.p=a,j.T=n}}t.current=e,$t=2}}function Em(){if($t===2){$t=0;var t=Wn,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{$d(t,e.alternate,e)}finally{At=s,H.p=a,j.T=n}}$t=3}}function Cm(){if($t===4||$t===3){$t=0,qu();var t=Wn,e=Ti,n=On,a=fm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,Ti=Wn=null,Mm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Pn=null),ki(n),e=e.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(Vn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=j.T,s=H.p,H.p=2,j.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{j.T=e,H.p=s}}(On&3)!==0&&$s(),sn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Dr?Ml++:(Ml=0,Dr=t):Ml=0,Dl(0)}}function Mm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ul(e)))}function $s(){return Am(),Em(),Cm(),Dm()}function Dm(){if($t!==5)return!1;var t=Wn,e=Cr;Cr=0;var n=ki(On),a=j.T,s=H.p;try{H.p=32>n?32:n,j.T=null,n=Mr,Mr=null;var r=Wn,f=On;if($t=0,Ti=Wn=null,On=0,(At&6)!==0)throw Error(o(331));var y=At;if(At|=4,om(r.current),lm(r,r.current,f,n),At=y,Dl(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(Vn,r)}catch{}return!0}finally{H.p=s,j.T=a,Mm(t,e)}}function wm(t,e,n){e=Ve(n,e),e=lr(t.stateNode,e,2),t=Kn(t,e,2),t!==null&&(_n(t,2),sn(t))}function Ct(t,e,n){if(t.tag===3)wm(t,t,n);else for(;e!==null;){if(e.tag===3){wm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pn===null||!Pn.has(a))){t=Ve(n,t),n=Od(2),a=Kn(e,n,2),a!==null&&(Nd(n,a,e,t),_n(a,2),sn(a));break}}e=e.return}}function Nr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new $v;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(Tr=!0,s.add(n),t=a1.bind(null,t,e,n),e.then(t,t))}function a1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Nt===t&&(gt&n)===n&&(Gt===4||Gt===3&&(gt&62914560)===gt&&300>ae()-Zs?(At&2)===0&&Ai(t,0):Ar|=n,Si===gt&&(Si=0)),sn(t)}function Om(t,e){e===0&&(e=as()),t=va(t,e),t!==null&&(_n(t,e),sn(t))}function i1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Om(t,n)}function l1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Om(t,n)}function s1(t,e){return Ki(t,e)}var Is=null,Ci=null,jr=!1,tu=!1,zr=!1,In=0;function sn(t){t!==Ci&&t.next===null&&(Ci===null?Is=Ci=t:Ci=Ci.next=t),tu=!0,jr||(jr=!0,o1())}function Dl(t,e){if(!zr&&tu){zr=!0;do for(var n=!1,a=Is;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-ie(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Rm(a,r))}else r=gt,r=Xa(a,a===Nt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ha(a,r)||(n=!0,Rm(a,r));a=a.next}while(n);zr=!1}}function u1(){Nm()}function Nm(){tu=jr=!1;var t=0;In!==0&&v1()&&(t=In);for(var e=ae(),n=null,a=Is;a!==null;){var s=a.next,r=jm(a,e);r===0?(a.next=null,n===null?Is=s:n.next=s,s===null&&(Ci=n)):(n=a,(t!==0||(r&3)!==0)&&(tu=!0)),a=s}$t!==0&&$t!==5||Dl(t),In!==0&&(In=0)}function jm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ie(r),y=1<<f,b=s[f];b===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Qu(y,e)):b<=e&&(t.expiredLanes|=y),r&=~y}if(e=Nt,n=gt,n=Xa(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ha(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ha(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ha(a),ki(n)){case 2:case 8:n=fa;break;case 32:n=fn;break;case 268435456:n=Zi;break;default:n=fn}return a=zm.bind(null,t),n=Ki(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ha(a),t.callbackPriority=2,t.callbackNode=null,2}function zm(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if($s()&&t.callbackNode!==n)return null;var a=gt;return a=Xa(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(dm(t,a,e),jm(t,ae()),t.callbackNode!=null&&t.callbackNode===n?zm.bind(null,t):null)}function Rm(t,e){if($s())return null;dm(t,e,!0)}function o1(){b1(function(){(At&6)!==0?Ki(Qi,u1):Nm()})}function Rr(){if(In===0){var t=ci;t===0&&(t=Ya,Ya<<=1,(Ya&261888)===0&&(Ya=256)),In=t}return In}function Vm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:os(""+t)}function _m(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function r1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Vm((s[Mt]||null).action),f=a.submitter;f&&(e=(e=f[Mt]||null)?Vm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new hs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(In!==0){var b=f?_m(s,f):new FormData(s);Io(n,{pending:!0,data:b,method:s.method,action:r},null,b)}}else typeof r=="function"&&(y.preventDefault(),b=f?_m(s,f):new FormData(s),Io(n,{pending:!0,data:b,method:s.method,action:r},r,b))},currentTarget:s}]})}}for(var Vr=0;Vr<yo.length;Vr++){var _r=yo[Vr],c1=_r.toLowerCase(),f1=_r[0].toUpperCase()+_r.slice(1);Qe(c1,"on"+f1)}Qe(hh,"onAnimationEnd"),Qe(dh,"onAnimationIteration"),Qe(mh,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(Dv,"onTransitionRun"),Qe(wv,"onTransitionStart"),Qe(Ov,"onTransitionCancel"),Qe(ph,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("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 wl="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function Um(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],b=y.instance,D=y.currentTarget;if(y=y.listener,b!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=D;try{r(s)}catch(R){ps(R)}s.currentTarget=null,r=b}else for(f=0;f<a.length;f++){if(y=a[f],b=y.instance,D=y.currentTarget,y=y.listener,b!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=D;try{r(s)}catch(R){ps(R)}s.currentTarget=null,r=b}}}}function mt(t,e){var n=e[Qa];n===void 0&&(n=e[Qa]=new Set);var a=t+"__bubble";n.has(a)||(Bm(e,t,2,!1),n.add(a))}function Ur(t,e,n){var a=0;e&&(a|=4),Bm(n,t,a,e)}var eu="_reactListening"+Math.random().toString(36).slice(2);function Br(t){if(!t[eu]){t[eu]=!0,Nf.forEach(function(n){n!=="selectionchange"&&(h1.has(n)||Ur(n,!1,t),Ur(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[eu]||(e[eu]=!0,Ur("selectionchange",!1,e))}}function Bm(t,e,n,a){switch(hp(e)){case 2:var s=Y1;break;case 8:s=q1;break;default:s=$r}n=s.bind(null,e,n,t),s=void 0,!no||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),a?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Lr(t,e,n,a,s){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===s)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=ka(y),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=r=f;continue t}y=y.parentNode}}a=a.return}Gf(function(){var D=r,R=to(n),B=[];t:{var w=yh.get(t);if(w!==void 0){var O=hs,W=t;switch(t){case"keypress":if(cs(n)===0)break t;case"keydown":case"keyup":O=lv;break;case"focusin":W="focus",O=so;break;case"focusout":W="blur",O=so;break;case"beforeblur":case"afterblur":O=so;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ov;break;case hh:case dh:case mh:O=Pg;break;case ph:O=cv;break;case"scroll":case"scrollend":O=Qg;break;case"wheel":O=hv;break;case"copy":case"cut":case"paste":O=$g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=kf;break;case"toggle":case"beforetoggle":O=mv}var at=(e&4)!==0,Ot=!at&&(t==="scroll"||t==="scrollend"),C=at?w!==null?w+"Capture":null:w;at=[];for(var A=D,M;A!==null;){var V=A;if(M=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||M===null||C===null||(V=Pi(A,C),V!=null&&at.push(Ol(A,V,M))),Ot)break;A=A.return}0<at.length&&(w=new O(w,W,null,n,R),B.push({event:w,listeners:at}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",w&&n!==Iu&&(W=n.relatedTarget||n.fromElement)&&(ka(W)||W[Ae]))break t;if((O||w)&&(w=R.window===R?R:(w=R.ownerDocument)?w.defaultView||w.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=D,W=W?ka(W):null,W!==null&&(Ot=d(W),at=W.tag,W!==Ot||at!==5&&at!==27&&at!==6)&&(W=null)):(O=null,W=D),O!==W)){if(at=Qf,V="onMouseLeave",C="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(at=kf,V="onPointerLeave",C="onPointerEnter",A="pointer"),Ot=O==null?w:Fi(O),M=W==null?w:Fi(W),w=new at(V,A+"leave",O,n,R),w.target=Ot,w.relatedTarget=M,V=null,ka(R)===D&&(at=new at(C,A+"enter",W,n,R),at.target=M,at.relatedTarget=Ot,V=at),Ot=V,O&&W)e:{for(at=d1,C=O,A=W,M=0,V=C;V;V=at(V))M++;V=0;for(var nt=A;nt;nt=at(nt))V++;for(;0<M-V;)C=at(C),M--;for(;0<V-M;)A=at(A),V--;for(;M--;){if(C===A||A!==null&&C===A.alternate){at=C;break e}C=at(C),A=at(A)}at=null}else at=null;O!==null&&Lm(B,w,O,at,!1),W!==null&&Ot!==null&&Lm(B,Ot,W,at,!0)}}t:{if(w=D?Fi(D):window,O=w.nodeName&&w.nodeName.toLowerCase(),O==="select"||O==="input"&&w.type==="file")var bt=eh;else if(If(w))if(nh)bt=Ev;else{bt=Tv;var tt=Sv}else O=w.nodeName,!O||O.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?D&&$u(D.elementType)&&(bt=eh):bt=Av;if(bt&&(bt=bt(t,D))){th(B,bt,n,R);break t}tt&&tt(t,w,D),t==="focusout"&&D&&w.type==="number"&&D.memoizedProps.value!=null&&Wu(w,"number",w.value)}switch(tt=D?Fi(D):window,t){case"focusin":(If(tt)||tt.contentEditable==="true")&&(ni=tt,ho=D,il=null);break;case"focusout":il=ho=ni=null;break;case"mousedown":mo=!0;break;case"contextmenu":case"mouseup":case"dragend":mo=!1,ch(B,n,R);break;case"selectionchange":if(Mv)break;case"keydown":case"keyup":ch(B,n,R)}var ft;if(oo)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else ei?Wf(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Jf&&n.locale!=="ko"&&(ei||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&ei&&(ft=Xf()):(Bn=R,ao="value"in Bn?Bn.value:Bn.textContent,ei=!0)),tt=nu(D,vt),0<tt.length&&(vt=new Zf(vt,t,null,n,R),B.push({event:vt,listeners:tt}),ft?vt.data=ft:(ft=$f(n),ft!==null&&(vt.data=ft)))),(ft=yv?gv(t,n):vv(t,n))&&(vt=nu(D,"onBeforeInput"),0<vt.length&&(tt=new Zf("onBeforeInput","beforeinput",null,n,R),B.push({event:tt,listeners:vt}),tt.data=ft)),r1(B,t,D,n,R)}Um(B,e)})}function Ol(t,e,n){return{instance:t,listener:e,currentTarget:n}}function nu(t,e){for(var n=e+"Capture",a=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Pi(t,n),s!=null&&a.unshift(Ol(t,s,r)),s=Pi(t,e),s!=null&&a.push(Ol(t,s,r))),t.tag===3)return a;t=t.return}return[]}function d1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Lm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,b=y.alternate,D=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||D===null||(b=D,s?(D=Pi(n,r),D!=null&&f.unshift(Ol(n,D,b))):s||(D=Pi(n,r),D!=null&&f.push(Ol(n,D,b)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var m1=/\r\n?/g,p1=/\u0000|\uFFFD/g;function Hm(t){return(typeof t=="string"?t:""+t).replace(m1,`
|
|
9
|
-
`).replace(p1,"")}function Ym(t,e){return e=Hm(e),Hm(t)===e}function wt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||$a(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&$a(t,""+a);break;case"className":ss(t,"class",a);break;case"tabIndex":ss(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ss(t,n,a);break;case"style":Yf(t,a,r);break;case"data":if(e!=="object"){ss(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=os(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"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 r=="function"&&(n==="formAction"?(e!=="input"&&wt(t,e,"name",s.name,s,null),wt(t,e,"formEncType",s.formEncType,s,null),wt(t,e,"formMethod",s.formMethod,s,null),wt(t,e,"formTarget",s.formTarget,s,null)):(wt(t,e,"encType",s.encType,s,null),wt(t,e,"method",s.method,s,null),wt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=os(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=mn);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=os(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":mt("beforetoggle",t),mt("toggle",t),ls(t,"popover",a);break;case"xlinkActuate":dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":dn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":dn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":dn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":dn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ls(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Xg.get(n)||n,ls(t,n,a))}}function Hr(t,e,n,a,s,r){switch(n){case"style":Yf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?$a(t,a):(typeof a=="number"||typeof a=="bigint")&&$a(t,""+a);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[Mt]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):ls(t,n,a)}}}function oe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:wt(t,e,r,f,n,null)}}s&&wt(t,e,"srcSet",n.srcSet,n,null),a&&wt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var y=r=f=s=null,b=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var R=n[a];if(R!=null)switch(a){case"name":s=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":D=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:wt(t,e,a,R,n,null)}}Uf(t,r,y,b,D,f,s,!1);return;case"select":mt("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:wt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Wa(t,!!a,e,!1):n!=null&&Wa(t,!!a,n,!0);return;case"textarea":mt("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:wt(t,e,f,y,n,null)}Lf(t,a,s,r);return;case"option":for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null)&&(b==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":wt(t,e,b,a,n,null));return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(a=0;a<wl.length;a++)mt(wl[a],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);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 n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:wt(t,e,D,a,n,null)}return;default:if($u(e)){for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!==void 0&&Hr(t,e,R,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&wt(t,e,y,a,n,null))}function y1(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,y=null,b=null,D=null,R=null;for(O in n){var B=n[O];if(n.hasOwnProperty(O)&&B!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=B;default:a.hasOwnProperty(O)||wt(t,e,O,null,a,B)}}for(var w in a){var O=a[w];if(B=n[w],a.hasOwnProperty(w)&&(O!=null||B!=null))switch(w){case"type":r=O;break;case"name":s=O;break;case"checked":D=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:O!==B&&wt(t,e,w,O,a,B)}}Pu(t,f,y,b,D,R,r,s);return;case"select":O=f=y=w=null;for(r in n)if(b=n[r],n.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":O=b;default:a.hasOwnProperty(r)||wt(t,e,r,null,a,b)}for(s in a)if(r=a[s],b=n[s],a.hasOwnProperty(s)&&(r!=null||b!=null))switch(s){case"value":w=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==b&&wt(t,e,s,r,a,b)}e=y,n=f,a=O,w!=null?Wa(t,!!n,w,!1):!!a!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":O=w=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:wt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":w=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&wt(t,e,f,s,a,r)}Bf(t,w,O);return;case"option":for(var W in n)w=n[W],n.hasOwnProperty(W)&&w!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:wt(t,e,W,null,a,w));for(b in a)w=a[b],O=n[b],a.hasOwnProperty(b)&&w!==O&&(w!=null||O!=null)&&(b==="selected"?t.selected=w&&typeof w!="function"&&typeof w!="symbol":wt(t,e,b,w,a,O));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 at in n)w=n[at],n.hasOwnProperty(at)&&w!=null&&!a.hasOwnProperty(at)&&wt(t,e,at,null,a,w);for(D in a)if(w=a[D],O=n[D],a.hasOwnProperty(D)&&w!==O&&(w!=null||O!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:wt(t,e,D,w,a,O)}return;default:if($u(e)){for(var Ot in n)w=n[Ot],n.hasOwnProperty(Ot)&&w!==void 0&&!a.hasOwnProperty(Ot)&&Hr(t,e,Ot,void 0,a,w);for(R in a)w=a[R],O=n[R],!a.hasOwnProperty(R)||w===O||w===void 0&&O===void 0||Hr(t,e,R,w,a,O);return}}for(var C in n)w=n[C],n.hasOwnProperty(C)&&w!=null&&!a.hasOwnProperty(C)&&wt(t,e,C,null,a,w);for(B in a)w=a[B],O=n[B],!a.hasOwnProperty(B)||w===O||w==null&&O==null||wt(t,e,B,w,a,O)}function qm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,y=s.duration;if(r&&y&&qm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var b=n[a],D=b.startTime;if(D>y)break;var R=b.transferSize,B=b.initiatorType;R&&qm(B)&&(b=b.responseEnd,f+=R*(b<y?1:(y-D)/(b-D)))}if(--a,e+=8*(r+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Yr=null,qr=null;function au(t){return t.nodeType===9?t:t.ownerDocument}function Gm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Gr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Xr=null;function v1(){var t=window.event;return t&&t.type==="popstate"?t===Xr?!1:(Xr=t,!0):(Xr=null,!1)}var Km=typeof setTimeout=="function"?setTimeout:void 0,x1=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,b1=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(t){return Qm.resolve(null).then(t).catch(S1)}:Km;function S1(t){setTimeout(function(){throw t})}function ta(t){return t==="head"}function Zm(t,e){var n=e,a=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(s),Oi(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Nl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Nl(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[Ji]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&Nl(t.ownerDocument.body);n=s}while(n);Oi(e)}function km(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function Kr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Kr(n),Ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function T1(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ji])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function A1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=He(t.nextSibling),t===null))return null;return t}function Jm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function Qr(t){return t.data==="$?"||t.data==="$~"}function Zr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var kr=null;function Fm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return He(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Pm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Wm(t,e,n){switch(e=au(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Nl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ju(t)}var Ye=new Map,$m=new Set;function iu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Nn=H.d;H.d={f:C1,r:M1,D:D1,C:w1,L:O1,m:N1,X:z1,S:j1,M:R1};function C1(){var t=Nn.f(),e=Fs();return t||e}function M1(t){var e=Ja(t);e!==null&&e.tag===5&&e.type==="form"?pd(e):Nn.r(t)}var Mi=typeof document>"u"?null:document;function Im(t,e,n){var a=Mi;if(a&&typeof e=="string"&&e){var s=ze(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),$m.has(s)||($m.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),oe(e,"link",t),te(e),a.head.appendChild(e)))}}function D1(t){Nn.D(t),Im("dns-prefetch",t,null)}function w1(t,e){Nn.C(t,e),Im("preconnect",t,e)}function O1(t,e,n){Nn.L(t,e,n);var a=Mi;if(a&&t&&e){var s='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+ze(n.imageSizes)+'"]')):s+='[href="'+ze(t)+'"]';var r=s;switch(e){case"style":r=Di(t);break;case"script":r=wi(t)}Ye.has(r)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ye.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(jl(r))||e==="script"&&a.querySelector(zl(r))||(e=a.createElement("link"),oe(e,"link",t),te(e),a.head.appendChild(e)))}}function N1(t,e){Nn.m(t,e);var n=Mi;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+ze(a)+'"][href="'+ze(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=wi(t)}if(!Ye.has(r)&&(t=x({rel:"modulepreload",href:t},e),Ye.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zl(r)))return}a=n.createElement("link"),oe(a,"link",t),te(a),n.head.appendChild(a)}}}function j1(t,e,n){Nn.S(t,e,n);var a=Mi;if(a&&t){var s=Fa(a).hoistableStyles,r=Di(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(jl(r)))y.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(r))&&Jr(t,n);var b=f=a.createElement("link");te(b),oe(b,"link",t),b._p=new Promise(function(D,R){b.onload=D,b.onerror=R}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,lu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function z1(t,e){Nn.X(t,e);var n=Mi;if(n&&t){var a=Fa(n).hoistableScripts,s=wi(t),r=a.get(s);r||(r=n.querySelector(zl(s)),r||(t=x({src:t,async:!0},e),(e=Ye.get(s))&&Fr(t,e),r=n.createElement("script"),te(r),oe(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function R1(t,e){Nn.M(t,e);var n=Mi;if(n&&t){var a=Fa(n).hoistableScripts,s=wi(t),r=a.get(s);r||(r=n.querySelector(zl(s)),r||(t=x({src:t,async:!0,type:"module"},e),(e=Ye.get(s))&&Fr(t,e),r=n.createElement("script"),te(r),oe(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function tp(t,e,n,a){var s=(s=rt.current)?iu(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Di(n.href),n=Fa(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Di(n.href);var r=Fa(s).hoistableStyles,f=r.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=s.querySelector(jl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Ye.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ye.set(t,n),r||V1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wi(n),n=Fa(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Di(t){return'href="'+ze(t)+'"'}function jl(t){return'link[rel="stylesheet"]['+t+"]"}function ep(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function V1(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),oe(e,"link",n),te(e),t.head.appendChild(e))}function wi(t){return'[src="'+ze(t)+'"]'}function zl(t){return"script[async]"+t}function np(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ze(n.href)+'"]');if(a)return e.instance=a,te(a),a;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),te(a),oe(a,"style",s),lu(a,n.precedence,t),e.instance=a;case"stylesheet":s=Di(n.href);var r=t.querySelector(jl(s));if(r)return e.state.loading|=4,e.instance=r,te(r),r;a=ep(n),(s=Ye.get(s))&&Jr(a,s),r=(t.ownerDocument||t).createElement("link"),te(r);var f=r;return f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),oe(r,"link",a),e.state.loading|=4,lu(r,n.precedence,t),e.instance=r;case"script":return r=wi(n.src),(s=t.querySelector(zl(r)))?(e.instance=s,te(s),s):(a=n,(s=Ye.get(r))&&(a=x({},n),Fr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),te(s),oe(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,lu(a,n.precedence,t));return e.instance}function lu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)r=y;else if(r!==s)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Jr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Fr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var su=null;function ap(t,e,n){if(su===null){var a=new Map,s=su=new Map;s.set(n,a)}else s=su,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[Ji]||r[et]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(r):a.set(f,[r])}}return a}function ip(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function lp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U1(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Di(a.href),r=e.querySelector(jl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=uu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,te(r);return}r=e.ownerDocument||e,a=ep(a),(s=Ye.get(s))&&Jr(a,s),r=r.createElement("link"),te(r);var f=r;f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),oe(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=uu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Pr=0;function B1(t,e){return t.stylesheets&&t.count===0&&ru(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&ru(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Pr===0&&(Pr=62500*g1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ru(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Pr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ou=null;function ru(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ou=new Map,e.forEach(L1,t),ou=null,uu.call(t))}function L1(t,e){if(!(e.state.loading&4)){var n=ou.get(t);if(n)var a=n.get(null);else{n=new Map,ou.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var f=s[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||a,r===a&&n.set(null,s),n.set(f,s),this.count++,a=uu.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var Rl={$$typeof:X,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function H1(t,e,n,a,s,r,f,y,b){this.tag=1,this.containerInfo=t,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=Ka(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.hiddenUpdates=Ka(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function sp(t,e,n,a,s,r,f,y,b,D,R,B){return t=new H1(t,e,n,f,b,D,R,B,y),e=1,r===!0&&(e|=24),r=Ce(3,null,null,e),t.current=r,r.stateNode=t,e=Oo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},Ro(r),t}function up(t){return t?(t=li,t):li}function op(t,e,n,a,s,r){s=up(s),a.context===null?a.context=s:a.pendingContext=s,a=Xn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=Kn(t,a,e),n!==null&&(Te(n,t,e),fl(n,t,e))}function rp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Wr(t,e){rp(t,e),(t=t.alternate)&&rp(t,e)}function cp(t){if(t.tag===13||t.tag===31){var e=va(t,67108864);e!==null&&Te(e,t,67108864),Wr(t,67108864)}}function fp(t){if(t.tag===13||t.tag===31){var e=Ne();e=da(e);var n=va(t,e);n!==null&&Te(n,t,e),Wr(t,e)}}var cu=!0;function Y1(t,e,n,a){var s=j.T;j.T=null;var r=H.p;try{H.p=2,$r(t,e,n,a)}finally{H.p=r,j.T=s}}function q1(t,e,n,a){var s=j.T;j.T=null;var r=H.p;try{H.p=8,$r(t,e,n,a)}finally{H.p=r,j.T=s}}function $r(t,e,n,a){if(cu){var s=Ir(a);if(s===null)Lr(t,e,a,fu,n),dp(t,a);else if(X1(s,t,e,n,a))a.stopPropagation();else if(dp(t,a),e&4&&-1<G1.indexOf(t)){for(;s!==null;){var r=Ja(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Ie(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var b=1<<31-ie(f);y.entanglements[1]|=b,f&=~b}sn(r),(At&6)===0&&(ks=ae()+500,Dl(0))}}break;case 31:case 13:y=va(r,2),y!==null&&Te(y,r,2),Fs(),Wr(r,2)}if(r=Ir(a),r===null&&Lr(t,e,a,fu,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else Lr(t,e,a,null,n)}}function Ir(t){return t=to(t),tc(t)}var fu=null;function tc(t){if(fu=null,t=ka(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return fu=t,null}function hp(t){switch(t){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(Gu()){case Qi:return 2;case fa:return 8;case fn:case es:return 32;case Zi:return 268435456;default:return 32}default:return 32}}var ec=!1,ea=null,na=null,aa=null,Vl=new Map,_l=new Map,ia=[],G1="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 dp(t,e){switch(t){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":Vl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(e.pointerId)}}function Ul(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=Ja(e),e!==null&&cp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function X1(t,e,n,a,s){switch(e){case"focusin":return ea=Ul(ea,t,e,n,a,s),!0;case"dragenter":return na=Ul(na,t,e,n,a,s),!0;case"mouseover":return aa=Ul(aa,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return Vl.set(r,Ul(Vl.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,_l.set(r,Ul(_l.get(r)||null,t,e,n,a,s)),!0}return!1}function mp(t){var e=ka(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,ku(t.priority,function(){fp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,ku(t.priority,function(){fp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ir(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Iu=a,n.target.dispatchEvent(a),Iu=null}else return e=Ja(n),e!==null&&cp(e),t.blockedOn=n,!1;e.shift()}return!0}function pp(t,e,n){hu(t)&&n.delete(e)}function K1(){ec=!1,ea!==null&&hu(ea)&&(ea=null),na!==null&&hu(na)&&(na=null),aa!==null&&hu(aa)&&(aa=null),Vl.forEach(pp),_l.forEach(pp)}function du(t,e){t.blockedOn===e&&(t.blockedOn=null,ec||(ec=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,K1)))}var mu=null;function yp(t){mu!==t&&(mu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){mu===t&&(mu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],s=t[e+2];if(typeof a!="function"){if(tc(a||n)===null)continue;break}var r=Ja(n);r!==null&&(t.splice(e,3),e-=3,Io(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Oi(t){function e(b){return du(b,t)}ea!==null&&du(ea,t),na!==null&&du(na,t),aa!==null&&du(aa,t),Vl.forEach(e),_l.forEach(e);for(var n=0;n<ia.length;n++){var a=ia[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&ia.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[Mt]||null;if(typeof r=="function")f||yp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[Mt]||null)y=f.formAction;else if(tc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),yp(n)}}}function gp(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function nc(t){this._internalRoot=t}pu.prototype.render=nc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ne();op(n,a,t,e,null,null)},pu.prototype.unmount=nc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;op(t.current,2,null,t,null,null),Fs(),e[Ae]=null}};function pu(t){this._internalRoot=t}pu.prototype.unstable_scheduleHydration=function(t){if(t){var e=en();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ia.length&&e!==0&&e<ia[n].priority;n++);ia.splice(n,0,t),n===0&&mp(t)}};var vp=l.version;if(vp!=="19.2.4")throw Error(o(527,vp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Q1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{Vn=yu.inject(Q1),Ht=yu}catch{}}return Ll.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=Cd,r=Md,f=Dd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=sp(t,1,!1,null,null,n,a,null,s,r,f,gp),t[Ae]=e.current,Br(t),new nc(e)},Ll.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=Cd,f=Md,y=Dd,b=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(b=n.formState)),e=sp(t,1,!0,e,n??null,a,s,b,r,f,y,gp),e.context=up(null),n=e.current,a=Ne(),a=da(a),s=Xn(a),s.callback=null,Kn(n,s,a),n=a,e.current.lanes=n,_n(e,n),sn(e),t[Ae]=e.current,Br(t),new pu(e)},Ll.version="19.2.4",Ll}var wp;function ex(){if(wp)return lc.exports;wp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),lc.exports=tx(),lc.exports}var nx=ex();const xA=Fy(nx);const Py=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const ax=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ix=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const Op=i=>{const l=ix(i);return l.charAt(0).toUpperCase()+l.slice(1)};var lx={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 sx=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const ux=U.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...p},g)=>U.createElement("svg",{ref:g,...lx,width:l,height:l,stroke:i,strokeWidth:o?Number(u)*24/Number(l):u,className:Py("lucide",c),...!d&&!sx(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,v])=>U.createElement(m,v)),...Array.isArray(d)?d:[d]]));const ra=(i,l)=>{const u=U.forwardRef(({className:o,...c},d)=>U.createElement(ux,{ref:d,iconNode:l,className:Py(`lucide-${ax(Op(i))}`,`lucide-${i}`,o),...c}));return u.displayName=Op(i),u};const ox=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],un=ra("arrow-right",ox);const rx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hl=ra("check",rx);const cx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fx=ra("chevron-down",cx);const hx=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],dx=ra("clipboard-paste",hx);const mx=[["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"}]],px=ra("external-link",mx);const yx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ni=ra("loader-circle",yx);const gx=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],vx=ra("mic",gx);const xx=[["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"}]],bx=ra("refresh-cw",xx),Wc=U.createContext({});function $c(i){const l=U.useRef(null);return l.current===null&&(l.current=i()),l.current}const Wy=typeof window<"u",$y=Wy?U.useLayoutEffect:U.useEffect,Uu=U.createContext(null);function Ic(i,l){i.indexOf(l)===-1&&i.push(l)}function wu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const cn=(i,l,u)=>u>l?l:u<i?i:u;let tf=()=>{};const jn={},Iy=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function t0(i){return typeof i=="object"&&i!==null}const e0=i=>/^0[^.\s]+$/u.test(i);function n0(i){let l;return()=>(l===void 0&&(l=i()),l)}const Ge=i=>i,Sx=(i,l)=>u=>l(i(u)),Wl=(...i)=>i.reduce(Sx),Zl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class ef{constructor(){this.subscriptions=[]}add(l){return Ic(this.subscriptions,l),()=>wu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Pe=i=>i*1e3,qe=i=>i/1e3;function a0(i,l){return l?i*(1e3/l):0}const i0=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,Tx=1e-7,Ax=12;function Ex(i,l,u,o,c){let d,h,p=0;do h=l+(u-l)/2,d=i0(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>Tx&&++p<Ax);return h}function $l(i,l,u,o){if(i===l&&u===o)return Ge;const c=d=>Ex(d,0,1,i,u);return d=>d===0||d===1?d:i0(c(d),l,o)}const l0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,s0=i=>l=>1-i(1-l),u0=$l(.33,1.53,.69,.99),nf=s0(u0),o0=l0(nf),r0=i=>(i*=2)<1?.5*nf(i):.5*(2-Math.pow(2,-10*(i-1))),af=i=>1-Math.sin(Math.acos(i)),c0=s0(af),f0=l0(af),Cx=$l(.42,0,1,1),Mx=$l(0,0,.58,1),h0=$l(.42,0,.58,1),Dx=i=>Array.isArray(i)&&typeof i[0]!="number",d0=i=>Array.isArray(i)&&typeof i[0]=="number",wx={linear:Ge,easeIn:Cx,easeInOut:h0,easeOut:Mx,circIn:af,circInOut:f0,circOut:c0,backIn:nf,backInOut:o0,backOut:u0,anticipate:r0},Ox=i=>typeof i=="string",Np=i=>{if(d0(i)){tf(i.length===4);const[l,u,o,c]=i;return $l(l,u,o,c)}else if(Ox(i))return wx[i];return i},gu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nx(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),i()),v(p)}const m={schedule:(v,x=!1,T=!1)=>{const z=T&&c?u:o;return x&&h.add(v),z.has(v)||z.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(p=v,c){d=!0;return}c=!0,[u,o]=[o,u],u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const jx=40;function m0(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=gu.reduce((X,Z)=>(X[Z]=Nx(d),X),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:v,update:x,preRender:T,render:N,postRender:z}=h,q=()=>{const X=jn.useManualTiming?c.timestamp:performance.now();u=!1,jn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,jx),1)),c.timestamp=X,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),v.process(c),x.process(c),T.process(c),N.process(c),z.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(q))},G=()=>{u=!0,o=!0,c.isProcessing||i(q)};return{schedule:gu.reduce((X,Z)=>{const k=h[Z];return X[Z]=(it,$=!1,J=!1)=>(u||G(),k.schedule(it,$,J)),X},{}),cancel:X=>{for(let Z=0;Z<gu.length;Z++)h[gu[Z]].cancel(X)},state:c,steps:h}}const{schedule:jt,cancel:oa,state:re,steps:rc}=m0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let Su;function zx(){Su=void 0}const de={now:()=>(Su===void 0&&de.set(re.isProcessing||jn.useManualTiming?re.timestamp:performance.now()),Su),set:i=>{Su=i,queueMicrotask(zx)}},p0=i=>l=>typeof l=="string"&&l.startsWith(i),y0=p0("--"),Rx=p0("var(--"),lf=i=>Rx(i)?Vx.test(i.split("/*")[0].trim()):!1,Vx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Hi={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},kl={...Hi,transform:i=>cn(0,1,i)},vu={...Hi,default:1},Gl=i=>Math.round(i*1e5)/1e5,sf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _x(i){return i==null}const Ux=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uf=(i,l)=>u=>!!(typeof u=="string"&&Ux.test(u)&&u.startsWith(i)||l&&!_x(u)&&Object.prototype.hasOwnProperty.call(u,l)),g0=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,p]=o.match(sf);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},Bx=i=>cn(0,255,i),cc={...Hi,transform:i=>Math.round(Bx(i))},Ra={test:uf("rgb","red"),parse:g0("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+cc.transform(i)+", "+cc.transform(l)+", "+cc.transform(u)+", "+Gl(kl.transform(o))+")"};function Lx(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Mc={test:uf("#"),parse:Lx,transform:Ra.transform},Il=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),sa=Il("deg"),rn=Il("%"),I=Il("px"),Hx=Il("vh"),Yx=Il("vw"),zp={...rn,parse:i=>rn.parse(i)/100,transform:i=>rn.transform(i*100)},zi={test:uf("hsl","hue"),parse:g0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+rn.transform(Gl(l))+", "+rn.transform(Gl(u))+", "+Gl(kl.transform(o))+")"},Wt={test:i=>Ra.test(i)||Mc.test(i)||zi.test(i),parse:i=>Ra.test(i)?Ra.parse(i):zi.test(i)?zi.parse(i):Mc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ra.transform(i):zi.transform(i),getAnimatableNone:i=>{const l=Wt.parse(i);return l.alpha=0,Wt.transform(l)}},qx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Gx(i){return isNaN(i)&&typeof i=="string"&&(i.match(sf)?.length||0)+(i.match(qx)?.length||0)>0}const v0="number",x0="color",Xx="var",Kx="var(",Rp="${}",Qx=/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 Jl(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(Qx,g=>(Wt.test(g)?(o.color.push(d),c.push(x0),u.push(Wt.parse(g))):g.startsWith(Kx)?(o.var.push(d),c.push(Xx),u.push(g)):(o.number.push(d),c.push(v0),u.push(parseFloat(g))),++d,Rp)).split(Rp);return{values:u,split:p,indexes:o,types:c}}function b0(i){return Jl(i).values}function S0(i){const{split:l,types:u}=Jl(i),o=l.length;return c=>{let d="";for(let h=0;h<o;h++)if(d+=l[h],c[h]!==void 0){const p=u[h];p===v0?d+=Gl(c[h]):p===x0?d+=Wt.transform(c[h]):d+=c[h]}return d}}const Zx=i=>typeof i=="number"?0:Wt.test(i)?Wt.getAnimatableNone(i):i;function kx(i){const l=b0(i);return S0(i)(l.map(Zx))}const We={test:Gx,parse:b0,createTransformer:S0,getAnimatableNone:kx};function fc(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function Jx({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const p=u<.5?u*(1+l):u+l-u*l,g=2*u-p;c=fc(g,p,i+1/3),d=fc(g,p,i),h=fc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function Ou(i,l){return u=>u>0?l:i}const Yt=(i,l,u)=>i+(l-i)*u,hc=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},Fx=[Mc,Ra,zi],Px=i=>Fx.find(l=>l.test(i));function Vp(i){const l=Px(i);if(!l)return!1;let u=l.parse(i);return l===zi&&(u=Jx(u)),u}const _p=(i,l)=>{const u=Vp(i),o=Vp(l);if(!u||!o)return Ou(i,l);const c={...u};return d=>(c.red=hc(u.red,o.red,d),c.green=hc(u.green,o.green,d),c.blue=hc(u.blue,o.blue,d),c.alpha=Yt(u.alpha,o.alpha,d),Ra.transform(c))},Dc=new Set(["none","hidden"]);function Wx(i,l){return Dc.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function $x(i,l){return u=>Yt(i,l,u)}function of(i){return typeof i=="number"?$x:typeof i=="string"?lf(i)?Ou:Wt.test(i)?_p:eb:Array.isArray(i)?T0:typeof i=="object"?Wt.test(i)?_p:Ix:Ou}function T0(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>of(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function Ix(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=of(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function tb(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],p=i.values[h]??0;u[c]=p,o[d]++}return u}const eb=(i,l)=>{const u=We.createTransformer(l),o=Jl(i),c=Jl(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Dc.has(i)&&!c.values.length||Dc.has(l)&&!o.values.length?Wx(i,l):Wl(T0(tb(o,c),c.values),u):Ou(i,l)};function A0(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Yt(i,l,u):of(i)(i,l)}const nb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>jt.update(l,u),stop:()=>oa(l),now:()=>re.isProcessing?re.timestamp:de.now()}},E0=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Nu=2e4;function rf(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<Nu;)l+=u,o=i.next(l);return l>=Nu?1/0:l}function ab(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(rf(o),Nu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:qe(c)}}const ib=5;function C0(i,l,u){const o=Math.max(l-ib,0);return a0(u-i(o),l-o)}const Xt={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},dc=.001;function lb({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:u=Xt.velocity,mass:o=Xt.mass}){let c,d,h=1-l;h=cn(Xt.minDamping,Xt.maxDamping,h),i=cn(Xt.minDuration,Xt.maxDuration,qe(i)),h<1?(c=m=>{const v=m*h,x=v*i,T=v-u,N=wc(m,h),z=Math.exp(-x);return dc-T/N*z},d=m=>{const x=m*h*i,T=x*u+u,N=Math.pow(h,2)*Math.pow(m,2)*i,z=Math.exp(-x),q=wc(Math.pow(m,2),h);return(-c(m)+dc>0?-1:1)*((T-N)*z)/q}):(c=m=>{const v=Math.exp(-m*i),x=(m-u)*i+1;return-dc+v*x},d=m=>{const v=Math.exp(-m*i),x=(u-m)*(i*i);return v*x});const p=5/i,g=ub(c,d,p);if(i=Pe(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:i}}}const sb=12;function ub(i,l,u){let o=u;for(let c=1;c<sb;c++)o=o-i(o)/l(o);return o}function wc(i,l){return i*Math.sqrt(1-l*l)}const ob=["duration","bounce"],rb=["stiffness","damping","mass"];function Up(i,l){return l.some(u=>i[u]!==void 0)}function cb(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Up(i,rb)&&Up(i,ob))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*cn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:d}}else{const u=lb({...i,velocity:0});l={...l,...u,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function ju(i=Xt.visualDuration,l=Xt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:x,velocity:T,isResolvedFromDuration:N}=cb({...u,velocity:-qe(u.velocity||0)}),z=T||0,q=m/(2*Math.sqrt(g*v)),G=h-d,Y=qe(Math.sqrt(g/v)),Q=Math.abs(G)<5;o||(o=Q?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=Q?Xt.restDelta.granular:Xt.restDelta.default);let X;if(q<1){const k=wc(Y,q);X=it=>{const $=Math.exp(-q*Y*it);return h-$*((z+q*Y*G)/k*Math.sin(k*it)+G*Math.cos(k*it))}}else if(q===1)X=k=>h-Math.exp(-Y*k)*(G+(z+Y*G)*k);else{const k=Y*Math.sqrt(q*q-1);X=it=>{const $=Math.exp(-q*Y*it),J=Math.min(k*it,300);return h-$*((z+q*Y*G)*Math.sinh(J)+k*G*Math.cosh(J))/k}}const Z={calculatedDuration:N&&x||null,next:k=>{const it=X(k);if(N)p.done=k>=x;else{let $=k===0?z:0;q<1&&($=k===0?Pe(z):C0(X,k,it));const J=Math.abs($)<=o,st=Math.abs(h-it)<=c;p.done=J&&st}return p.value=p.done?h:it,p},toString:()=>{const k=Math.min(rf(Z),Nu),it=E0($=>Z.next(k*$).value,k,30);return k+"ms "+it},toTransition:()=>{}};return Z}ju.applyToOptions=i=>{const l=ab(i,100,ju);return i.ease=l.ease,i.duration=Pe(l.duration),i.type="keyframes",i};function Oc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:v}){const x=i[0],T={done:!1,value:x},N=J=>p!==void 0&&J<p||g!==void 0&&J>g,z=J=>p===void 0?g:g===void 0||Math.abs(p-J)<Math.abs(g-J)?p:g;let q=u*l;const G=x+q,Y=h===void 0?G:h(G);Y!==G&&(q=Y-x);const Q=J=>-q*Math.exp(-J/o),X=J=>Y+Q(J),Z=J=>{const st=Q(J),Tt=X(J);T.done=Math.abs(st)<=m,T.value=T.done?Y:Tt};let k,it;const $=J=>{N(T.value)&&(k=J,it=ju({keyframes:[T.value,z(T.value)],velocity:C0(X,J,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return $(0),{calculatedDuration:null,next:J=>{let st=!1;return!it&&k===void 0&&(st=!0,Z(J),$(J)),k!==void 0&&J>=k?it.next(J-k):(!st&&Z(J),T)}}}function fb(i,l,u){const o=[],c=u||jn.mix||A0,d=i.length-1;for(let h=0;h<d;h++){let p=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||Ge:l;p=Wl(g,p)}o.push(p)}return o}function hb(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(tf(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const p=fb(l,o,c),g=p.length,m=v=>{if(h&&v<i[0])return l[0];let x=0;if(g>1)for(;x<i.length-2&&!(v<i[x+1]);x++);const T=Zl(i[x],i[x+1],v);return p[x](T)};return u?v=>m(cn(i[0],i[d-1],v)):m}function db(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=Zl(0,l,o);i.push(Yt(u,1,c))}}function mb(i){const l=[0];return db(l,i.length-1),l}function pb(i,l){return i.map(u=>u*l)}function yb(i,l){return i.map(()=>l||h0).splice(0,i.length-1)}function Xl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=Dx(o)?o.map(Np):Np(o),d={done:!1,value:l[0]},h=pb(u&&u.length===l.length?u:mb(l),i),p=hb(h,l,{ease:Array.isArray(c)?c:yb(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const gb=i=>i!==null;function cf(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(gb),p=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const vb={decay:Oc,inertia:Oc,tween:Xl,keyframes:Xl,spring:ju};function M0(i){typeof i.type=="string"&&(i.type=vb[i.type])}class ff{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const xb=i=>i/100;class hf extends ff{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:u}=this.options;u&&u.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;M0(l);const{type:u=Xl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=u||Xl;g!==Xl&&typeof p[0]!="number"&&(this.mixKeyframes=Wl(xb,A0(p[0],p[1])),p=[0,100]);const m=g({...l,keyframes:p});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=rf(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:x,repeatType:T,repeatDelay:N,type:z,onUpdate:q,finalKeyframe:G}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),u?this.currentTime=l:this.updateTime(l);const Y=this.currentTime-m*(this.playbackSpeed>=0?1:-1),Q=this.playbackSpeed>=0?Y<0:Y>c;this.currentTime=Math.max(Y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let X=this.currentTime,Z=o;if(x){const J=Math.min(this.currentTime,c)/p;let st=Math.floor(J),Tt=J%1;!Tt&&J>=1&&(Tt=1),Tt===1&&st--,st=Math.min(st,x+1),st%2&&(T==="reverse"?(Tt=1-Tt,N&&(Tt-=N/p)):T==="mirror"&&(Z=h)),X=cn(0,1,Tt)*p}const k=Q?{done:!1,value:v[0]}:Z.next(X);d&&(k.value=d(k.value));let{done:it}=k;!Q&&g!==null&&(it=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return $&&z!==Oc&&(k.value=cf(v,this.options,G,this.speed)),q&&q(k.value),$&&this.finish(),k}then(l,u){return this.finished.then(l,u)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(this.currentTime)}set time(l){l=Pe(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(de.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=nb,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),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(de.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(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function bb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Va=i=>i*180/Math.PI,Nc=i=>{const l=Va(Math.atan2(i[1],i[0]));return jc(l)},Sb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Nc,rotateZ:Nc,skewX:i=>Va(Math.atan(i[1])),skewY:i=>Va(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},jc=i=>(i=i%360,i<0&&(i+=360),i),Bp=Nc,Lp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Hp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Tb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Lp,scaleY:Hp,scale:i=>(Lp(i)+Hp(i))/2,rotateX:i=>jc(Va(Math.atan2(i[6],i[5]))),rotateY:i=>jc(Va(Math.atan2(-i[2],i[0]))),rotateZ:Bp,rotate:Bp,skewX:i=>Va(Math.atan(i[4])),skewY:i=>Va(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function zc(i){return i.includes("scale")?1:0}function Rc(i,l){if(!i||i==="none")return zc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=Tb,c=u;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Sb,c=p}if(!c)return zc(l);const d=o[l],h=c[1].split(",").map(Eb);return typeof d=="function"?d(h):h[d]}const Ab=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return Rc(u,l)};function Eb(i){return parseFloat(i.trim())}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qi=new Set(Yi),Yp=i=>i===Hi||i===I,Cb=new Set(["x","y","z"]),Mb=Yi.filter(i=>!Cb.has(i));function Db(i){const l=[];return Mb.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const ua={width:({x:i},{paddingLeft:l="0",paddingRight:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),height:({y:i},{paddingTop:l="0",paddingBottom:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>Rc(l,"x"),y:(i,{transform:l})=>Rc(l,"y")};ua.translateX=ua.x;ua.translateY=ua.y;const _a=new Set;let Vc=!1,_c=!1,Uc=!1;function D0(){if(_c){const i=Array.from(_a).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=Db(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}_c=!1,Vc=!1,_a.forEach(i=>i.complete(Uc)),_a.clear()}function w0(){_a.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(_c=!0)})}function wb(){Uc=!0,w0(),D0(),Uc=!1}class df{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(_a.add(this),Vc||(Vc=!0,jt.read(w0),jt.resolveKeyframes(D0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&u){const p=o.readValue(u,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}bb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),_a.delete(this)}cancel(){this.state==="scheduled"&&(_a.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ob=i=>i.startsWith("--");function Nb(i,l,u){Ob(l)?i.style.setProperty(l,u):i.style[l]=u}const jb={};function O0(i,l){const u=n0(i);return()=>jb[l]??u()}const zb=O0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),N0=O0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ql=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,qp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ql([0,.65,.55,1]),circOut:ql([.55,0,1,.45]),backIn:ql([.31,.01,.66,-.59]),backOut:ql([.33,1.53,.69,.99])};function j0(i,l){if(i)return typeof i=="function"?N0()?E0(i,l):"ease-out":d0(i)?ql(i):Array.isArray(i)?i.map(u=>j0(u,l)||qp.easeOut):qp[i]}function Rb(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const x=j0(p,c);Array.isArray(x)&&(v.easing=x);const T={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(v,T)}function z0(i){return typeof i=="function"&&"applyToOptions"in i}function Vb({type:i,...l}){return z0(i)&&N0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class R0 extends ff{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,tf(typeof l.type!="string");const m=Vb(l);this.animation=Rb(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=cf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(v):Nb(u,o,v),this.animation.cancel()}g?.(),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:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return qe(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+qe(l)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Pe(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&zb()?(this.animation.timeline=l,Ge):u(this)}}const V0={anticipate:r0,backInOut:o0,circInOut:f0};function _b(i){return i in V0}function Ub(i){typeof i.ease=="string"&&_b(i.ease)&&(i.ease=V0[i.ease])}const mc=10;class Bb extends R0{constructor(l){Ub(l),M0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const p=new hf({...h,autoplay:!1}),g=Math.max(mc,de.now()-this.startTime),m=cn(0,mc,g-mc);u.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const Gp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(We.test(i)||i==="0")&&!i.startsWith("url("));function Lb(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function Hb(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Gp(c,l),p=Gp(d,l);return!h||!p?!1:Lb(i)||(u==="spring"||z0(u))&&o}function Bc(i){i.duration=0,i.type="keyframes"}const Yb=new Set(["opacity","clipPath","filter","transform"]),qb=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Gb(i){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return qb()&&u&&Yb.has(u)&&(u!=="transform"||!m)&&!g&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const Xb=40;class Kb extends ff{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=de.now();const T={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...x},N=v?.KeyframeResolver||df;this.keyframeResolver=new N(p,(z,q,G)=>this.onKeyframesResolved(z,q,T,!G),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=de.now(),Hb(l,d,h,p)||((jn.instantAnimations||!g)&&v?.(cf(l,o,u)),l[0]=l[l.length-1],Bc(o),o.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Xb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},N=!m&&Gb(T),z=T.motionValue?.owner?.current,q=N?new Bb({...T,element:z}):new hf(T);q.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=q.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=q}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function _0(i,l,u,o=0,c=1){const d=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=i.size,p=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:p-d*o}const Qb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zb(i){const l=Qb.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function U0(i,l,u=1){const[o,c]=Zb(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return Iy(h)?parseFloat(h):h}return lf(c)?U0(c,l,u+1):c}const kb={type:"spring",stiffness:500,damping:25,restSpeed:10},Jb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),Fb={type:"keyframes",duration:.8},Pb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wb=(i,{keyframes:l})=>l.length>2?Fb:qi.has(i)?i.startsWith("scale")?Jb(l[1]):kb:Pb,$b=i=>i!==null;function Ib(i,{repeat:l,repeatType:u="loop"},o){const c=i.filter($b),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function B0(i,l){if(i?.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function mf(i,l){const u=i?.[l]??i?.default??i;return u!==i?B0(u,i):u}function tS({when:i,delay:l,delayChildren:u,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...v}){return!!Object.keys(v).length}const pf=(i,l,u,o={},c,d)=>h=>{const p=mf(o,i)||{},g=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-Pe(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:T=>{l.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:d?void 0:c};tS(p)||Object.assign(v,Wb(i,v)),v.duration&&(v.duration=Pe(v.duration)),v.repeatDelay&&(v.repeatDelay=Pe(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Bc(v),v.delay===0&&(x=!0)),(jn.instantAnimations||jn.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,Bc(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,x&&!d&&l.get()!==void 0){const T=Ib(v.keyframes,p);if(T!==void 0){jt.update(()=>{v.onUpdate(T),v.onComplete()});return}}return p.isSync?new hf(v):new Kb(v)};function Xp(i){const l=[{},{}];return i?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function yf(i,l,u,o){if(typeof l=="function"){const[c,d]=Xp(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Xp(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function Bi(i,l,u){const o=i.getProps();return yf(o,l,u!==void 0?u:o.custom,i)}const L0=new Set(["width","height","top","left","right","bottom",...Yi]),Kp=30,eS=i=>!isNaN(parseFloat(i));class nS{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=de.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=de.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=eS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new ef);const o=this.events[l].add(u);return l==="change"?()=>{o(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Kp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Kp);return a0(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),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 Li(i,l){return new nS(i,l)}const Lc=i=>Array.isArray(i);function aS(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,Li(u))}function iS(i){return Lc(i)?i[i.length-1]||0:i}function lS(i,l){const u=Bi(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const p=iS(d[h]);aS(i,h,p)}}const fe=i=>!!(i&&i.getVelocity);function sS(i){return!!(fe(i)&&i.add)}function Hc(i,l){const u=i.getValue("willChange");if(sS(u))return u.add(l);if(!u&&jn.WillChange){const o=new jn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function gf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const uS="framerAppearId",H0="data-"+gf(uS);function Y0(i){return i.props[H0]}function oS({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function q0(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?B0(d,g):g;const m=d?.reduceMotion;o&&(d=o);const v=[],x=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const N=i.getValue(T,i.latestValues[T]??null),z=p[T];if(z===void 0||x&&oS(x,T))continue;const q={delay:u,...mf(d||{},T)},G=N.get();if(G!==void 0&&!N.isAnimating&&!Array.isArray(z)&&z===G&&!q.velocity)continue;let Y=!1;if(window.MotionHandoffAnimation){const Z=Y0(i);if(Z){const k=window.MotionHandoffAnimation(Z,T,jt);k!==null&&(q.startTime=k,Y=!0)}}Hc(i,T);const Q=m??i.shouldReduceMotion;N.start(pf(T,N,z,Q&&L0.has(T)?{type:!1}:q,i,Y));const X=N.animation;X&&v.push(X)}if(h){const T=()=>jt.update(()=>{h&&lS(i,h)});v.length?Promise.all(v).then(T):T()}return v}function Yc(i,l,u={}){const o=Bi(i,l,u.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(q0(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:x}=c;return rS(i,l,g,m,v,x,u)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(u.delay)])}function rS(i,l,u=0,o=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(Yc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+_0(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function cS(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>Yc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=Yc(i,l,u);else{const c=typeof l=="function"?Bi(i,l,u.custom):l;o=Promise.all(q0(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const fS={test:i=>i==="auto",parse:i=>i},G0=i=>l=>l.test(i),X0=[Hi,I,rn,sa,Yx,Hx,fS],Qp=i=>X0.find(G0(i));function hS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||e0(i):!0}const dS=new Set(["brightness","contrast","saturate","opacity"]);function mS(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(sf)||[];if(!o)return i;const c=u.replace(o,"");let d=dS.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const pS=/\b([a-z-]*)\(.*?\)/gu,qc={...We,getAnimatableNone:i=>{const l=i.match(pS);return l?l.map(mS).join(" "):i}},Gc={...We,getAnimatableNone:i=>{const l=We.parse(i);return We.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Zp={...Hi,transform:Math.round},yS={rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:vu,scaleX:vu,scaleY:vu,scaleZ:vu,skew:sa,skewX:sa,skewY:sa,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:kl,originX:zp,originY:zp,originZ:I},vf={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...yS,zIndex:Zp,fillOpacity:kl,strokeOpacity:kl,numOctaves:Zp},gS={...vf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:qc,WebkitFilter:qc,mask:Gc,WebkitMask:Gc},K0=i=>gS[i],vS=new Set([qc,Gc]);function Q0(i,l){let u=K0(i);return vS.has(u)||(u=We),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const xS=new Set(["auto","none","0"]);function bS(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!xS.has(d)&&Jl(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Q0(u,c)}class SS extends df{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let x=l[v];if(typeof x=="string"&&(x=x.trim(),lf(x))){const T=U0(x,u.current);T!==void 0&&(l[v]=T),v===l.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!L0.has(o)||l.length!==2)return;const[c,d]=l,h=Qp(c),p=Qp(d),g=jp(c),m=jp(d);if(g!==m&&ua[o]){this.needsMeasurement=!0;return}if(h!==p)if(Yp(h)&&Yp(p))for(let v=0;v<l.length;v++){const x=l[v];typeof x=="string"&&(l[v]=parseFloat(x))}else ua[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||hS(l[c]))&&o.push(c);o.length&&bS(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ua[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=ua[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const TS=new Set(["opacity","clipPath","filter","transform"]);function Z0(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=u?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const k0=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Xc(i){return t0(i)&&"offsetHeight"in i}const{schedule:xf}=m0(queueMicrotask,!1),Fe={x:!1,y:!1};function J0(){return Fe.x||Fe.y}function AS(i){return i==="x"||i==="y"?Fe[i]?null:(Fe[i]=!0,()=>{Fe[i]=!1}):Fe.x||Fe.y?null:(Fe.x=Fe.y=!0,()=>{Fe.x=Fe.y=!1})}function F0(i,l){const u=Z0(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function ES(i){return!(i.pointerType==="touch"||J0())}function CS(i,l,u={}){const[o,c,d]=F0(i,u);return o.forEach(h=>{let p=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",z)},x=G=>{m&&(m(G),m=void 0),v()},T=G=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,x(G))},N=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},z=G=>{if(G.pointerType!=="touch"){if(p){g=!0;return}x(G)}},q=G=>{if(!ES(G))return;g=!1;const Y=l(h,G);typeof Y=="function"&&(m=Y,h.addEventListener("pointerleave",z,c))};h.addEventListener("pointerenter",q,c),h.addEventListener("pointerdown",N,c)}),d}const P0=(i,l)=>l?i===l?!0:P0(i,l.parentElement):!1,bf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,MS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DS(i){return MS.has(i.tagName)||i.isContentEditable===!0}const wS=new Set(["INPUT","SELECT","TEXTAREA"]);function OS(i){return wS.has(i.tagName)||i.isContentEditable===!0}const Tu=new WeakSet;function kp(i){return l=>{l.key==="Enter"&&i(l)}}function pc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const NS=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=kp(()=>{if(Tu.has(u))return;pc(u,"down");const c=kp(()=>{pc(u,"up")}),d=()=>pc(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function Jp(i){return bf(i)&&!J0()}const Fp=new WeakSet;function jS(i,l,u={}){const[o,c,d]=F0(i,u),h=p=>{const g=p.currentTarget;if(!Jp(p)||Fp.has(p))return;Tu.add(g),u.stopPropagation&&Fp.add(p);const m=l(g,p),v=(N,z)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",T),Tu.has(g)&&Tu.delete(g),Jp(N)&&typeof m=="function"&&m(N,{success:z})},x=N=>{v(N,g===window||g===document||u.useGlobalTarget||P0(g,N.target))},T=N=>{v(N,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",T,c)};return o.forEach(p=>{(u.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),Xc(p)&&(p.addEventListener("focus",m=>NS(m,c)),!DS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Sf(i){return t0(i)&&"ownerSVGElement"in i}const Au=new WeakMap;let Eu;const W0=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:Sf(o)&&"getBBox"in o?o.getBBox()[l]:o[u],zS=W0("inline","width","offsetWidth"),RS=W0("block","height","offsetHeight");function VS({target:i,borderBoxSize:l}){Au.get(i)?.forEach(u=>{u(i,{get width(){return zS(i,l)},get height(){return RS(i,l)}})})}function _S(i){i.forEach(VS)}function US(){typeof ResizeObserver>"u"||(Eu=new ResizeObserver(_S))}function BS(i,l){Eu||US();const u=Z0(i);return u.forEach(o=>{let c=Au.get(o);c||(c=new Set,Au.set(o,c)),c.add(l),Eu?.observe(o)}),()=>{u.forEach(o=>{const c=Au.get(o);c?.delete(l),c?.size||Eu?.unobserve(o)})}}const Cu=new Set;let Ri;function LS(){Ri=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Cu.forEach(l=>l(i))},window.addEventListener("resize",Ri)}function HS(i){return Cu.add(i),Ri||LS(),()=>{Cu.delete(i),!Cu.size&&typeof Ri=="function"&&(window.removeEventListener("resize",Ri),Ri=void 0)}}function Pp(i,l){return typeof i=="function"?HS(i):BS(i,l)}function YS(i){return Sf(i)&&i.tagName==="svg"}const qS=[...X0,Wt,We],GS=i=>qS.find(G0(i)),Wp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vi=()=>({x:Wp(),y:Wp()}),$p=()=>({min:0,max:0}),It=()=>({x:$p(),y:$p()}),XS=new WeakMap;function Bu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Fl(i){return typeof i=="string"||Array.isArray(i)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Af=["initial",...Tf];function Lu(i){return Bu(i.animate)||Af.some(l=>Fl(i[l]))}function $0(i){return!!(Lu(i)||i.variants)}function KS(i,l,u){for(const o in l){const c=l[o],d=u[o];if(fe(c))i.addValue(o,c);else if(fe(d))i.addValue(o,Li(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,Li(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Kc={current:null},I0={current:!1},QS=typeof window<"u";function ZS(){if(I0.current=!0,!!QS)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Kc.current=i.matches;i.addEventListener("change",l),l()}else Kc.current=!1}const Ip=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let zu={};function tg(i){zu=i}function kS(){return zu}class JS{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:p},g={}){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=df,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 N=de.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,jt.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=Lu(u),this.isVariantNode=$0(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:x,...T}=this.scrapeMotionValuesFromProps(u,{},this);for(const N in T){const z=T[N];m[N]!==void 0&&fe(z)&&z.set(m[N])}}mount(l){if(this.hasBeenMounted)for(const u in this.initialValues)this.values.get(u)?.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=l,XS.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,o)=>this.bindToMotionValue(o,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(I0.current||ZS(),this.shouldReduceMotion=Kc.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(),oa(this.notifyUpdate),oa(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const u=this.features[l];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&TS.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:v}=u.accelerate,x=new R0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:Pe(v)}),T=h(x);this.valueSubscriptions.set(l,()=>{T(),x.cancel()});return}const o=qi.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&jt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in zu){const u=zu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<Ip.length;o++){const c=Ip[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=KS(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=Li(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Iy(o)||e0(o))?o=parseFloat(o):!GS(o)&&We.test(u)&&(o=Q0(l,u)),this.setBaseTarget(l,fe(o)?o.get():o)),fe(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const d=yf(this.props,u,this.presenceContext?.custom);d&&(o=d[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!fe(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new ef),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){xf.render(this.render)}}class eg extends JS{constructor(){super(...arguments),this.KeyframeResolver=SS}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;fe(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class ca{constructor(l){this.isMounted=!1,this.node=l}update(){}}function ng({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function FS({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function PS(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function yc(i){return i===void 0||i===1}function Qc({scale:i,scaleX:l,scaleY:u}){return!yc(i)||!yc(l)||!yc(u)}function za(i){return Qc(i)||ag(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function ag(i){return ty(i.x)||ty(i.y)}function ty(i){return i&&i!=="0%"}function Ru(i,l,u){const o=i-u,c=l*o;return u+c}function ey(i,l,u,o,c){return c!==void 0&&(i=Ru(i,c,o)),Ru(i,u,o)+l}function Zc(i,l=0,u=1,o,c){i.min=ey(i.min,l,u,o,c),i.max=ey(i.max,l,u,o,c)}function ig(i,{x:l,y:u}){Zc(i.x,l.translate,l.scale,l.originPoint),Zc(i.y,u.translate,u.scale,u.originPoint)}const ny=.999999999999,ay=1.0000000000001;function WS(i,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=u[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ui(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,ig(i,h)),o&&za(d.latestValues)&&Ui(i,d.latestValues))}l.x<ay&&l.x>ny&&(l.x=1),l.y<ay&&l.y>ny&&(l.y=1)}function _i(i,l){i.min=i.min+l,i.max=i.max+l}function iy(i,l,u,o,c=.5){const d=Yt(i.min,i.max,c);Zc(i,l,u,d,o)}function Ui(i,l){iy(i.x,l.x,l.scaleX,l.scale,l.originX),iy(i.y,l.y,l.scaleY,l.scale,l.originY)}function lg(i,l){return ng(PS(i.getBoundingClientRect(),l))}function $S(i,l,u){const o=lg(i,u),{scroll:c}=l;return c&&(_i(o.x,c.offset.x),_i(o.y,c.offset.y)),o}const IS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tT=Yi.length;function eT(i,l,u){let o="",c=!0;for(let d=0;d<tT;d++){const h=Yi[d],p=i[h];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(h.startsWith("scale")?1:0);else{const m=parseFloat(p);g=h.startsWith("scale")?m===1:m===0}if(!g||u){const m=k0(p,vf[h]);if(!g){c=!1;const v=IS[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Ef(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(qi.has(g)){h=!0;continue}else if(y0(g)){c[g]=m;continue}else{const v=k0(m,vf[g]);g.startsWith("origin")?(p=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=eT(l,i.transform,u):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function sg(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function ly(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const Yl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const u=ly(i,l.target.x),o=ly(i,l.target.y);return`${u}% ${o}%`}},nT={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=We.parse(i);if(c.length>5)return o;const d=We.createTransformer(i),h=typeof c[0]!="number"?1:0,p=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Yt(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},kc={borderRadius:{...Yl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yl,borderTopRightRadius:Yl,borderBottomLeftRadius:Yl,borderBottomRightRadius:Yl,boxShadow:nT};function ug(i,{layout:l,layoutId:u}){return qi.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!kc[i]||i==="opacity")}function Cf(i,l,u){const o=i.style,c=l?.style,d={};if(!o)return d;for(const h in o)(fe(o[h])||c&&fe(c[h])||ug(h,i)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function aT(i){return window.getComputedStyle(i)}class iT extends eg{constructor(){super(...arguments),this.type="html",this.renderInstance=sg}readValueFromInstance(l,u){if(qi.has(u))return this.projection?.isProjecting?zc(u):Ab(l,u);{const o=aT(l),c=(y0(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return lg(l,u)}build(l,u,o){Ef(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return Cf(l,u,o)}}const lT={offset:"stroke-dashoffset",array:"stroke-dasharray"},sT={offset:"strokeDashoffset",array:"strokeDasharray"};function uT(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?lT:sT;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const oT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function og(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,v){if(Ef(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:x,style:T}=i;x.transform&&(T.transform=x.transform,delete x.transform),(T.transform||x.transformOrigin)&&(T.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),T.transform&&(T.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const N of oT)x[N]!==void 0&&(T[N]=x[N],delete x[N]);l!==void 0&&(x.x=l),u!==void 0&&(x.y=u),o!==void 0&&(x.scale=o),c!==void 0&&uT(x,c,d,h,!1)}const rg=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"]),cg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function rT(i,l,u,o){sg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(rg.has(c)?c:gf(c),l.attrs[c])}function fg(i,l,u){const o=Cf(i,l,u);for(const c in i)if(fe(i[c])||fe(l[c])){const d=Yi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class cT extends eg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(qi.has(u)){const o=K0(u);return o&&o.default||0}return u=rg.has(u)?u:gf(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return fg(l,u,o)}build(l,u,o){og(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){rT(l,u,o,c)}mount(l){this.isSVGTag=cg(l.tagName),super.mount(l)}}const fT=Af.length;function hg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?hg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<fT;u++){const o=Af[u],c=i.props[o];(Fl(c)||c===!1)&&(l[o]=c)}return l}function dg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const hT=[...Tf].reverse(),dT=Tf.length;function mT(i){return l=>Promise.all(l.map(({animation:u,options:o})=>cS(i,u,o)))}function pT(i){let l=mT(i),u=sy(),o=!0;const c=g=>(m,v)=>{const x=Bi(i,v,g==="exit"?i.presenceContext?.custom:void 0);if(x){const{transition:T,transitionEnd:N,...z}=x;m={...m,...z,...N}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,v=hg(i.parent)||{},x=[],T=new Set;let N={},z=1/0;for(let G=0;G<dT;G++){const Y=hT[G],Q=u[Y],X=m[Y]!==void 0?m[Y]:v[Y],Z=Fl(X),k=Y===g?Q.isActive:null;k===!1&&(z=G);let it=X===v[Y]&&X!==m[Y]&&Z;if(it&&o&&i.manuallyAnimateOnMount&&(it=!1),Q.protectedKeys={...N},!Q.isActive&&k===null||!X&&!Q.prevProp||Bu(X)||typeof X=="boolean")continue;if(Y==="exit"&&Q.isActive&&k!==!0){Q.prevResolvedValues&&(N={...N,...Q.prevResolvedValues});continue}const $=yT(Q.prevProp,X);let J=$||Y===g&&Q.isActive&&!it&&Z||G>z&&Z,st=!1;const Tt=Array.isArray(X)?X:[X];let pt=Tt.reduce(c(Y),{});k===!1&&(pt={});const{prevResolvedValues:zt={}}=Q,Zt={...zt,...pt},Rt=H=>{J=!0,T.has(H)&&(st=!0,T.delete(H)),Q.needsAnimating[H]=!0;const P=i.getValue(H);P&&(P.liveStyle=!1)};for(const H in Zt){const P=pt[H],ut=zt[H];if(N.hasOwnProperty(H))continue;let ht=!1;Lc(P)&&Lc(ut)?ht=!dg(P,ut):ht=P!==ut,ht?P!=null?Rt(H):T.add(H):P!==void 0&&T.has(H)?Rt(H):Q.protectedKeys[H]=!0}Q.prevProp=X,Q.prevResolvedValues=pt,Q.isActive&&(N={...N,...pt}),o&&i.blockInitialAnimation&&(J=!1);const ne=it&&$;J&&(!ne||st)&&x.push(...Tt.map(H=>{const P={type:Y};if(typeof H=="string"&&o&&!ne&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,ht=Bi(ut,H);if(ut.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};P.delay=_0(ut.enteringChildren,i,E)}}return{animation:H,options:P}}))}if(T.size){const G={};if(typeof m.initial!="boolean"){const Y=Bi(i,Array.isArray(m.initial)?m.initial[0]:m.initial);Y&&Y.transition&&(G.transition=Y.transition)}T.forEach(Y=>{const Q=i.getBaseTarget(Y),X=i.getValue(Y);X&&(X.liveStyle=!0),G[Y]=Q??null}),x.push({animation:G})}let q=!!x.length;return o&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(q=!1),o=!1,q?l(x):Promise.resolve()}function p(g,m){if(u[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(x=>x.animationState?.setActive(g,m)),u[g].isActive=m;const v=h(g);for(const x in u)u[x].protectedKeys={};return v}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>u,reset:()=>{u=sy()}}}function yT(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!dg(l,i):!1}function ja(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sy(){return{animate:ja(!0),whileInView:ja(),whileHover:ja(),whileTap:ja(),whileDrag:ja(),whileFocus:ja(),exit:ja()}}function uy(i,l){i.min=l.min,i.max=l.max}function Je(i,l){uy(i.x,l.x),uy(i.y,l.y)}function oy(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const mg=1e-4,gT=1-mg,vT=1+mg,pg=.01,xT=0-pg,bT=0+pg;function me(i){return i.max-i.min}function ST(i,l,u){return Math.abs(i-l)<=u}function ry(i,l,u,o=.5){i.origin=o,i.originPoint=Yt(l.min,l.max,i.origin),i.scale=me(u)/me(l),i.translate=Yt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=gT&&i.scale<=vT||isNaN(i.scale))&&(i.scale=1),(i.translate>=xT&&i.translate<=bT||isNaN(i.translate))&&(i.translate=0)}function Kl(i,l,u,o){ry(i.x,l.x,u.x,o?o.originX:void 0),ry(i.y,l.y,u.y,o?o.originY:void 0)}function cy(i,l,u){i.min=u.min+l.min,i.max=i.min+me(l)}function TT(i,l,u){cy(i.x,l.x,u.x),cy(i.y,l.y,u.y)}function fy(i,l,u){i.min=l.min-u.min,i.max=i.min+me(l)}function Vu(i,l,u){fy(i.x,l.x,u.x),fy(i.y,l.y,u.y)}function hy(i,l,u,o,c){return i-=l,i=Ru(i,1/u,o),c!==void 0&&(i=Ru(i,1/c,o)),i}function AT(i,l=0,u=1,o=.5,c,d=i,h=i){if(rn.test(l)&&(l=parseFloat(l),l=Yt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Yt(d.min,d.max,o);i===d&&(p-=l),i.min=hy(i.min,l,u,p,c),i.max=hy(i.max,l,u,p,c)}function dy(i,l,[u,o,c],d,h){AT(i,l[u],l[o],l[c],l.scale,d,h)}const ET=["x","scaleX","originX"],CT=["y","scaleY","originY"];function my(i,l,u,o){dy(i.x,l,ET,u?u.x:void 0,o?o.x:void 0),dy(i.y,l,CT,u?u.y:void 0,o?o.y:void 0)}function py(i){return i.translate===0&&i.scale===1}function yg(i){return py(i.x)&&py(i.y)}function yy(i,l){return i.min===l.min&&i.max===l.max}function MT(i,l){return yy(i.x,l.x)&&yy(i.y,l.y)}function gy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function gg(i,l){return gy(i.x,l.x)&&gy(i.y,l.y)}function vy(i){return me(i.x)/me(i.y)}function xy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function on(i){return[i("x"),i("y")]}function DT(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:v,rotateX:x,rotateY:T,skewX:N,skewY:z}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),T&&(o+=`rotateY(${T}deg) `),N&&(o+=`skewX(${N}deg) `),z&&(o+=`skewY(${z}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const vg=["TopLeft","TopRight","BottomLeft","BottomRight"],wT=vg.length,by=i=>typeof i=="string"?parseFloat(i):i,Sy=i=>typeof i=="number"||I.test(i);function OT(i,l,u,o,c,d){c?(i.opacity=Yt(0,u.opacity??1,NT(o)),i.opacityExit=Yt(l.opacity??1,0,jT(o))):d&&(i.opacity=Yt(l.opacity??1,u.opacity??1,o));for(let h=0;h<wT;h++){const p=`border${vg[h]}Radius`;let g=Ty(l,p),m=Ty(u,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Sy(g)===Sy(m)?(i[p]=Math.max(Yt(by(g),by(m),o),0),(rn.test(m)||rn.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||u.rotate)&&(i.rotate=Yt(l.rotate||0,u.rotate||0,o))}function Ty(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const NT=xg(0,.5,c0),jT=xg(.5,.95,Ge);function xg(i,l,u){return o=>o<i?0:o>l?1:u(Zl(i,l,o))}function zT(i,l,u){const o=fe(i)?i:Li(i);return o.start(pf("",o,l,u)),o.animation}function Pl(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const RT=(i,l)=>i.depth-l.depth;class VT{constructor(){this.children=[],this.isDirty=!1}add(l){Ic(this.children,l),this.isDirty=!0}remove(l){wu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(RT),this.isDirty=!1,this.children.forEach(l)}}function _T(i,l){const u=de.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(oa(o),i(d-l))};return jt.setup(o,!0),()=>oa(o)}function Mu(i){return fe(i)?i.get():i}class UT{constructor(){this.members=[]}add(l){Ic(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;c&&c.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&wu(this.members,o)}l.scheduleRender()}remove(l){if(wu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){const u=this.members.findIndex(c=>l===c);if(u===0)return!1;let o;for(let c=u;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){o=d;break}}return o?(this.promote(o),!0):!1}promote(l,u){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender();const c=o.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=o.instance;g&&g.isConnected===!1&&!o.snapshot||(l.resumeFrom=o,u&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:u,resumingFrom:o}=l;u.onExitComplete&&u.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Du={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gc=["","X","Y","Z"],BT=1e3;let LT=0;function vc(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function bg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=Y0(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",jt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&bg(o)}function Sg({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=LT++,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(qT),this.nodes.forEach(QT),this.nodes.forEach(ZT),this.nodes.forEach(GT)},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 g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new VT)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new ef),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const g=this.eventHandlers.get(h);g&&g.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Sf(h)&&!YS(h),this.instance=h;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let v,x=0;const T=()=>this.root.updateBlockedByResize=!1;jt.read(()=>{x=window.innerWidth}),i(h,()=>{const N=window.innerWidth;N!==x&&(x=N,this.root.updateBlockedByResize=!0,v&&v(),v=_T(T,250),Du.hasAnimatedSinceResize&&(Du.hasAnimatedSinceResize=!1,this.nodes.forEach(Cy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:T,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=this.options.transition||m.getDefaultTransition()||WT,{onLayoutAnimationStart:q,onLayoutAnimationComplete:G}=m.getProps(),Y=!this.targetLayout||!gg(this.targetLayout,N),Q=!x&&T;if(this.options.layoutRoot||this.resumeFrom||Q||x&&(Y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const X={...mf(z,"layout"),onPlay:q,onComplete:G};(m.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X),this.setAnimationOrigin(v,Q)}else x||Cy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}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(),oa(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(kT),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&&bg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ay);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ey);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KT),this.nodes.forEach(HT),this.nodes.forEach(YT)):this.nodes.forEach(Ey),this.clearAllSnapshots();const p=de.now();re.delta=cn(0,1e3/60,p-re.timestamp),re.timestamp=p,re.isProcessing=!0,rc.update.process(re),rc.preRender.process(re),rc.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(XT),this.sharedNodes.forEach(JT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!me(this.snapshot.measuredBox.x)&&!me(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 g=0;g<this.path.length;g++)this.path[g].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=It(),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 g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!yg(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||za(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return h&&(g=this.removeTransform(g)),$T(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return It();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(IT))){const{scroll:m}=this.root;m&&(_i(p.x,m.offset.x),_i(p.y,m.offset.y))}return p}removeElementScroll(h){const p=It();if(Je(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:x}=m;m!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Je(p,h),_i(p.x,v.offset.x),_i(p.y,v.offset.y))}return p}applyTransform(h,p=!1){const g=It();Je(g,h);for(let m=0;m<this.path.length;m++){const v=this.path[m];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ui(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),za(v.latestValues)&&Ui(g,v.latestValues)}return za(this.latestValues)&&Ui(g,this.latestValues),g}removeTransform(h){const p=It();Je(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!za(m.latestValues))continue;Qc(m.latestValues)&&m.updateSnapshot();const v=It(),x=m.measurePageBox();Je(v,x),my(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return za(this.latestValues)&&my(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!==re.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 g=!!this.resumingFrom||this!==p;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=re.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),TT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Je(this.target,this.layout.layoutBox),ig(this.target,this.targetDelta)):Je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qc(this.parent.latestValues)||ag(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,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),Vu(this.relativeTargetOrigin,p,g),Je(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),p=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===re.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;Je(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;WS(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=It());const{target:N}=h;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oy(this.prevProjectionDelta.x,this.projectionDelta.x),oy(this.prevProjectionDelta.y,this.projectionDelta.y)),Kl(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==T||!xy(this.projectionDelta.x,this.prevProjectionDelta.x)||!xy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N))}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=Vi(),this.projectionDelta=Vi(),this.projectionDeltaWithTransform=Vi()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},x=Vi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=It(),N=g?g.source:void 0,z=this.layout?this.layout.source:void 0,q=N!==z,G=this.getStack(),Y=!G||G.members.length<=1,Q=!!(q&&!Y&&this.options.crossfade===!0&&!this.path.some(PT));this.animationProgress=0;let X;this.mixTargetDelta=Z=>{const k=Z/1e3;My(x.x,h.x,k),My(x.y,h.y,k),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),FT(this.relativeTarget,this.relativeTargetOrigin,T,k),X&&MT(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=It()),Je(X,this.relativeTarget)),q&&(this.animationValues=v,OT(v,m,this.latestValues,k,Q,Y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(oa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Du.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Li(0)),this.motionValue.jump(0,!1),this.currentAnimation=zT(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(BT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:v}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&Tg(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||It();const x=me(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+x;const T=me(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}Je(p,g),Ui(p,v),Kl(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new UT),this.sharedNodes.get(h).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.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:g}={}){const m=this.getStack();m&&m.promote(this,g),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:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&vc("z",h,m,this.animationValues);for(let v=0;v<gc.length;v++)vc(`rotate${gc[v]}`,h,m,this.animationValues),vc(`skew${gc[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Mu(p?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Mu(p?.pointerEvents)||""),this.hasProjected&&!za(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=DT(this.projectionDeltaWithTransform,this.treeScale,v);g&&(x=g(v,x)),h.transform=x;const{x:T,y:N}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${N.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const z in kc){if(v[z]===void 0)continue;const{correct:q,applyTo:G,isCSSVariable:Y}=kc[z],Q=x==="none"?v[z]:q(v[z],m);if(G){const X=G.length;for(let Z=0;Z<X;Z++)h[G[Z]]=Q}else Y?this.options.visualElement.renderState.vars[z]=Q:h[z]=Q}this.options.layoutId&&(h.pointerEvents=m===this?Mu(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Ay),this.root.sharedNodes.clear()}}}function HT(i){i.updateLayout()}function YT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?on(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=me(x);x.min=u[v].min,x.max=x.min+T}):Tg(c,l.layoutBox,u)&&on(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=me(u[v]);x.max=x.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+T)});const h=Vi();Kl(h,u,l.layoutBox);const p=Vi();d?Kl(p,i.applyTransform(o,!0),l.measuredBox):Kl(p,u,l.layoutBox);const g=!yg(h);let m=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:T}=v;if(x&&T){const N=It();Vu(N,l.layoutBox,x.layoutBox);const z=It();Vu(z,u,T.layoutBox),gg(N,z)||(m=!0),v.options.layoutRoot&&(i.relativeTarget=z,i.relativeTargetOrigin=N,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:u}=i.options;u&&u()}i.options.transition=void 0}function qT(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function GT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function XT(i){i.clearSnapshot()}function Ay(i){i.clearMeasurements()}function Ey(i){i.isLayoutDirty=!1}function KT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Cy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function QT(i){i.resolveTargetDelta()}function ZT(i){i.calcProjection()}function kT(i){i.resetSkewAndRotation()}function JT(i){i.removeLeadSnapshot()}function My(i,l,u){i.translate=Yt(l.translate,0,u),i.scale=Yt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function Dy(i,l,u,o){i.min=Yt(l.min,u.min,o),i.max=Yt(l.max,u.max,o)}function FT(i,l,u,o){Dy(i.x,l.x,u.x,o),Dy(i.y,l.y,u.y,o)}function PT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const WT={duration:.45,ease:[.4,0,.1,1]},wy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Oy=wy("applewebkit/")&&!wy("chrome/")?Math.round:Ge;function Ny(i){i.min=Oy(i.min),i.max=Oy(i.max)}function $T(i){Ny(i.x),Ny(i.y)}function Tg(i,l,u){return i==="position"||i==="preserve-aspect"&&!ST(vy(l),vy(u),.2)}function IT(i){return i!==i.root&&i.scroll?.wasRoot}const t2=Sg({attachResizeListener:(i,l)=>Pl(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),xc={current:void 0},Ag=Sg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!xc.current){const i=new t2({});i.mount(window),i.setOptions({layoutScroll:!0}),xc.current=i}return xc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Mf=U.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function jy(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function e2(...i){return l=>{let u=!1;const o=i.map(c=>{const d=jy(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():jy(i[c],null)}}}}function n2(...i){return U.useCallback(e2(...i),i)}class a2 extends U.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(u&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=Xc(o)&&o.offsetWidth||0,d=Xc(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function i2({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=U.useId(),p=U.useRef(null),g=U.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=U.useContext(Mf),v=i.props?.ref??i?.ref,x=n2(p,v);return U.useInsertionEffect(()=>{const{width:T,height:N,top:z,left:q,right:G,bottom:Y}=g.current;if(l||d===!1||!p.current||!T||!N)return;const Q=u==="left"?`left: ${q}`:`right: ${G}`,X=o==="bottom"?`bottom: ${Y}`:`top: ${z}`;p.current.dataset.motionPopId=h;const Z=document.createElement("style");m&&(Z.nonce=m);const k=c??document.head;return k.appendChild(Z),Z.sheet&&Z.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${h}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${T}px !important;
|
|
13
|
-
height: ${N}px !important;
|
|
14
|
-
${Q}px !important;
|
|
15
|
-
${X}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{k.contains(Z)&&k.removeChild(Z)}},[l]),S.jsx(a2,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:U.cloneElement(i,{ref:x})})}const l2=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const v=$c(s2),x=U.useId();let T=!0,N=U.useMemo(()=>(T=!1,{id:x,initial:l,isPresent:u,custom:c,onExitComplete:z=>{v.set(z,!0);for(const q of v.values())if(!q)return;o&&o()},register:z=>(v.set(z,!1),()=>v.delete(z))}),[u,v,o]);return d&&T&&(N={...N}),U.useMemo(()=>{v.forEach((z,q)=>v.set(q,!1))},[u]),U.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=S.jsx(i2,{pop:h==="popLayout",isPresent:u,anchorX:p,anchorY:g,root:m,children:i}),S.jsx(Uu.Provider,{value:N,children:i})};function s2(){return new Map}function Eg(i=!0){const l=U.useContext(Uu);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=U.useId();U.useEffect(()=>{if(i)return c(d)},[i]);const h=U.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const xu=i=>i.key||"";function zy(i){const l=[];return U.Children.forEach(i,u=>{U.isValidElement(u)&&l.push(u)}),l}const u2=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[v,x]=Eg(h),T=U.useMemo(()=>zy(i),[i]),N=h&&!v?[]:T.map(xu),z=U.useRef(!0),q=U.useRef(T),G=$c(()=>new Map),Y=U.useRef(new Set),[Q,X]=U.useState(T),[Z,k]=U.useState(T);$y(()=>{z.current=!1,q.current=T;for(let J=0;J<Z.length;J++){const st=xu(Z[J]);N.includes(st)?(G.delete(st),Y.current.delete(st)):G.get(st)!==!0&&G.set(st,!1)}},[Z,N.length,N.join("-")]);const it=[];if(T!==Q){let J=[...T];for(let st=0;st<Z.length;st++){const Tt=Z[st],pt=xu(Tt);N.includes(pt)||(J.splice(st,0,Tt),it.push(Tt))}return d==="wait"&&it.length&&(J=it),k(zy(J)),X(T),null}const{forceRender:$}=U.useContext(Wc);return S.jsx(S.Fragment,{children:Z.map(J=>{const st=xu(J),Tt=h&&!v?!1:T===Z||N.includes(st),pt=()=>{if(Y.current.has(st))return;if(Y.current.add(st),G.has(st))G.set(st,!0);else return;let zt=!0;G.forEach(Zt=>{Zt||(zt=!1)}),zt&&($?.(),k(q.current),h&&x?.(),o&&o())};return S.jsx(l2,{isPresent:Tt,initial:!z.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:Tt?void 0:pt,anchorX:p,anchorY:g,children:J},st)})})},Cg=U.createContext({strict:!1}),Ry={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 Vy=!1;function o2(){if(Vy)return;const i={};for(const l in Ry)i[l]={isEnabled:u=>Ry[l].some(o=>!!u[o])};tg(i),Vy=!0}function Mg(){return o2(),kS()}function r2(i){const l=Mg();for(const u in i)l[u]={...l[u],...i[u]};tg(l)}const c2=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 _u(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||c2.has(i)}let Dg=i=>!_u(i);function f2(i){typeof i=="function"&&(Dg=l=>l.startsWith("on")?!_u(l):i(l))}try{f2(require("@emotion/is-prop-valid").default)}catch{}function h2(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(Dg(c)||u===!0&&_u(c)||!l&&!_u(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const Hu=U.createContext({});function d2(i,l){if(Lu(i)){const{initial:u,animate:o}=i;return{initial:u===!1||Fl(u)?u:void 0,animate:Fl(o)?o:void 0}}return i.inherit!==!1?l:{}}function m2(i){const{initial:l,animate:u}=d2(i,U.useContext(Hu));return U.useMemo(()=>({initial:l,animate:u}),[_y(l),_y(u)])}function _y(i){return Array.isArray(i)?i.join(" "):i}const Df=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wg(i,l,u){for(const o in l)!fe(l[o])&&!ug(o,u)&&(i[o]=l[o])}function p2({transformTemplate:i},l){return U.useMemo(()=>{const u=Df();return Ef(u,l,i),Object.assign({},u.vars,u.style)},[l])}function y2(i,l){const u=i.style||{},o={};return wg(o,u,i),Object.assign(o,p2(i,l)),o}function g2(i,l){const u={},o=y2(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const Og=()=>({...Df(),attrs:{}});function v2(i,l,u,o){const c=U.useMemo(()=>{const d=Og();return og(d,l,cg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};wg(d,i.style,i),c.style={...d,...c.style}}return c}const x2=["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 wf(i){return typeof i!="string"||i.includes("-")?!1:!!(x2.indexOf(i)>-1||/[A-Z]/u.test(i))}function b2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??wf(i)?v2:g2)(l,o,c,i),m=h2(l,typeof i=="string",d),v=i!==U.Fragment?{...m,...g,ref:u}:{},{children:x}=l,T=U.useMemo(()=>fe(x)?x.get():x,[x]);return U.createElement(i,{...v,children:T})}function S2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:T2(u,o,c,i),renderState:l()}}function T2(i,l,u,o){const c={},d=o(i,{});for(const T in d)c[T]=Mu(d[T]);let{initial:h,animate:p}=i;const g=Lu(i),m=$0(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const x=v?p:h;if(x&&typeof x!="boolean"&&!Bu(x)){const T=Array.isArray(x)?x:[x];for(let N=0;N<T.length;N++){const z=yf(i,T[N]);if(z){const{transitionEnd:q,transition:G,...Y}=z;for(const Q in Y){let X=Y[Q];if(Array.isArray(X)){const Z=v?X.length-1:0;X=X[Z]}X!==null&&(c[Q]=X)}for(const Q in q)c[Q]=q[Q]}}}return c}const Ng=i=>(l,u)=>{const o=U.useContext(Hu),c=U.useContext(Uu),d=()=>S2(i,l,o,c);return u?d():$c(d)},A2=Ng({scrapeMotionValuesFromProps:Cf,createRenderState:Df}),E2=Ng({scrapeMotionValuesFromProps:fg,createRenderState:Og}),C2=Symbol.for("motionComponentSymbol");function M2(i,l,u){const o=U.useRef(u);U.useInsertionEffect(()=>{o.current=u});const c=U.useRef(null);return U.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=o.current;if(typeof h=="function")if(d){const p=h(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const jg=U.createContext({});function ji(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function D2(i,l,u,o,c,d){const{visualElement:h}=U.useContext(Hu),p=U.useContext(Cg),g=U.useContext(Uu),m=U.useContext(Mf),v=m.reducedMotion,x=m.skipAnimations,T=U.useRef(null),N=U.useRef(!1);o=o||p.renderer,!T.current&&o&&(T.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:d}),N.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const z=T.current,q=U.useContext(jg);z&&!z.projection&&c&&(z.type==="html"||z.type==="svg")&&w2(T.current,u,c,q);const G=U.useRef(!1);U.useInsertionEffect(()=>{z&&G.current&&z.update(u,g)});const Y=u[H0],Q=U.useRef(!!Y&&!window.MotionHandoffIsComplete?.(Y)&&window.MotionHasOptimisedAnimation?.(Y));return $y(()=>{N.current=!0,z&&(G.current=!0,window.MotionIsMounted=!0,z.updateFeatures(),z.scheduleRenderMicrotask(),Q.current&&z.animationState&&z.animationState.animateChanges())}),U.useEffect(()=>{z&&(!Q.current&&z.animationState&&z.animationState.animateChanges(),Q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Y)}),Q.current=!1),z.enteringChildren=void 0)}),z}function w2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:v}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:zg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&ji(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:m})}function zg(i){if(i)return i.options.allowProjection!==!1?i.projection:zg(i.parent)}function bc(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&r2(o);const d=u?u==="svg":wf(i),h=d?E2:A2;function p(m,v){let x;const T={...U.useContext(Mf),...m,layoutId:O2(m)},{isStatic:N}=T,z=m2(m),q=h(m,N);if(!N&&Wy){N2();const G=j2(T);x=G.MeasureLayout,z.visualElement=D2(i,q,T,c,G.ProjectionNode,d)}return S.jsxs(Hu.Provider,{value:z,children:[x&&z.visualElement?S.jsx(x,{visualElement:z.visualElement,...T}):null,b2(i,m,M2(q,z.visualElement,v),q,N,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=U.forwardRef(p);return g[C2]=i,g}function O2({layoutId:i}){const l=U.useContext(Wc).id;return l&&i!==void 0?l+"-"+i:i}function N2(i,l){U.useContext(Cg).strict}function j2(i){const l=Mg(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function z2(i,l){if(typeof Proxy>"u")return bc;const u=new Map,o=(d,h)=>bc(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,bc(h,void 0,i,l)),u.get(h))})}const R2=(i,l)=>l.isSVG??wf(i)?new cT(l):new iT(l,{allowProjection:i!==U.Fragment});class V2 extends ca{constructor(l){super(l),l.animationState||(l.animationState=pT(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Bu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let _2=0;class U2 extends ca{constructor(){super(...arguments),this.id=_2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const B2={animation:{Feature:V2},exit:{Feature:U2}};function ts(i){return{point:{x:i.pageX,y:i.pageY}}}const L2=i=>l=>bf(l)&&i(l,ts(l));function Ql(i,l,u,o){return Pl(i,l,L2(u),o)}const Rg=({current:i})=>i?i.ownerDocument.defaultView:null,Uy=(i,l)=>Math.abs(i-l);function H2(i,l){const u=Uy(i.x,l.x),o=Uy(i.y,l.y);return Math.sqrt(u**2+o**2)}const By=new Set(["auto","scroll"]);class Vg{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=N=>{this.handleScroll(N.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Tc(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,q=H2(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!q)return;const{point:G}=N,{timestamp:Y}=re;this.history.push({...G,timestamp:Y});const{onStart:Q,onMove:X}=this.handlers;z||(Q&&Q(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),X&&X(this.lastMoveEvent,N)},this.handlePointerMove=(N,z)=>{this.lastMoveEvent=N,this.lastMoveEventInfo=Sc(z,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(N,z)=>{this.end();const{onEnd:q,onSessionEnd:G,resumeAnimation:Y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Q=Tc(N.type==="pointercancel"?this.lastMoveEventInfo:Sc(z,this.transformPagePoint),this.history);this.startEvent&&q&&q(N,Q),G&&G(N,Q)},!bf(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=ts(l),m=Sc(g,this.transformPagePoint),{point:v}=m,{timestamp:x}=re;this.history=[{...v,timestamp:x}];const{onSessionStart:T}=u;T&&T(l,Tc(m,this.history)),this.removeListeners=Wl(Ql(this.contextWindow,"pointermove",this.handlePointerMove),Ql(this.contextWindow,"pointerup",this.handlePointerUp),Ql(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(By.has(o.overflowX)||By.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.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(l){const u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),jt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),oa(this.updatePoint)}}function Sc(i,l){return l?{point:l(i.point)}:i}function Ly(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Tc({point:i},l){return{point:i,delta:Ly(i,_g(l)),offset:Ly(i,Y2(l)),velocity:q2(l,.1)}}function Y2(i){return i[0]}function _g(i){return i[i.length-1]}function q2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=_g(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>Pe(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>Pe(l)*2&&(o=i[1]);const d=qe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function G2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Yt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Yt(u,i,o.max):Math.min(i,u)),i}function Hy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function X2(i,{top:l,left:u,bottom:o,right:c}){return{x:Hy(i.x,u,c),y:Hy(i.y,l,o)}}function Yy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function K2(i,l){return{x:Yy(i.x,l.x),y:Yy(i.y,l.y)}}function Q2(i,l){let u=.5;const o=me(i),c=me(l);return c>o?u=Zl(l.min,l.max-o,i.min):o>c&&(u=Zl(i.min,i.max-c,l.min)),cn(0,1,u)}function Z2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Jc=.35;function k2(i=Jc){return i===!1?i=0:i===!0&&(i=Jc),{x:qy(i,"left","right"),y:qy(i,"top","bottom")}}function qy(i,l,u){return{min:Gy(i,l),max:Gy(i,u)}}function Gy(i,l){return typeof i=="number"?i:i[l]||0}const J2=new WeakMap;class F2{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=x=>{u&&this.snapToCursor(ts(x).point),this.stopAnimation()},h=(x,T)=>{const{drag:N,dragPropagation:z,onDragStart:q}=this.getProps();if(N&&!z&&(this.openDragLock&&this.openDragLock(),this.openDragLock=AS(N),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(Y=>{let Q=this.getAxisMotionValue(Y).get()||0;if(rn.test(Q)){const{projection:X}=this.visualElement;if(X&&X.layout){const Z=X.layout.layoutBox[Y];Z&&(Q=me(Z)*(parseFloat(Q)/100))}}this.originPoint[Y]=Q}),q&&jt.update(()=>q(x,T),!1,!0),Hc(this.visualElement,"transform");const{animationState:G}=this.visualElement;G&&G.setActive("whileDrag",!0)},p=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T;const{dragPropagation:N,dragDirectionLock:z,onDirectionLock:q,onDrag:G}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:Y}=T;if(z&&this.currentDirection===null){this.currentDirection=W2(Y),this.currentDirection!==null&&q&&q(this.currentDirection);return}this.updateAxis("x",T.point,Y),this.updateAxis("y",T.point,Y),this.visualElement.render(),G&&jt.update(()=>G(x,T),!1,!0)},g=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T,this.stop(x,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Vg(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Rg(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&jt.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!bu(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=G2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&ji(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=X2(o.layoutBox,l):this.constraints=!1,this.elastic=k2(u),c!==this.constraints&&!ji(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&on(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Z2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!ji(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=$S(o,c.root,this.visualElement.getTransformPagePoint());let h=K2(c.layout.layoutBox,d);if(u){const p=u(FS(h));this.hasMutatedConstraints=!!p,p&&(h=ng(p))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=on(v=>{if(!bu(v,u,this.currentDirection))return;let x=g&&g[v]||{};h&&(x={min:0,max:0});const T=c?200:1e6,N=c?40:1e7,z={type:"inertia",velocity:o?l[v]:0,bounceStiffness:T,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,z)});return Promise.all(m).then(p)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return Hc(this.visualElement,l),o.start(pf(l,o,0,u,this.visualElement,!1))}stopAnimation(){on(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){on(u=>{const{drag:o}=this.getProps();if(!bu(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Yt(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!ji(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};on(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=Q2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),on(h=>{if(!bu(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Yt(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;J2.set(this.visualElement,this);const l=this.visualElement.current,u=Ql(l,"pointerdown",m=>{const{drag:v,dragListener:x=!0}=this.getProps(),T=m.target,N=T!==l&&OS(T);v&&x&&!N&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();ji(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=P2(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),jt.read(c);const p=Pl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(on(x=>{const T=this.getAxisMotionValue(x);T&&(this.originPoint[x]+=m[x].translate,T.set(T.get()+m[x].translate))}),this.visualElement.render())}));return()=>{p(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Jc,dragMomentum:p=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function Xy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function P2(i,l,u){const o=Pp(i,Xy(u)),c=Pp(l,Xy(u));return()=>{o(),c()}}function bu(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function W2(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class $2 extends ca{constructor(l){super(l),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new F2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ac=i=>(l,u)=>{i&&jt.update(()=>i(l,u),!1,!0)};class I2 extends ca{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(l){this.session=new Vg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ac(l),onStart:Ac(u),onMove:Ac(o),onEnd:(d,h)=>{delete this.session,c&&jt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Ql(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ec=!1;class tA extends U.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),Ec&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Du.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),Ec=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||jt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),xf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;Ec=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Ug(i){const[l,u]=Eg(),o=U.useContext(Wc);return S.jsx(tA,{...i,layoutGroup:o,switchLayoutGroup:U.useContext(jg),isPresent:l,safeToRemove:u})}const eA={pan:{Feature:I2},drag:{Feature:$2,ProjectionNode:Ag,MeasureLayout:Ug}};function Ky(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&jt.postRender(()=>d(l,ts(l)))}class nA extends ca{mount(){const{current:l}=this.node;l&&(this.unmount=CS(l,(u,o)=>(Ky(this.node,o,"Start"),c=>Ky(this.node,c,"End"))))}unmount(){}}class aA extends ca{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=Wl(Pl(this.node.current,"focus",()=>this.onFocus()),Pl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qy(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&jt.postRender(()=>d(l,ts(l)))}class iA extends ca{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=jS(l,(c,d)=>(Qy(this.node,d,"Start"),(h,{success:p})=>Qy(this.node,h,p?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const Fc=new WeakMap,Cc=new WeakMap,lA=i=>{const l=Fc.get(i.target);l&&l(i)},sA=i=>{i.forEach(lA)};function uA({root:i,...l}){const u=i||document;Cc.has(u)||Cc.set(u,{});const o=Cc.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(sA,{root:i,...l})),o[c]}function oA(i,l,u){const o=uA(l);return Fc.set(i,u),o.observe(i),()=>{Fc.delete(i),o.unobserve(i)}}const rA={some:0,all:1};class cA extends ca{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:rA[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),T=m?v:x;T&&T(g)};return oA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(fA(l,u))&&this.startObserver()}unmount(){}}function fA({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const hA={inView:{Feature:cA},tap:{Feature:iA},focus:{Feature:aA},hover:{Feature:nA}},dA={layout:{ProjectionNode:Ag,MeasureLayout:Ug}},mA={...B2,...hA,...eA,...dA},Zy=z2(mA,R2),pA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],yA={anthropic:[{id:"claude-opus-4-6",label:"Opus 4.6"},{id:"claude-sonnet-4-6",label:"Sonnet 4.6"},{id:"claude-haiku-4-5-20251001",label:"Haiku 4.5"}],openai:[{id:"gpt-5.2-codex:medium",label:"GPT-5.2 Codex Medium"},{id:"gpt-5.2-codex:high",label:"GPT-5.2 Codex High"},{id:"gpt-5.2-codex:xhigh",label:"GPT-5.2 Codex Extra High"},{id:"gpt-5.3-codex:medium",label:"GPT-5.3 Codex Medium (Pro)"},{id:"gpt-5.3-codex:high",label:"GPT-5.3 Codex High (Pro)"},{id:"gpt-5.3-codex:xhigh",label:"GPT-5.3 Codex Extra High (Pro)"}]},ky=6,Jy=[{tier:"premium",label:i=>`${i}.fluxy.bot`,badge:"$5",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0},{tier:"at",label:i=>`${i}.at.fluxy.bot`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1}];function gA({models:i,value:l,onChange:u}){const[o,c]=U.useState(!1),d=U.useRef(null);U.useEffect(()=>{if(!o)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[o]);const h=i.find(p=>p.id===l);return S.jsxs("div",{className:"relative",ref:d,children:[S.jsxs("button",{type:"button",onClick:()=>c(p=>!p),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[S.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),S.jsx(fx,{className:`h-4 w-4 text-white/30 transition-transform ${o?"rotate-180":""}`})]}),o&&S.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:i.map(p=>S.jsx("button",{onClick:()=>{u(p.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===p.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:p.label},p.id))})]})}function SA({onComplete:i}){const[l,u]=U.useState(0),[o,c]=U.useState(""),[d,h]=U.useState("anthropic"),[p,g]=U.useState(""),[m,v]=U.useState(!1),[x,T]=U.useState({anthropic:"idle",openai:"idle"}),[N,z]=U.useState(!1),[q,G]=U.useState(""),[Y,Q]=U.useState(!1),[X,Z]=U.useState(),[k,it]=U.useState(!1),[$,J]=U.useState(!1),[st,Tt]=U.useState(),[pt,zt]=U.useState(""),[Zt,Rt]=U.useState(null),[ne,j]=U.useState(""),[H,P]=U.useState({}),[ut,ht]=U.useState("at"),[E,L]=U.useState(!1),[K,F]=U.useState(!1),[lt,rt]=U.useState(""),yt=U.useRef(null),[Vt,Bt]=U.useState(null),[pe,zn]=U.useState(!1),[Ua,Gi]=U.useState(!1),[ye,Ba]=U.useState(""),[Xe,Yu]=U.useState(""),[La,Xi]=U.useState(""),[Ki,Ha]=U.useState(!1),[Rn,qu]=U.useState(!1),[ae,Gu]=U.useState(""),[Qi,fa]=U.useState(""),[fn,es]=U.useState(!1),[Zi,ns]=U.useState(!1),[$e,Vn]=U.useState(!1),[Ht,Ke]=U.useState(""),ie=U.useRef(!1),hn=x[d]==="connected";U.useEffect(()=>{fetch("/api/onboard/status").then(_=>_.json()).then(_=>{_.userName&&c(_.userName),_.handle&&(zt(_.handle.username),ht(_.handle.tier||"at"),Bt({username:_.handle.username,tier:_.handle.tier,url:_.handle.url}),F(!0),rt(_.handle.url)),_.portalUser&&Ba(_.portalUser),_.portalConfigured&&qu(!0),_.provider&&h(_.provider),_.model&&g(_.model),_.whisperEnabled&&(Vn(!0),Ke(_.whisperKey||"")),ie.current=!0}).catch(()=>{ie.current=!0})},[]),U.useEffect(()=>{d!=="anthropic"||x.anthropic==="connected"||fetch("/api/auth/claude/status").then(_=>_.json()).then(_=>{_.authenticated&&T(et=>({...et,anthropic:"connected"}))}).catch(()=>{})},[d]),U.useEffect(()=>{d!=="openai"||x.openai==="connected"||fetch("/api/auth/codex/status").then(_=>_.json()).then(_=>{_.authenticated&&T(et=>({...et,openai:"connected"}))}).catch(()=>{})},[d]),U.useEffect(()=>{if(!$)return;const _=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(J(!1),T(Ae=>({...Ae,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(_)},[$]),U.useEffect(()=>{if(yt.current&&clearTimeout(yt.current),!ie.current||Vt&&K&&pt===Vt.username)return;Rt(null),j(""),P({}),F(!1),rt("");const _=pt.trim();if(_){if(_.length<3){Rt("invalid"),j("At least 3 characters");return}return Rt("checking"),yt.current=setTimeout(async()=>{try{const Mt=await(await fetch(`/api/handle/check/${encodeURIComponent(_)}`)).json();if(!Mt.valid)Rt("invalid"),j(Mt.error);else{const Ae={};for(const Za of Mt.handles)Ae[Za.tier]=Za.available;P(Ae),Rt("ready");const Qa=Jy.find(Za=>Ae[Za.tier]);Qa&&!Ae[ut]&&ht(Qa.tier)}}catch{Rt(null)}},400),()=>{yt.current&&clearTimeout(yt.current)}}},[pt]);const Xu=_=>{zt(_.toLowerCase().replace(/[^a-z0-9-]/g,""))},Ku=async()=>{if(!(!pt||Zt!=="ready"||!H[ut])){L(!0);try{const et=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:pt,tier:ut})})).json();et.ok?(F(!0),rt(et.url)):(j(et.error||"Registration failed"),Rt("invalid"))}catch{j("Could not reach server"),Rt("invalid")}finally{L(!1)}}},Ya=async()=>{if(!(!pt||Zt!=="ready"||!H[ut])){Gi(!0);try{const et=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:pt,tier:ut})})).json();et.ok?(F(!0),rt(et.url),Bt({username:pt,tier:ut,url:et.url}),zn(!1)):(j(et.error||"Handle change failed"),Rt("invalid"))}catch{j("Could not reach server"),Rt("invalid")}finally{Gi(!1)}}},qa=_=>{d==="openai"&&_!=="openai"&&$&&(fetch("/api/auth/codex/cancel",{method:"POST"}),J(!1)),h(_),g(""),z(!1),G(""),Z(void 0),J(!1),Tt(void 0)},Ga=async()=>{Z(void 0);try{const et=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();et.success&&et.authUrl?(window.open(et.authUrl,"_blank"),z(!0)):Z(et.error||"Failed to start authentication")}catch(_){Z(_.message)}},Ie=async()=>{if(q.trim()){Q(!0),Z(void 0);try{const et=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:q.trim()})})).json();et.success?T(Mt=>({...Mt,anthropic:"connected"})):Z(et.error||"Code exchange failed")}catch(_){Z(_.message)}finally{Q(!1)}}},Xa=async()=>{try{const _=await navigator.clipboard.readText();_&&G(_.trim())}catch{}},ha=async()=>{it(!0),Z(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?T(Mt=>({...Mt,anthropic:"connected"})):Z("No active session found. Please authenticate first.")}catch{}finally{it(!1)}},Qu=async()=>{J(!0),Tt(void 0);try{const et=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();et.success&&et.authUrl?window.open(et.authUrl,"_blank"):(J(!1),Tt(et.error||"Failed to start authentication"))}catch(_){J(!1),Tt(_.message)}},as=()=>{J(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Ka=Xe===La,_n=ye.trim().length>=3&&Xe.length>=6&&Ka,Zu=Rn?ye.trim().length>=3&&(Xe.length===0||fn&&_n):_n,Un=(()=>{switch(l){case 0:return!0;case 1:return o.trim().length>0;case 2:return K;case 3:return Zu;case 4:return!!(d&&p&&hn);case 5:return!0;default:return!1}})(),tn=()=>{Un&&l<ky-1&&u(_=>_+1)},is=()=>{l>0&&u(_=>_-1)},da=_=>{_.key==="Enter"&&Un&&tn()},ki=async()=>{v(!0);try{await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userName:o.trim(),agentName:pt.trim()||"Fluxy",provider:d,model:p,apiKey:"",whisperEnabled:$e,whisperKey:$e?Ht:"",portalUser:ye.trim(),portalPass:Xe})}),i()}catch(_){console.error("Onboard failed:",_),v(!1)}},en="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all";return S.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[S.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),S.jsxs(Zy.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[S.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:ky},(_,et)=>S.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${et===l?"w-7 bg-gradient-brand":et<l?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},et))}),S.jsx(u2,{mode:"wait",children:S.jsxs(Zy.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[l===0&&S.jsxs("div",{className:"flex flex-col items-center text-center",children:[S.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),S.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),S.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),S.jsxs("button",{onClick:tn,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",S.jsx(un,{className:"h-4 w-4"})]})]}),l===1&&S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),S.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),S.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[S.jsx("input",{type:"text",value:o,onChange:_=>c(_.target.value),onKeyDown:da,placeholder:"Enter your name",autoFocus:!0,className:en+" flex-1"}),S.jsx("button",{onClick:tn,disabled:!Un,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:S.jsx(un,{className:"h-5 w-5"})})]})]}),l===2&&S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),S.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),Vt&&K&&!pe&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Hl,{className:"h-4 w-4 text-emerald-400"}),S.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),S.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:lt})]}),S.jsxs("div",{className:"flex gap-2 mt-4",children:[S.jsxs("button",{onClick:tn,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",S.jsx(un,{className:"h-4 w-4"})]}),S.jsx("button",{onClick:()=>{zn(!0),F(!1),zt(""),Rt(null),P({})},className:"px-5 py-3 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Change"})]})]}),pe&&!K&&S.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[S.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),S.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",S.jsx("span",{className:"font-mono",children:Vt?.url})," will be released and become available for others."]})]}),(!Vt||pe||!K)&&!(Vt&&K&&!pe)&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative mt-5",children:[S.jsx("input",{type:"text",value:pt,onChange:_=>Xu(_.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:K,className:en+" pr-10 font-mono"+(K?" opacity-50":"")}),Zt&&pt.length>0&&!K&&S.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[Zt==="checking"&&S.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),Zt==="invalid"&&S.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:S.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),Zt==="invalid"&&ne&&S.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:ne}),Zt==="ready"&&pt.length>0&&!K&&S.jsx("div",{className:"space-y-2 mt-4",children:Jy.map(_=>{const Mt=H[_.tier]===!1;return S.jsxs("button",{onClick:()=>!Mt&&ht(_.tier),disabled:Mt,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Mt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":ut===_.tier?_.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[S.jsx("span",{className:"font-mono text-[13px] text-white/70",children:_.label(pt)}),Mt?S.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):S.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${_.badgeCls}`,children:_.badge})]},_.tier)})}),K&&S.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Hl,{className:"h-4 w-4 text-emerald-400"}),S.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),S.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:lt})]}),Zt==="ready"&&H[ut]&&pt.length>0&&!K&&S.jsx("button",{onClick:pe?Ya:Ku,disabled:E||Ua,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:E||Ua?S.jsxs(S.Fragment,{children:[S.jsx(Ni,{className:"h-4 w-4 animate-spin"}),pe?"Changing...":"Claiming..."]}):S.jsxs(S.Fragment,{children:[pe?"Change Handle":"Claim & Continue",S.jsx(un,{className:"h-4 w-4"})]})}),K&&S.jsxs("button",{onClick:tn,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",S.jsx(un,{className:"h-4 w-4"})]}),pe&&!K&&S.jsx("button",{onClick:()=>{zn(!1),zt(Vt.username),F(!0),rt(Vt.url),ht(Vt.tier),Rt(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),l===3&&S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Secure your portal"}),S.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Create credentials to protect your dashboard. Anyone with your URL will need these to log in."}),K&<&&S.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[S.jsx("span",{className:"font-mono text-[13px] text-white/60 truncate flex-1",children:lt}),S.jsx("button",{onClick:()=>{navigator.clipboard.writeText(lt),Ha(!0),setTimeout(()=>Ha(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Ki?S.jsx(Hl,{className:"h-4 w-4 text-emerald-400"}):S.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[S.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),S.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),Rn&&S.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:S.jsx("p",{className:"text-white/40 text-[12px]",children:"Credentials already set. Leave password fields empty to keep your current password, or enter your current password to change it."})}),S.jsxs("div",{className:"mt-5",children:[S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Username"}),S.jsx("input",{type:"text",value:ye,onChange:_=>Ba(_.target.value.replace(/\s/g,"").toLowerCase()),placeholder:"admin",autoFocus:!0,autoComplete:"username",className:en+" font-mono"}),ye.length>0&&ye.trim().length<3&&S.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 3 characters"})]}),Rn&&S.jsxs("div",{className:"mt-3",children:[S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("input",{type:"password",value:ae,onChange:_=>{Gu(_.target.value),fa(""),es(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",className:en+" flex-1"}),ae.length>0&&!fn&&S.jsx("button",{onClick:async()=>{ns(!0),fa("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:ae})})).json()).valid?es(!0):fa("Incorrect password")}catch{fa("Could not verify")}finally{ns(!1)}},disabled:Zi,className:"shrink-0 px-4 py-3 bg-white/[0.06] hover:bg-white/[0.1] text-white/60 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:Zi?S.jsx(Ni,{className:"h-4 w-4 animate-spin"}):"Verify"}),fn&&S.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:S.jsx(Hl,{className:"h-4 w-4 text-emerald-400"})})]}),Qi&&S.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Qi})]}),(!Rn||fn)&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"mt-3",children:[S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:Rn?"New password":"Password"}),S.jsx("input",{type:"password",value:Xe,onChange:_=>Yu(_.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:da,className:en}),Xe.length>0&&Xe.length<6&&S.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),S.jsxs("div",{className:"mt-3",children:[S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:Rn?"Confirm new password":"Confirm password"}),S.jsx("input",{type:"password",value:La,onChange:_=>Xi(_.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:da,className:en}),La.length>0&&!Ka&&S.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),S.jsxs("button",{onClick:tn,disabled:!Un,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",S.jsx(un,{className:"h-4 w-4"})]})]}),l===4&&S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),S.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),S.jsx("div",{className:"flex gap-2.5 mt-4",children:pA.map(_=>S.jsxs("button",{onClick:()=>qa(_.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${d===_.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[S.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[_.icon?S.jsx("img",{src:_.icon,alt:_.name,className:"w-8 h-8 rounded-lg"}):S.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-[13px] font-medium text-white",children:_.name}),S.jsx("div",{className:"text-[10px] text-white/30",children:_.subtitle})]})]}),x[_.id]==="connected"?S.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:S.jsx(Hl,{className:"h-2.5 w-2.5 text-emerald-400"})}):d===_.id?S.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},_.id))}),S.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),d==="anthropic"&&S.jsxs("div",{className:"space-y-2.5",children:[hn&&S.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:S.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!hn&&S.jsxs(S.Fragment,{children:[X&&S.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:S.jsx("p",{className:"text-red-400/90 text-[12px]",children:X})}),S.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((_,et)=>S.jsxs("div",{className:"flex items-start gap-2",children:[S.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:et+1}),S.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:_})]},et))}),S.jsx("button",{onClick:Ga,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:N?S.jsxs(S.Fragment,{children:[S.jsx(px,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):S.jsxs(S.Fragment,{children:["Authenticate with Anthropic",S.jsx(un,{className:"h-3.5 w-3.5 opacity-60"})]})}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:"text",value:q,onChange:_=>G(_.target.value),onKeyDown:_=>_.key==="Enter"&&Ie(),placeholder:"Paste your code here...",className:"w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all"+" pr-10 font-mono"}),S.jsx("button",{onClick:Xa,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:S.jsx(dx,{className:"h-3.5 w-3.5"})})]}),S.jsx("button",{onClick:Ie,disabled:!q.trim()||Y,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:Y?S.jsxs(S.Fragment,{children:[S.jsx(Ni,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),S.jsxs("button",{onClick:ha,disabled:k,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[k?S.jsx(Ni,{className:"h-3 w-3 animate-spin"}):S.jsx(bx,{className:"h-3 w-3"}),k?"Checking...":"I'm already authenticated"]})]})]}),d==="openai"&&S.jsxs("div",{className:"space-y-2.5",children:[hn&&S.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:S.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!hn&&S.jsxs(S.Fragment,{children:[st&&S.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:S.jsx("p",{className:"text-red-400/90 text-[12px]",children:st})}),S.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((_,et)=>S.jsxs("div",{className:"flex items-start gap-2",children:[S.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:et+1}),S.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:_})]},et))}),S.jsx("button",{onClick:Qu,disabled:$,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:$?S.jsxs(S.Fragment,{children:[S.jsx(Ni,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):S.jsxs(S.Fragment,{children:["Authenticate with ChatGPT",S.jsx(un,{className:"h-3.5 w-3.5 opacity-60"})]})}),$&&S.jsx("button",{onClick:as,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),hn&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),S.jsx(gA,{models:yA[d]||[],value:p,onChange:g})]}),hn&&S.jsxs("button",{onClick:tn,disabled:!Un,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",S.jsx(un,{className:"h-4 w-4"})]})]}),l===5&&S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),S.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),S.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),S.jsx("button",{onClick:()=>Vn(_=>!_),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${$e?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:S.jsxs("div",{className:"flex items-center gap-3.5",children:[S.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),S.jsxs("div",{className:"flex-1",children:[S.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),S.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),S.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${$e?"bg-gradient-brand":"bg-white/[0.08]"}`,children:S.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${$e?"translate-x-[18px]":"translate-x-0"}`})})]})}),$e&&S.jsxs("div",{className:"mt-3",children:[S.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),S.jsx("input",{type:"password",value:Ht,onChange:_=>Ke(_.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:en+" font-mono text-[13px]"}),Ht.length>0&&!Ht.startsWith("sk-")&&S.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Ht.length>0&&Ht.startsWith("sk-")&&Ht.length<20&&S.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),S.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[S.jsx(vx,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),S.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),S.jsx("button",{onClick:ki,disabled:m||$e&&(!Ht.startsWith("sk-")||Ht.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:m?S.jsxs(S.Fragment,{children:[S.jsx(Ni,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):S.jsxs(S.Fragment,{children:["Complete Setup",S.jsx(un,{className:"h-4 w-4"})]})}),!$e&&S.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]})]},l)}),l>0&&S.jsx("div",{className:"px-8 pb-5 -mt-3",children:S.jsx("button",{onClick:is,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{un as A,Ni as L,vx as M,SA as O,vA as R,u2 as a,xA as b,ra as c,Fy as g,S as j,Zy as m,U as r};
|